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.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 @@
#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 );
+ static QString appName() { return QString::fromLatin1("formatter"); }
+ FormatterApp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0, bool modal = FALSE );
~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, deviceList;
protected:
QGridLayout *FormatterAppLayout, *tabLayout, *tabLayout_2;
QString getFileSystemType(const QString &);
void fillCombos();
void parsetab(const QString &);
bool doFdisk();
int formatCheck(const QString &);
int runCommand(const QString &);
protected slots:
void cleanUp();
void doFormat();
void editFstab();
bool doFsck();