VirtualBox

Ignore:
Timestamp:
Jul 3, 2008 5:09:23 PM (16 years ago)
Author:
vboxsync
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/VBoxVMSettingsGeneral.h

    r9751 r10167  
    2424#define __VBoxVMSettingsGeneral_h__
    2525
     26#include "VBoxSettingsPage.h"
    2627#include "VBoxVMSettingsGeneral.gen.h"
    27 #include "QIWithRetranslateUI.h"
    2828#include "COMDefs.h"
    2929
    30 class VBoxVMSettingsDlg;
    31 class QIWidgetValidator;
    32 
    33 class VBoxVMSettingsGeneral : public QIWithRetranslateUI<QWidget>,
     30class VBoxVMSettingsGeneral : public VBoxSettingsPage,
    3431                              public Ui::VBoxVMSettingsGeneral
    3532{
     
    3835public:
    3936
    40     VBoxVMSettingsGeneral (QWidget *aParent, VBoxVMSettingsDlg *aDlg,
    41                            const QString &aPath);
    42 
    43     static void getFromMachine (const CMachine &aMachine,
    44                                 QWidget *aPage,
    45                                 VBoxVMSettingsDlg *aDlg,
    46                                 const QString &aPath);
    47     static void putBackToMachine();
    48 
    49     void getFrom (const CMachine &aMachine);
    50     void putBackTo();
     37    VBoxVMSettingsGeneral();
    5138
    5239signals:
     
    5542
    5643protected:
     44
     45    void getFrom (const CMachine &aMachine);
     46    void putBackTo();
     47
     48    void setOrderAfter (QWidget *aWidget);
    5749
    5850    void retranslateUi();
     
    7870    void adjustBootOrderTWSize ();
    7971
    80     static VBoxVMSettingsGeneral *mSettings;
     72    bool eventFilter (QObject *aObject, QEvent *aEvent);
     73    void showEvent (QShowEvent *aEvent);
    8174
    82     bool eventFilter (QObject *aObject, QEvent *aEvent);
    83 
    84     QIWidgetValidator *mValidator;
    8575    CMachine mMachine;
    8676};
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