Diffstat (limited to 'noncore/tools/formatter/formatter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/formatter/formatter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/tools/formatter/formatter.h b/noncore/tools/formatter/formatter.h index 960a68a..faf0b30 100644 --- a/noncore/tools/formatter/formatter.h +++ b/noncore/tools/formatter/formatter.h | |||
@@ -9,49 +9,50 @@ | |||
9 | #ifndef FORMATTERAPP_H | 9 | #ifndef FORMATTERAPP_H |
10 | #define FORMATTERAPP_H | 10 | #define FORMATTERAPP_H |
11 | 11 | ||
12 | #include <qvariant.h> | 12 | #include <qvariant.h> |
13 | //#include <qdialog.h> | 13 | //#include <qdialog.h> |
14 | #include <qmainwindow.h> | 14 | #include <qmainwindow.h> |
15 | 15 | ||
16 | class QVBoxLayout; | 16 | class QVBoxLayout; |
17 | class QHBoxLayout; | 17 | class QHBoxLayout; |
18 | class QGridLayout; | 18 | class QGridLayout; |
19 | class QComboBox; | 19 | class QComboBox; |
20 | class QLabel; | 20 | class QLabel; |
21 | class QLineEdit; | 21 | class QLineEdit; |
22 | class QPushButton; | 22 | class QPushButton; |
23 | class QTabWidget; | 23 | class QTabWidget; |
24 | class QWidget; | 24 | class QWidget; |
25 | class QStringList; | 25 | class QStringList; |
26 | 26 | ||
27 | class FormatterApp : public QMainWindow | 27 | class FormatterApp : public QMainWindow |
28 | //public QDialog | 28 | //public QDialog |
29 | { | 29 | { |
30 | Q_OBJECT | 30 | Q_OBJECT |
31 | 31 | ||
32 | public: | 32 | public: |
33 | FormatterApp( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | 33 | static QString appName() { return QString::fromLatin1("formatter"); } |
34 | FormatterApp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0, bool modal = FALSE ); | ||
34 | ~FormatterApp(); | 35 | ~FormatterApp(); |
35 | 36 | ||
36 | QTabWidget *TabWidget; | 37 | QTabWidget *TabWidget; |
37 | QWidget *tab, *tab_2;; | 38 | QWidget *tab, *tab_2;; |
38 | QLabel *TextLabel1, *TextLabel2, *TextLabel3, *TextLabel4, *TextLabel5; | 39 | QLabel *TextLabel1, *TextLabel2, *TextLabel3, *TextLabel4, *TextLabel5; |
39 | QComboBox *storageComboBox, *fileSystemsCombo, *deviceComboBox; | 40 | QComboBox *storageComboBox, *fileSystemsCombo, *deviceComboBox; |
40 | QPushButton *formatPushButton, *editPushButton, *fsckButton; | 41 | QPushButton *formatPushButton, *editPushButton, *fsckButton; |
41 | QLineEdit* mountPointLineEdit; | 42 | QLineEdit* mountPointLineEdit; |
42 | QStringList fileSystemTypeList, fsList, deviceList; | 43 | QStringList fileSystemTypeList, fsList, deviceList; |
43 | protected: | 44 | protected: |
44 | QGridLayout *FormatterAppLayout, *tabLayout, *tabLayout_2; | 45 | QGridLayout *FormatterAppLayout, *tabLayout, *tabLayout_2; |
45 | QString getFileSystemType(const QString &); | 46 | QString getFileSystemType(const QString &); |
46 | 47 | ||
47 | void fillCombos(); | 48 | void fillCombos(); |
48 | void parsetab(const QString &); | 49 | void parsetab(const QString &); |
49 | bool doFdisk(); | 50 | bool doFdisk(); |
50 | int formatCheck(const QString &); | 51 | int formatCheck(const QString &); |
51 | int runCommand(const QString &); | 52 | int runCommand(const QString &); |
52 | 53 | ||
53 | protected slots: | 54 | protected slots: |
54 | void cleanUp(); | 55 | void cleanUp(); |
55 | void doFormat(); | 56 | void doFormat(); |
56 | void editFstab(); | 57 | void editFstab(); |
57 | bool doFsck(); | 58 | bool doFsck(); |