Changeset 10742 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include
- Timestamp:
- Jul 18, 2008 10:12:28 AM (16 years ago)
- 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 27 27 #include "VBoxVMSettingsSF.gen.h" 28 28 29 #include <QDialog>30 31 29 class SFTreeViewItem; 32 class QIDialogButtonBox;33 34 class QLineEdit;35 class QPushButton;36 class QCheckBox;37 30 38 31 enum SFDialogType … … 118 111 }; 119 112 120 class VBoxAddSFDialog : public QIWithRetranslateUI<QDialog>121 {122 Q_OBJECT;123 124 public:125 126 enum DialogType127 {128 AddDialogType,129 EditDialogType130 };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 173 113 #endif // __VBoxVMSettingsSF_h__ 174 114
Note:
See TracChangeset
for help on using the changeset viewer.