Changeset 103957 in vbox
- Timestamp:
- Mar 20, 2024 1:41:59 PM (8 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 62 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizardPage.cpp
r98103 r103957 29 29 #include "UINativeWizard.h" 30 30 #include "UINativeWizardPage.h" 31 31 #include "UITranslationEventListener.h" 32 32 33 33 UINativeWizardPage::UINativeWizardPage() 34 34 { 35 connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI, 36 this, &UINativeWizardPage::sltRetranslateUI); 35 37 } 36 38 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizardPage.h
r98103 r103957 32 32 #endif 33 33 34 /* Qt includes: */ 35 #include <QWidget> 36 34 37 /* GUI includes: */ 35 #include "QIWithRetranslateUI.h"36 38 #include "UILibraryDefs.h" 37 39 … … 40 42 41 43 /** QWidget extension with advanced functionality emulating QWizardPage behavior. */ 42 class SHARED_LIBRARY_STUFF UINativeWizardPage : public Q IWithRetranslateUI<QWidget>44 class SHARED_LIBRARY_STUFF UINativeWizardPage : public QWidget 43 45 { 44 46 Q_OBJECT; … … 55 57 56 58 /** Redirects the translation call to actual handler. */ 57 void retranslate() { retranslateUi(); }59 void retranslate() { sltRetranslateUI(); } 58 60 59 61 /** Defines page @a strTitle. */ … … 70 72 * @returns whether page state to go to next page is bearable. */ 71 73 virtual bool validatePage() { return true; } 74 75 protected slots: 76 77 virtual void sltRetranslateUI() = 0; 72 78 73 79 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp
r101563 r103957 165 165 } 166 166 167 void UIWizardAddCloudVMPageExpert:: retranslateUi()167 void UIWizardAddCloudVMPageExpert::sltRetranslateUI() 168 168 { 169 169 /* Translate tool-box: */ … … 198 198 populateProviders(m_pProviderComboBox, wizard()->notificationCenter()); 199 199 /* Translate providers: */ 200 retranslateUi();200 sltRetranslateUI(); 201 201 /* Fetch it, asynchronously: */ 202 202 QMetaObject::invokeMethod(this, "sltHandleProviderComboChange", Qt::QueuedConnection); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h
r98103 r103957 55 55 UIWizardAddCloudVM *wizard() const; 56 56 57 /** Handles translation event. */58 virtual void retranslateUi() /* override final */;59 60 57 /** Performs page initialization. */ 61 58 virtual void initializePage() /* override final */; … … 79 76 /** Handles change in instance list. */ 80 77 void sltHandleSourceInstanceChange(); 78 79 /** Handles translation event. */ 80 virtual void sltRetranslateUI() override final; 81 81 82 82 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp
r101563 r103957 414 414 } 415 415 416 void UIWizardAddCloudVMPageSource:: retranslateUi()416 void UIWizardAddCloudVMPageSource::sltRetranslateUI() 417 417 { 418 418 /* Translate page: */ … … 464 464 populateProviders(m_pProviderComboBox, wizard()->notificationCenter()); 465 465 /* Translate providers: */ 466 retranslateUi();466 sltRetranslateUI(); 467 467 /* Fetch it, asynchronously: */ 468 468 QMetaObject::invokeMethod(this, "sltHandleProviderComboChange", Qt::QueuedConnection); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h
r103803 r103957 96 96 UIWizardAddCloudVM *wizard() const; 97 97 98 /** Handles translation event. */99 virtual void retranslateUi() /* override final */;100 101 98 /** Performs page initialization. */ 102 99 virtual void initializePage() /* override final */; … … 120 117 /** Handles change in instance list. */ 121 118 void sltHandleSourceInstanceChange(); 119 120 /** Handles translation event. */ 121 virtual void sltRetranslateUI() override final; 122 122 123 123 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDExpertPage.cpp
r103710 r103957 136 136 } 137 137 138 void UIWizardCloneVDExpertPage:: retranslateUi()138 void UIWizardCloneVDExpertPage::sltRetranslateUI() 139 139 { 140 140 if (m_pFormatVariantGroupBox) … … 168 168 169 169 /* Translate page: */ 170 retranslateUi();170 sltRetranslateUI(); 171 171 } 172 172 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDExpertPage.h
r103803 r103957 67 67 void sltMediumVariantChanged(qulonglong uVariant); 68 68 void sltMediumSizeChanged(qulonglong uSize); 69 /** Handles translation event. */ 70 virtual void sltRetranslateUI() RT_OVERRIDE; 69 71 70 72 private: 71 72 /** Handles translation event. */73 virtual void retranslateUi() RT_OVERRIDE;74 73 75 74 /** Prepares the page. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDFormatPage.cpp
r103710 r103957 59 59 } 60 60 pMainLayout->addStretch(); 61 retranslateUi();61 sltRetranslateUI(); 62 62 } 63 63 64 void UIWizardCloneVDFormatPage:: retranslateUi()64 void UIWizardCloneVDFormatPage::sltRetranslateUI() 65 65 { 66 66 /* Translate page: */ … … 77 77 AssertReturnVoid(wizardWindow<UIWizardCloneVD>()); 78 78 /* Translate page: */ 79 retranslateUi();79 sltRetranslateUI(); 80 80 if (!m_userModifiedParameters.contains("MediumFormat")) 81 81 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDFormatPage.h
r103803 r103957 59 59 60 60 void sltMediumFormatChanged(); 61 /** Handles translation event. */ 62 virtual void sltRetranslateUI() RT_OVERRIDE; 61 63 62 64 private: 63 65 64 /** Handles translation event. */65 virtual void retranslateUi() RT_OVERRIDE;66 66 void prepare(KDeviceType enmDeviceType); 67 67 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPathSizePage.cpp
r98103 r103957 57 57 } 58 58 pMainLayout->addStretch(); 59 retranslateUi();59 sltRetranslateUI(); 60 60 } 61 61 62 void UIWizardCloneVDPathSizePage:: retranslateUi()62 void UIWizardCloneVDPathSizePage::sltRetranslateUI() 63 63 { 64 64 /* Translate page: */ … … 70 70 AssertReturnVoid(wizardWindow<UIWizardCloneVD>() && m_pMediumSizePathGroupBox); 71 71 /* Translate page: */ 72 retranslateUi();72 sltRetranslateUI(); 73 73 UIWizardCloneVD *pWizard = wizardWindow<UIWizardCloneVD>(); 74 74 m_pMediumSizePathGroupBox->blockSignals(true); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPathSizePage.h
r103803 r103957 60 60 void sltMediumPathChanged(const QString &strPath); 61 61 void sltMediumSizeChanged(qulonglong uSize); 62 /** Handles translation event. */ 63 virtual void sltRetranslateUI() RT_OVERRIDE; 62 64 63 65 private: 64 66 65 /** Handles translation event. */66 virtual void retranslateUi() RT_OVERRIDE;67 67 void prepare(qulonglong uSourceDiskLogicaSize); 68 68 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDVariantPage.cpp
r98103 r103957 76 76 77 77 } 78 retranslateUi();78 sltRetranslateUI(); 79 79 } 80 80 81 81 82 void UIWizardCloneVDVariantPage:: retranslateUi()82 void UIWizardCloneVDVariantPage::sltRetranslateUI() 83 83 { 84 84 /* Translate page: */ … … 103 103 AssertReturnVoid(wizardWindow<UIWizardCloneVD>()); 104 104 /* Translate page: */ 105 retranslateUi();105 sltRetranslateUI(); 106 106 107 107 setWidgetVisibility(wizardWindow<UIWizardCloneVD>()->mediumFormat()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDVariantPage.h
r98103 r103957 52 52 53 53 void sltMediumVariantChanged(qulonglong uVariant); 54 /** Handles translation event. */ 55 virtual void sltRetranslateUI() RT_OVERRIDE; 54 56 55 57 private: 56 58 57 /** Handles translation event. */58 virtual void retranslateUi() RT_OVERRIDE;59 59 void prepare(); 60 60 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMExpertPage.cpp
r103710 r103957 93 93 this, &UIWizardCloneVMExpertPage::sltCloneTypeChanged); 94 94 95 retranslateUi();96 } 97 98 void UIWizardCloneVMExpertPage:: retranslateUi()95 sltRetranslateUI(); 96 } 97 98 void UIWizardCloneVMExpertPage::sltRetranslateUI() 99 99 { 100 100 /* Translate widgets: */ … … 133 133 setCloneModeGroupBoxEnabled(); 134 134 135 retranslateUi();135 sltRetranslateUI(); 136 136 } 137 137 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMExpertPage.h
r98103 r103957 61 61 void sltKeepHardwareUUIDsToggled(bool fKeepHardwareUUIDs); 62 62 void sltCloneTypeChanged(bool fIsFullClone); 63 /** Translation stuff. */ 64 virtual void sltRetranslateUI() override final; 63 65 64 66 private: 65 66 /** Translation stuff. */67 void retranslateUi();68 67 69 68 /** Prepare stuff. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMModePage.cpp
r98103 r103957 62 62 pMainLayout->addStretch(); 63 63 64 retranslateUi();64 sltRetranslateUI(); 65 65 } 66 66 67 void UIWizardCloneVMModePage:: retranslateUi()67 void UIWizardCloneVMModePage::sltRetranslateUI() 68 68 { 69 69 /* Translate page: */ … … 105 105 wizardWindow<UIWizardCloneVM>()->setCloneMode(m_pCloneModeGroupBox->cloneMode()); 106 106 107 retranslateUi();107 sltRetranslateUI(); 108 108 } 109 109 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMModePage.h
r103803 r103957 58 58 59 59 void sltCloneModeChanged(KCloneMode enmCloneMode); 60 /** Translation stuff. */ 61 virtual void sltRetranslateUI() override final; 60 62 61 63 private: 62 63 /** Translation stuff. */64 void retranslateUi();65 64 66 65 /** Prepare stuff. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMNamePathPage.cpp
r103771 r103957 54 54 } 55 55 56 void UIWizardCloneVMNamePathPage:: retranslateUi()56 void UIWizardCloneVMNamePathPage::sltRetranslateUI() 57 57 { 58 58 setTitle(UIWizardCloneVM::tr("New machine name and path")); … … 79 79 UIWizardCloneVM *pWizard = wizardWindow<UIWizardCloneVM>(); 80 80 AssertReturnVoid(pWizard); 81 retranslateUi();81 sltRetranslateUI(); 82 82 if (m_pNamePathEditor) 83 83 { … … 138 138 pMainLayout->addStretch(); 139 139 140 retranslateUi();140 sltRetranslateUI(); 141 141 } 142 142 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMNamePathPage.h
r98103 r103957 64 64 void sltKeepDiskNamesToggled(bool fKeepDiskNames); 65 65 void sltKeepHardwareUUIDsToggled(bool fKeepHardwareUUIDs); 66 virtual void sltRetranslateUI() override final; 66 67 67 68 private: 68 69 69 void retranslateUi();70 70 void initializePage(); 71 71 void prepare(const QString &strDefaultClonePath); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMTypePage.cpp
r98103 r103957 73 73 } 74 74 75 void UIWizardCloneVMTypePage:: retranslateUi()75 void UIWizardCloneVMTypePage::sltRetranslateUI() 76 76 { 77 77 /* Translate page: */ … … 98 98 { 99 99 AssertReturnVoid(wizardWindow<UIWizardCloneVM>()); 100 retranslateUi();100 sltRetranslateUI(); 101 101 if (m_pCloneTypeGroupBox && !m_userModifiedParameters.contains("LinkedClone")) 102 102 wizardWindow<UIWizardCloneVM>()->setLinkedClone(!m_pCloneTypeGroupBox->isFullClone()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMTypePage.h
r98103 r103957 53 53 54 54 void sltCloneTypeChanged(bool fIsFullClone); 55 virtual void sltRetranslateUI() override final; 55 56 56 57 private: 57 58 58 void retranslateUi();59 59 void initializePage(); 60 60 void prepare(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r101563 r103957 432 432 } 433 433 434 void UIWizardExportAppPageExpert:: retranslateUi()434 void UIWizardExportAppPageExpert::sltRetranslateUI() 435 435 { 436 436 /* Translate objects: */ … … 554 554 populateMACAddressPolicies(m_pMACComboBox); 555 555 /* Translate page: */ 556 retranslateUi();556 sltRetranslateUI(); 557 557 558 558 /* Fetch it, asynchronously: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h
r103803 r103957 77 77 UIWizardExportApp *wizard() const; 78 78 79 /** Handles translation event. */80 virtual void retranslateUi() /* override final */;81 82 79 /** Performs page initialization. */ 83 virtual void initializePage() /* override final */;80 virtual void initializePage() override final; 84 81 85 82 /** Returns whether page is complete. */ 86 virtual bool isComplete() const /* override final */;83 virtual bool isComplete() const override final; 87 84 88 85 /** Performs page validation. */ 89 virtual bool validatePage() /* override final */;86 virtual bool validatePage() override final; 90 87 91 88 private slots: … … 117 114 /** Handles profile tool-button click. */ 118 115 void sltHandleProfileButtonClick(); 116 117 /** Handles translation event. */ 118 virtual void sltRetranslateUI() override final; 119 119 120 120 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp
r103771 r103957 901 901 } 902 902 903 void UIWizardExportAppPageFormat:: retranslateUi()903 void UIWizardExportAppPageFormat::sltRetranslateUI() 904 904 { 905 905 /* Translate page: */ … … 1037 1037 populateMACAddressPolicies(m_pMACComboBox); 1038 1038 /* Translate page: */ 1039 retranslateUi();1039 sltRetranslateUI(); 1040 1040 1041 1041 /* Choose initially focused widget: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageFormat.h
r103803 r103957 165 165 UIWizardExportApp *wizard() const; 166 166 167 /** Handles translation event. */168 virtual void retranslateUi() /* override final */;169 170 167 /** Performs page initialization. */ 171 virtual void initializePage() /* override final */;168 virtual void initializePage() override final; 172 169 173 170 /** Returns whether page is complete. */ 174 virtual bool isComplete() const /* override final */;171 virtual bool isComplete() const override final; 175 172 176 173 /** Performs page validation. */ 177 virtual bool validatePage() /* override final */;174 virtual bool validatePage() override final; 178 175 179 176 private slots: … … 202 199 /** Handles profile tool-button click. */ 203 200 void sltHandleProfileButtonClick(); 201 202 /** Handles translation event. */ 203 virtual void sltRetranslateUI() override final; 204 204 205 205 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp
r103710 r103957 166 166 } 167 167 168 void UIWizardExportAppPageSettings:: retranslateUi()168 void UIWizardExportAppPageSettings::sltRetranslateUI() 169 169 { 170 170 /* Translate page: */ … … 186 186 m_pFormEditor->setNotificationCenter(wizard()->notificationCenter()); 187 187 /* Translate page: */ 188 retranslateUi();188 sltRetranslateUI(); 189 189 190 190 /* Refresh settings widget state: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.h
r103803 r103957 81 81 UIWizardExportApp *wizard() const; 82 82 83 /** Handles translation event. */84 virtual void retranslateUi() /* override final */;85 86 83 /** Performs page initialization. */ 87 virtual void initializePage() /* override final */;84 virtual void initializePage() override final; 88 85 89 86 /** Performs page validation. */ 90 virtual bool validatePage() /* override final */; 87 virtual bool validatePage() override final; 88 89 private slots: 90 91 /** Handles translation event. */ 92 virtual void sltRetranslateUI() override final; 91 93 92 94 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageVMs.cpp
r103771 r103957 202 202 } 203 203 204 void UIWizardExportAppPageVMs:: retranslateUi()204 void UIWizardExportAppPageVMs::sltRetranslateUI() 205 205 { 206 206 /* Translate page: */ … … 218 218 populateVMItems(m_pVMSelector, m_selectedVMNames); 219 219 /* Translate page: */ 220 retranslateUi();220 sltRetranslateUI(); 221 221 222 222 /* Now, when we are ready, we can -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageVMs.h
r98103 r103957 76 76 UIWizardExportApp *wizard() const; 77 77 78 /** Handles translation event. */79 virtual void retranslateUi() /* override final */;80 81 78 /** Performs page initialization. */ 82 virtual void initializePage() /* override final */;79 virtual void initializePage() override final; 83 80 84 81 /** Returns whether page is complete. */ 85 virtual bool isComplete() const /* override final */;82 virtual bool isComplete() const override final; 86 83 87 84 /** Performs page validation. */ 88 virtual bool validatePage() /* override final */;85 virtual bool validatePage() override final; 89 86 90 87 private slots: … … 92 89 /** Handles VM item selection change. */ 93 90 void sltHandleVMItemSelectionChanged(); 91 /** Handles translation event. */ 92 virtual void sltRetranslateUI() override final; 94 93 95 94 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r103771 r103957 360 360 } 361 361 362 void UIWizardImportAppPageExpert:: retranslateUi()362 void UIWizardImportAppPageExpert::sltRetranslateUI() 363 363 { 364 364 /* Translate tool-box: */ … … 439 439 m_strSource); 440 440 /* Translate page: */ 441 retranslateUi();441 sltRetranslateUI(); 442 442 443 443 /* Choose initially focused widget: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.h
r98103 r103957 68 68 UIWizardImportApp *wizard() const; 69 69 70 /** Handles translation event. */71 virtual void retranslateUi() /* override final */;72 73 70 /** Performs page initialization. */ 74 virtual void initializePage() /* override final */;71 virtual void initializePage() override final; 75 72 76 73 /** Returns whether page is complete. */ 77 virtual bool isComplete() const /* override final */;74 virtual bool isComplete() const override final; 78 75 79 76 /** Performs page validation. */ 80 virtual bool validatePage() /* override final */;77 virtual bool validatePage() override final; 81 78 82 79 private slots: … … 103 100 /** Handles import HDs as VDI check-box change. */ 104 101 void sltHandleImportHDsAsVDICheckBoxChange(); 102 /** Handles translation event. */ 103 virtual void sltRetranslateUI() override final; 105 104 106 105 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSettings.cpp
r103771 r103957 447 447 } 448 448 449 void UIWizardImportAppPageSettings:: retranslateUi()449 void UIWizardImportAppPageSettings::sltRetranslateUI() 450 450 { 451 451 /* Translate page: */ … … 499 499 m_pFormEditor->setNotificationCenter(wizard()->notificationCenter()); 500 500 /* Translate page: */ 501 retranslateUi();501 sltRetranslateUI(); 502 502 503 503 /* Choose initially focused widget: */ … … 631 631 632 632 /* Translate page early: */ 633 retranslateUi();633 sltRetranslateUI(); 634 634 635 635 /* Instantiate the dialog: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSettings.h
r98103 r103957 110 110 UIWizardImportApp *wizard() const; 111 111 112 /** Handles translation event. */113 virtual void retranslateUi() /* override final */;114 115 112 /** Performs page initialization. */ 116 virtual void initializePage() /* override final */;113 virtual void initializePage() override final; 117 114 118 115 /** Performs page validation. */ 119 virtual bool validatePage() /* override final */;116 virtual bool validatePage() override final; 120 117 121 118 private slots: … … 130 127 /** Handles import HDs as VDI check-box change. */ 131 128 void sltHandleImportHDsAsVDICheckBoxChange(); 129 /** Handles translation event. */ 130 virtual void sltRetranslateUI() override final; 132 131 133 132 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSource.cpp
r103771 r103957 651 651 } 652 652 653 void UIWizardImportAppPageSource:: retranslateUi()653 void UIWizardImportAppPageSource::sltRetranslateUI() 654 654 { 655 655 /* Translate page: */ … … 750 750 m_strSource); 751 751 /* Translate page: */ 752 retranslateUi();752 sltRetranslateUI(); 753 753 754 754 /* Choose initially focused widget: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSource.h
r98103 r103957 132 132 UIWizardImportApp *wizard() const; 133 133 134 /** Handles translation event. */135 virtual void retranslateUi() /* override final */;136 137 134 /** Performs page initialization. */ 138 virtual void initializePage() /* override final */;135 virtual void initializePage() override final; 139 136 140 137 /** Returns whether page is complete. */ 141 virtual bool isComplete() const /* override final */;138 virtual bool isComplete() const override final; 142 139 143 140 /** Performs page validation. */ 144 virtual bool validatePage() /* override final */;141 virtual bool validatePage() override final; 145 142 146 143 private slots: … … 153 150 /** Handles profile tool-button click. */ 154 151 void sltHandleProfileButtonClick(); 152 153 /** Handles translation event. */ 154 virtual void sltRetranslateUI() override final; 155 155 156 156 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp
r101563 r103957 203 203 } 204 204 205 void UIWizardNewCloudVMPageExpert:: retranslateUi()205 void UIWizardNewCloudVMPageExpert::sltRetranslateUI() 206 206 { 207 207 /* Translate tool-box: */ … … 246 246 populateProviders(m_pProviderComboBox, wizard()->notificationCenter()); 247 247 /* Translate providers: */ 248 retranslateUi();248 sltRetranslateUI(); 249 249 /* Make image list focused by default: */ 250 250 m_pSourceImageList->setFocus(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h
r98103 r103957 56 56 UIWizardNewCloudVM *wizard() const; 57 57 58 /** Handles translation event. */59 virtual void retranslateUi() /* override final */;60 61 58 /** Performs page initialization. */ 62 virtual void initializePage() /* override final */;59 virtual void initializePage() override final; 63 60 64 61 /** Returns whether page is complete. */ 65 virtual bool isComplete() const /* override final */;62 virtual bool isComplete() const override final; 66 63 67 64 /** Performs page validation. */ 68 virtual bool validatePage() /* override final */;65 virtual bool validatePage() override final; 69 66 70 67 private slots: … … 83 80 /** Handles change in instance list. */ 84 81 void sltHandleSourceImageChange(); 82 83 /** Handles translation event. */ 84 virtual void sltRetranslateUI() override final; 85 85 86 86 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp
r98103 r103957 96 96 } 97 97 98 void UIWizardNewCloudVMPageProperties:: retranslateUi()98 void UIWizardNewCloudVMPageProperties::sltRetranslateUI() 99 99 { 100 100 /* Translate page: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h
r98103 r103957 64 64 UIWizardNewCloudVM *wizard() const; 65 65 66 /** Handles translation event. */67 virtual void retranslateUi() /* override final */;68 69 66 /** Performs page initialization. */ 70 virtual void initializePage() /* override final */;67 virtual void initializePage() override final; 71 68 72 69 /** Returns whether page is complete. */ 73 virtual bool isComplete() const /* override final */;70 virtual bool isComplete() const override final; 74 71 75 72 /** Performs page validation. */ 76 virtual bool validatePage() /* override final */;73 virtual bool validatePage() override final; 77 74 78 75 private slots: … … 80 77 /** Initializes short wizard form. */ 81 78 void sltInitShortWizardForm(); 79 80 /** Handles translation event. */ 81 virtual void sltRetranslateUI() override final; 82 82 83 83 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp
r101563 r103957 478 478 } 479 479 480 void UIWizardNewCloudVMPageSource:: retranslateUi()480 void UIWizardNewCloudVMPageSource::sltRetranslateUI() 481 481 { 482 482 /* Translate page: */ … … 532 532 populateProviders(m_pProviderComboBox, wizard()->notificationCenter()); 533 533 /* Translate providers: */ 534 retranslateUi();534 sltRetranslateUI(); 535 535 /* Fetch it, asynchronously: */ 536 536 QMetaObject::invokeMethod(this, "sltHandleProviderComboChange", Qt::QueuedConnection); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h
r103803 r103957 115 115 UIWizardNewCloudVM *wizard() const; 116 116 117 /** Handles translation event. */118 virtual void retranslateUi() /* override final */;119 120 117 /** Performs page initialization. */ 121 118 virtual void initializePage() /* override final */; … … 142 139 /** Handles change in image list. */ 143 140 void sltHandleSourceImageChange(); 141 142 /** Handles translation event. */ 143 virtual void sltRetranslateUI() override final; 144 144 145 145 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.cpp
r103771 r103957 81 81 this, &UIWizardNewVDExpertPage::sltMediumPathChanged); 82 82 83 retranslateUi();83 sltRetranslateUI(); 84 84 } 85 85 … … 136 136 } 137 137 138 void UIWizardNewVDExpertPage:: retranslateUi()138 void UIWizardNewVDExpertPage::sltRetranslateUI() 139 139 { 140 140 if (m_pFormatVariantGroupBox) … … 172 172 pWizard->setMediumVariant(m_pVariantWidget->mediumVariant()); 173 173 174 retranslateUi();174 sltRetranslateUI(); 175 175 } 176 176 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.h
r98103 r103957 57 57 void sltMediumPathChanged(const QString &strPath); 58 58 void sltMediumSizeChanged(qulonglong uSize); 59 /** Translation stuff. */ 60 virtual void sltRetranslateUI() override final; 59 61 60 62 private: 61 62 /** Translation stuff. */63 void retranslateUi();64 63 65 64 /** Prepare stuff. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDFileTypePage.cpp
r98103 r103957 53 53 connect(m_pFormatButtonGroup, &UIDiskFormatsGroupBox::sigMediumFormatChanged, 54 54 this, &UIWizardNewVDFileTypePage::sltMediumFormatChanged); 55 retranslateUi();55 sltRetranslateUI(); 56 56 } 57 57 … … 63 63 } 64 64 65 void UIWizardNewVDFileTypePage:: retranslateUi()65 void UIWizardNewVDFileTypePage::sltRetranslateUI() 66 66 { 67 67 setTitle(UIWizardNewVD::tr("Virtual Hard disk file type")); … … 74 74 { 75 75 AssertReturnVoid(wizardWindow<UIWizardNewVD>()); 76 retranslateUi();76 sltRetranslateUI(); 77 77 if (m_pFormatButtonGroup) 78 78 wizardWindow<UIWizardNewVD>()->setMediumFormat(m_pFormatButtonGroup->mediumFormat()); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDFileTypePage.h
r98103 r103957 52 52 53 53 void sltMediumFormatChanged(); 54 virtual void sltRetranslateUI() override final; 54 55 55 56 private: 56 57 57 void retranslateUi();58 58 void prepare(); 59 59 void initializePage(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDSizeLocationPage.cpp
r103771 r103957 65 65 pMainLayout->addWidget(m_pMediumSizePathGroup); 66 66 pMainLayout->addStretch(); 67 retranslateUi();67 sltRetranslateUI(); 68 68 } 69 69 … … 105 105 } 106 106 107 void UIWizardNewVDSizeLocationPage:: retranslateUi()107 void UIWizardNewVDSizeLocationPage::sltRetranslateUI() 108 108 { 109 109 setTitle(UIWizardNewVD::tr("File location and size")); … … 140 140 pWizard->setMediumSize(m_pMediumSizePathGroup->mediumSize()); 141 141 } 142 retranslateUi();142 sltRetranslateUI(); 143 143 } 144 144 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDSizeLocationPage.h
r98103 r103957 51 51 void sltMediumSizeChanged(qulonglong uSize); 52 52 void sltMediumPathChanged(const QString &strPath); 53 virtual void sltRetranslateUI() override final; 53 54 54 55 private: 55 56 56 void retranslateUi();57 57 void initializePage(); 58 58 bool isComplete() const; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDVariantPage.cpp
r98103 r103957 69 69 connect(m_pVariantWidget, &UIDiskVariantWidget::sigMediumVariantChanged, 70 70 this, &UIWizardNewVDVariantPage::sltMediumVariantChanged); 71 retranslateUi();71 sltRetranslateUI(); 72 72 } 73 73 74 void UIWizardNewVDVariantPage:: retranslateUi()74 void UIWizardNewVDVariantPage::sltRetranslateUI() 75 75 { 76 76 setTitle(UIWizardNewVD::tr("Storage on physical hard disk")); … … 99 99 setWidgetVisibility(pWizard->mediumFormat()); 100 100 pWizard->setMediumVariant(m_pVariantWidget->mediumVariant()); 101 retranslateUi();101 sltRetranslateUI(); 102 102 } 103 103 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDVariantPage.h
r98103 r103957 51 51 52 52 void sltMediumVariantChanged(qulonglong uVariant); 53 virtual void sltRetranslateUI() override final; 53 54 54 55 private: 55 56 56 void retranslateUi();57 57 void initializePage(); 58 58 bool isComplete() const; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPage.cpp
r103803 r103957 216 216 } 217 217 218 void UIWizardNewVMDiskPage:: retranslateUi()218 void UIWizardNewVMDiskPage::sltRetranslateUI() 219 219 { 220 220 setTitle(UIWizardNewVM::tr("Virtual Hard disk")); … … 258 258 void UIWizardNewVMDiskPage::initializePage() 259 259 { 260 retranslateUi();260 sltRetranslateUI(); 261 261 262 262 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPage.h
r103803 r103957 79 79 void sltHandleSizeEditorChange(qulonglong uSize); 80 80 void sltFixedCheckBoxToggled(bool fChecked); 81 virtual void sltRetranslateUI() override final; 81 82 82 83 private: … … 89 90 QWidget *createMediumVariantWidgets(bool fWithLabels); 90 91 91 virtual void retranslateUi() /* override final */; 92 virtual void initializePage() /* override final */; 93 virtual bool isComplete() const /* override final */; 92 virtual void initializePage() override final; 93 virtual bool isComplete() const override final; 94 94 95 95 void setEnableDiskSelectionWidgets(bool fEnabled); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp
r103771 r103957 217 217 } 218 218 219 void UIWizardNewVMExpertPage:: retranslateUi()219 void UIWizardNewVMExpertPage::sltRetranslateUI() 220 220 { 221 221 if (m_pSkipUnattendedCheckBox) … … 455 455 disableEnableUnattendedRelatedWidgets(isUnattendedEnabled()); 456 456 updateDiskWidgetsAfterMediumFormatChange(); 457 retranslateUi();457 sltRetranslateUI(); 458 458 459 459 /* Focus on the name field (rather than the help button): */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.h
r98103 r103957 94 94 void sltStartHeadlessChanged(bool fStartHeadless); 95 95 void sltSelectedEditionChanged(ulong uEditionIndex); 96 /** Translation stuff. */ 97 virtual void sltRetranslateUI() override final; 96 98 97 99 private: … … 104 106 ExpertToolboxItems_Disk 105 107 }; 106 107 /** Translation stuff. */108 void retranslateUi();109 108 110 109 /** Prepare stuff. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePage.cpp
r103771 r103957 75 75 } 76 76 77 void UIWizardNewVMHardwarePage:: retranslateUi()77 void UIWizardNewVMHardwarePage::sltRetranslateUI() 78 78 { 79 79 setTitle(UIWizardNewVM::tr("Hardware")); … … 86 86 void UIWizardNewVMHardwarePage::initializePage() 87 87 { 88 retranslateUi();88 sltRetranslateUI(); 89 89 90 90 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePage.h
r98103 r103957 55 55 void sltCPUCountChanged(int iCount); 56 56 void sltEFIEnabledChanged(bool fEnabled); 57 virtual void sltRetranslateUI() override final; 57 58 58 59 private: … … 61 62 void prepare(); 62 63 void createConnections(); 63 virtual void retranslateUi() /* override final */; 64 virtual void initializePage() /* override final */; 65 virtual bool isComplete() const /* override final */; 64 virtual void initializePage() override final; 65 virtual bool isComplete() const override final; 66 66 67 67 /** @name Widgets -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r103771 r103957 508 508 } 509 509 510 void UIWizardNewVMNameOSTypePage:: retranslateUi()510 void UIWizardNewVMNameOSTypePage::sltRetranslateUI() 511 511 { 512 512 setTitle(UIWizardNewVM::tr("Virtual machine Name and Operating System")); … … 583 583 AssertReturnVoid(pWizard); 584 584 585 retranslateUi();585 sltRetranslateUI(); 586 586 587 587 /* Initialize this page's widgets etc: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.h
r98103 r103957 70 70 protected: 71 71 72 virtual bool isComplete() const ; /* override final */72 virtual bool isComplete() const override final; 73 73 /** Validation stuff. */ 74 74 virtual bool validatePage() RT_OVERRIDE; … … 83 83 void sltSkipUnattendedInstallChanged(bool fSkip); 84 84 void sltSelectedEditionChanged(ulong uEditionIndex); 85 /** Translation stuff. */ 86 virtual void sltRetranslateUI() override final; 85 87 86 88 private: 87 88 /** Translation stuff. */89 void retranslateUi();90 89 91 90 /** Prepare stuff. */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.cpp
r103771 r103957 450 450 } 451 451 452 void UIWizardNewVMSummaryPage:: retranslateUi()452 void UIWizardNewVMSummaryPage::sltRetranslateUI() 453 453 { 454 454 setTitle(UIWizardNewVM::tr("Summary")); … … 462 462 void UIWizardNewVMSummaryPage::initializePage() 463 463 { 464 retranslateUi();464 sltRetranslateUI(); 465 465 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); 466 466 AssertReturnVoid(pWizard && m_pModel); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.h
r98103 r103957 48 48 UIWizardNewVMSummaryPage(); 49 49 50 private slots: 51 52 virtual void sltRetranslateUI() override final; 53 50 54 private: 51 55 52 56 void prepare(); 53 57 void createConnections(); 54 virtual void retranslateUi() /* override final */; 55 virtual void initializePage() /* override final */; 56 virtual bool isComplete() const /* override final */; 57 virtual bool validatePage() /* override final */; 58 virtual void initializePage() override final; 59 virtual bool isComplete() const override final; 60 virtual bool validatePage() override final; 58 61 /** @name Widgets 59 62 * @{ */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp
r98103 r103957 109 109 110 110 111 void UIWizardNewVMUnattendedPage:: retranslateUi()111 void UIWizardNewVMUnattendedPage::sltRetranslateUI() 112 112 { 113 113 setTitle(UIWizardNewVM::tr("Unattended Guest OS Install Setup")); … … 125 125 if (m_pAdditionalOptionsContainer) 126 126 m_pAdditionalOptionsContainer->disableEnableProductKeyWidgets(isProductKeyWidgetEnabled()); 127 retranslateUi();127 sltRetranslateUI(); 128 128 129 129 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPage.h
r98103 r103957 66 66 void sltStartHeadlessChanged(bool fStartHeadless); 67 67 void sltSelectedWindowsImageChanged(ulong uImageIndex); 68 virtual void sltRetranslateUI() override final; 68 69 69 70 private: … … 71 72 void prepare(); 72 73 void createConnections(); 73 74 void retranslateUi();75 74 void initializePage(); 76 75 bool isComplete() const;
Note:
See TracChangeset
for help on using the changeset viewer.