VirtualBox

Changeset 76747 in vbox


Ignore:
Timestamp:
Jan 9, 2019 4:42:42 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9080: Split options and configuration dialogs

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
5 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r76671 r76747  
    833833        src/medium/viso/UIVisoContentBrowser.h \
    834834        src/medium/viso/UIVisoCreator.h \
     835        src/medium/viso/UIVisoConfigurationDialog.h \
    835836        src/medium/viso/UIVisoCreatorOptionsDialog.h \
    836837        src/medium/viso/UIVisoHostBrowser.h \
     
    11301131        src/medium/viso/UIVisoContentBrowser.h \
    11311132        src/medium/viso/UIVisoCreator.h \
     1133        src/medium/viso/UIVisoConfigurationDialog.h \
    11321134        src/medium/viso/UIVisoCreatorOptionsDialog.h \
    11331135        src/medium/viso/UIVisoHostBrowser.h \
     
    15771579        src/medium/viso/UIVisoContentBrowser.cpp \
    15781580        src/medium/viso/UIVisoCreator.cpp \
     1581        src/medium/viso/UIVisoConfigurationDialog.cpp \
    15791582        src/medium/viso/UIVisoCreatorOptionsDialog.cpp \
    15801583        src/medium/viso/UIVisoHostBrowser.cpp \
     
    19261929        src/medium/viso/UIVisoContentBrowser.cpp \
    19271930        src/medium/viso/UIVisoCreator.cpp \
     1931        src/medium/viso/UIVisoConfigurationDialog.cpp \
    19281932        src/medium/viso/UIVisoCreatorOptionsDialog.cpp \
    19291933        src/medium/viso/UIVisoHostBrowser.cpp \
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoConfigurationDialog.cpp

    r76740 r76747  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIVisoCreatorOptionsDialog class implementation.
     3 * VBox Qt GUI - UIVisoConfigurationDialog class implementation.
    44 */
    55
     
    1919#include <QCheckBox>
    2020#include <QGridLayout>
    21 #include <QVBoxLayout>
    2221#include <QPushButton>
    2322#include <QSplitter>
     
    2827#include "QILabel.h"
    2928#include "QILineEdit.h"
    30 #include "QITabWidget.h"
    31 #include "UIIconPool.h"
    32 #include "UIToolBar.h"
    33 #include "UIVisoHostBrowser.h"
     29#include "UIVisoConfigurationDialog.h"
    3430#include "UIVisoCreator.h"
    35 #include "UIVisoCreatorOptionsDialog.h"
    36 #include "UIVisoContentBrowser.h"
    3731
    38 UIVisoCreatorOptionsDialog::UIVisoCreatorOptionsDialog(const VisoOptions &visoOptions,
    39                                                        const BrowserOptions &browserOptions,
    40                                                        QWidget *pParent /* =0 */)
     32UIVisoConfigurationDialog::UIVisoConfigurationDialog(const VisoOptions &visoOptions,
     33                                                     QWidget *pParent /* =0 */)
    4134    : QIDialog(pParent)
    4235    , m_pMainLayout(0)
    4336    , m_pButtonBox(0)
    44     , m_pTab(0)
    4537    , m_visoOptions(visoOptions)
    46     , m_browserOptions(browserOptions)
    4738{
    4839    prepareObjects();
     
    5041}
    5142
    52 UIVisoCreatorOptionsDialog::~UIVisoCreatorOptionsDialog()
     43UIVisoConfigurationDialog::~UIVisoConfigurationDialog()
    5344{
    5445}
    5546
    56 const BrowserOptions &UIVisoCreatorOptionsDialog::browserOptions() const
    57 {
    58     return m_browserOptions;
    59 }
    60 
    61 const VisoOptions &UIVisoCreatorOptionsDialog::visoOptions() const
     47const VisoOptions &UIVisoConfigurationDialog::visoOptions() const
    6248{
    6349    return m_visoOptions;
    6450}
    6551
    66 void UIVisoCreatorOptionsDialog::sltHandlShowHiddenObjectsChange(int iState)
    67 {
    68     if (iState == static_cast<int>(Qt::Checked))
    69         m_browserOptions.m_bShowHiddenObjects = true;
    70     else
    71         m_browserOptions.m_bShowHiddenObjects = false;
    72 }
    73 
    74 void UIVisoCreatorOptionsDialog::sltHandleVisoNameChange(const QString &strText)
     52void UIVisoConfigurationDialog::sltHandleVisoNameChange(const QString &strText)
    7553{
    7654    m_visoOptions.m_strVisoName = strText;
    7755}
    7856
    79 void UIVisoCreatorOptionsDialog::prepareObjects()
     57void UIVisoConfigurationDialog::prepareObjects()
    8058{
    81     m_pMainLayout = new QVBoxLayout;
     59    m_pMainLayout = new QGridLayout;
     60
    8261    if (!m_pMainLayout)
    8362        return;
    8463
    85     m_pTab = new QITabWidget;
    86     if (m_pTab)
    87     {
    88         m_pMainLayout->addWidget(m_pTab);
    89         m_pTab->insertTab(static_cast<int>(TabPage_VISO_Options), new QWidget, UIVisoCreator::tr("VISO Options"));
    90         m_pTab->insertTab(static_cast<int>(TabPage_Browser_Options), new QWidget, UIVisoCreator::tr("Browser Options"));
    9164
    92         m_pTab->setTabToolTip(static_cast<int>(TabPage_VISO_Options), UIVisoCreator::tr("Change VISO options"));
    93         m_pTab->setTabWhatsThis(static_cast<int>(TabPage_VISO_Options), UIVisoCreator::tr("Change VISO options"));
     65    QILineEdit *pVisoNameLineEdit = new QILineEdit;
     66    connect(pVisoNameLineEdit, &QILineEdit::textChanged,
     67            this, &UIVisoConfigurationDialog::sltHandleVisoNameChange);
     68    pVisoNameLineEdit->setText(m_visoOptions.m_strVisoName);
     69    QILabel *pVisoNameLabel = new QILabel(UIVisoCreator::tr("VISO Name:"));
     70    pVisoNameLabel->setBuddy(pVisoNameLineEdit);
    9471
    95         m_pTab->setTabToolTip(static_cast<int>(TabPage_Browser_Options), UIVisoCreator::tr("Change Browser options"));
    96         m_pTab->setTabWhatsThis(static_cast<int>(TabPage_Browser_Options), UIVisoCreator::tr("Change Browser options"));
    97 
    98 
    99     }
    100     prepareTabWidget();
     72    m_pMainLayout->addWidget(pVisoNameLabel, 0, 0, 1, 1);
     73    m_pMainLayout->addWidget(pVisoNameLineEdit, 0, 1, 1, 1);
    10174
    10275    m_pButtonBox = new QIDialogButtonBox;
     
    10578        m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
    10679        m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
    107         m_pMainLayout->addWidget(m_pButtonBox);
     80        m_pMainLayout->addWidget(m_pButtonBox, 1, 0, 1, 2);
    10881    }
    10982    setLayout(m_pMainLayout);
    11083}
    11184
    112 void UIVisoCreatorOptionsDialog::prepareConnections()
     85void UIVisoConfigurationDialog::prepareConnections()
    11386{
    11487    if (m_pButtonBox)
    11588    {
    116         connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVisoCreatorOptionsDialog::close);
    117         connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UIVisoCreatorOptionsDialog::accept);
     89        connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVisoConfigurationDialog::close);
     90        connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UIVisoConfigurationDialog::accept);
    11891    }
    11992}
    120 
    121 void UIVisoCreatorOptionsDialog::prepareTabWidget()
    122 {
    123     if (!m_pTab)
    124         return;
    125     QWidget *pVisoPage = m_pTab->widget(static_cast<int>(TabPage_VISO_Options));
    126     if (pVisoPage)
    127     {
    128         QGridLayout *pLayout = new QGridLayout;
    129 
    130         QILineEdit *pVisoNameLineEdit = new QILineEdit;
    131         connect(pVisoNameLineEdit, &QILineEdit::textChanged,
    132                 this, &UIVisoCreatorOptionsDialog::sltHandleVisoNameChange);
    133         pVisoNameLineEdit->setText(m_visoOptions.m_strVisoName);
    134         QILabel *pVisoNameLabel = new QILabel(UIVisoCreator::tr("VISO Name"));
    135         pVisoNameLabel->setBuddy(pVisoNameLineEdit);
    136 
    137         pLayout->addWidget(pVisoNameLabel, 0, 0, Qt::AlignTop);
    138         pLayout->addWidget(pVisoNameLineEdit, 0, 1, Qt::AlignTop);
    139 
    140         pVisoPage->setLayout(pLayout);
    141     }
    142 
    143     QWidget *pBrowserPage = m_pTab->widget(static_cast<int>(TabPage_Browser_Options));
    144     if (pBrowserPage)
    145     {
    146         QGridLayout *pLayout = new QGridLayout;
    147 
    148         QCheckBox *pShowHiddenObjectsCheckBox = new QCheckBox;
    149         pShowHiddenObjectsCheckBox->setChecked(m_browserOptions.m_bShowHiddenObjects);
    150         QILabel *pShowHiddenObjectsLabel = new QILabel(UIVisoCreator::tr("Show Hidden Objects"));
    151         pShowHiddenObjectsLabel->setBuddy(pShowHiddenObjectsCheckBox);
    152         pLayout->addWidget(pShowHiddenObjectsLabel, 0, 0, Qt::AlignTop);
    153         pLayout->addWidget(pShowHiddenObjectsCheckBox, 0, 1, Qt::AlignTop);
    154         connect(pShowHiddenObjectsCheckBox, &QCheckBox::stateChanged,
    155                 this, &UIVisoCreatorOptionsDialog::sltHandlShowHiddenObjectsChange);
    156         pBrowserPage->setLayout(pLayout);
    157     }
    158 
    159 }
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoConfigurationDialog.h

    r76740 r76747  
    11/* $Id$ */
    22/** @file
    3  * VBox Qt GUI - UIVisoCreatorOptionsDialog class declaration.
     3 * VBox Qt GUI - UIVisoConfigurationDialog class declaration.
    44 */
    55
     
    1616 */
    1717
    18 #ifndef FEQT_INCLUDED_SRC_medium_viso_UIVisoCreatorOptionsDialog_h
    19 #define FEQT_INCLUDED_SRC_medium_viso_UIVisoCreatorOptionsDialog_h
     18#ifndef FEQT_INCLUDED_SRC_medium_viso_UIVisoConfigurationDialog_h
     19#define FEQT_INCLUDED_SRC_medium_viso_UIVisoConfigurationDialog_h
    2020#ifndef RT_WITHOUT_PRAGMA_ONCE
    2121# pragma once
     
    2929/* Forward declarations: */
    3030class QITabWidget;
    31 class QVBoxLayout;
     31class QGridLayout;
    3232class QIDialogButtonBox;
    3333
    34 class SHARED_LIBRARY_STUFF UIVisoCreatorOptionsDialog : public QIDialog
     34class SHARED_LIBRARY_STUFF UIVisoConfigurationDialog : public QIDialog
    3535{
    3636    Q_OBJECT;
     
    3838public:
    3939
    40     UIVisoCreatorOptionsDialog(const VisoOptions &visoOptions,
    41                                const BrowserOptions &browserOptions,
    42                                QWidget *pParent = 0);
    43     ~UIVisoCreatorOptionsDialog();
    44     const BrowserOptions &browserOptions() const;
     40    UIVisoConfigurationDialog(const VisoOptions &visoOptions,
     41                              QWidget *pParent = 0);
     42    ~UIVisoConfigurationDialog();
    4543    const VisoOptions &visoOptions() const;
    4644
    4745private slots:
    48     void sltHandlShowHiddenObjectsChange(int iState);
     46
    4947    void sltHandleVisoNameChange(const QString &strText);
    5048
    5149private:
    52     enum TabPage
    53     {
    54         TabPage_VISO_Options,
    55         TabPage_Browser_Options,
    56         TabPage_Max
    57     };
    5850
    5951    void prepareObjects();
    6052    void prepareConnections();
    61     void prepareTabWidget();
    62     QVBoxLayout          *m_pMainLayout;
     53
     54    QGridLayout          *m_pMainLayout;
    6355    QIDialogButtonBox    *m_pButtonBox;
    64     QITabWidget          *m_pTab;
    65     //    QILineEdit           *m_pVisoNameLineEdit;
    66     //QILabel              *m_pVISONameLabel;
    6756    VisoOptions          m_visoOptions;
    68     BrowserOptions       m_browserOptions;
    6957    friend class UIVisoCreator;
    7058};
    7159
    72 #endif /* !FEQT_INCLUDED_SRC_medium_viso_UIVisoCreatorOptionsDialog_h */
     60#endif /* !FEQT_INCLUDED_SRC_medium_viso_UIVisoConfigurationDialog_h */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp

    r76737 r76747  
    2828#include "UIVisoHostBrowser.h"
    2929#include "UIVisoCreator.h"
     30#include "UIVisoConfigurationDialog.h"
    3031#include "UIVisoCreatorOptionsDialog.h"
    3132#include "UIVisoContentBrowser.h"
     
    4041    , m_pButtonBox(0)
    4142    , m_pToolBar(0)
     43    , m_pActionConfiguration(0)
    4244    , m_pActionOptions(0)
    4345{
     
    6668void UIVisoCreator::retranslateUi()
    6769{
     70    if (m_pActionConfiguration)
     71    {
     72        m_pActionConfiguration->setText(tr("&Configuration..."));
     73        m_pActionConfiguration->setToolTip(tr("VISO Configuration"));
     74        m_pActionConfiguration->setStatusTip(tr("Manage VISO Configuration"));
     75    }
    6876    if (m_pActionOptions)
    6977    {
    7078        m_pActionOptions->setText(tr("&Options..."));
    71         m_pActionOptions->setToolTip(tr("VISO Options"));
    72         m_pActionOptions->setStatusTip(tr("Manage VISO Options"));
     79        m_pActionOptions->setToolTip(tr("Dialog Options"));
     80        m_pActionOptions->setStatusTip(tr("Manage Dialog Options"));
    7381    }
    7482}
     
    8290void UIVisoCreator::sltHandleOptionsAction()
    8391{
    84     UIVisoCreatorOptionsDialog *pDialog = new UIVisoCreatorOptionsDialog(m_visoOptions, m_browserOptions, this);
     92    UIVisoCreatorOptionsDialog *pDialog = new UIVisoCreatorOptionsDialog(m_browserOptions, this);
    8593
    8694    if(!pDialog)
     
    9098        /** Check if any of the options has been modified: */
    9199        checkBrowserOptions(pDialog->browserOptions());
     100    }
     101    delete pDialog;
     102}
     103
     104void UIVisoCreator::sltHandleConfigurationAction()
     105{
     106    UIVisoConfigurationDialog *pDialog = new UIVisoConfigurationDialog(m_visoOptions, this);
     107
     108    if(!pDialog)
     109        return;
     110    if (pDialog->execute(true, false))
     111    {
     112        /** Check if any of the options has been modified: */
    92113        checkVisoOptions(pDialog->visoOptions());
    93114    }
    94115    delete pDialog;
    95116}
    96 
    97117
    98118void UIVisoCreator::prepareObjects()
     
    110130        m_pToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
    111131        /* Add toolbar actions: */
     132        if (m_pActionConfiguration)
     133            m_pToolBar->addAction(m_pActionConfiguration);
    112134        if (m_pActionOptions)
    113135            m_pToolBar->addAction(m_pActionOptions);
     136
    114137        m_pMainLayout->addWidget(m_pToolBar);
    115138    }
     
    154177        connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UIVisoCreator::accept);
    155178    }
     179    if (m_pActionConfiguration)
     180        connect(m_pActionConfiguration, &QAction::triggered, this, &UIVisoCreator::sltHandleConfigurationAction);
    156181    if (m_pActionOptions)
    157     {
    158182        connect(m_pActionOptions, &QAction::triggered, this, &UIVisoCreator::sltHandleOptionsAction);
    159 
    160     }
    161183}
    162184
    163185void UIVisoCreator::prepareActions()
    164186{
     187    m_pActionConfiguration = new QAction(this);
     188    if (m_pActionConfiguration)
     189    {
     190        m_pActionConfiguration->setIcon(UIIconPool::iconSetFull(":/file_manager_options_32px.png",
     191                                                          ":/%file_manager_options_16px.png",
     192                                                          ":/file_manager_options_disabled_32px.png",
     193                                                          ":/file_manager_options_disabled_16px.png"));
     194    }
     195
    165196    m_pActionOptions = new QAction(this);
    166197    if (m_pActionOptions)
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h

    r76737 r76747  
    6969    void sltHandleAddObjectsToViso(QStringList pathList);
    7070    void sltHandleOptionsAction();
     71    void sltHandleConfigurationAction();
    7172
    72 private:
     73 private:
    7374
    7475    void prepareObjects();
     
    8788    QIDialogButtonBox    *m_pButtonBox;
    8889    UIToolBar            *m_pToolBar;
     90    QAction              *m_pActionConfiguration;
    8991    QAction              *m_pActionOptions;
    90     VisoOptions          m_visoOptions;
    91     BrowserOptions       m_browserOptions;
     92    VisoOptions           m_visoOptions;
     93    BrowserOptions        m_browserOptions;
    9294
    9395};
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreatorOptionsDialog.cpp

    r76671 r76747  
    2929#include "QILineEdit.h"
    3030#include "QITabWidget.h"
    31 #include "UIIconPool.h"
    32 #include "UIToolBar.h"
    33 #include "UIVisoHostBrowser.h"
    3431#include "UIVisoCreator.h"
    3532#include "UIVisoCreatorOptionsDialog.h"
    36 #include "UIVisoContentBrowser.h"
    3733
    38 UIVisoCreatorOptionsDialog::UIVisoCreatorOptionsDialog(const VisoOptions &visoOptions,
    39                                                        const BrowserOptions &browserOptions,
    40                                                        QWidget *pParent /* =0 */)
     34UIVisoCreatorOptionsDialog::UIVisoCreatorOptionsDialog(const BrowserOptions &browserOptions, QWidget *pParent /* =0 */)
    4135    : QIDialog(pParent)
    4236    , m_pMainLayout(0)
    4337    , m_pButtonBox(0)
    44     , m_pTab(0)
    45     , m_visoOptions(visoOptions)
    4638    , m_browserOptions(browserOptions)
    4739{
     
    5951}
    6052
    61 const VisoOptions &UIVisoCreatorOptionsDialog::visoOptions() const
    62 {
    63     return m_visoOptions;
    64 }
    65 
    6653void UIVisoCreatorOptionsDialog::sltHandlShowHiddenObjectsChange(int iState)
    6754{
     
    7259}
    7360
    74 void UIVisoCreatorOptionsDialog::sltHandleVisoNameChange(const QString &strText)
    75 {
    76     m_visoOptions.m_strVisoName = strText;
    77 }
    78 
    7961void UIVisoCreatorOptionsDialog::prepareObjects()
    8062{
    81     m_pMainLayout = new QVBoxLayout;
     63    m_pMainLayout = new QGridLayout;
    8264    if (!m_pMainLayout)
    8365        return;
    8466
    85     m_pTab = new QITabWidget;
    86     if (m_pTab)
    87     {
    88         m_pMainLayout->addWidget(m_pTab);
    89         m_pTab->insertTab(static_cast<int>(TabPage_VISO_Options), new QWidget, UIVisoCreator::tr("VISO Options"));
    90         m_pTab->insertTab(static_cast<int>(TabPage_Browser_Options), new QWidget, UIVisoCreator::tr("Browser Options"));
    91 
    92         m_pTab->setTabToolTip(static_cast<int>(TabPage_VISO_Options), UIVisoCreator::tr("Change VISO options"));
    93         m_pTab->setTabWhatsThis(static_cast<int>(TabPage_VISO_Options), UIVisoCreator::tr("Change VISO options"));
    94 
    95         m_pTab->setTabToolTip(static_cast<int>(TabPage_Browser_Options), UIVisoCreator::tr("Change Browser options"));
    96         m_pTab->setTabWhatsThis(static_cast<int>(TabPage_Browser_Options), UIVisoCreator::tr("Change Browser options"));
    97 
    98 
    99     }
    100     prepareTabWidget();
     67    QCheckBox *pShowHiddenObjectsCheckBox = new QCheckBox;
     68    pShowHiddenObjectsCheckBox->setChecked(m_browserOptions.m_bShowHiddenObjects);
     69    QILabel *pShowHiddenObjectsLabel = new QILabel(UIVisoCreator::tr("Show Hidden Objects"));
     70    pShowHiddenObjectsLabel->setBuddy(pShowHiddenObjectsCheckBox);
     71    m_pMainLayout->addWidget(pShowHiddenObjectsLabel, 0, 0);
     72    m_pMainLayout->addWidget(pShowHiddenObjectsCheckBox, 0, 1);
     73    connect(pShowHiddenObjectsCheckBox, &QCheckBox::stateChanged,
     74            this, &UIVisoCreatorOptionsDialog::sltHandlShowHiddenObjectsChange);
    10175
    10276    m_pButtonBox = new QIDialogButtonBox;
     
    10579        m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok);
    10680        m_pButtonBox->button(QDialogButtonBox::Cancel)->setShortcut(Qt::Key_Escape);
    107         m_pMainLayout->addWidget(m_pButtonBox);
     81        m_pMainLayout->addWidget(m_pButtonBox, 1, 0, 1, 2);
    10882    }
    10983    setLayout(m_pMainLayout);
     
    11892    }
    11993}
    120 
    121 void UIVisoCreatorOptionsDialog::prepareTabWidget()
    122 {
    123     if (!m_pTab)
    124         return;
    125     QWidget *pVisoPage = m_pTab->widget(static_cast<int>(TabPage_VISO_Options));
    126     if (pVisoPage)
    127     {
    128         QGridLayout *pLayout = new QGridLayout;
    129 
    130         QILineEdit *pVisoNameLineEdit = new QILineEdit;
    131         connect(pVisoNameLineEdit, &QILineEdit::textChanged,
    132                 this, &UIVisoCreatorOptionsDialog::sltHandleVisoNameChange);
    133         pVisoNameLineEdit->setText(m_visoOptions.m_strVisoName);
    134         QILabel *pVisoNameLabel = new QILabel(UIVisoCreator::tr("VISO Name"));
    135         pVisoNameLabel->setBuddy(pVisoNameLineEdit);
    136 
    137         pLayout->addWidget(pVisoNameLabel, 0, 0, Qt::AlignTop);
    138         pLayout->addWidget(pVisoNameLineEdit, 0, 1, Qt::AlignTop);
    139 
    140         pVisoPage->setLayout(pLayout);
    141     }
    142 
    143     QWidget *pBrowserPage = m_pTab->widget(static_cast<int>(TabPage_Browser_Options));
    144     if (pBrowserPage)
    145     {
    146         QGridLayout *pLayout = new QGridLayout;
    147 
    148         QCheckBox *pShowHiddenObjectsCheckBox = new QCheckBox;
    149         pShowHiddenObjectsCheckBox->setChecked(m_browserOptions.m_bShowHiddenObjects);
    150         QILabel *pShowHiddenObjectsLabel = new QILabel(UIVisoCreator::tr("Show Hidden Objects"));
    151         pShowHiddenObjectsLabel->setBuddy(pShowHiddenObjectsCheckBox);
    152         pLayout->addWidget(pShowHiddenObjectsLabel, 0, 0, Qt::AlignTop);
    153         pLayout->addWidget(pShowHiddenObjectsCheckBox, 0, 1, Qt::AlignTop);
    154         connect(pShowHiddenObjectsCheckBox, &QCheckBox::stateChanged,
    155                 this, &UIVisoCreatorOptionsDialog::sltHandlShowHiddenObjectsChange);
    156         pBrowserPage->setLayout(pLayout);
    157     }
    158 
    159 }
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreatorOptionsDialog.h

    r76677 r76747  
    2828
    2929/* Forward declarations: */
    30 class QITabWidget;
    31 class QVBoxLayout;
     30class QGridLayout;
    3231class QIDialogButtonBox;
    3332
     
    3837public:
    3938
    40     UIVisoCreatorOptionsDialog(const VisoOptions &visoOptions,
    41                                const BrowserOptions &browserOptions,
     39    UIVisoCreatorOptionsDialog(const BrowserOptions &browserOptions,
    4240                               QWidget *pParent = 0);
    4341    ~UIVisoCreatorOptionsDialog();
    4442    const BrowserOptions &browserOptions() const;
    45     const VisoOptions &visoOptions() const;
    4643
    4744private slots:
     45
    4846    void sltHandlShowHiddenObjectsChange(int iState);
    49     void sltHandleVisoNameChange(const QString &strText);
    5047
    5148private:
    52     enum TabPage
    53     {
    54         TabPage_VISO_Options,
    55         TabPage_Browser_Options,
    56         TabPage_Max
    57     };
    5849
    5950    void prepareObjects();
    6051    void prepareConnections();
    61     void prepareTabWidget();
    62     QVBoxLayout          *m_pMainLayout;
     52    QGridLayout          *m_pMainLayout;
    6353    QIDialogButtonBox    *m_pButtonBox;
    64     QITabWidget          *m_pTab;
    65     //    QILineEdit           *m_pVisoNameLineEdit;
    66     //QILabel              *m_pVISONameLabel;
    67     VisoOptions          m_visoOptions;
    6854    BrowserOptions       m_browserOptions;
    6955    friend class UIVisoCreator;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette