summaryrefslogtreecommitdiff
path: root/noncore/tools/formatter/formatter.h
Unidiff
Diffstat (limited to 'noncore/tools/formatter/formatter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/formatter/formatter.h3
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
16class QVBoxLayout; 16class QVBoxLayout;
17class QHBoxLayout; 17class QHBoxLayout;
18class QGridLayout; 18class QGridLayout;
19class QComboBox; 19class QComboBox;
20class QLabel; 20class QLabel;
21class QLineEdit; 21class QLineEdit;
22class QPushButton; 22class QPushButton;
23class QTabWidget; 23class QTabWidget;
24class QWidget; 24class QWidget;
25class QStringList; 25class QStringList;
26 26
27class FormatterApp : public QMainWindow 27class FormatterApp : public QMainWindow
28//public QDialog 28//public QDialog
29{ 29{
30 Q_OBJECT 30 Q_OBJECT
31 31
32public: 32public:
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;
43protected: 44protected:
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
53protected slots: 54protected 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();