summaryrefslogtreecommitdiff
path: root/noncore/tools/formatter/formatter.h
Side-by-side diff
Diffstat (limited to 'noncore/tools/formatter/formatter.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/formatter/formatter.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/tools/formatter/formatter.h b/noncore/tools/formatter/formatter.h
new file mode 100644
index 0000000..a566ec0
--- a/dev/null
+++ b/noncore/tools/formatter/formatter.h
@@ -0,0 +1,59 @@
+/****************************************************************************
+** formatter.h
+**
+** Copyright: Thu Apr 11 11:01:01 2002
+** by: L.J. Potter
+**
+****************************************************************************/
+
+#ifndef FORMATTERAPP_H
+#define FORMATTERAPP_H
+
+#include <qvariant.h>
+//#include <qdialog.h>
+#include <qmainwindow.h>
+
+class QVBoxLayout;
+class QHBoxLayout;
+class QGridLayout;
+class QComboBox;
+class QLabel;
+class QLineEdit;
+class QPushButton;
+class QTabWidget;
+class QWidget;
+class QStringList;
+
+class FormatterApp : public QMainWindow
+//public QDialog
+{
+ Q_OBJECT
+
+public:
+ FormatterApp( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
+ ~FormatterApp();
+
+ QTabWidget *TabWidget;
+ QWidget *tab, *tab_2;;
+ QLabel *TextLabel1, *TextLabel2, *TextLabel3, *TextLabel4, *TextLabel5;
+ QComboBox *storageComboBox, *fileSystemsCombo, *deviceComboBox;
+ QPushButton *formatPushButton, *editPushButton, *fsckButton;
+ QLineEdit* mountPointLineEdit;
+ QStringList fileSystemTypeList, fsList;
+protected:
+ QGridLayout *FormatterAppLayout, *tabLayout, *tabLayout_2;
+ QString getFileSystemType(const QString &);
+
+protected slots:
+ void doFormat();
+ void fillCombos();
+ void cleanUp();
+ void fsComboSelected(int);
+ void storageComboSelected(int );
+ void deviceComboSelected(int );
+ void editFstab();
+ void parsetab();
+ void doFsck();
+};
+
+#endif // FORMATTERAPP_H