Changeset 41401 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 22, 2012 4:23:13 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78113
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp
r41400 r41401 410 410 break; 411 411 case UIWizardType_FirstRun: 412 dRatio += 0. 4;412 dRatio += 0.3; 413 413 break; 414 414 default: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
r41373 r41401 21 21 #include <QVBoxLayout> 22 22 #include <QHBoxLayout> 23 #include <QGroupBox>24 23 25 24 /* Local includes: */ … … 66 65 pMainLayout->setContentsMargins(8, 0, 8, 0); 67 66 m_pLabel = new QIRichTextLabel(this); 68 m_pSourceCnt = new QGroupBox(this);67 QHBoxLayout *pSourceDiskLayout = new QHBoxLayout; 69 68 { 70 m_pSourceCnt->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 71 QHBoxLayout *pSourceCntLayout = new QHBoxLayout(m_pSourceCnt); 69 m_pMediaSelector = new VBoxMediaComboBox(this); 72 70 { 73 m_pMediaSelector = new VBoxMediaComboBox(m_pSourceCnt); 74 { 75 m_pMediaSelector->setMachineId(strMachineId); 76 m_pMediaSelector->setType(VBoxDefs::MediumType_DVD); 77 m_pMediaSelector->repopulate(); 78 } 79 m_pSelectMediaButton = new QIToolButton(m_pSourceCnt); 80 { 81 m_pSelectMediaButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_dis_16px.png")); 82 m_pSelectMediaButton->setAutoRaise(true); 83 } 84 pSourceCntLayout->addWidget(m_pMediaSelector); 85 pSourceCntLayout->addWidget(m_pSelectMediaButton); 71 m_pMediaSelector->setMachineId(strMachineId); 72 m_pMediaSelector->setType(VBoxDefs::MediumType_DVD); 73 m_pMediaSelector->repopulate(); 86 74 } 75 m_pSelectMediaButton = new QIToolButton(this); 76 { 77 m_pSelectMediaButton->setIcon(UIIconPool::iconSet(":/select_file_16px.png", ":/select_file_dis_16px.png")); 78 m_pSelectMediaButton->setAutoRaise(true); 79 } 80 pSourceDiskLayout->addWidget(m_pMediaSelector); 81 pSourceDiskLayout->addWidget(m_pSelectMediaButton); 87 82 } 88 83 pMainLayout->addWidget(m_pLabel); 89 pMainLayout->add Widget(m_pSourceCnt);84 pMainLayout->addLayout(pSourceDiskLayout); 90 85 pMainLayout->addStretch(); 91 86 } … … 126 121 "As this virtual machine has no hard drive " 127 122 "you will not be able to install an operating system on it at the moment.</p>")); 128 m_pSourceCnt->setTitle(UIWizardFirstRun::tr("Start-up disk"));129 123 m_pSelectMediaButton->setToolTip(UIWizardFirstRun::tr("Choose a virtual optical disk file...")); 130 124 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.h
r41373 r41401 25 25 /* Forward declarations: */ 26 26 class CMachine; 27 class QGroupBox;28 27 class VBoxMediaComboBox; 29 28 class QIToolButton; … … 49 48 50 49 /* Widgets: */ 51 QGroupBox *m_pSourceCnt;52 50 VBoxMediaComboBox *m_pMediaSelector; 53 51 QIToolButton *m_pSelectMediaButton;
Note:
See TracChangeset
for help on using the changeset viewer.