VirtualBox

Ignore:
Timestamp:
Apr 6, 2011 3:48:47 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: Just some settings dialog API renaming.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r36589 r36592  
    967967                                                         sharedMachine, session().GetConsole(),
    968968                                                         strCategory, QString());
    969     pDlg->getFrom();
     969    pDlg->loadData();
    970970
    971971    /* Show VM settings dialog: */
     
    973973    {
    974974        /* If dialog was accepted => save changed settings: */
    975         pDlg->putBackTo();
     975        pDlg->saveData();
    976976        sharedMachine.SaveSettings();
    977977        /* If settings were failed to be saved => show the error: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp

    r36589 r36592  
    596596
    597597    UISettingsDialog *dlg = new UISettingsDialogGlobal(this, SettingsDialogType_Offline);
    598     dlg->getFrom();
     598    dlg->loadData();
    599599
    600600    if (dlg->exec() == QDialog::Accepted)
    601         dlg->putBackTo();
     601        dlg->saveData();
    602602
    603603    delete dlg;
     
    735735
    736736    UISettingsDialog *pDlg = new UISettingsDialogMachine(this, dialogType, machine, console, strCategory, strControl);
    737     pDlg->getFrom();
     737    pDlg->loadData();
    738738
    739739    if (pDlg->exec() == QDialog::Accepted)
    740740    {
    741         pDlg->putBackTo();
     741        pDlg->saveData();
    742742
    743743        machine.SaveSettings();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h

    r36589 r36592  
    4949
    5050    /* Save/Load interface: */
    51     virtual void getFrom() = 0;
    52     virtual void putBackTo() = 0;
     51    virtual void loadData() = 0;
     52    virtual void saveData() = 0;
    5353
    5454protected slots:
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp

    r36589 r36592  
    300300    for (int iPageIndex = GLSettingsPage_General; iPageIndex < GLSettingsPage_MAX; ++iPageIndex)
    301301    {
    302         if (isAvailable(iPageIndex))
     302        if (isPageAvailable(iPageIndex))
    303303        {
    304304            UISettingsPage *pSettingsPage = 0;
     
    386386}
    387387
    388 void UISettingsDialogGlobal::getFrom()
     388void UISettingsDialogGlobal::loadData()
    389389{
    390390    /* Prepare global data: */
     
    403403}
    404404
    405 void UISettingsDialogGlobal::putBackTo()
     405void UISettingsDialogGlobal::saveData()
    406406{
    407407    /* Get properties and settings: */
     
    470470}
    471471
    472 bool UISettingsDialogGlobal::isAvailable(int id)
     472bool UISettingsDialogGlobal::isPageAvailable(int iPageId)
    473473{
    474474    /* Show the host error message for particular group if present.
    475475     * We don't use the generic cannotLoadGlobalConfig()
    476476     * call here because we want this message to be suppressible: */
    477     switch (id)
     477    switch (iPageId)
    478478    {
    479479        case GLSettingsPage_USB:
     
    528528    for (int iPageIndex = VMSettingsPage_General; iPageIndex < VMSettingsPage_MAX; ++iPageIndex)
    529529    {
    530         if (isAvailable(iPageIndex))
     530        if (isPageAvailable(iPageIndex))
    531531        {
    532532            UISettingsPage *pSettingsPage = 0;
     
    681681}
    682682
    683 void UISettingsDialogMachine::getFrom()
     683void UISettingsDialogMachine::loadData()
    684684{
    685685    /* Prepare machine data: */
     
    701701}
    702702
    703 void UISettingsDialogMachine::putBackTo()
     703void UISettingsDialogMachine::saveData()
    704704{
    705705    /* Prepare machine data: */
     
    981981}
    982982
    983 bool UISettingsDialogMachine::isAvailable(int id)
     983bool UISettingsDialogMachine::isPageAvailable(int iPageId)
    984984{
    985985    if (m_machine.isNull())
     
    989989     * We don't use the generic cannotLoadMachineSettings()
    990990     * call here because we want this message to be suppressible. */
    991     switch (id)
     991    switch (iPageId)
    992992    {
    993993        case VMSettingsPage_Serial:
    994994        {
    995995            /* Depends on ports availability: */
    996             if (!isAvailable(VMSettingsPage_Ports))
     996            if (!isPageAvailable(VMSettingsPage_Ports))
    997997                return false;
    998998            break;
     
    10011001        {
    10021002            /* Depends on ports availability: */
    1003             if (!isAvailable(VMSettingsPage_Ports))
     1003            if (!isPageAvailable(VMSettingsPage_Ports))
    10041004                return false;
    10051005            /* But for now this page is always disabled: */
     
    10091009        {
    10101010            /* Depends on ports availability: */
    1011             if (!isAvailable(VMSettingsPage_Ports))
     1011            if (!isPageAvailable(VMSettingsPage_Ports))
    10121012                return false;
    10131013            /* Get the USB controller object: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h

    r36589 r36592  
    4747protected:
    4848
    49     void getFrom();
    50     void putBackTo();
     49    void loadData();
     50    void saveData();
    5151
    5252    void retranslateUi();
     
    5656private:
    5757
    58     bool isAvailable(int id);
     58    bool isPageAvailable(int iPageId);
    5959};
    6060
     
    8888protected:
    8989
    90     void getFrom();
    91     void putBackTo();
     90    void loadData();
     91    void saveData();
    9292
    9393    void retranslateUi();
     
    106106private:
    107107
    108     bool isAvailable(int id);
     108    bool isPageAvailable(int iPageId);
    109109
    110110    CMachine m_machine;
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