Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

FormatterApp Class Reference

#include </home/clem/local/src/opie/noncore/tools/formatter/formatter.h>

Collaboration diagram for FormatterApp:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FormatterApp (QWidget *parent=0, const char *name=0, WFlags fl=0, bool modal=FALSE)
 ~FormatterApp ()

Static Public Member Functions

static QString appName ()

Public Attributes

QTabWidget * TabWidget
QWidget * tab
QWidget * tab_2
QLabel * TextLabel1
QLabel * TextLabel2
QLabel * TextLabel3
QLabel * TextLabel4
QLabel * TextLabel5
QComboBox * storageComboBox
QComboBox * fileSystemsCombo
QComboBox * deviceComboBox
QPushButton * formatPushButton
QPushButton * editPushButton
QPushButton * fsckButton
QLineEdit * mountPointLineEdit
QStringList fileSystemTypeList
QStringList fsList
QStringList deviceList

Protected Slots

void cleanUp ()
void doFormat ()
void editFstab ()
bool doFsck ()
bool doFsckCheck ()
void fsComboSelected (int)
void storageComboSelected (int)
void deviceComboSelected (int)

Protected Member Functions

QString getFileSystemType (const QString &)
void fillCombos ()
void parsetab (const QString &)
bool doFdisk ()
int formatCheck (const QString &)
int runCommand (const QString &)

Protected Attributes

QGridLayout * FormatterAppLayout
QGridLayout * tabLayout
QGridLayout * tabLayout_2

Constructor & Destructor Documentation

FormatterApp::FormatterApp QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0,
bool  modal = FALSE
 

Definition at line 58 of file formatter.cpp.

References cleanUp(), deviceComboBox, deviceComboSelected(), doFormat(), doFsck(), editFstab(), editPushButton, FALSE, fileSystemsCombo, fillCombos(), formatPushButton, FormatterAppLayout, fsckButton, fsComboSelected(), mountPointLineEdit, qApp, storageComboBox, storageComboSelected(), tab, tab_2, tabLayout, tabLayout_2, TextLabel1, TextLabel2, TextLabel3, TextLabel4, TextLabel5, and tr.

FormatterApp::~FormatterApp  ) 
 

Definition at line 172 of file formatter.cpp.


Member Function Documentation

static QString FormatterApp::appName void   )  [inline, static]
 

Definition at line 33 of file formatter.h.

References QString::fromLatin1().

void FormatterApp::cleanUp  )  [protected, slot]
 

Definition at line 436 of file formatter.cpp.

Referenced by FormatterApp().

void FormatterApp::deviceComboSelected int   )  [protected, slot]
 

Definition at line 393 of file formatter.cpp.

References deviceComboBox, StorageInfo::fileSystems(), getFileSystemType(), mountPointLineEdit, mult(), name, Qt::RichText, QString::sprintf(), TextLabel5, and tr.

Referenced by fillCombos(), and FormatterApp().

bool FormatterApp::doFdisk  )  [protected]
 

Definition at line 337 of file formatter.cpp.

References FALSE.

void FormatterApp::doFormat  )  [protected, slot]
 

Definition at line 175 of file formatter.cpp.

References FALSE, fileSystemsCombo, QString::find(), QString::left(), QString::length(), odebug, oendl, Output::OutputEdit, qApp, QString::right(), QPEApplication::showDialog(), storageComboBox, text, tr, TRUE, and warning().

Referenced by FormatterApp().

bool FormatterApp::doFsck  )  [protected, slot]
 

Definition at line 516 of file formatter.cpp.

References deviceComboBox, FALSE, getFileSystemType(), QString::left(), QString::length(), mountPointLineEdit, odebug, oendl, Output::OutputEdit, qApp, QPEApplication::showDialog(), tr, TRUE, and warning().

Referenced by FormatterApp().

bool FormatterApp::doFsckCheck  )  [protected, slot]
 

Definition at line 617 of file formatter.cpp.

References FALSE.

void FormatterApp::editFstab  )  [protected, slot]
 

Definition at line 440 of file formatter.cpp.

Referenced by FormatterApp().

void FormatterApp::fillCombos  )  [protected]
 

Definition at line 343 of file formatter.cpp.

References deviceComboBox, deviceComboSelected(), deviceList, StorageInfo::fileSystems(), fileSystemsCombo, QString::find(), fsList, name, parsetab(), storageComboBox, storageComboSelected(), tr, and TRUE.

Referenced by FormatterApp().

