VirtualBox

Ignore:
Timestamp:
Jul 3, 2008 5:09:23 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32709
Message:

Fe/Qt4: New VM&Global settings api based on one default class (+ui).
One interface for both Settings dialog & one interface for settings pages.

File:
1 edited

Legend:

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

    r9951 r10167  
    2424#define __VBoxVMSettingsNetwork_h__
    2525
     26#include "VBoxSettingsPage.h"
    2627#include "VBoxVMSettingsNetwork.gen.h"
    27 #include "QIWithRetranslateUI.h"
    2828#include "COMDefs.h"
    2929
    30 class QIWidgetValidator;
    31 class VBoxVMSettingsDlg;
    3230#ifdef Q_WS_WIN
    3331class QTreeWidget;
     
    5452
    5553    void setValidator (QIWidgetValidator *aValidator);
     54
     55    QWidget* setOrderAfter (QWidget *aAfter);
     56
    5657    void setNetworksList (const QStringList &aList);
    5758
     
    133134 * QWidget sub-class which represents network settings page itself.
    134135 */
    135 class VBoxVMSettingsNetworkPage : public QIWithRetranslateUI<QWidget>
     136class VBoxVMSettingsNetworkPage : public VBoxSettingsPage
    136137{
    137138    Q_OBJECT;
     
    139140public:
    140141
    141     static void getFromMachine (const CMachine &aMachine,
    142                                 QWidget *aPage,
    143                                 VBoxVMSettingsDlg *aDlg,
    144                                 const QString &aPath);
    145     static void putBackToMachine();
    146     static bool revalidate (QString &aWarning, QString &aTitle);
     142    VBoxVMSettingsNetworkPage();
    147143
    148 protected slots:
     144protected:
     145
     146    void getFrom (const CMachine &aMachine);
     147    void putBackTo();
     148
     149    void setValidator (QIWidgetValidator *aVal);
     150    bool revalidate (QString &aWarning, QString &aTitle);
     151
     152    void retranslateUi();
     153
     154private slots:
    149155
    150156    void updateNetworksList();
     
    154160#endif
    155161
    156 protected:
    157 
    158     VBoxVMSettingsNetworkPage (QWidget *aParent);
    159 
    160     void getFrom (const CMachine &aMachine,
    161                   VBoxVMSettingsDlg *aDlg,
    162                   const QString &aPath);
    163     void putBackTo();
    164     bool validate (QString &aWarning, QString &aTitle);
    165 
    166     void retranslateUi();
     162private:
    167163
    168164    void populateNetworksList();
    169 
    170     static VBoxVMSettingsNetworkPage *mSettings;
    171165
    172166    /* Widgets */
     
    175169    VBoxNIList *mNIList;
    176170#endif
     171
     172    /* Widget Validator*/
     173    QIWidgetValidator *mValidator;
    177174
    178175    /* Lists */
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