Changeset 29722 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- May 21, 2010 11:50:41 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.cpp
r28800 r29722 161 161 } 162 162 163 void QIWizard::retranslateAllPages() 164 { 165 QList<int> idList = pageIds(); 166 for(int i=0; i < idList.size(); ++i) 167 static_cast<QIWizardPage*>(page(idList.at(i)))->retranslateUi(); 168 } 169 163 170 QIWizardPage::QIWizardPage() 164 171 { -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.h
r28800 r29722 43 43 void assignBackground(const QString &strBg); 44 44 45 void retranslateAllPages(); 46 45 47 private: 46 48 … … 51 53 { 52 54 Q_OBJECT; 55 56 friend class QIWizard; 53 57 54 58 public: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzd.cpp
r28800 r29722 53 53 setField("selectedVMName", strSelectName); 54 54 55 /* Translate */55 /* Initial translate */ 56 56 retranslateUi(); 57 58 /* Initial translate all pages */ 59 retranslateAllPages(); 57 60 58 61 /* Resize to 'golden ratio' */ … … 129 132 void UIExportApplianceWzdPage1::initializePage() 130 133 { 131 /* Translate */132 retranslateUi();133 134 134 /* Choose initially selected item (if passed) */ 135 135 QList<QListWidgetItem*> list = m_pVMSelector->findItems(m_strSelectedVMName, Qt::MatchExactly); … … 221 221 void UIExportApplianceWzdPage2::initializePage() 222 222 { 223 /* Translate */224 retranslateUi();225 226 223 /* We propose a filename the first time the second page is displayed */ 227 224 prepareSettingsWidget(); … … 338 335 void UIExportApplianceWzdPage3::initializePage() 339 336 { 340 /* Translate */341 retranslateUi();342 343 337 /* Revert to initial choice */ 344 338 m_pTypeLocalFilesystem->click(); … … 404 398 void UIExportApplianceWzdPage4::initializePage() 405 399 { 406 /* Translate */407 retranslateUi();408 409 400 /* Setup components for chosen storage-type */ 410 401 StorageType storageType = field("storageType").value<StorageType>(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIFirstRunWzd.cpp
r28933 r29722 44 44 pPage3->init(); 45 45 46 /* Translate */46 /* Initial translate */ 47 47 retranslateUi(); 48 49 /* Initial translate all pages */ 50 retranslateAllPages(); 48 51 49 52 /* Resize to 'golden ratio' */ … … 129 132 void UIFirstRunWzdPage1::initializePage() 130 133 { 131 /* Translate */132 retranslateUi();133 134 } 134 135 … … 178 179 void UIFirstRunWzdPage2::initializePage() 179 180 { 180 /* Translate */181 retranslateUi();182 183 181 /* Initial choice */ 184 182 m_pMediaSelector->setCurrentIndex(0); … … 271 269 void UIFirstRunWzdPage3::initializePage() 272 270 { 273 /* Translate */274 retranslateUi();275 276 271 /* Summary should initially have focus */ 277 272 m_pSummaryText->setFocus(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIImportApplianceWzd.cpp
r28800 r29722 108 108 addPage(new UIImportApplianceWzdPage2); 109 109 110 /* Translate */110 /* Initial translate */ 111 111 retranslateUi(); 112 113 /* Initial translate all pages */ 114 retranslateAllPages(); 112 115 113 116 /* Resize to 'golden ratio' */ … … 176 179 void UIImportApplianceWzdPage1::initializePage() 177 180 { 178 /* Translate */179 retranslateUi();180 181 } 181 182 … … 213 214 registerField("applianceWidget", this, "applianceWidget"); 214 215 m_pApplianceWidget = m_pSettingsCnt; 215 216 /* Translate */217 retranslateUi();218 216 } 219 217 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newhd/UINewHDWzd.cpp
r29437 r29722 36 36 addPage(new UINewHDWzdPage4); 37 37 38 /* Translate */38 /* Initial translate */ 39 39 retranslateUi(); 40 41 /* Initial translate all pages */ 42 retranslateAllPages(); 40 43 41 44 /* Resize to 'golden ratio' */ … … 118 121 void UINewHDWzdPage1::initializePage() 119 122 { 120 /* Translate */121 retranslateUi();122 123 } 123 124 … … 149 150 void UINewHDWzdPage2::initializePage() 150 151 { 151 /* Translate */152 retranslateUi();153 154 152 /* Prepare initial choice */ 155 153 m_pTypeDynamic->click(); … … 252 250 void UINewHDWzdPage3::initializePage() 253 251 { 254 /* Translate */255 retranslateUi();256 257 252 /* Initialise location */ 258 253 m_pLocationEditor->setText(m_strInitialName); … … 465 460 void UINewHDWzdPage4::initializePage() 466 461 { 467 /* Translate */468 retranslateUi();469 470 462 /* Summary should have focus initially */ 471 463 m_pSummaryText->setFocus(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
r29437 r29722 135 135 addPage(new UINewVMWzdPage5); 136 136 137 /* Translate */137 /* Initial translate */ 138 138 retranslateUi(); 139 140 /* Initial translate all pages */ 141 retranslateAllPages(); 139 142 140 143 /* Resize to 'golden ratio' */ … … 183 186 void UINewVMWzdPage1::initializePage() 184 187 { 185 /* Translate */186 retranslateUi();187 188 } 188 189 … … 216 217 void UINewVMWzdPage2::initializePage() 217 218 { 218 /* Translate */219 retranslateUi();220 221 219 /* 'Name' field should have focus initially */ 222 220 m_pNameEditor->setFocus(); … … 286 284 void UINewVMWzdPage3::initializePage() 287 285 { 288 /* Translate */289 retranslateUi();290 291 286 /* Assign recommended 'ram' field value */ 292 287 CGuestOSType type = field("type").value<CGuestOSType>(); … … 375 370 void UINewVMWzdPage4::initializePage() 376 371 { 377 /* Translate */378 retranslateUi();379 380 372 /* Prepare initial choice */ 381 373 m_pBootHDCnt->setChecked(true); … … 608 600 void UINewVMWzdPage5::initializePage() 609 601 { 610 /* Translate */611 retranslateUi();612 613 602 /* Summary should have focus initially */ 614 603 m_pSummaryText->setFocus(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/registration/UIRegistrationWzd.cpp
r29526 r29722 404 404 addPage(new UIRegistrationWzdPage1); 405 405 406 /* Translate */406 /* Initial translate */ 407 407 retranslateUi(); 408 409 /* Initial translate all pages */ 410 retranslateAllPages(); 408 411 409 412 /* Resize to 'golden ratio' */ … … 523 526 m_pLeOldEmail->setText(data.account()); 524 527 m_pLeOldEmail->setFocus(); 525 526 /* Translate */527 retranslateUi();528 528 } 529 529
Note:
See TracChangeset
for help on using the changeset viewer.