summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-17 02:04:40 (UTC)
committer llornkcor <llornkcor>2002-10-17 02:04:40 (UTC)
commit7176f02e8e8418020e0aa354795611620b564d81 (patch) (unidiff)
tree9f32debc92cd97809d5ca47ccbfd7f3b40d39c3a
parent368af870e525e853f44784e0fd402dca7337340a (diff)
downloadopie-7176f02e8e8418020e0aa354795611620b564d81.zip
opie-7176f02e8e8418020e0aa354795611620b564d81.tar.gz
opie-7176f02e8e8418020e0aa354795611620b564d81.tar.bz2
widgets too big
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/tools/formatter/formatter.cpp48
1 files changed, 23 insertions, 25 deletions
diff --git a/noncore/tools/formatter/formatter.cpp b/noncore/tools/formatter/formatter.cpp
index bd0bb01..2b8ce7f 100644
--- a/noncore/tools/formatter/formatter.cpp
+++ b/noncore/tools/formatter/formatter.cpp
@@ -71,49 +71,52 @@ FormatterApp::FormatterApp( QWidget* parent, const char* name, bool modal, WFla
71 71
72 tab = new QWidget( TabWidget, "tab" ); 72 tab = new QWidget( TabWidget, "tab" );
73 tabLayout = new QGridLayout( tab ); 73 tabLayout = new QGridLayout( tab );
74 tabLayout->setSpacing( 6); 74 tabLayout->setSpacing( 3);
75 tabLayout->setMargin( 11); 75 tabLayout->setMargin( 2);
76 76
77 storageComboBox = new QComboBox( FALSE, tab, "storageComboBox" ); 77 storageComboBox = new QComboBox( FALSE, tab, "storageComboBox" );
78 storageComboBox->setMaximumWidth(220);
78 79
79 tabLayout->addMultiCellWidget( storageComboBox, 0, 0, 0, 1 ); 80 tabLayout->addMultiCellWidget( storageComboBox, 0, 0, 0, 0 );
80 81
81 TextLabel4 = new QLabel( tab, "TextLabel4" ); 82 TextLabel4 = new QLabel( tab, "TextLabel4" );
82 TextLabel4->setText( tr( "Storage Type" ) ); 83 TextLabel4->setText( tr( "Storage Type" ) );
83 84
84 tabLayout->addMultiCellWidget( TextLabel4, 1, 1, 0, 1 ); 85 tabLayout->addMultiCellWidget( TextLabel4, 1, 1, 0, 0 );
85 86
86 TextLabel2 = new QLabel( tab, "TextLabel2" ); 87 TextLabel2 = new QLabel( tab, "TextLabel2" );
87 TextLabel2->setText( tr( "File Systems" ) ); 88 TextLabel2->setText( tr( "File Systems" ) );
88 89
89 tabLayout->addMultiCellWidget( TextLabel2, 4, 4, 0, 1 ); 90 tabLayout->addMultiCellWidget( TextLabel2, 4, 4, 0, 0 );
90 91
91 fileSystemsCombo = new QComboBox( FALSE, tab, "fileSystemsCombo" ); 92 fileSystemsCombo = new QComboBox( FALSE, tab, "fileSystemsCombo" );
93 fileSystemsCombo->setMaximumWidth(220);
92 94
93 tabLayout->addMultiCellWidget( fileSystemsCombo, 3, 3, 0, 1 ); 95 tabLayout->addMultiCellWidget( fileSystemsCombo, 3, 3, 0, 0 );
94 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 96 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
95 tabLayout->addItem( spacer, 2, 1 ); 97 tabLayout->addItem( spacer, 2, 0 );
96 98
97 formatPushButton = new QPushButton( tab, "formatPushButton" ); 99 formatPushButton = new QPushButton( tab, "formatPushButton" );
98 formatPushButton->setText( tr( "Format" ) ); 100 formatPushButton->setText( tr( "Format" ) );
101 formatPushButton->setMaximumWidth(170);
99 102
100 tabLayout->addMultiCellWidget( formatPushButton, 6, 6, 0, 1 ); 103 tabLayout->addMultiCellWidget( formatPushButton, 6, 6, 0, 0 );
101 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 104 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
102 tabLayout->addItem( spacer_2, 5, 0 ); 105 tabLayout->addItem( spacer_2, 5, 0 );
103 TabWidget->insertTab( tab, tr( "Main" ) ); 106 TabWidget->insertTab( tab, tr( "Main" ) );
104 107
105 tab_2 = new QWidget( TabWidget, "tab_2" ); 108 tab_2 = new QWidget( TabWidget, "tab_2" );
106 tabLayout_2 = new QGridLayout( tab_2 ); 109 tabLayout_2 = new QGridLayout( tab_2 );
107 tabLayout_2->setSpacing( 6); 110 tabLayout_2->setSpacing(3);
108 tabLayout_2->setMargin( 11); 111 tabLayout_2->setMargin(2);
109 112
110 mountPointLineEdit = new QLineEdit( tab_2, "mountPointLineEdit" ); 113 mountPointLineEdit = new QLineEdit( tab_2, "mountPointLineEdit" );
111 114
112 tabLayout_2->addMultiCellWidget( mountPointLineEdit, 0, 0, 0, 1 ); 115 tabLayout_2->addMultiCellWidget( mountPointLineEdit, 0, 0, 0, 0 );
113 116
114 deviceComboBox = new QComboBox( FALSE, tab_2, "deviceComboBox" ); 117 deviceComboBox = new QComboBox( FALSE, tab_2, "deviceComboBox" );
115 118
116 tabLayout_2->addMultiCellWidget( deviceComboBox, 3, 3, 0, 1 ); 119 tabLayout_2->addMultiCellWidget( deviceComboBox, 3, 3, 0, 0 );
117 120
118 TextLabel5 = new QLabel( tab_2, "TextLabel5" ); 121 TextLabel5 = new QLabel( tab_2, "TextLabel5" );
119 TextLabel5->setText( tr( "CAUTION:\n" 122 TextLabel5->setText( tr( "CAUTION:\n"
@@ -121,7 +124,7 @@ FormatterApp::FormatterApp( QWidget* parent, const char* name, bool modal, WFla
121 "page may cause your system \n" 124 "page may cause your system \n"
122 "to stop functioning properly!!" ) );//idiot message 125 "to stop functioning properly!!" ) );//idiot message
123 126
124 tabLayout_2->addMultiCellWidget( TextLabel5, 6, 6, 0, 1 ); 127 tabLayout_2->addMultiCellWidget( TextLabel5, 6, 6, 0, 0 );
125 128
126 editPushButton = new QPushButton( tab_2, "editPushButton" ); 129 editPushButton = new QPushButton( tab_2, "editPushButton" );
127 editPushButton->setText( tr( "Edit fstab" ) ); 130 editPushButton->setText( tr( "Edit fstab" ) );
@@ -131,19 +134,19 @@ FormatterApp::FormatterApp( QWidget* parent, const char* name, bool modal, WFla
131 fsckButton = new QPushButton( tab_2, "fsckPushButton" ); 134 fsckButton = new QPushButton( tab_2, "fsckPushButton" );
132 fsckButton->setText( tr( "Check Disk" ) ); 135 fsckButton->setText( tr( "Check Disk" ) );
133 136
134 tabLayout_2->addMultiCellWidget( fsckButton, 7, 7, 1, 1 ); 137 tabLayout_2->addMultiCellWidget( fsckButton, 7, 7, 1, 0 );
135 138
136 TextLabel3 = new QLabel( tab_2, "TextLabel3" ); 139 TextLabel3 = new QLabel( tab_2, "TextLabel3" );
137 TextLabel3->setText( tr( "Device" ) ); 140 TextLabel3->setText( tr( "Device" ) );
138 141
139 tabLayout_2->addMultiCellWidget( TextLabel3, 4, 4, 0, 1 ); 142 tabLayout_2->addMultiCellWidget( TextLabel3, 4, 4, 0, 0 );
140 QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 143 QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
141 tabLayout_2->addItem( spacer_3, 5, 0 ); 144 tabLayout_2->addItem( spacer_3, 5, 0 );
142 145
143 TextLabel1 = new QLabel( tab_2, "TextLabel1" ); 146 TextLabel1 = new QLabel( tab_2, "TextLabel1" );
144 TextLabel1->setText( tr( "Mount Point" ) ); 147 TextLabel1->setText( tr( "Mount Point" ) );
145 148
146 tabLayout_2->addMultiCellWidget( TextLabel1, 1, 1, 0, 1 ); 149 tabLayout_2->addMultiCellWidget( TextLabel1, 1, 1, 0, 0 );
147 QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 150 QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
148 tabLayout_2->addItem( spacer_4, 2, 1 ); 151 tabLayout_2->addItem( spacer_4, 2, 1 );
149 TabWidget->insertTab( tab_2, tr( "Advanced" ) ); 152 TabWidget->insertTab( tab_2, tr( "Advanced" ) );
@@ -162,12 +165,7 @@ FormatterApp::FormatterApp( QWidget* parent, const char* name, bool modal, WFla
162 fillCombos(); 165 fillCombos();
163} 166}
164 167
165/* 168FormatterApp::~FormatterApp() {
166 * Destroys the object and frees any allocated resources
167 frickin no duh?!?
168 */
169FormatterApp::~FormatterApp()
170{
171 169
172} 170}
173 171
@@ -391,7 +389,7 @@ void FormatterApp::deviceComboSelected(int index) {
391 } 389 }
392 fsType = getFileSystemType((const QString &)selectedText); 390 fsType = getFileSystemType((const QString &)selectedText);
393 391
394 TextLabel5->setText("Type: "+ nameS+" Formatted with "+ fsType + " \n" + totalS + usedS + avS); 392 TextLabel5->setText("Type: "+ nameS+"\nFormatted with "+ fsType + " \n" + totalS + usedS + avS);
395// storageComboSelected(0); 393// storageComboSelected(0);
396} 394}
397 395