VirtualBox

Ignore:
Timestamp:
Jul 10, 2008 1:16:45 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33141
Message:

FE/Qt4: Added an interface class for the settings selector. Implemented the
classical tree view approach.

Location:
trunk/src/VBox/Frontends/VirtualBox4/include
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsDialog.h

    r10212 r10468  
    3030class VBoxWarnIconLabel;
    3131class QIWidgetValidator;
     32class VBoxSettingsSelector;
    3233class QTimer;
    3334class QStackedWidget;
     
    4445public:
    4546
    46     VBoxSettingsDialog (QWidget *aParent);
     47    VBoxSettingsDialog (QWidget *aParent = NULL);
    4748
    4849    virtual void getFrom() = 0;
     
    5253
    5354    virtual void revalidate (QIWidgetValidator * /* aWval */) {}
    54     void settingsGroupChanged (QTreeWidgetItem *aItem,
    55                                QTreeWidgetItem *aPrev = 0);
    5655
    5756protected:
    5857
    59     static QTreeWidgetItem* findItem (QTreeWidget *aView,
    60                                       const QString &aMatch,
    61                                       int aColumn);
    62 
    6358    virtual void retranslateUi();
    6459
    65     QString pagePath (QWidget *aPage);
    6660    void setWarning (const QString &aWarning);
    6761
     62    VBoxSettingsSelector *mSelector;
    6863    QStackedWidget *mStack;
    6964
     
    7368    void updateWhatsThis (bool aGotFocus = false);
    7469    void whatsThisCandidateDestroyed (QObject *aObj = 0);
     70
     71    void categoryChanged (int aId);
    7572
    7673private:
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsDialogSpecific.h

    r10212 r10468  
    4040public:
    4141
     42    enum GLSettingsPageIds
     43    {
     44        GeneralId = 0,
     45        InputId,
     46        LanguageId,
     47        USBId
     48    };
     49
    4250    VBoxGLSettingsDlg (QWidget *aParent);
    4351
     
    6472
    6573public:
     74
     75    enum VMSettingsPageIds
     76    {
     77        GeneralId = 0,
     78        HDId,
     79        CDId,
     80        FDId,
     81        AudioId,
     82        NetworkId,
     83        SerialId,
     84        ParallelId,
     85        USBId,
     86        SFId,
     87        VRDPId
     88    };
    6689
    6790    VBoxVMSettingsDlg (QWidget *aParent, const CMachine &aMachine,
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsPage.h

    r10212 r10468  
    6262    QWidget *mFirstWidget;
    6363};
     64
    6465#endif // __VBoxSettingsPage_h__
    6566
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxSettingsUtils.h

    r10167 r10468  
    2626#include <VBoxGlobal.h>
    2727
     28/* Qt includes */
    2829#ifdef Q_WS_WIN
    2930#include <QDialog>
     
    4041enum
    4142{
    42     /* mTwSelector column numbers */
    43     treeWidget_Category = 0,
    44     treeWidget_Id = 1,
    45     treeWidget_Link = 2,
    46 
    4743    /* mTwUSBFilters column numbers */
    4844    twUSBFilters_Name = 0,
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