VirtualBox

Changeset 101072 in vbox


Ignore:
Timestamp:
Sep 8, 2023 3:03:57 PM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: Update VM Settings dialog editor hierarchy so that pages know about their editors; Similar to r158990 for Preferences.

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

Legend:

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

    r101011 r101072  
    208208                m_pEditorAudioHostDriver = new UIAudioHostDriverEditor(m_pWidgetSettings);
    209209                if (m_pEditorAudioHostDriver)
     210                {
     211                    m_editors << m_pEditorAudioHostDriver;
    210212                    pLayoutAudioSettings->addWidget(m_pEditorAudioHostDriver);
     213                }
    211214
    212215                /* Prepare controller editor: */
    213216                m_pEditorAudioController = new UIAudioControllerEditor(m_pWidgetSettings);
    214217                if (m_pEditorAudioController)
     218                {
     219                    m_editors << m_pEditorAudioController;
    215220                    pLayoutAudioSettings->addWidget(m_pEditorAudioController);
     221                }
    216222
    217223                /* Prepare features editor: */
    218224                m_pEditorAudioFeatures = new UIAudioFeaturesEditor(m_pWidgetSettings);
    219225                if (m_pEditorAudioFeatures)
     226                {
     227                    m_editors << m_pEditorAudioFeatures;
    220228                    pLayoutAudioSettings->addWidget(m_pEditorAudioFeatures);
     229                }
    221230            }
    222231
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIUSBSettingsEditor.cpp

    r101011 r101072  
    161161                m_pEditorController = new UIUSBControllerEditor(m_pWidgetSettings);
    162162                if (m_pEditorController)
     163                {
     164                    m_editors << m_pEditorController;
    163165                    pLayoutSettings->addWidget(m_pEditorController);
     166                }
    164167
    165168                /* Prepare USB filters editor: */
    166169                m_pEditorFilters = new UIUSBFiltersEditor(m_pWidgetSettings);
    167170                if (m_pEditorFilters)
     171                {
     172                    m_editors << m_pEditorFilters;
    168173                    pLayoutSettings->addWidget(m_pEditorFilters);
     174                }
    169175            }
    170176
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.cpp

    r98103 r101072  
    228228        m_pEditorAudioSettings = new UIAudioSettingsEditor(this);
    229229        if (m_pEditorAudioSettings)
     230        {
     231            m_editors << m_pEditorAudioSettings;
    230232            pLayout->addWidget(m_pEditorAudioSettings);
     233        }
    231234
    232235        pLayout->addStretch();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r100635 r101072  
    896896            m_pEditorVideoMemorySize = new UIVideoMemoryEditor(m_pTabScreen);
    897897            if (m_pEditorVideoMemorySize)
     898            {
     899                m_editors << m_pEditorVideoMemorySize;
    898900                pLayoutScreen->addWidget(m_pEditorVideoMemorySize);
     901            }
    899902
    900903            /* Prepare monitor count editor: */
    901904            m_pEditorMonitorCount = new UIMonitorCountEditor(m_pTabScreen);
    902905            if (m_pEditorMonitorCount)
     906            {
     907                m_editors << m_pEditorMonitorCount;
    903908                pLayoutScreen->addWidget(m_pEditorMonitorCount);
     909            }
    904910
    905911            /* Prepare scale factor editor: */
    906912            m_pEditorScaleFactor = new UIScaleFactorEditor(m_pTabScreen);
    907913            if (m_pEditorScaleFactor)
     914            {
     915                m_editors << m_pEditorScaleFactor;
    908916                pLayoutScreen->addWidget(m_pEditorScaleFactor);
     917            }
    909918
    910919            /* Prepare graphics controller editor: */
    911920            m_pEditorGraphicsController = new UIGraphicsControllerEditor(m_pTabScreen);
    912921            if (m_pEditorGraphicsController)
     922            {
     923                m_editors << m_pEditorGraphicsController;
    913924                pLayoutScreen->addWidget(m_pEditorGraphicsController);
     925            }
    914926
    915927#ifdef VBOX_WITH_3D_ACCELERATION
     
    917929            m_pEditorDisplayScreenFeatures = new UIDisplayScreenFeaturesEditor(m_pTabScreen);
    918930            if (m_pEditorDisplayScreenFeatures)
     931            {
     932                m_editors << m_pEditorDisplayScreenFeatures;
    919933                pLayoutScreen->addWidget(m_pEditorDisplayScreenFeatures);
     934            }
    920935#endif /* VBOX_WITH_3D_ACCELERATION */
    921936
     
    940955            m_pEditorVRDESettings = new UIVRDESettingsEditor(m_pTabRemoteDisplay);
    941956            if (m_pEditorVRDESettings)
     957            {
     958                m_editors << m_pEditorVRDESettings;
    942959                pLayoutRemoteDisplay->addWidget(m_pEditorVRDESettings);
     960            }
    943961
    944962            pLayoutRemoteDisplay->addStretch();
     
    962980            m_pEditorRecordingSettings = new UIRecordingSettingsEditor(m_pTabRecording);
    963981            if (m_pEditorRecordingSettings)
     982            {
     983                m_editors << m_pEditorRecordingSettings;
    964984                pLayoutRecording->addWidget(m_pEditorRecordingSettings);
     985            }
    965986
    966987            pLayoutRecording->addStretch();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp

    r101064 r101072  
    566566            m_pEditorNameAndSystem = new UINameAndSystemEditor(m_pTabBasic);
    567567            if (m_pEditorNameAndSystem)
     568            {
     569                m_editors << m_pEditorNameAndSystem;
    568570                pLayoutBasic->addWidget(m_pEditorNameAndSystem);
     571            }
    569572
    570573            pLayoutBasic->addStretch();
     
    588591            m_pEditorSnapshotFolder = new UISnapshotFolderEditor(m_pTabAdvanced);
    589592            if (m_pEditorSnapshotFolder)
     593            {
     594                m_editors << m_pEditorSnapshotFolder;
    590595                pLayoutAdvanced->addWidget(m_pEditorSnapshotFolder);
     596            }
    591597
    592598            /* Prepare clipboard editor: */
    593599            m_pEditorClipboard = new UISharedClipboardEditor(m_pTabAdvanced);
    594600            if (m_pEditorClipboard)
     601            {
     602                m_editors << m_pEditorClipboard;
    595603                pLayoutAdvanced->addWidget(m_pEditorClipboard);
     604            }
    596605
    597606            /* Prepare drag&drop editor: */
    598607            m_pEditorDragAndDrop = new UIDragAndDropEditor(m_pTabAdvanced);
    599608            if (m_pEditorDragAndDrop)
     609            {
     610                m_editors << m_pEditorDragAndDrop;
    600611                pLayoutAdvanced->addWidget(m_pEditorDragAndDrop);
     612            }
    601613
    602614            pLayoutAdvanced->addStretch();
     
    621633            if (m_pEditorDescription)
    622634            {
     635                m_editors << m_pEditorDescription;
    623636                m_pEditorDescription->setObjectName(QStringLiteral("m_pEditorDescription"));
    624637                pLayoutDescription->addWidget(m_pEditorDescription);
     
    643656            m_pEditorDiskEncryptionSettings = new UIDiskEncryptionSettingsEditor(m_pTabEncryption);
    644657            if (m_pEditorDiskEncryptionSettings)
     658            {
     659                m_editors << m_pEditorDiskEncryptionSettings;
    645660                pLayoutEncryption->addWidget(m_pEditorDiskEncryptionSettings);
     661            }
    646662
    647663            pLayoutEncryption->addStretch();
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsInterface.cpp

    r101013 r101072  
    382382        if (m_pEditorMenuBar)
    383383        {
     384            m_editors << m_pEditorMenuBar;
    384385            m_pEditorMenuBar->setActionPool(m_pActionPool);
    385386            m_pEditorMenuBar->setMachineID(m_uMachineId);
     
    391392        m_pEditorVisualState = new UIVisualStateEditor(this);
    392393        if (m_pEditorVisualState)
     394        {
     395            m_editors << m_pEditorVisualState;
    393396            pLayout->addWidget(m_pEditorVisualState);
     397        }
    394398
    395399        /* Prepare mini-toolbar settings editor: */
    396400        m_pEditorMiniToolabSettings = new UIMiniToolbarSettingsEditor(this);
    397401        if (m_pEditorMiniToolabSettings)
     402        {
     403            m_editors << m_pEditorMiniToolabSettings;
    398404            pLayout->addWidget(m_pEditorMiniToolabSettings);
     405        }
    399406
    400407        pLayout->addStretch();
     
    404411        if (m_pEditorStatusBar)
    405412        {
     413            m_editors << m_pEditorStatusBar;
    406414            m_pEditorStatusBar->setMachineID(m_uMachineId);
    407415            pLayout->addWidget(m_pEditorStatusBar);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r98103 r101072  
    242242        m_pEditorSharedFolders = new UISharedFoldersEditor(this);
    243243        if (m_pEditorSharedFolders)
     244        {
     245            m_editors << m_pEditorSharedFolders;
    244246            pLayout->addWidget(m_pEditorSharedFolders);
     247        }
    245248    }
    246249}
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.h

    r98103 r101072  
    8888    /** Prepares all. */
    8989    void prepare();
    90     /** Prepares Widgets. */
     90    /** Prepares widgets. */
    9191    void prepareWidgets();
    9292    /** Prepares connections. */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r98103 r101072  
    495495        if (m_pEditorStorageSettings)
    496496        {
     497            m_editors << m_pEditorStorageSettings;
    497498            m_pEditorStorageSettings->setActionPool(m_pActionPool);
    498499            pLayout->addWidget(m_pEditorStorageSettings);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r101064 r101072  
    726726            m_pEditorBaseMemory = new UIBaseMemoryEditor(m_pTabMotherboard);
    727727            if (m_pEditorBaseMemory)
     728            {
     729                m_editors << m_pEditorBaseMemory;
    728730                pLayoutMotherboard->addWidget(m_pEditorBaseMemory, 0, 0, 1, 2);
     731            }
    729732
    730733            /* Prepare boot order editor: */
    731734            m_pEditorBootOrder = new UIBootOrderEditor(m_pTabMotherboard);
    732735            if (m_pEditorBootOrder)
     736            {
     737                m_editors << m_pEditorBootOrder;
    733738                pLayoutMotherboard->addWidget(m_pEditorBootOrder, 1, 0);
     739            }
    734740
    735741            /* Prepare chipset editor: */
    736742            m_pEditorChipset = new UIChipsetEditor(m_pTabMotherboard);
    737743            if (m_pEditorChipset)
     744            {
     745                m_editors << m_pEditorChipset;
    738746                pLayoutMotherboard->addWidget(m_pEditorChipset, 2, 0);
     747            }
    739748
    740749            /* Prepare TPM editor: */
    741750            m_pEditorTpm = new UITpmEditor(m_pTabMotherboard);
    742751            if (m_pEditorTpm)
     752            {
     753                m_editors << m_pEditorTpm;
    743754                pLayoutMotherboard->addWidget(m_pEditorTpm, 3, 0);
     755            }
    744756
    745757            /* Prepare pointing HID editor: */
    746758            m_pEditorPointingHID = new UIPointingHIDEditor(m_pTabMotherboard);
    747759            if (m_pEditorPointingHID)
     760            {
     761                m_editors << m_pEditorPointingHID;
    748762                pLayoutMotherboard->addWidget(m_pEditorPointingHID, 4, 0);
     763            }
    749764
    750765            /* Prepare motherboard features editor: */
    751766            m_pEditorMotherboardFeatures = new UIMotherboardFeaturesEditor(m_pTabMotherboard);
    752767            if (m_pEditorMotherboardFeatures)
     768            {
     769                m_editors << m_pEditorMotherboardFeatures;
    753770                pLayoutMotherboard->addWidget(m_pEditorMotherboardFeatures, 5, 0);
     771            }
    754772        }
    755773
     
    774792            m_pEditorVCPU = new UIVirtualCPUEditor(m_pTabProcessor);
    775793            if (m_pEditorVCPU)
     794            {
     795                m_editors << m_pEditorVCPU;
    776796                pLayoutProcessor->addWidget(m_pEditorVCPU, 0, 0, 1, 2);
     797            }
    777798
    778799            /* Prepare exec cap editor : */
    779800            m_pEditorExecCap = new UIExecutionCapEditor(m_pTabProcessor);
    780801            if (m_pEditorExecCap)
     802            {
     803                m_editors << m_pEditorExecCap;
    781804                pLayoutProcessor->addWidget(m_pEditorExecCap, 1, 0, 1, 2);
     805            }
    782806
    783807            /* Prepare processor features editor: */
    784808            m_pEditorProcessorFeatures = new UIProcessorFeaturesEditor(m_pTabProcessor);
    785809            if (m_pEditorProcessorFeatures)
     810            {
     811                m_editors << m_pEditorProcessorFeatures;
    786812                pLayoutProcessor->addWidget(m_pEditorProcessorFeatures, 2, 0);
     813            }
    787814        }
    788815
     
    807834            m_pEditorParavirtProvider = new UIParavirtProviderEditor(m_pTabAcceleration);
    808835            if (m_pEditorParavirtProvider)
     836            {
     837                m_editors << m_pEditorParavirtProvider;
    809838                pLayoutAcceleration->addWidget(m_pEditorParavirtProvider, 0, 0, 1, 2);
     839            }
    810840
    811841            /* Prepare acceleration features editor: */
    812842            m_pEditorAccelerationFeatures = new UIAccelerationFeaturesEditor(m_pTabAcceleration);
    813843            if (m_pEditorAccelerationFeatures)
     844            {
     845                m_editors << m_pEditorAccelerationFeatures;
    814846                pLayoutAcceleration->addWidget(m_pEditorAccelerationFeatures, 1, 0);
     847            }
    815848
    816849            m_pTabWidget->addTab(m_pTabAcceleration, QString());
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r99063 r101072  
    350350        m_pEditorUsbSettings = new UIUSBSettingsEditor(this);
    351351        if (m_pEditorUsbSettings)
     352        {
     353            m_editors << m_pEditorUsbSettings;
    352354            pLayout->addWidget(m_pEditorUsbSettings);
     355        }
    353356    }
    354357}
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