Changeset 76747 in vbox
- Timestamp:
- Jan 9, 2019 4:42:42 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r76671 r76747 833 833 src/medium/viso/UIVisoContentBrowser.h \ 834 834 src/medium/viso/UIVisoCreator.h \ 835 src/medium/viso/UIVisoConfigurationDialog.h \ 835 836 src/medium/viso/UIVisoCreatorOptionsDialog.h \ 836 837 src/medium/viso/UIVisoHostBrowser.h \ … … 1130 1131 src/medium/viso/UIVisoContentBrowser.h \ 1131 1132 src/medium/viso/UIVisoCreator.h \ 1133 src/medium/viso/UIVisoConfigurationDialog.h \ 1132 1134 src/medium/viso/UIVisoCreatorOptionsDialog.h \ 1133 1135 src/medium/viso/UIVisoHostBrowser.h \ … … 1577 1579 src/medium/viso/UIVisoContentBrowser.cpp \ 1578 1580 src/medium/viso/UIVisoCreator.cpp \ 1581 src/medium/viso/UIVisoConfigurationDialog.cpp \ 1579 1582 src/medium/viso/UIVisoCreatorOptionsDialog.cpp \ 1580 1583 src/medium/viso/UIVisoHostBrowser.cpp \ … … 1926 1929 src/medium/viso/UIVisoContentBrowser.cpp \ 1927 1930 src/medium/viso/UIVisoCreator.cpp \ 1931 src/medium/viso/UIVisoConfigurationDialog.cpp \ 1928 1932 src/medium/viso/UIVisoCreatorOptionsDialog.cpp \ 1929 1933 src/medium/viso/UIVisoHostBrowser.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoConfigurationDialog.cpp
r76740 r76747 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIVisoC reatorOptionsDialog class implementation.3 * VBox Qt GUI - UIVisoConfigurationDialog class implementation. 4 4 */ 5 5 … … 19 19 #include <QCheckBox> 20 20 #include <QGridLayout> 21 #include <QVBoxLayout>22 21 #include <QPushButton> 23 22 #include <QSplitter> … … 28 27 #include "QILabel.h" 29 28 #include "QILineEdit.h" 30 #include "QITabWidget.h" 31 #include "UIIconPool.h" 32 #include "UIToolBar.h" 33 #include "UIVisoHostBrowser.h" 29 #include "UIVisoConfigurationDialog.h" 34 30 #include "UIVisoCreator.h" 35 #include "UIVisoCreatorOptionsDialog.h"36 #include "UIVisoContentBrowser.h"37 31 38 UIVisoCreatorOptionsDialog::UIVisoCreatorOptionsDialog(const VisoOptions &visoOptions, 39 const BrowserOptions &browserOptions, 40 QWidget *pParent /* =0 */) 32 UIVisoConfigurationDialog::UIVisoConfigurationDialog(const VisoOptions &visoOptions, 33 QWidget *pParent /* =0 */) 41 34 : QIDialog(pParent) 42 35 , m_pMainLayout(0) 43 36 , m_pButtonBox(0) 44 , m_pTab(0)45 37 , m_visoOptions(visoOptions) 46 , m_browserOptions(browserOptions)47 38 { 48 39 prepareObjects(); … … 50 41 } 51 42 52 UIVisoC reatorOptionsDialog::~UIVisoCreatorOptionsDialog()43 UIVisoConfigurationDialog::~UIVisoConfigurationDialog() 53 44 { 54 45 } 55 46 56 const BrowserOptions &UIVisoCreatorOptionsDialog::browserOptions() const 57 { 58 return m_browserOptions; 59 } 60 61 const VisoOptions &UIVisoCreatorOptionsDialog::visoOptions() const 47 const VisoOptions &UIVisoConfigurationDialog::visoOptions() const 62 48 { 63 49 return m_visoOptions; 64 50 } 65 51 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) 52 void UIVisoConfigurationDialog::sltHandleVisoNameChange(const QString &strText) 75 53 { 76 54 m_visoOptions.m_strVisoName = strText; 77 55 } 78 56 79 void UIVisoC reatorOptionsDialog::prepareObjects()57 void UIVisoConfigurationDialog::prepareObjects() 80 58 { 81 m_pMainLayout = new QVBoxLayout; 59 m_pMainLayout = new QGridLayout; 60 82 61 if (!m_pMainLayout) 83 62 return; 84 63 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 64 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); 94 71 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); 101 74 102 75 m_pButtonBox = new QIDialogButtonBox; … … 105 78 m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok); 106 79 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); 108 81 } 109 82 setLayout(m_pMainLayout); 110 83 } 111 84 112 void UIVisoC reatorOptionsDialog::prepareConnections()85 void UIVisoConfigurationDialog::prepareConnections() 113 86 { 114 87 if (m_pButtonBox) 115 88 { 116 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVisoC reatorOptionsDialog::close);117 connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UIVisoC reatorOptionsDialog::accept);89 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIVisoConfigurationDialog::close); 90 connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UIVisoConfigurationDialog::accept); 118 91 } 119 92 } 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 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIVisoC reatorOptionsDialog class declaration.3 * VBox Qt GUI - UIVisoConfigurationDialog class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef FEQT_INCLUDED_SRC_medium_viso_UIVisoC reatorOptionsDialog_h19 #define FEQT_INCLUDED_SRC_medium_viso_UIVisoC reatorOptionsDialog_h18 #ifndef FEQT_INCLUDED_SRC_medium_viso_UIVisoConfigurationDialog_h 19 #define FEQT_INCLUDED_SRC_medium_viso_UIVisoConfigurationDialog_h 20 20 #ifndef RT_WITHOUT_PRAGMA_ONCE 21 21 # pragma once … … 29 29 /* Forward declarations: */ 30 30 class QITabWidget; 31 class Q VBoxLayout;31 class QGridLayout; 32 32 class QIDialogButtonBox; 33 33 34 class SHARED_LIBRARY_STUFF UIVisoC reatorOptionsDialog : public QIDialog34 class SHARED_LIBRARY_STUFF UIVisoConfigurationDialog : public QIDialog 35 35 { 36 36 Q_OBJECT; … … 38 38 public: 39 39 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(); 45 43 const VisoOptions &visoOptions() const; 46 44 47 45 private slots: 48 void sltHandlShowHiddenObjectsChange(int iState); 46 49 47 void sltHandleVisoNameChange(const QString &strText); 50 48 51 49 private: 52 enum TabPage53 {54 TabPage_VISO_Options,55 TabPage_Browser_Options,56 TabPage_Max57 };58 50 59 51 void prepareObjects(); 60 52 void prepareConnections(); 61 void prepareTabWidget(); 62 Q VBoxLayout *m_pMainLayout;53 54 QGridLayout *m_pMainLayout; 63 55 QIDialogButtonBox *m_pButtonBox; 64 QITabWidget *m_pTab;65 // QILineEdit *m_pVisoNameLineEdit;66 //QILabel *m_pVISONameLabel;67 56 VisoOptions m_visoOptions; 68 BrowserOptions m_browserOptions;69 57 friend class UIVisoCreator; 70 58 }; 71 59 72 #endif /* !FEQT_INCLUDED_SRC_medium_viso_UIVisoC reatorOptionsDialog_h */60 #endif /* !FEQT_INCLUDED_SRC_medium_viso_UIVisoConfigurationDialog_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r76737 r76747 28 28 #include "UIVisoHostBrowser.h" 29 29 #include "UIVisoCreator.h" 30 #include "UIVisoConfigurationDialog.h" 30 31 #include "UIVisoCreatorOptionsDialog.h" 31 32 #include "UIVisoContentBrowser.h" … … 40 41 , m_pButtonBox(0) 41 42 , m_pToolBar(0) 43 , m_pActionConfiguration(0) 42 44 , m_pActionOptions(0) 43 45 { … … 66 68 void UIVisoCreator::retranslateUi() 67 69 { 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 } 68 76 if (m_pActionOptions) 69 77 { 70 78 m_pActionOptions->setText(tr("&Options...")); 71 m_pActionOptions->setToolTip(tr(" VISOOptions"));72 m_pActionOptions->setStatusTip(tr("Manage VISOOptions"));79 m_pActionOptions->setToolTip(tr("Dialog Options")); 80 m_pActionOptions->setStatusTip(tr("Manage Dialog Options")); 73 81 } 74 82 } … … 82 90 void UIVisoCreator::sltHandleOptionsAction() 83 91 { 84 UIVisoCreatorOptionsDialog *pDialog = new UIVisoCreatorOptionsDialog(m_ visoOptions, m_browserOptions, this);92 UIVisoCreatorOptionsDialog *pDialog = new UIVisoCreatorOptionsDialog(m_browserOptions, this); 85 93 86 94 if(!pDialog) … … 90 98 /** Check if any of the options has been modified: */ 91 99 checkBrowserOptions(pDialog->browserOptions()); 100 } 101 delete pDialog; 102 } 103 104 void 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: */ 92 113 checkVisoOptions(pDialog->visoOptions()); 93 114 } 94 115 delete pDialog; 95 116 } 96 97 117 98 118 void UIVisoCreator::prepareObjects() … … 110 130 m_pToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 111 131 /* Add toolbar actions: */ 132 if (m_pActionConfiguration) 133 m_pToolBar->addAction(m_pActionConfiguration); 112 134 if (m_pActionOptions) 113 135 m_pToolBar->addAction(m_pActionOptions); 136 114 137 m_pMainLayout->addWidget(m_pToolBar); 115 138 } … … 154 177 connect(m_pButtonBox, &QIDialogButtonBox::accepted, this, &UIVisoCreator::accept); 155 178 } 179 if (m_pActionConfiguration) 180 connect(m_pActionConfiguration, &QAction::triggered, this, &UIVisoCreator::sltHandleConfigurationAction); 156 181 if (m_pActionOptions) 157 {158 182 connect(m_pActionOptions, &QAction::triggered, this, &UIVisoCreator::sltHandleOptionsAction); 159 160 }161 183 } 162 184 163 185 void UIVisoCreator::prepareActions() 164 186 { 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 165 196 m_pActionOptions = new QAction(this); 166 197 if (m_pActionOptions) -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h
r76737 r76747 69 69 void sltHandleAddObjectsToViso(QStringList pathList); 70 70 void sltHandleOptionsAction(); 71 void sltHandleConfigurationAction(); 71 72 72 private:73 private: 73 74 74 75 void prepareObjects(); … … 87 88 QIDialogButtonBox *m_pButtonBox; 88 89 UIToolBar *m_pToolBar; 90 QAction *m_pActionConfiguration; 89 91 QAction *m_pActionOptions; 90 VisoOptions m_visoOptions;91 BrowserOptions m_browserOptions;92 VisoOptions m_visoOptions; 93 BrowserOptions m_browserOptions; 92 94 93 95 }; -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreatorOptionsDialog.cpp
r76671 r76747 29 29 #include "QILineEdit.h" 30 30 #include "QITabWidget.h" 31 #include "UIIconPool.h"32 #include "UIToolBar.h"33 #include "UIVisoHostBrowser.h"34 31 #include "UIVisoCreator.h" 35 32 #include "UIVisoCreatorOptionsDialog.h" 36 #include "UIVisoContentBrowser.h"37 33 38 UIVisoCreatorOptionsDialog::UIVisoCreatorOptionsDialog(const VisoOptions &visoOptions, 39 const BrowserOptions &browserOptions, 40 QWidget *pParent /* =0 */) 34 UIVisoCreatorOptionsDialog::UIVisoCreatorOptionsDialog(const BrowserOptions &browserOptions, QWidget *pParent /* =0 */) 41 35 : QIDialog(pParent) 42 36 , m_pMainLayout(0) 43 37 , m_pButtonBox(0) 44 , m_pTab(0)45 , m_visoOptions(visoOptions)46 38 , m_browserOptions(browserOptions) 47 39 { … … 59 51 } 60 52 61 const VisoOptions &UIVisoCreatorOptionsDialog::visoOptions() const62 {63 return m_visoOptions;64 }65 66 53 void UIVisoCreatorOptionsDialog::sltHandlShowHiddenObjectsChange(int iState) 67 54 { … … 72 59 } 73 60 74 void UIVisoCreatorOptionsDialog::sltHandleVisoNameChange(const QString &strText)75 {76 m_visoOptions.m_strVisoName = strText;77 }78 79 61 void UIVisoCreatorOptionsDialog::prepareObjects() 80 62 { 81 m_pMainLayout = new Q VBoxLayout;63 m_pMainLayout = new QGridLayout; 82 64 if (!m_pMainLayout) 83 65 return; 84 66 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); 101 75 102 76 m_pButtonBox = new QIDialogButtonBox; … … 105 79 m_pButtonBox->setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Ok); 106 80 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); 108 82 } 109 83 setLayout(m_pMainLayout); … … 118 92 } 119 93 } 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 28 28 29 29 /* Forward declarations: */ 30 class QITabWidget; 31 class QVBoxLayout; 30 class QGridLayout; 32 31 class QIDialogButtonBox; 33 32 … … 38 37 public: 39 38 40 UIVisoCreatorOptionsDialog(const VisoOptions &visoOptions, 41 const BrowserOptions &browserOptions, 39 UIVisoCreatorOptionsDialog(const BrowserOptions &browserOptions, 42 40 QWidget *pParent = 0); 43 41 ~UIVisoCreatorOptionsDialog(); 44 42 const BrowserOptions &browserOptions() const; 45 const VisoOptions &visoOptions() const;46 43 47 44 private slots: 45 48 46 void sltHandlShowHiddenObjectsChange(int iState); 49 void sltHandleVisoNameChange(const QString &strText);50 47 51 48 private: 52 enum TabPage53 {54 TabPage_VISO_Options,55 TabPage_Browser_Options,56 TabPage_Max57 };58 49 59 50 void prepareObjects(); 60 51 void prepareConnections(); 61 void prepareTabWidget(); 62 QVBoxLayout *m_pMainLayout; 52 QGridLayout *m_pMainLayout; 63 53 QIDialogButtonBox *m_pButtonBox; 64 QITabWidget *m_pTab;65 // QILineEdit *m_pVisoNameLineEdit;66 //QILabel *m_pVISONameLabel;67 VisoOptions m_visoOptions;68 54 BrowserOptions m_browserOptions; 69 55 friend class UIVisoCreator;
Note:
See TracChangeset
for help on using the changeset viewer.