int FormatterApp::formatCheck const QString  )  [protected]
 

Definition at line 623 of file formatter.cpp.

void FormatterApp::fsComboSelected int   )  [protected, slot]
 

Definition at line 371 of file formatter.cpp.

Referenced by FormatterApp().

QString FormatterApp::getFileSystemType const QString  )  [protected]
 

Definition at line 499 of file formatter.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), fileSystemTypeList, QString::find(), QString::length(), parsetab(), QString::right(), and TRUE.

Referenced by deviceComboSelected(), doFsck(), and storageComboSelected().

void FormatterApp::parsetab const QString  )  [protected]
 

Definition at line 446 of file formatter.cpp.

References QValueList< T >::clear(), QValueList< T >::contains(), deviceList, fileSystemTypeList, QString::find(), fsList, QString::latin1(), odebug, oendl, and TRUE.

Referenced by fillCombos(), and getFileSystemType().

int FormatterApp::runCommand const QString  )  [protected]
 

Definition at line 629 of file formatter.cpp.

void FormatterApp::storageComboSelected int   )  [protected, slot]
 

Definition at line 374 of file formatter.cpp.

References fileSystemsCombo, QString::find(), getFileSystemType(), i, QString::left(), QString::length(), QString::right(), storageComboBox, TextLabel4, tr, and TRUE.

Referenced by fillCombos(), and FormatterApp().


Member Data Documentation

QComboBox * FormatterApp::deviceComboBox
 

Definition at line 40 of file formatter.h.

Referenced by deviceComboSelected(), doFsck(), fillCombos(), and FormatterApp().

QStringList FormatterApp::deviceList
 

Definition at line 43 of file formatter.h.

Referenced by fillCombos(), and parsetab().

QPushButton * FormatterApp::editPushButton
 

Definition at line 41 of file formatter.h.

Referenced by FormatterApp().

QComboBox * FormatterApp::fileSystemsCombo
 

Definition at line 40 of file formatter.h.

Referenced by doFormat(), fillCombos(), FormatterApp(), and storageComboSelected().

QStringList FormatterApp::fileSystemTypeList
 

Definition at line 43 of file formatter.h.

Referenced by getFileSystemType(), and parsetab().

QPushButton* FormatterApp::formatPushButton
 

Definition at line 41 of file formatter.h.

Referenced by FormatterApp().

QGridLayout* FormatterApp::FormatterAppLayout [protected]
 

Definition at line 45 of file formatter.h.

Referenced by FormatterApp().

QPushButton * FormatterApp::fsckButton
 

Definition at line 41 of file formatter.h.

Referenced by FormatterApp().

QStringList FormatterApp::fsList
 

Definition at line 43 of file formatter.h.

Referenced by fillCombos(), and parsetab().

QLineEdit* FormatterApp::mountPointLineEdit
 

Definition at line 42 of file formatter.h.

Referenced by deviceComboSelected(), doFsck(), and FormatterApp().

QComboBox* FormatterApp::storageComboBox
 

Definition at line 40 of file formatter.h.

Referenced by doFormat(), fillCombos(), FormatterApp(), and storageComboSelected().

QWidget* FormatterApp::tab
 

Definition at line 38 of file formatter.h.

Referenced by FormatterApp().

QWidget * FormatterApp::tab_2
 

Definition at line 38 of file formatter.h.

Referenced by FormatterApp().

QGridLayout * FormatterApp::tabLayout [protected]
 

Definition at line 45 of file formatter.h.

Referenced by FormatterApp().

QGridLayout * FormatterApp::tabLayout_2 [protected]
 

Definition at line 45 of file formatter.h.

Referenced by FormatterApp().

QTabWidget* FormatterApp::TabWidget
 

Definition at line 37 of file formatter.h.

QLabel* FormatterApp::TextLabel1
 

Definition at line 38 of file formatter.h.

Referenced by FormatterApp().

QLabel * FormatterApp::TextLabel2
 

Definition at line 38 of file formatter.h.

Referenced by FormatterApp().

QLabel * FormatterApp::TextLabel3
 

Definition at line 38 of file formatter.h.

Referenced by FormatterApp().

QLabel * FormatterApp::TextLabel4
 

Definition at line 38 of file formatter.h.

Referenced by FormatterApp(), and storageComboSelected().

QLabel * FormatterApp::TextLabel5
 

Definition at line 38 of file formatter.h.

Referenced by deviceComboSelected(), and FormatterApp().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:33:14 2005 for OPIE by  doxygen 1.4.2