-rw-r--r-- | noncore/tools/formatter/formatter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/tools/formatter/formatter.cpp b/noncore/tools/formatter/formatter.cpp index 642196e..2b8cca2 100644 --- a/noncore/tools/formatter/formatter.cpp +++ b/noncore/tools/formatter/formatter.cpp | |||
@@ -1,91 +1,90 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** formatter.cpp | 2 | ** formatter.cpp |
3 | ** | 3 | ** |
4 | ** Copyright: Thu Apr 11 11:01:13 2002 | 4 | ** Copyright: Thu Apr 11 11:01:13 2002 |
5 | ** by: L. J. Potter | 5 | ** by: L. J. Potter |
6 | ** | 6 | ** |
7 | ****************************************************************************/ | 7 | ****************************************************************************/ |
8 | 8 | ||
9 | #include "formatter.h" | 9 | #include "formatter.h" |
10 | #include "inputDialog.h" | 10 | #include "inputDialog.h" |
11 | #include "output.h" | 11 | #include "output.h" |
12 | 12 | ||
13 | /* OPIE */ | 13 | /* OPIE */ |
14 | #include <opie2/odebug.h> | 14 | #include <opie2/odebug.h> |
15 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
16 | #include <qpe/resource.h> | ||
17 | #include <qpe/config.h> | 16 | #include <qpe/config.h> |
18 | #include <qpe/mimetype.h> | 17 | #include <qpe/mimetype.h> |
19 | #include <qpe/qcopenvelope_qws.h> | 18 | #include <qpe/qcopenvelope_qws.h> |
20 | #include <qpe/storage.h> | 19 | #include <qpe/storage.h> |
21 | using namespace Opie::Core; | 20 | using namespace Opie::Core; |
22 | 21 | ||
23 | /* QT */ | 22 | /* QT */ |
24 | #include <qmenubar.h> | 23 | #include <qmenubar.h> |
25 | #include <qmultilineedit.h> | 24 | #include <qmultilineedit.h> |
26 | #include <qstring.h> | 25 | #include <qstring.h> |
27 | #include <qlist.h> | 26 | #include <qlist.h> |
28 | #include <qstringlist.h> | 27 | #include <qstringlist.h> |
29 | #include <qdir.h> | 28 | #include <qdir.h> |
30 | #include <qfile.h> | 29 | #include <qfile.h> |
31 | #include <qtstream.h> | 30 | #include <qtstream.h> |
32 | #include <qcombobox.h> | 31 | #include <qcombobox.h> |
33 | #include <qpopupmenu.h> | 32 | #include <qpopupmenu.h> |
34 | #include <qmessagebox.h> | 33 | #include <qmessagebox.h> |
35 | #include <qregexp.h> | 34 | #include <qregexp.h> |
36 | #include <qlabel.h> | 35 | #include <qlabel.h> |
37 | #include <qlineedit.h> | 36 | #include <qlineedit.h> |
38 | #include <qpushbutton.h> | 37 | #include <qpushbutton.h> |
39 | #include <qtoolbar.h> | 38 | #include <qtoolbar.h> |
40 | #include <qtabwidget.h> | 39 | #include <qtabwidget.h> |
41 | #include <qwidget.h> | 40 | #include <qwidget.h> |
42 | #include <qlayout.h> | 41 | #include <qlayout.h> |
43 | #include <qvariant.h> | 42 | #include <qvariant.h> |
44 | 43 | ||
45 | /* STD */ | 44 | /* STD */ |
46 | #include <unistd.h> | 45 | #include <unistd.h> |
47 | #include <stdio.h> | 46 | #include <stdio.h> |
48 | #include <stdlib.h> | 47 | #include <stdlib.h> |
49 | #include <sys/vfs.h> | 48 | #include <sys/vfs.h> |
50 | #include <mntent.h> | 49 | #include <mntent.h> |
51 | #include <string.h> | 50 | #include <string.h> |
52 | #include <errno.h> | 51 | #include <errno.h> |
53 | 52 | ||
54 | #define BLANK ' ' | 53 | #define BLANK ' ' |
55 | #define DELIMITER '#' | 54 | #define DELIMITER '#' |
56 | 55 | ||
57 | /* | 56 | /* |
58 | Blah blah blah blah */ | 57 | Blah blah blah blah */ |
59 | FormatterApp::FormatterApp( QWidget* parent, const char* name, WFlags fl, bool modal ) | 58 | FormatterApp::FormatterApp( QWidget* parent, const char* name, WFlags fl, bool /*modal*/ ) |
60 | : QMainWindow( parent, name, fl ) | 59 | : QMainWindow( parent, name, fl ) |
61 | // : QDialog( parent, name, modal, fl ) | 60 | // : QDialog( parent, name, modal, fl ) |
62 | { | 61 | { |
63 | if ( !name ) | 62 | if ( !name ) |
64 | setName( "FormatterApp" ); | 63 | setName( "FormatterApp" ); |
65 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 64 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
66 | 65 | ||
67 | setCaption( tr( "Formatter" ) ); | 66 | setCaption( tr( "Formatter" ) ); |
68 | FormatterAppLayout = new QGridLayout( this ); | 67 | FormatterAppLayout = new QGridLayout( this ); |
69 | FormatterAppLayout->setSpacing( 2); | 68 | FormatterAppLayout->setSpacing( 2); |
70 | FormatterAppLayout->setMargin( 2 ); | 69 | FormatterAppLayout->setMargin( 2 ); |
71 | 70 | ||
72 | TabWidget = new QTabWidget( this, "TabWidget" ); | 71 | TabWidget = new QTabWidget( this, "TabWidget" ); |
73 | 72 | ||
74 | tab = new QWidget( TabWidget, "tab" ); | 73 | tab = new QWidget( TabWidget, "tab" ); |
75 | tabLayout = new QGridLayout( tab ); | 74 | tabLayout = new QGridLayout( tab ); |
76 | tabLayout->setSpacing( 3); | 75 | tabLayout->setSpacing( 3); |
77 | tabLayout->setMargin( 2); | 76 | tabLayout->setMargin( 2); |
78 | 77 | ||
79 | storageComboBox = new QComboBox( FALSE, tab, "storageComboBox" ); | 78 | storageComboBox = new QComboBox( FALSE, tab, "storageComboBox" ); |
80 | storageComboBox->setMaximumWidth(220); | 79 | storageComboBox->setMaximumWidth(220); |
81 | 80 | ||
82 | tabLayout->addMultiCellWidget( storageComboBox, 0, 0, 0, 1); | 81 | tabLayout->addMultiCellWidget( storageComboBox, 0, 0, 0, 1); |
83 | 82 | ||
84 | TextLabel4 = new QLabel( tab, "TextLabel4" ); | 83 | TextLabel4 = new QLabel( tab, "TextLabel4" ); |
85 | TextLabel4->setText( tr( "Storage Type" ) ); | 84 | TextLabel4->setText( tr( "Storage Type" ) ); |
86 | 85 | ||
87 | tabLayout->addMultiCellWidget( TextLabel4, 1, 1, 0, 1); | 86 | tabLayout->addMultiCellWidget( TextLabel4, 1, 1, 0, 1); |
88 | 87 | ||
89 | TextLabel2 = new QLabel( tab, "TextLabel2" ); | 88 | TextLabel2 = new QLabel( tab, "TextLabel2" ); |
90 | TextLabel2->setText( tr( "File Systems" ) ); | 89 | TextLabel2->setText( tr( "File Systems" ) ); |
91 | 90 | ||