VirtualBox

Ignore:
Timestamp:
Jul 18, 2008 10:12:28 AM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: SF folder details (add/edit) face lift.

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

Legend:

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

    r10167 r10742  
    2727#include "VBoxVMSettingsSF.gen.h"
    2828
    29 #include <QDialog>
    30 
    3129class SFTreeViewItem;
    32 class QIDialogButtonBox;
    33 
    34 class QLineEdit;
    35 class QPushButton;
    36 class QCheckBox;
    3730
    3831enum SFDialogType
     
    118111};
    119112
    120 class VBoxAddSFDialog : public QIWithRetranslateUI<QDialog>
    121 {
    122     Q_OBJECT;
    123 
    124 public:
    125 
    126     enum DialogType
    127     {
    128         AddDialogType,
    129         EditDialogType
    130     };
    131 
    132     VBoxAddSFDialog (VBoxVMSettingsSF *aParent,
    133                      VBoxAddSFDialog::DialogType aType,
    134                      bool aEnableSelector /* for "permanent" checkbox */,
    135                      const SFoldersNameList &aUsedNames);
    136    ~VBoxAddSFDialog() {}
    137 
    138     QString getPath();
    139     QString getName();
    140     bool getPermanent();
    141     bool getWritable();
    142 
    143     void setPath (const QString &aPath);
    144     void setName (const QString &aName);
    145     void setPermanent (bool aPermanent);
    146     void setWritable (bool aWritable);
    147 
    148 protected:
    149 
    150     void retranslateUi();
    151 
    152 private slots:
    153 
    154     void validate();
    155     void showFileDialog();
    156 
    157 private:
    158 
    159     void showEvent (QShowEvent *aEvent);
    160 
    161     VBoxAddSFDialog::DialogType  mType;
    162     QIDialogButtonBox           *mButtonBox;
    163     QLabel                      *mLbPath;
    164     QLineEdit                   *mLePath;
    165     QToolButton                 *mTbPath;
    166     QLabel                      *mLbName;
    167     QLineEdit                   *mLeName;
    168     QCheckBox                   *mCbPermanent;
    169     QCheckBox                   *mCbReadonly;
    170     SFoldersNameList             mUsedNames;
    171 };
    172 
    173113#endif // __VBoxVMSettingsSF_h__
    174114
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