VirtualBox

Ignore:
Timestamp:
Mar 29, 2022 4:29:26 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150711
Message:

FE/Qt/Ds: bugref:6899: Large properties/settings editors cleanup; Lots of excessive code removed and some coding-style fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.h

    r94030 r94395  
    7676public:
    7777
    78     /** Constructs VM parameters editor passing @a pParent to the base-class.
     78    /** Constructs editor passing @a pParent to the base-class.
    7979     * @param  fChooseName    Controls whether we should propose to choose name.
    8080     * @param  fChoosePath    Controls whether we should propose to choose path.
     
    173173    ulong selectedEditionIndex() const;
    174174
    175     /** Holds the current family ID list. */
    176     QStringList  m_familyIDs;
    177 
    178     /** Holds the current type cache. */
    179     QMap<QString, QList<UIGuestOSType> >  m_types;
    180 
    181     /** Holds the VM OS type ID. */
    182     QString  m_strTypeId;
    183     /** Holds the VM OS family ID. */
    184     QString  m_strFamilyId;
    185 
    186     /** Holds the currently chosen OS type IDs on per-family basis. */
    187     QMap<QString, QString>  m_currentIds;
    188 
    189     /** Holds whether we should propose to choose a name. */
    190     bool  m_fChooseName;
    191     /** Holds whether we should propose to choose a path. */
    192     bool  m_fChoosePath;
    193     /** Holds whether we should propose to choose an image. */
    194     bool  m_fChooseImage;
    195     /** Holds whether we should propose to choose an edition. */
    196     bool  m_fChooseEdition;
    197     /** Holds whether we should propose to choose a type. */
    198     bool  m_fChooseType;
    199     /** Holds whether host supports hardware virtualization. */
    200     bool  m_fSupportsHWVirtEx;
    201     /** Holds whether host supports long mode. */
    202     bool  m_fSupportsLongMode;
    203 
    204     /** Holds the main layout instance. */
    205     QGridLayout *m_pLayout;
    206 
    207     /** Holds the VM name label instance. */
    208     QLabel *m_pLabelName;
    209     /** Holds the VM path label instance. */
    210     QLabel *m_pLabelPath;
    211     /** Holds the ISO image label instance. */
    212     QLabel *m_pLabelImage;
    213     /** Holds the edition label instance. */
    214     QLabel *m_pLabelEdition;
    215     /** Holds the VM OS family label instance. */
    216     QLabel *m_pLabelFamily;
    217     /** Holds the VM OS type label instance. */
    218     QLabel *m_pLabelType;
    219     /** Holds the VM OS type icon instance. */
    220     QLabel *m_pIconType;
    221 
    222     /** Holds the VM name editor instance. */
    223     QILineEdit         *m_pEditorName;
    224     /** Holds the VM path editor instance. */
    225     UIFilePathSelector *m_pSelectorPath;
    226     /** Holds the file selector for ISO image (either for unattended install or to be attached to vm). */
    227     UIFilePathSelector *m_pSelectorImage;
    228     /** Holds the VM OS edition combo (currently only Windows ISO have this). */
    229     QComboBox          *m_pComboEdition;
    230     /** Holds the VM OS family combo instance. */
    231     QComboBox          *m_pComboFamily;
    232     /** Holds the VM OS type combo instance. */
    233     QComboBox          *m_pComboType;
     175    /** @name Arguments
     176     * @{ */
     177        /** Holds whether we should propose to choose a name. */
     178        bool  m_fChooseName;
     179        /** Holds whether we should propose to choose a path. */
     180        bool  m_fChoosePath;
     181        /** Holds whether we should propose to choose an image. */
     182        bool  m_fChooseImage;
     183        /** Holds whether we should propose to choose an edition. */
     184        bool  m_fChooseEdition;
     185        /** Holds whether we should propose to choose a type. */
     186        bool  m_fChooseType;
     187    /** @} */
     188
     189    /** @name Options
     190     * @{ */
     191        /** Holds whether host supports hardware virtualization. */
     192        bool  m_fSupportsHWVirtEx;
     193        /** Holds whether host supports long mode. */
     194        bool  m_fSupportsLongMode;
     195    /** @} */
     196
     197    /** @name Values
     198     * @{ */
     199        /** Holds the current family ID list. */
     200        QStringList  m_familyIDs;
     201
     202        /** Holds the current type cache. */
     203        QMap<QString, QList<UIGuestOSType> >  m_types;
     204
     205        /** Holds the VM OS type ID. */
     206        QString  m_strTypeId;
     207        /** Holds the VM OS family ID. */
     208        QString  m_strFamilyId;
     209
     210        /** Holds the currently chosen OS type IDs on per-family basis. */
     211        QMap<QString, QString>  m_currentIds;
     212    /** @} */
     213
     214    /** @name Widgets
     215     * @{ */
     216        /** Holds the main layout instance. */
     217        QGridLayout *m_pLayout;
     218
     219        /** Holds the VM name label instance. */
     220        QLabel *m_pLabelName;
     221        /** Holds the VM path label instance. */
     222        QLabel *m_pLabelPath;
     223        /** Holds the ISO image label instance. */
     224        QLabel *m_pLabelImage;
     225        /** Holds the edition label instance. */
     226        QLabel *m_pLabelEdition;
     227        /** Holds the VM OS family label instance. */
     228        QLabel *m_pLabelFamily;
     229        /** Holds the VM OS type label instance. */
     230        QLabel *m_pLabelType;
     231        /** Holds the VM OS type icon instance. */
     232        QLabel *m_pIconType;
     233
     234        /** Holds the VM name editor instance. */
     235        QILineEdit         *m_pEditorName;
     236        /** Holds the VM path editor instance. */
     237        UIFilePathSelector *m_pSelectorPath;
     238        /** Holds the file selector for ISO image (either for unattended install or to be attached to vm). */
     239        UIFilePathSelector *m_pSelectorImage;
     240        /** Holds the VM OS edition combo (currently only Windows ISO have this). */
     241        QComboBox          *m_pComboEdition;
     242        /** Holds the VM OS family combo instance. */
     243        QComboBox          *m_pComboFamily;
     244        /** Holds the VM OS type combo instance. */
     245        QComboBox          *m_pComboType;
     246    /** @} */
    234247};
    235248
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette