summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/formatter/formatter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/tools/formatter/formatter.cpp b/noncore/tools/formatter/formatter.cpp
index 79a7f9e..cca0c26 100644
--- a/noncore/tools/formatter/formatter.cpp
+++ b/noncore/tools/formatter/formatter.cpp
@@ -1,125 +1,124 @@
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#include <qpe/qpemenubar.h> 13#include <qpe/qpemenubar.h>
14#include <qpe/qpetoolbar.h> 14#include <qpe/qpetoolbar.h>
15#include <qpe/qpeapplication.h> 15#include <qpe/qpeapplication.h>
16#include <qpe/resource.h> 16#include <qpe/resource.h>
17#include <qpe/config.h> 17#include <qpe/config.h>
18#include <qpe/mimetype.h> 18#include <qpe/mimetype.h>
19#include <qpe/qcopenvelope_qws.h> 19#include <qpe/qcopenvelope_qws.h>
20#include <qpe/storage.h> 20#include <qpe/storage.h>
21 21
22#include <qmultilineedit.h> 22#include <qmultilineedit.h>
23#include <qstring.h> 23#include <qstring.h>
24#include <qlist.h>
25#include <qstringlist.h> 24#include <qstringlist.h>
26#include <qdir.h> 25#include <qdir.h>
27#include <qfile.h> 26#include <qfile.h>
28 27
29#include <qtstream.h> 28#include <qtextstream.h>
30 29
31#include <qcombobox.h> 30#include <qcombobox.h>
32#include <qpopupmenu.h> 31#include <qpopupmenu.h>
33#include <qmessagebox.h> 32#include <qmessagebox.h>
34#include <qregexp.h> 33#include <qregexp.h>
35 34
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 <qtabwidget.h> 38#include <qtabwidget.h>
40#include <qwidget.h> 39#include <qwidget.h>
41#include <qlayout.h> 40#include <qlayout.h>
42#include <qvariant.h> 41#include <qvariant.h>
43 42
44#include <unistd.h> 43#include <unistd.h>
45#include <stdio.h> 44#include <stdio.h>
46#include <stdlib.h> 45#include <stdlib.h>
47#include <sys/vfs.h> 46#include <sys/vfs.h>
48#include <mntent.h> 47#include <mntent.h>
49#include <string.h> 48#include <string.h>
50#include <errno.h> 49#include <errno.h>
51 50
52#define BLANK ' ' 51#define BLANK ' '
53#define DELIMITER '#' 52#define DELIMITER '#'
54 53
55/* 54/*
56 Blah blah blah blah */ 55 Blah blah blah blah */
57FormatterApp::FormatterApp( QWidget* parent, const char* name, bool modal, WFlags fl ) 56FormatterApp::FormatterApp( QWidget* parent, const char* name, bool modal, WFlags fl )
58 : QMainWindow( parent, name, fl ) 57 : QMainWindow( parent, name, fl )
59// : QDialog( parent, name, modal, fl ) 58// : QDialog( parent, name, modal, fl )
60{ 59{
61 if ( !name ) 60 if ( !name )
62 setName( "FormatterApp" ); 61 setName( "FormatterApp" );
63 connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); 62 connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) );
64 63
65 setCaption( tr( "Formatter" ) ); 64 setCaption( tr( "Formatter" ) );
66 FormatterAppLayout = new QGridLayout( this ); 65 FormatterAppLayout = new QGridLayout( this );
67 FormatterAppLayout->setSpacing( 2); 66 FormatterAppLayout->setSpacing( 2);
68 FormatterAppLayout->setMargin( 2 ); 67 FormatterAppLayout->setMargin( 2 );
69 68
70 TabWidget = new QTabWidget( this, "TabWidget" ); 69 TabWidget = new QTabWidget( this, "TabWidget" );
71 70
72 tab = new QWidget( TabWidget, "tab" ); 71 tab = new QWidget( TabWidget, "tab" );
73 tabLayout = new QGridLayout( tab ); 72 tabLayout = new QGridLayout( tab );
74 tabLayout->setSpacing( 3); 73 tabLayout->setSpacing( 3);
75 tabLayout->setMargin( 2); 74 tabLayout->setMargin( 2);
76 75
77 storageComboBox = new QComboBox( FALSE, tab, "storageComboBox" ); 76 storageComboBox = new QComboBox( FALSE, tab, "storageComboBox" );
78 storageComboBox->setMaximumWidth(220); 77 storageComboBox->setMaximumWidth(220);
79 78
80 tabLayout->addMultiCellWidget( storageComboBox, 0, 0, 0, 1); 79 tabLayout->addMultiCellWidget( storageComboBox, 0, 0, 0, 1);
81 80
82 TextLabel4 = new QLabel( tab, "TextLabel4" ); 81 TextLabel4 = new QLabel( tab, "TextLabel4" );
83 TextLabel4->setText( tr( "Storage Type" ) ); 82 TextLabel4->setText( tr( "Storage Type" ) );
84 83
85 tabLayout->addMultiCellWidget( TextLabel4, 1, 1, 0, 1); 84 tabLayout->addMultiCellWidget( TextLabel4, 1, 1, 0, 1);
86 85
87 TextLabel2 = new QLabel( tab, "TextLabel2" ); 86 TextLabel2 = new QLabel( tab, "TextLabel2" );
88 TextLabel2->setText( tr( "File Systems" ) ); 87 TextLabel2->setText( tr( "File Systems" ) );
89 88
90 tabLayout->addMultiCellWidget( TextLabel2, 4, 4, 0, 1); 89 tabLayout->addMultiCellWidget( TextLabel2, 4, 4, 0, 1);
91 90
92 fileSystemsCombo = new QComboBox( FALSE, tab, "fileSystemsCombo" ); 91 fileSystemsCombo = new QComboBox( FALSE, tab, "fileSystemsCombo" );
93 fileSystemsCombo->setMaximumWidth(220); 92 fileSystemsCombo->setMaximumWidth(220);
94 93
95 tabLayout->addMultiCellWidget( fileSystemsCombo, 3, 3, 0, 1); 94 tabLayout->addMultiCellWidget( fileSystemsCombo, 3, 3, 0, 1);
96 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum ); 95 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
97 tabLayout->addItem( spacer, 2, 0 ); 96 tabLayout->addItem( spacer, 2, 0 );
98 97
99 formatPushButton = new QPushButton( tab, "formatPushButton" ); 98 formatPushButton = new QPushButton( tab, "formatPushButton" );
100 formatPushButton->setText( tr( "Format" ) ); 99 formatPushButton->setText( tr( "Format" ) );
101 formatPushButton->setMaximumWidth(170); 100 formatPushButton->setMaximumWidth(170);
102 101
103 tabLayout->addMultiCellWidget( formatPushButton, 6, 6, 0, 1); 102 tabLayout->addMultiCellWidget( formatPushButton, 6, 6, 0, 1);
104 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum ); 103 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
105 tabLayout->addItem( spacer_2, 5, 0 ); 104 tabLayout->addItem( spacer_2, 5, 0 );
106 105
107 TabWidget->insertTab( tab, tr( "Main" ) ); 106 TabWidget->insertTab( tab, tr( "Main" ) );
108 107
109 tab_2 = new QWidget( TabWidget, "tab_2" ); 108 tab_2 = new QWidget( TabWidget, "tab_2" );
110 tabLayout_2 = new QGridLayout( tab_2 ); 109 tabLayout_2 = new QGridLayout( tab_2 );
111 tabLayout_2->setSpacing(3); 110 tabLayout_2->setSpacing(3);
112 tabLayout_2->setMargin(2); 111 tabLayout_2->setMargin(2);
113 112
114 mountPointLineEdit = new QLineEdit( tab_2, "mountPointLineEdit" ); 113 mountPointLineEdit = new QLineEdit( tab_2, "mountPointLineEdit" );
115 114
116 tabLayout_2->addMultiCellWidget( mountPointLineEdit, 0, 0, 0, 1); 115 tabLayout_2->addMultiCellWidget( mountPointLineEdit, 0, 0, 0, 1);
117 116
118 deviceComboBox = new QComboBox( FALSE, tab_2, "deviceComboBox" ); 117 deviceComboBox = new QComboBox( FALSE, tab_2, "deviceComboBox" );
119 118
120 tabLayout_2->addMultiCellWidget( deviceComboBox, 3, 3, 0, 1); 119 tabLayout_2->addMultiCellWidget( deviceComboBox, 3, 3, 0, 1);
121 120
122 TextLabel5 = new QLabel( tab_2, "TextLabel5" ); 121 TextLabel5 = new QLabel( tab_2, "TextLabel5" );
123 TextLabel5->setText( tr( "CAUTION:\n" 122 TextLabel5->setText( tr( "CAUTION:\n"
124 "Changing parameters on this \n" 123 "Changing parameters on this \n"
125 "page may cause your system \n" 124 "page may cause your system \n"