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/VBoxVMSettingsParallel.h

    r9751 r10167  
    2424#define __VBoxVMSettingsParallel_h__
    2525
     26#include "VBoxSettingsPage.h"
    2627#include "VBoxVMSettingsParallel.gen.h"
    27 #include "QIWithRetranslateUI.h"
    2828#include "COMDefs.h"
    29 
    30 class VBoxVMSettingsDlg;
    3129
    3230class VBoxVMSettingsParallel : public QIWithRetranslateUI<QWidget>,
     
    3735public:
    3836
    39     VBoxVMSettingsParallel (QWidget *aParent = NULL);
     37    VBoxVMSettingsParallel();
    4038
    41     static void getFromMachine (const CMachine &aMachine,
    42                                 QWidget *aPage,
    43                                 VBoxVMSettingsDlg *aDlg,
    44                                 const QString &aPath);
     39    void getFromPort (const CParallelPort &aPort);
     40    void putBackToPort();
    4541
    46     static void putBackToMachine();
     42    void setValidator (QIWidgetValidator *aVal);
    4743
    48     static bool revalidate (QString &aWarning, QString &aTitle);
     44    QWidget* setOrderAfter (QWidget *aAfter);
     45
     46    QString pageTitle() const;
     47    bool isUserDefined();
    4948
    5049protected:
     
    5958private:
    6059
    61     void getFromPort (const CParallelPort &aPort);
    62     void putBackToPort();
    63     bool isUserDefined();
     60    QIWidgetValidator *mValidator;
     61    CParallelPort mPort;
     62};
    6463
    65     QString pageTitle() const;
     64class VBoxVMSettingsParallelPage : public VBoxSettingsPage
     65{
     66    Q_OBJECT;
    6667
    67     static QTabWidget *mTabWidget;
     68public:
    6869
    69     CParallelPort mPort;
     70    VBoxVMSettingsParallelPage();
     71
     72protected:
     73
     74    void getFrom (const CMachine &aMachine);
     75    void putBackTo();
     76
     77    void setValidator (QIWidgetValidator *aVal);
     78    bool revalidate (QString &aWarning, QString &aTitle);
     79
     80    void retranslateUi();
     81
     82private:
     83
     84    QIWidgetValidator *mValidator;
     85    QTabWidget *mTabWidget;
    7086};
    7187
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