VirtualBox

Changeset 103957 in vbox


Ignore:
Timestamp:
Mar 20, 2024 1:41:59 PM (8 months ago)
Author:
vboxsync
Message:

FE/Qt. bugref:10622. Using new UITranslationEventListener in wizard page class hierarchy.

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  
    2929#include "UINativeWizard.h"
    3030#include "UINativeWizardPage.h"
    31 
     31#include "UITranslationEventListener.h"
    3232
    3333UINativeWizardPage::UINativeWizardPage()
    3434{
     35    connect(&translationEventListener(), &UITranslationEventListener::sigRetranslateUI,
     36            this, &UINativeWizardPage::sltRetranslateUI);
    3537}
    3638
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizardPage.h

    r98103 r103957  
    3232#endif
    3333
     34/* Qt includes: */
     35#include <QWidget>
     36
    3437/* GUI includes: */
    35 #include "QIWithRetranslateUI.h"
    3638#include "UILibraryDefs.h"
    3739
     
    4042
    4143/** QWidget extension with advanced functionality emulating QWizardPage behavior. */
    42 class SHARED_LIBRARY_STUFF UINativeWizardPage : public QIWithRetranslateUI<QWidget>
     44class SHARED_LIBRARY_STUFF UINativeWizardPage : public QWidget
    4345{
    4446    Q_OBJECT;
     
    5557
    5658    /** Redirects the translation call to actual handler. */
    57     void retranslate() { retranslateUi(); }
     59    void retranslate() { sltRetranslateUI(); }
    5860
    5961    /** Defines page @a strTitle. */
     
    7072      * @returns whether page state to go to next page is bearable. */
    7173    virtual bool validatePage() { return true; }
     74
     75protected slots:
     76
     77    virtual void sltRetranslateUI() = 0;
    7278
    7379protected:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.cpp

    r101563 r103957  
    165165}
    166166
    167 void UIWizardAddCloudVMPageExpert::retranslateUi()
     167void UIWizardAddCloudVMPageExpert::sltRetranslateUI()
    168168{
    169169    /* Translate tool-box: */
     
    198198    populateProviders(m_pProviderComboBox, wizard()->notificationCenter());
    199199    /* Translate providers: */
    200     retranslateUi();
     200    sltRetranslateUI();
    201201    /* Fetch it, asynchronously: */
    202202    QMetaObject::invokeMethod(this, "sltHandleProviderComboChange", Qt::QueuedConnection);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageExpert.h

    r98103 r103957  
    5555    UIWizardAddCloudVM *wizard() const;
    5656
    57     /** Handles translation event. */
    58     virtual void retranslateUi() /* override final */;
    59 
    6057    /** Performs page initialization. */
    6158    virtual void initializePage() /* override final */;
     
    7976    /** Handles change in instance list. */
    8077    void sltHandleSourceInstanceChange();
     78
     79    /** Handles translation event. */
     80    virtual void sltRetranslateUI() override final;
    8181
    8282private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.cpp

    r101563 r103957  
    414414}
    415415
    416 void UIWizardAddCloudVMPageSource::retranslateUi()
     416void UIWizardAddCloudVMPageSource::sltRetranslateUI()
    417417{
    418418    /* Translate page: */
     
    464464    populateProviders(m_pProviderComboBox, wizard()->notificationCenter());
    465465    /* Translate providers: */
    466     retranslateUi();
     466    sltRetranslateUI();
    467467    /* Fetch it, asynchronously: */
    468468    QMetaObject::invokeMethod(this, "sltHandleProviderComboChange", Qt::QueuedConnection);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/addcloudvm/UIWizardAddCloudVMPageSource.h

    r103803 r103957  
    9696    UIWizardAddCloudVM *wizard() const;
    9797
    98     /** Handles translation event. */
    99     virtual void retranslateUi() /* override final */;
    100 
    10198    /** Performs page initialization. */
    10299    virtual void initializePage() /* override final */;
     
    120117    /** Handles change in instance list. */
    121118    void sltHandleSourceInstanceChange();
     119
     120    /** Handles translation event. */
     121    virtual void sltRetranslateUI() override final;
    122122
    123123private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDExpertPage.cpp

    r103710 r103957  
    136136}
    137137
    138 void UIWizardCloneVDExpertPage::retranslateUi()
     138void UIWizardCloneVDExpertPage::sltRetranslateUI()
    139139{
    140140    if (m_pFormatVariantGroupBox)
     
    168168
    169169    /* Translate page: */
    170     retranslateUi();
     170    sltRetranslateUI();
    171171}
    172172
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDExpertPage.h

    r103803 r103957  
    6767    void sltMediumVariantChanged(qulonglong uVariant);
    6868    void sltMediumSizeChanged(qulonglong uSize);
     69    /** Handles translation event. */
     70    virtual void sltRetranslateUI() RT_OVERRIDE;
    6971
    7072private:
    71 
    72     /** Handles translation event. */
    73     virtual void retranslateUi() RT_OVERRIDE;
    7473
    7574    /** Prepares the page. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDFormatPage.cpp

    r103710 r103957  
    5959    }
    6060    pMainLayout->addStretch();
    61     retranslateUi();
     61    sltRetranslateUI();
    6262}
    6363
    64 void UIWizardCloneVDFormatPage::retranslateUi()
     64void UIWizardCloneVDFormatPage::sltRetranslateUI()
    6565{
    6666    /* Translate page: */
     
    7777    AssertReturnVoid(wizardWindow<UIWizardCloneVD>());
    7878    /* Translate page: */
    79     retranslateUi();
     79    sltRetranslateUI();
    8080    if (!m_userModifiedParameters.contains("MediumFormat"))
    8181    {
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDFormatPage.h

    r103803 r103957  
    5959
    6060    void sltMediumFormatChanged();
     61    /** Handles translation event. */
     62    virtual void sltRetranslateUI() RT_OVERRIDE;
    6163
    6264private:
    6365
    64     /** Handles translation event. */
    65     virtual void retranslateUi() RT_OVERRIDE;
    6666    void prepare(KDeviceType enmDeviceType);
    6767
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPathSizePage.cpp

    r98103 r103957  
    5757    }
    5858    pMainLayout->addStretch();
    59     retranslateUi();
     59    sltRetranslateUI();
    6060}
    6161
    62 void UIWizardCloneVDPathSizePage::retranslateUi()
     62void UIWizardCloneVDPathSizePage::sltRetranslateUI()
    6363{
    6464    /* Translate page: */
     
    7070    AssertReturnVoid(wizardWindow<UIWizardCloneVD>() && m_pMediumSizePathGroupBox);
    7171    /* Translate page: */
    72     retranslateUi();
     72    sltRetranslateUI();
    7373    UIWizardCloneVD *pWizard = wizardWindow<UIWizardCloneVD>();
    7474    m_pMediumSizePathGroupBox->blockSignals(true);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPathSizePage.h

    r103803 r103957  
    6060    void sltMediumPathChanged(const QString &strPath);
    6161    void sltMediumSizeChanged(qulonglong uSize);
     62    /** Handles translation event. */
     63    virtual void sltRetranslateUI() RT_OVERRIDE;
    6264
    6365private:
    6466
    65     /** Handles translation event. */
    66     virtual void retranslateUi() RT_OVERRIDE;
    6767    void prepare(qulonglong uSourceDiskLogicaSize);
    6868
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDVariantPage.cpp

    r98103 r103957  
    7676
    7777    }
    78     retranslateUi();
     78    sltRetranslateUI();
    7979}
    8080
    8181
    82 void UIWizardCloneVDVariantPage::retranslateUi()
     82void UIWizardCloneVDVariantPage::sltRetranslateUI()
    8383{
    8484    /* Translate page: */
     
    103103    AssertReturnVoid(wizardWindow<UIWizardCloneVD>());
    104104    /* Translate page: */
    105     retranslateUi();
     105    sltRetranslateUI();
    106106
    107107    setWidgetVisibility(wizardWindow<UIWizardCloneVD>()->mediumFormat());
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDVariantPage.h

    r98103 r103957  
    5252
    5353    void sltMediumVariantChanged(qulonglong uVariant);
     54    /** Handles translation event. */
     55    virtual void sltRetranslateUI() RT_OVERRIDE;
    5456
    5557private:
    5658
    57     /** Handles translation event. */
    58     virtual void retranslateUi() RT_OVERRIDE;
    5959    void prepare();
    6060
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMExpertPage.cpp

    r103710 r103957  
    9393                this, &UIWizardCloneVMExpertPage::sltCloneTypeChanged);
    9494
    95     retranslateUi();
    96 }
    97 
    98 void UIWizardCloneVMExpertPage::retranslateUi()
     95    sltRetranslateUI();
     96}
     97
     98void UIWizardCloneVMExpertPage::sltRetranslateUI()
    9999{
    100100    /* Translate widgets: */
     
    133133    setCloneModeGroupBoxEnabled();
    134134
    135     retranslateUi();
     135    sltRetranslateUI();
    136136}
    137137
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMExpertPage.h

    r98103 r103957  
    6161    void sltKeepHardwareUUIDsToggled(bool fKeepHardwareUUIDs);
    6262    void sltCloneTypeChanged(bool fIsFullClone);
     63    /** Translation stuff. */
     64    virtual void sltRetranslateUI() override final;
    6365
    6466private:
    65 
    66     /** Translation stuff. */
    67     void retranslateUi();
    6867
    6968    /** Prepare stuff. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMModePage.cpp

    r98103 r103957  
    6262    pMainLayout->addStretch();
    6363
    64     retranslateUi();
     64    sltRetranslateUI();
    6565}
    6666
    67 void UIWizardCloneVMModePage::retranslateUi()
     67void UIWizardCloneVMModePage::sltRetranslateUI()
    6868{
    6969    /* Translate page: */
     
    105105        wizardWindow<UIWizardCloneVM>()->setCloneMode(m_pCloneModeGroupBox->cloneMode());
    106106
    107     retranslateUi();
     107    sltRetranslateUI();
    108108}
    109109
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMModePage.h

    r103803 r103957  
    5858
    5959    void sltCloneModeChanged(KCloneMode enmCloneMode);
     60    /** Translation stuff. */
     61    virtual void sltRetranslateUI() override final;
    6062
    6163private:
    62 
    63     /** Translation stuff. */
    64     void retranslateUi();
    6564
    6665    /** Prepare stuff. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMNamePathPage.cpp

    r103771 r103957  
    5454}
    5555
    56 void UIWizardCloneVMNamePathPage::retranslateUi()
     56void UIWizardCloneVMNamePathPage::sltRetranslateUI()
    5757{
    5858    setTitle(UIWizardCloneVM::tr("New machine name and path"));
     
    7979    UIWizardCloneVM *pWizard = wizardWindow<UIWizardCloneVM>();
    8080    AssertReturnVoid(pWizard);
    81     retranslateUi();
     81    sltRetranslateUI();
    8282    if (m_pNamePathEditor)
    8383    {
     
    138138    pMainLayout->addStretch();
    139139
    140     retranslateUi();
     140    sltRetranslateUI();
    141141}
    142142
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMNamePathPage.h

    r98103 r103957  
    6464    void sltKeepDiskNamesToggled(bool fKeepDiskNames);
    6565    void sltKeepHardwareUUIDsToggled(bool fKeepHardwareUUIDs);
     66    virtual void sltRetranslateUI() override final;
    6667
    6768private:
    6869
    69     void retranslateUi();
    7070    void initializePage();
    7171    void prepare(const QString &strDefaultClonePath);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMTypePage.cpp

    r98103 r103957  
    7373}
    7474
    75 void UIWizardCloneVMTypePage::retranslateUi()
     75void UIWizardCloneVMTypePage::sltRetranslateUI()
    7676{
    7777    /* Translate page: */
     
    9898{
    9999    AssertReturnVoid(wizardWindow<UIWizardCloneVM>());
    100     retranslateUi();
     100    sltRetranslateUI();
    101101    if (m_pCloneTypeGroupBox && !m_userModifiedParameters.contains("LinkedClone"))
    102102        wizardWindow<UIWizardCloneVM>()->setLinkedClone(!m_pCloneTypeGroupBox->isFullClone());
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMTypePage.h

    r98103 r103957  
    5353
    5454    void sltCloneTypeChanged(bool fIsFullClone);
     55    virtual void sltRetranslateUI() override final;
    5556
    5657private:
    5758
    58     void retranslateUi();
    5959    void initializePage();
    6060    void prepare();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp

    r101563 r103957  
    432432}
    433433
    434 void UIWizardExportAppPageExpert::retranslateUi()
     434void UIWizardExportAppPageExpert::sltRetranslateUI()
    435435{
    436436    /* Translate objects: */
     
    554554    populateMACAddressPolicies(m_pMACComboBox);
    555555    /* Translate page: */
    556     retranslateUi();
     556    sltRetranslateUI();
    557557
    558558    /* Fetch it, asynchronously: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h

    r103803 r103957  
    7777    UIWizardExportApp *wizard() const;
    7878
    79     /** Handles translation event. */
    80     virtual void retranslateUi() /* override final */;
    81 
    8279    /** Performs page initialization. */
    83     virtual void initializePage() /* override final */;
     80    virtual void initializePage() override final;
    8481
    8582    /** Returns whether page is complete. */
    86     virtual bool isComplete() const /* override final */;
     83    virtual bool isComplete() const override final;
    8784
    8885    /** Performs page validation. */
    89     virtual bool validatePage() /* override final */;
     86    virtual bool validatePage() override final;
    9087
    9188private slots:
     
    117114    /** Handles profile tool-button click. */
    118115    void sltHandleProfileButtonClick();
     116
     117    /** Handles translation event. */
     118    virtual void sltRetranslateUI() override final;
    119119
    120120private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageFormat.cpp

    r103771 r103957  
    901901}
    902902
    903 void UIWizardExportAppPageFormat::retranslateUi()
     903void UIWizardExportAppPageFormat::sltRetranslateUI()
    904904{
    905905    /* Translate page: */
     
    10371037    populateMACAddressPolicies(m_pMACComboBox);
    10381038    /* Translate page: */
    1039     retranslateUi();
     1039    sltRetranslateUI();
    10401040
    10411041    /* Choose initially focused widget: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageFormat.h

    r103803 r103957  
    165165    UIWizardExportApp *wizard() const;
    166166
    167     /** Handles translation event. */
    168     virtual void retranslateUi() /* override final */;
    169 
    170167    /** Performs page initialization. */
    171     virtual void initializePage() /* override final */;
     168    virtual void initializePage() override final;
    172169
    173170    /** Returns whether page is complete. */
    174     virtual bool isComplete() const /* override final */;
     171    virtual bool isComplete() const override final;
    175172
    176173    /** Performs page validation. */
    177     virtual bool validatePage() /* override final */;
     174    virtual bool validatePage() override final;
    178175
    179176private slots:
     
    202199    /** Handles profile tool-button click. */
    203200    void sltHandleProfileButtonClick();
     201
     202    /** Handles translation event. */
     203    virtual void sltRetranslateUI() override final;
    204204
    205205private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.cpp

    r103710 r103957  
    166166}
    167167
    168 void UIWizardExportAppPageSettings::retranslateUi()
     168void UIWizardExportAppPageSettings::sltRetranslateUI()
    169169{
    170170    /* Translate page: */
     
    186186    m_pFormEditor->setNotificationCenter(wizard()->notificationCenter());
    187187    /* Translate page: */
    188     retranslateUi();
     188    sltRetranslateUI();
    189189
    190190    /* Refresh settings widget state: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageSettings.h

    r103803 r103957  
    8181    UIWizardExportApp *wizard() const;
    8282
    83     /** Handles translation event. */
    84     virtual void retranslateUi() /* override final */;
    85 
    8683    /** Performs page initialization. */
    87     virtual void initializePage() /* override final */;
     84    virtual void initializePage() override final;
    8885
    8986    /** Performs page validation. */
    90     virtual bool validatePage() /* override final */;
     87    virtual bool validatePage() override final;
     88
     89private slots:
     90
     91    /** Handles translation event. */
     92    virtual void sltRetranslateUI() override final;
    9193
    9294private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageVMs.cpp

    r103771 r103957  
    202202}
    203203
    204 void UIWizardExportAppPageVMs::retranslateUi()
     204void UIWizardExportAppPageVMs::sltRetranslateUI()
    205205{
    206206    /* Translate page: */
     
    218218    populateVMItems(m_pVMSelector, m_selectedVMNames);
    219219    /* Translate page: */
    220     retranslateUi();
     220    sltRetranslateUI();
    221221
    222222    /* Now, when we are ready, we can
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageVMs.h

    r98103 r103957  
    7676    UIWizardExportApp *wizard() const;
    7777
    78     /** Handles translation event. */
    79     virtual void retranslateUi() /* override final */;
    80 
    8178    /** Performs page initialization. */
    82     virtual void initializePage() /* override final */;
     79    virtual void initializePage() override final;
    8380
    8481    /** Returns whether page is complete. */
    85     virtual bool isComplete() const /* override final */;
     82    virtual bool isComplete() const override final;
    8683
    8784    /** Performs page validation. */
    88     virtual bool validatePage() /* override final */;
     85    virtual bool validatePage() override final;
    8986
    9087private slots:
     
    9289    /** Handles VM item selection change. */
    9390    void sltHandleVMItemSelectionChanged();
     91    /** Handles translation event. */
     92    virtual void sltRetranslateUI() override final;
    9493
    9594private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp

    r103771 r103957  
    360360}
    361361
    362 void UIWizardImportAppPageExpert::retranslateUi()
     362void UIWizardImportAppPageExpert::sltRetranslateUI()
    363363{
    364364    /* Translate tool-box: */
     
    439439                    m_strSource);
    440440    /* Translate page: */
    441     retranslateUi();
     441    sltRetranslateUI();
    442442
    443443    /* Choose initially focused widget: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.h

    r98103 r103957  
    6868    UIWizardImportApp *wizard() const;
    6969
    70     /** Handles translation event. */
    71     virtual void retranslateUi() /* override final */;
    72 
    7370    /** Performs page initialization. */
    74     virtual void initializePage() /* override final */;
     71    virtual void initializePage() override final;
    7572
    7673    /** Returns whether page is complete. */
    77     virtual bool isComplete() const /* override final */;
     74    virtual bool isComplete() const override final;
    7875
    7976    /** Performs page validation. */
    80     virtual bool validatePage() /* override final */;
     77    virtual bool validatePage() override final;
    8178
    8279private slots:
     
    103100    /** Handles import HDs as VDI check-box change. */
    104101    void sltHandleImportHDsAsVDICheckBoxChange();
     102    /** Handles translation event. */
     103    virtual void sltRetranslateUI() override final;
    105104
    106105private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSettings.cpp

    r103771 r103957  
    447447}
    448448
    449 void UIWizardImportAppPageSettings::retranslateUi()
     449void UIWizardImportAppPageSettings::sltRetranslateUI()
    450450{
    451451    /* Translate page: */
     
    499499    m_pFormEditor->setNotificationCenter(wizard()->notificationCenter());
    500500    /* Translate page: */
    501     retranslateUi();
     501    sltRetranslateUI();
    502502
    503503    /* Choose initially focused widget: */
     
    631631
    632632            /* Translate page early: */
    633             retranslateUi();
     633            sltRetranslateUI();
    634634
    635635            /* Instantiate the dialog: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSettings.h

    r98103 r103957  
    110110    UIWizardImportApp *wizard() const;
    111111
    112     /** Handles translation event. */
    113     virtual void retranslateUi() /* override final */;
    114 
    115112    /** Performs page initialization. */
    116     virtual void initializePage() /* override final */;
     113    virtual void initializePage() override final;
    117114
    118115    /** Performs page validation. */
    119     virtual bool validatePage() /* override final */;
     116    virtual bool validatePage() override final;
    120117
    121118private slots:
     
    130127    /** Handles import HDs as VDI check-box change. */
    131128    void sltHandleImportHDsAsVDICheckBoxChange();
     129    /** Handles translation event. */
     130    virtual void sltRetranslateUI() override final;
    132131
    133132private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSource.cpp

    r103771 r103957  
    651651}
    652652
    653 void UIWizardImportAppPageSource::retranslateUi()
     653void UIWizardImportAppPageSource::sltRetranslateUI()
    654654{
    655655    /* Translate page: */
     
    750750                    m_strSource);
    751751    /* Translate page: */
    752     retranslateUi();
     752    sltRetranslateUI();
    753753
    754754    /* Choose initially focused widget: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageSource.h

    r98103 r103957  
    132132    UIWizardImportApp *wizard() const;
    133133
    134     /** Handles translation event. */
    135     virtual void retranslateUi() /* override final */;
    136 
    137134    /** Performs page initialization. */
    138     virtual void initializePage() /* override final */;
     135    virtual void initializePage() override final;
    139136
    140137    /** Returns whether page is complete. */
    141     virtual bool isComplete() const /* override final */;
     138    virtual bool isComplete() const override final;
    142139
    143140    /** Performs page validation. */
    144     virtual bool validatePage() /* override final */;
     141    virtual bool validatePage() override final;
    145142
    146143private slots:
     
    153150    /** Handles profile tool-button click. */
    154151    void sltHandleProfileButtonClick();
     152
     153    /** Handles translation event. */
     154    virtual void sltRetranslateUI() override final;
    155155
    156156private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r101563 r103957  
    203203}
    204204
    205 void UIWizardNewCloudVMPageExpert::retranslateUi()
     205void UIWizardNewCloudVMPageExpert::sltRetranslateUI()
    206206{
    207207    /* Translate tool-box: */
     
    246246    populateProviders(m_pProviderComboBox, wizard()->notificationCenter());
    247247    /* Translate providers: */
    248     retranslateUi();
     248    sltRetranslateUI();
    249249    /* Make image list focused by default: */
    250250    m_pSourceImageList->setFocus();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.h

    r98103 r103957  
    5656    UIWizardNewCloudVM *wizard() const;
    5757
    58     /** Handles translation event. */
    59     virtual void retranslateUi() /* override final */;
    60 
    6158    /** Performs page initialization. */
    62     virtual void initializePage() /* override final */;
     59    virtual void initializePage() override final;
    6360
    6461    /** Returns whether page is complete. */
    65     virtual bool isComplete() const /* override final */;
     62    virtual bool isComplete() const override final;
    6663
    6764    /** Performs page validation. */
    68     virtual bool validatePage() /* override final */;
     65    virtual bool validatePage() override final;
    6966
    7067private slots:
     
    8380    /** Handles change in instance list. */
    8481    void sltHandleSourceImageChange();
     82
     83    /** Handles translation event. */
     84    virtual void sltRetranslateUI() override final;
    8585
    8686private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.cpp

    r98103 r103957  
    9696}
    9797
    98 void UIWizardNewCloudVMPageProperties::retranslateUi()
     98void UIWizardNewCloudVMPageProperties::sltRetranslateUI()
    9999{
    100100    /* Translate page: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageProperties.h

    r98103 r103957  
    6464    UIWizardNewCloudVM *wizard() const;
    6565
    66     /** Handles translation event. */
    67     virtual void retranslateUi() /* override final */;
    68 
    6966    /** Performs page initialization. */
    70     virtual void initializePage() /* override final */;
     67    virtual void initializePage() override final;
    7168
    7269    /** Returns whether page is complete. */
    73     virtual bool isComplete() const /* override final */;
     70    virtual bool isComplete() const override final;
    7471
    7572    /** Performs page validation. */
    76     virtual bool validatePage() /* override final */;
     73    virtual bool validatePage() override final;
    7774
    7875private slots:
     
    8077    /** Initializes short wizard form. */
    8178    void sltInitShortWizardForm();
     79
     80    /** Handles translation event. */
     81    virtual void sltRetranslateUI() override final;
    8282
    8383private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.cpp

    r101563 r103957  
    478478}
    479479
    480 void UIWizardNewCloudVMPageSource::retranslateUi()
     480void UIWizardNewCloudVMPageSource::sltRetranslateUI()
    481481{
    482482    /* Translate page: */
     
    532532    populateProviders(m_pProviderComboBox, wizard()->notificationCenter());
    533533    /* Translate providers: */
    534     retranslateUi();
     534    sltRetranslateUI();
    535535    /* Fetch it, asynchronously: */
    536536    QMetaObject::invokeMethod(this, "sltHandleProviderComboChange", Qt::QueuedConnection);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageSource.h

    r103803 r103957  
    115115    UIWizardNewCloudVM *wizard() const;
    116116
    117     /** Handles translation event. */
    118     virtual void retranslateUi() /* override final */;
    119 
    120117    /** Performs page initialization. */
    121118    virtual void initializePage() /* override final */;
     
    142139    /** Handles change in image list. */
    143140    void sltHandleSourceImageChange();
     141
     142    /** Handles translation event. */
     143    virtual void sltRetranslateUI() override final;
    144144
    145145private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.cpp

    r103771 r103957  
    8181            this, &UIWizardNewVDExpertPage::sltMediumPathChanged);
    8282
    83     retranslateUi();
     83    sltRetranslateUI();
    8484}
    8585
     
    136136}
    137137
    138 void UIWizardNewVDExpertPage::retranslateUi()
     138void UIWizardNewVDExpertPage::sltRetranslateUI()
    139139{
    140140    if (m_pFormatVariantGroupBox)
     
    172172    pWizard->setMediumVariant(m_pVariantWidget->mediumVariant());
    173173
    174     retranslateUi();
     174    sltRetranslateUI();
    175175}
    176176
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDExpertPage.h

    r98103 r103957  
    5757    void sltMediumPathChanged(const QString &strPath);
    5858    void sltMediumSizeChanged(qulonglong uSize);
     59    /** Translation stuff. */
     60    virtual void sltRetranslateUI() override final;
    5961
    6062private:
    61 
    62     /** Translation stuff. */
    63     void retranslateUi();
    6463
    6564    /** Prepare stuff. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDFileTypePage.cpp

    r98103 r103957  
    5353    connect(m_pFormatButtonGroup, &UIDiskFormatsGroupBox::sigMediumFormatChanged,
    5454            this, &UIWizardNewVDFileTypePage::sltMediumFormatChanged);
    55     retranslateUi();
     55    sltRetranslateUI();
    5656}
    5757
     
    6363}
    6464
    65 void UIWizardNewVDFileTypePage::retranslateUi()
     65void UIWizardNewVDFileTypePage::sltRetranslateUI()
    6666{
    6767    setTitle(UIWizardNewVD::tr("Virtual Hard disk file type"));
     
    7474{
    7575    AssertReturnVoid(wizardWindow<UIWizardNewVD>());
    76     retranslateUi();
     76    sltRetranslateUI();
    7777    if (m_pFormatButtonGroup)
    7878        wizardWindow<UIWizardNewVD>()->setMediumFormat(m_pFormatButtonGroup->mediumFormat());
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDFileTypePage.h

    r98103 r103957  
    5252
    5353    void sltMediumFormatChanged();
     54    virtual void sltRetranslateUI() override final;
    5455
    5556private:
    5657
    57     void retranslateUi();
    5858    void prepare();
    5959    void initializePage();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDSizeLocationPage.cpp

    r103771 r103957  
    6565    pMainLayout->addWidget(m_pMediumSizePathGroup);
    6666    pMainLayout->addStretch();
    67     retranslateUi();
     67    sltRetranslateUI();
    6868}
    6969
     
    105105}
    106106
    107 void UIWizardNewVDSizeLocationPage::retranslateUi()
     107void UIWizardNewVDSizeLocationPage::sltRetranslateUI()
    108108{
    109109    setTitle(UIWizardNewVD::tr("File location and size"));
     
    140140        pWizard->setMediumSize(m_pMediumSizePathGroup->mediumSize());
    141141    }
    142     retranslateUi();
     142    sltRetranslateUI();
    143143}
    144144
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDSizeLocationPage.h

    r98103 r103957  
    5151    void sltMediumSizeChanged(qulonglong uSize);
    5252    void sltMediumPathChanged(const QString &strPath);
     53    virtual void sltRetranslateUI() override final;
    5354
    5455private:
    5556
    56     void retranslateUi();
    5757    void initializePage();
    5858    bool isComplete() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDVariantPage.cpp

    r98103 r103957  
    6969    connect(m_pVariantWidget, &UIDiskVariantWidget::sigMediumVariantChanged,
    7070            this, &UIWizardNewVDVariantPage::sltMediumVariantChanged);
    71     retranslateUi();
     71    sltRetranslateUI();
    7272}
    7373
    74 void UIWizardNewVDVariantPage::retranslateUi()
     74void UIWizardNewVDVariantPage::sltRetranslateUI()
    7575{
    7676    setTitle(UIWizardNewVD::tr("Storage on physical hard disk"));
     
    9999    setWidgetVisibility(pWizard->mediumFormat());
    100100    pWizard->setMediumVariant(m_pVariantWidget->mediumVariant());
    101     retranslateUi();
     101    sltRetranslateUI();
    102102}
    103103
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDVariantPage.h

    r98103 r103957  
    5151
    5252    void sltMediumVariantChanged(qulonglong uVariant);
     53    virtual void sltRetranslateUI() override final;
    5354
    5455private:
    5556
    56     void retranslateUi();
    5757    void initializePage();
    5858    bool isComplete() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPage.cpp

    r103803 r103957  
    216216}
    217217
    218 void UIWizardNewVMDiskPage::retranslateUi()
     218void UIWizardNewVMDiskPage::sltRetranslateUI()
    219219{
    220220    setTitle(UIWizardNewVM::tr("Virtual Hard disk"));
     
    258258void UIWizardNewVMDiskPage::initializePage()
    259259{
    260     retranslateUi();
     260    sltRetranslateUI();
    261261
    262262    UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMDiskPage.h

    r103803 r103957  
    7979    void sltHandleSizeEditorChange(qulonglong uSize);
    8080    void sltFixedCheckBoxToggled(bool fChecked);
     81    virtual void sltRetranslateUI() override final;
    8182
    8283private:
     
    8990    QWidget *createMediumVariantWidgets(bool fWithLabels);
    9091
    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;
    9494
    9595    void setEnableDiskSelectionWidgets(bool fEnabled);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp

    r103771 r103957  
    217217}
    218218
    219 void UIWizardNewVMExpertPage::retranslateUi()
     219void UIWizardNewVMExpertPage::sltRetranslateUI()
    220220{
    221221    if (m_pSkipUnattendedCheckBox)
     
    455455    disableEnableUnattendedRelatedWidgets(isUnattendedEnabled());
    456456    updateDiskWidgetsAfterMediumFormatChange();
    457     retranslateUi();
     457    sltRetranslateUI();
    458458
    459459    /* Focus on the name field (rather than the help button): */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.h

    r98103 r103957  
    9494    void sltStartHeadlessChanged(bool fStartHeadless);
    9595    void sltSelectedEditionChanged(ulong uEditionIndex);
     96    /** Translation stuff. */
     97    virtual void sltRetranslateUI() override final;
    9698
    9799private:
     
    104106        ExpertToolboxItems_Disk
    105107    };
    106 
    107     /** Translation stuff. */
    108     void retranslateUi();
    109108
    110109    /** Prepare stuff. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePage.cpp

    r103771 r103957  
    7575}
    7676
    77 void UIWizardNewVMHardwarePage::retranslateUi()
     77void UIWizardNewVMHardwarePage::sltRetranslateUI()
    7878{
    7979    setTitle(UIWizardNewVM::tr("Hardware"));
     
    8686void UIWizardNewVMHardwarePage::initializePage()
    8787{
    88     retranslateUi();
     88    sltRetranslateUI();
    8989
    9090    UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMHardwarePage.h

    r98103 r103957  
    5555    void sltCPUCountChanged(int iCount);
    5656    void sltEFIEnabledChanged(bool fEnabled);
     57    virtual void sltRetranslateUI() override final;
    5758
    5859private:
     
    6162    void prepare();
    6263    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;
    6666
    6767    /** @name Widgets
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp

    r103771 r103957  
    508508}
    509509
    510 void UIWizardNewVMNameOSTypePage::retranslateUi()
     510void UIWizardNewVMNameOSTypePage::sltRetranslateUI()
    511511{
    512512    setTitle(UIWizardNewVM::tr("Virtual machine Name and Operating System"));
     
    583583    AssertReturnVoid(pWizard);
    584584
    585     retranslateUi();
     585    sltRetranslateUI();
    586586
    587587    /* Initialize this page's widgets etc: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.h

    r98103 r103957  
    7070protected:
    7171
    72     virtual bool isComplete() const; /* override final */
     72    virtual bool isComplete() const override final;
    7373    /** Validation stuff. */
    7474    virtual bool validatePage() RT_OVERRIDE;
     
    8383    void sltSkipUnattendedInstallChanged(bool fSkip);
    8484    void sltSelectedEditionChanged(ulong uEditionIndex);
     85    /** Translation stuff. */
     86    virtual void sltRetranslateUI() override final;
    8587
    8688private:
    87 
    88     /** Translation stuff. */
    89     void retranslateUi();
    9089
    9190    /** Prepare stuff. */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.cpp

    r103771 r103957  
    450450}
    451451
    452 void UIWizardNewVMSummaryPage::retranslateUi()
     452void UIWizardNewVMSummaryPage::sltRetranslateUI()
    453453{
    454454    setTitle(UIWizardNewVM::tr("Summary"));
     
    462462void UIWizardNewVMSummaryPage::initializePage()
    463463{
    464     retranslateUi();
     464    sltRetranslateUI();
    465465    UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>();
    466466    AssertReturnVoid(pWizard && m_pModel);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMSummaryPage.h

    r98103 r103957  
    4848    UIWizardNewVMSummaryPage();
    4949
     50private slots:
     51
     52    virtual void sltRetranslateUI() override final;
     53
    5054private:
    5155
    5256    void prepare();
    5357    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;
    5861    /** @name Widgets
    5962     * @{ */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPage.cpp

    r98103 r103957  
    109109
    110110
    111 void UIWizardNewVMUnattendedPage::retranslateUi()
     111void UIWizardNewVMUnattendedPage::sltRetranslateUI()
    112112{
    113113    setTitle(UIWizardNewVM::tr("Unattended Guest OS Install Setup"));
     
    125125    if (m_pAdditionalOptionsContainer)
    126126        m_pAdditionalOptionsContainer->disableEnableProductKeyWidgets(isProductKeyWidgetEnabled());
    127     retranslateUi();
     127    sltRetranslateUI();
    128128
    129129    UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMUnattendedPage.h

    r98103 r103957  
    6666    void sltStartHeadlessChanged(bool fStartHeadless);
    6767    void sltSelectedWindowsImageChanged(ulong uImageIndex);
     68    virtual void sltRetranslateUI() override final;
    6869
    6970private:
     
    7172    void prepare();
    7273    void createConnections();
    73 
    74     void retranslateUi();
    7574    void initializePage();
    7675    bool isComplete() const;
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