Changeset 18397 in vbox for trunk/src/VBox/Frontends/VirtualBox/include
- Timestamp:
- Mar 27, 2009 2:11:10 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45194
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFilePathSelectorWidget.h
r17714 r18397 24 24 #define __VBoxFilePathSelectorWidget_h__ 25 25 26 /* VBox includes */ 26 27 #include "QIWithRetranslateUI.h" 27 28 … … 29 30 #include <QComboBox> 30 31 32 /* VBox forward declarations */ 33 class QILabel; 34 35 /* Qt forward declarations */ 31 36 class QFileIconProvider; 32 37 class QAction; 38 class QPushButton; 39 40 //////////////////////////////////////////////////////////////////////////////// 41 // VBoxFilePathSelectorWidget 33 42 34 43 class VBoxFilePathSelectorWidget: public QIWithRetranslateUI<QComboBox> … … 121 130 }; 122 131 132 //////////////////////////////////////////////////////////////////////////////// 133 // VBoxEmptyFileSelector 134 135 class VBoxEmptyFileSelector: public QIWithRetranslateUI<QWidget> 136 { 137 Q_OBJECT; 138 139 public: 140 VBoxEmptyFileSelector (QWidget *aParent = NULL); 141 142 void setPath (const QString& aPath); 143 QString path() const; 144 145 bool isModified () const { return mIsModified; } 146 void resetModified () { mIsModified = false; } 147 148 void setFileDialogTitle (const QString& aTitle); 149 QString fileDialogTitle() const; 150 151 void setFileFilters (const QString& aFilters); 152 QString fileFilters() const; 153 154 void setHomeDir (const QString& aDir); 155 QString homeDir() const; 156 157 signals: 158 void pathChanged (QString); 159 160 protected: 161 void retranslateUi(); 162 163 private slots: 164 void choose(); 165 166 private: 167 /* Private member vars */ 168 QILabel *mLabel; 169 QPushButton *mSelectButton; 170 QString mFileDialogTitle; 171 QString mFileFilters; 172 QString mHomeDir; 173 bool mIsModified; 174 QString mPath; 175 }; 176 123 177 #endif /* __VBoxFilePathSelectorWidget_h__ */ 124 178
Note:
See TracChangeset
for help on using the changeset viewer.