VirtualBox

Changeset 101607 in vbox


Ignore:
Timestamp:
Oct 26, 2023 2:14:46 PM (11 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: Machine settings / Serial page: Renaming UIMachineSettingsSerialPage to UIMachineSettingsSerial, similarly to other pages.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialogSpecific.cpp

    r101596 r101607  
    721721                case MachineSettingsPageType_Serial:
    722722                {
    723                     pSettingsPage = new UIMachineSettingsSerialPage;
     723                    pSettingsPage = new UIMachineSettingsSerial;
    724724                    addItem(":/serial_port_32px.png", ":/serial_port_24px.png", ":/serial_port_16px.png",
    725725                            iPageIndex, "#serialPorts", pSettingsPage, MachineSettingsPageType_Ports);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp

    r101596 r101607  
    725725                case MachineSettingsPageType_Serial:
    726726                {
    727                     pSettingsPage = new UIMachineSettingsSerialPage;
     727                    pSettingsPage = new UIMachineSettingsSerial;
    728728                    addItem(":/serial_port_32px.png", ":/serial_port_24px.png", ":/serial_port_16px.png",
    729729                            iPageIndex, "#serialPorts", pSettingsPage, MachineSettingsPageType_Ports);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.cpp

    r101606 r101607  
    106106
    107107/*********************************************************************************************************************************
    108 *   Class UIMachineSettingsSerialPage implementation.                                                                            *
     108*   Class UIMachineSettingsSerial implementation.                                                                                *
    109109*********************************************************************************************************************************/
    110110
    111 UIMachineSettingsSerialPage::UIMachineSettingsSerialPage()
     111UIMachineSettingsSerial::UIMachineSettingsSerial()
    112112    : m_pCache(0)
    113113    , m_pTabWidget(0)
     
    116116}
    117117
    118 UIMachineSettingsSerialPage::~UIMachineSettingsSerialPage()
     118UIMachineSettingsSerial::~UIMachineSettingsSerial()
    119119{
    120120    cleanup();
    121121}
    122122
    123 bool UIMachineSettingsSerialPage::changed() const
     123bool UIMachineSettingsSerial::changed() const
    124124{
    125125    return m_pCache ? m_pCache->wasChanged() : false;
    126126}
    127127
    128 void UIMachineSettingsSerialPage::loadToCacheFrom(QVariant &data)
     128void UIMachineSettingsSerial::loadToCacheFrom(QVariant &data)
    129129{
    130130    /* Sanity check: */
     
    177177}
    178178
    179 void UIMachineSettingsSerialPage::getFromCache()
     179void UIMachineSettingsSerial::getFromCache()
    180180{
    181181    /* Sanity check: */
     
    198198}
    199199
    200 void UIMachineSettingsSerialPage::putToCache()
     200void UIMachineSettingsSerial::putToCache()
    201201{
    202202    /* Sanity check: */
     
    216216}
    217217
    218 void UIMachineSettingsSerialPage::saveFromCacheTo(QVariant &data)
     218void UIMachineSettingsSerial::saveFromCacheTo(QVariant &data)
    219219{
    220220    /* Fetch data to machine: */
     
    228228}
    229229
    230 bool UIMachineSettingsSerialPage::validate(QList<UIValidationMessage> &messages)
     230bool UIMachineSettingsSerial::validate(QList<UIValidationMessage> &messages)
    231231{
    232232    /* Sanity check: */
     
    246246}
    247247
    248 void UIMachineSettingsSerialPage::retranslateUi()
     248void UIMachineSettingsSerial::retranslateUi()
    249249{
    250250    /* Sanity check: */
     
    256256}
    257257
    258 void UIMachineSettingsSerialPage::polishPage()
     258void UIMachineSettingsSerial::polishPage()
    259259{
    260260    /* Sanity check: */
     
    274274}
    275275
    276 void UIMachineSettingsSerialPage::sltHandlePortChange()
     276void UIMachineSettingsSerial::sltHandlePortChange()
    277277{
    278278    refreshPorts();
     
    280280}
    281281
    282 void UIMachineSettingsSerialPage::sltHandlePathChange()
     282void UIMachineSettingsSerial::sltHandlePathChange()
    283283{
    284284    refreshPaths();
     
    286286}
    287287
    288 void UIMachineSettingsSerialPage::prepare()
     288void UIMachineSettingsSerial::prepare()
    289289{
    290290    /* Prepare cache: */
     
    299299}
    300300
    301 void UIMachineSettingsSerialPage::prepareWidgets()
     301void UIMachineSettingsSerial::prepareWidgets()
    302302{
    303303    /* Prepare main layout: */
     
    321321}
    322322
    323 void UIMachineSettingsSerialPage::prepareTab()
     323void UIMachineSettingsSerial::prepareTab()
    324324{
    325325    /* Prepare tab: */
     
    356356}
    357357
    358 void UIMachineSettingsSerialPage::prepareConnections(UISerialSettingsEditor *pTabEditor)
     358void UIMachineSettingsSerial::prepareConnections(UISerialSettingsEditor *pTabEditor)
    359359{
    360360    /* Tab connections: */
    361361    connect(pTabEditor, &UISerialSettingsEditor::sigPortAvailabilityChanged,
    362             this, &UIMachineSettingsSerialPage::sltHandlePortChange);
     362            this, &UIMachineSettingsSerial::sltHandlePortChange);
    363363    connect(pTabEditor, &UISerialSettingsEditor::sigPortAvailabilityChanged,
    364             this, &UIMachineSettingsSerialPage::sltHandlePathChange);
     364            this, &UIMachineSettingsSerial::sltHandlePathChange);
    365365    connect(pTabEditor, &UISerialSettingsEditor::sigStandardPortOptionChanged,
    366             this, &UIMachineSettingsSerialPage::revalidate);
     366            this, &UIMachineSettingsSerial::revalidate);
    367367    connect(pTabEditor, &UISerialSettingsEditor::sigPortIRQChanged,
    368             this, &UIMachineSettingsSerialPage::sltHandlePortChange);
     368            this, &UIMachineSettingsSerial::sltHandlePortChange);
    369369    connect(pTabEditor, &UISerialSettingsEditor::sigPortIOAddressChanged,
    370             this, &UIMachineSettingsSerialPage::sltHandlePortChange);
     370            this, &UIMachineSettingsSerial::sltHandlePortChange);
    371371    connect(pTabEditor, &UISerialSettingsEditor::sigModeChanged,
    372             this, &UIMachineSettingsSerialPage::revalidate);
     372            this, &UIMachineSettingsSerial::revalidate);
    373373    connect(pTabEditor, &UISerialSettingsEditor::sigPathChanged,
    374             this, &UIMachineSettingsSerialPage::sltHandlePathChange);
    375 }
    376 
    377 void UIMachineSettingsSerialPage::cleanup()
     374            this, &UIMachineSettingsSerial::sltHandlePathChange);
     375}
     376
     377void UIMachineSettingsSerial::cleanup()
    378378{
    379379    /* Cleanup cache: */
     
    382382}
    383383
    384 void UIMachineSettingsSerialPage::polishTab(int iSlot)
     384void UIMachineSettingsSerial::polishTab(int iSlot)
    385385{
    386386    /* Acquire tab-editor: */
     
    400400}
    401401
    402 void UIMachineSettingsSerialPage::getFromCache(int iSlot, const UISettingsCacheMachineSerialPort &portCache)
     402void UIMachineSettingsSerial::getFromCache(int iSlot, const UISettingsCacheMachineSerialPort &portCache)
    403403{
    404404    /* Acquire tab-editor: */
     
    420420}
    421421
    422 void UIMachineSettingsSerialPage::putToCache(int iSlot, UISettingsCacheMachineSerialPort &portCache)
     422void UIMachineSettingsSerial::putToCache(int iSlot, UISettingsCacheMachineSerialPort &portCache)
    423423{
    424424    /* Acquire tab-editor: */
     
    444444}
    445445
    446 QString UIMachineSettingsSerialPage::irq(int iSlot) const
     446QString UIMachineSettingsSerial::irq(int iSlot) const
    447447{
    448448    /* Acquire tab-editor: */
     
    452452}
    453453
    454 QString UIMachineSettingsSerialPage::ioAddress(int iSlot) const
     454QString UIMachineSettingsSerial::ioAddress(int iSlot) const
    455455{
    456456    /* Acquire tab-editor: */
     
    460460}
    461461
    462 bool UIMachineSettingsSerialPage::validate(int iSlot, QList<UIValidationMessage> &messages)
     462bool UIMachineSettingsSerial::validate(int iSlot, QList<UIValidationMessage> &messages)
    463463{
    464464    /* Acquire tab-editor: */
     
    536536}
    537537
    538 void UIMachineSettingsSerialPage::refreshPorts()
     538void UIMachineSettingsSerial::refreshPorts()
    539539{
    540540    /* Sanity check: */
     
    554554}
    555555
    556 void UIMachineSettingsSerialPage::refreshPaths()
     556void UIMachineSettingsSerial::refreshPaths()
    557557{
    558558    /* Sanity check: */
     
    573573
    574574/* static */
    575 QString UIMachineSettingsSerialPage::tabTitle(int iSlot)
     575QString UIMachineSettingsSerial::tabTitle(int iSlot)
    576576{
    577577    return QString(tr("Port %1", "serial ports")).arg(QString("&%1").arg(iSlot + 1));
    578578}
    579579
    580 bool UIMachineSettingsSerialPage::saveData()
     580bool UIMachineSettingsSerial::saveData()
    581581{
    582582    /* Sanity check: */
     
    598598}
    599599
    600 bool UIMachineSettingsSerialPage::savePortData(int iSlot)
     600bool UIMachineSettingsSerial::savePortData(int iSlot)
    601601{
    602602    /* Sanity check: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSerial.h

    r101606 r101607  
    4444
    4545/** Machine settings: Serial page. */
    46 class SHARED_LIBRARY_STUFF UIMachineSettingsSerialPage : public UISettingsPageMachine
     46class SHARED_LIBRARY_STUFF UIMachineSettingsSerial : public UISettingsPageMachine
    4747{
    4848    Q_OBJECT;
     
    5151
    5252    /** Constructs Serial settings page. */
    53     UIMachineSettingsSerialPage();
     53    UIMachineSettingsSerial();
    5454    /** Destructs Serial settings page. */
    55     virtual ~UIMachineSettingsSerialPage() RT_OVERRIDE;
     55    virtual ~UIMachineSettingsSerial() RT_OVERRIDE;
    5656
    5757    /** Returns ports. */
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