Diffstat (limited to 'noncore/apps/zsafe/scqtfiledlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/zsafe/scqtfiledlg.cpp | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/noncore/apps/zsafe/scqtfiledlg.cpp b/noncore/apps/zsafe/scqtfiledlg.cpp index 52b8d0d..c67bbd5 100644 --- a/noncore/apps/zsafe/scqtfiledlg.cpp +++ b/noncore/apps/zsafe/scqtfiledlg.cpp | |||
@@ -1,58 +1,55 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form implementation generated from reading ui file 'scqtfiledlg.ui' | ||
3 | ** | ||
4 | ** Created: Sun Jun 8 15:51:12 2003 | ||
5 | ** by: The User Interface Compiler (uic) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | #include "scqtfiledlg.h" | 1 | #include "scqtfiledlg.h" |
10 | 2 | ||
3 | /* OPIE */ | ||
4 | #include <opie2/odebug.h> | ||
5 | using namespace Opie::Core; | ||
6 | |||
7 | /* QT */ | ||
11 | #include <qcombobox.h> | 8 | #include <qcombobox.h> |
12 | #include <qlineedit.h> | 9 | #include <qlineedit.h> |
13 | #include <qlistview.h> | 10 | #include <qlistview.h> |
14 | #include <qtoolbutton.h> | 11 | #include <qtoolbutton.h> |
15 | #include <qlayout.h> | 12 | #include <qlayout.h> |
16 | #include <qtooltip.h> | 13 | #include <qtooltip.h> |
17 | #include <qwhatsthis.h> | 14 | #include <qwhatsthis.h> |
18 | 15 | ||
19 | static const char* const image0_data[] = { | 16 | static const char* const image0_data[] = { |
20 | "24 16 3 1", | 17 | "24 16 3 1", |
21 | ". c None", | 18 | ". c None", |
22 | "# c #000040", | 19 | "# c #000040", |
23 | "a c #808080", | 20 | "a c #808080", |
24 | "........................", | 21 | "........................", |
25 | "........................", | 22 | "........................", |
26 | ".................####...", | 23 | ".................####...", |
27 | ".................####...", | 24 | ".................####...", |
28 | ".......##........#aa#...", | 25 | ".......##........#aa#...", |
29 | "......###........#aa#...", | 26 | "......###........#aa#...", |
30 | ".....####........#aa#...", | 27 | ".....####........#aa#...", |
31 | "....##############aa#...", | 28 | "....##############aa#...", |
32 | "...###aaaaaaaaaaaaaa#...", | 29 | "...###aaaaaaaaaaaaaa#...", |
33 | "..####aaaaaaaaaaaaaa#...", | 30 | "..####aaaaaaaaaaaaaa#...", |
34 | "...###aaaaaaaaaaaaaa#...", | 31 | "...###aaaaaaaaaaaaaa#...", |
35 | "....#################...", | 32 | "....#################...", |
36 | ".....####...............", | 33 | ".....####...............", |
37 | "......###...............", | 34 | "......###...............", |
38 | ".......##...............", | 35 | ".......##...............", |
39 | "........................"}; | 36 | "........................"}; |
40 | 37 | ||
41 | static const char* const image1_data[] = { | 38 | static const char* const image1_data[] = { |
42 | "24 16 4 1", | 39 | "24 16 4 1", |
43 | ". c None", | 40 | ". c None", |
44 | "a c #008080", | 41 | "a c #008080", |
45 | "b c #808080", | 42 | "b c #808080", |
46 | "# c #ff0000", | 43 | "# c #ff0000", |
47 | "........................", | 44 | "........................", |
48 | "........................", | 45 | "........................", |
49 | "...####..........####...", | 46 | "...####..........####...", |
50 | "...#####........#####...", | 47 | "...#####........#####...", |
51 | "....######.....#####a...", | 48 | "....######.....#####a...", |
52 | ".....######...#####ba...", | 49 | ".....######...#####ba...", |
53 | ".....aa###########bba...", | 50 | ".....aa###########bba...", |
54 | "....aaaaa#######aabba...", | 51 | "....aaaaa#######aabba...", |
55 | "...aaabbb######bbbbba...", | 52 | "...aaabbb######bbbbba...", |
56 | "..aaaabb########bbbba...", | 53 | "..aaaabb########bbbba...", |
57 | "...aaa############bba...", | 54 | "...aaa############bba...", |
58 | "....a######aaa#####aa...", | 55 | "....a######aaa#####aa...", |
@@ -171,86 +168,86 @@ ScQtFileDlg::ScQtFileDlg( QWidget* parent, const char* name, bool modal, WFlags | |||
171 | QWhatsThis::add( MkDirButton, tr( "OKButton" ) ); | 168 | QWhatsThis::add( MkDirButton, tr( "OKButton" ) ); |
172 | Layout3_2->addWidget( MkDirButton ); | 169 | Layout3_2->addWidget( MkDirButton ); |
173 | Layout4->addLayout( Layout3_2 ); | 170 | Layout4->addLayout( Layout3_2 ); |
174 | 171 | ||
175 | DirComboBox = new QComboBox( FALSE, this, "DirComboBox" ); | 172 | DirComboBox = new QComboBox( FALSE, this, "DirComboBox" ); |
176 | DirComboBox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, DirComboBox->sizePolicy().hasHeightForWidth() ) ); | 173 | DirComboBox->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, DirComboBox->sizePolicy().hasHeightForWidth() ) ); |
177 | DirComboBox->setEditable( TRUE ); | 174 | DirComboBox->setEditable( TRUE ); |
178 | DirComboBox->setDuplicatesEnabled( FALSE ); | 175 | DirComboBox->setDuplicatesEnabled( FALSE ); |
179 | QWhatsThis::add( DirComboBox, tr( "ComboBox Directory \n" | 176 | QWhatsThis::add( DirComboBox, tr( "ComboBox Directory \n" |
180 | "edit or select the directories name" ) ); | 177 | "edit or select the directories name" ) ); |
181 | Layout4->addWidget( DirComboBox ); | 178 | Layout4->addWidget( DirComboBox ); |
182 | Layout5->addLayout( Layout4 ); | 179 | Layout5->addLayout( Layout4 ); |
183 | 180 | ||
184 | ListView = new QListView( this, "ListView" ); | 181 | ListView = new QListView( this, "ListView" ); |
185 | ListView->addColumn( tr( "Name" ) ); | 182 | ListView->addColumn( tr( "Name" ) ); |
186 | ListView->addColumn( tr( "size" ) ); | 183 | ListView->addColumn( tr( "size" ) ); |
187 | ListView->addColumn( tr( "type" ) ); | 184 | ListView->addColumn( tr( "type" ) ); |
188 | ListView->setRootIsDecorated( TRUE ); | 185 | ListView->setRootIsDecorated( TRUE ); |
189 | QToolTip::add( ListView, tr( "directory listview" ) ); | 186 | QToolTip::add( ListView, tr( "directory listview" ) ); |
190 | QWhatsThis::add( ListView, tr( "Directory ListView\n" | 187 | QWhatsThis::add( ListView, tr( "Directory ListView\n" |
191 | "\n" | 188 | "\n" |
192 | "shows the list of dirs and files" ) ); | 189 | "shows the list of dirs and files" ) ); |
193 | Layout5->addWidget( ListView ); | 190 | Layout5->addWidget( ListView ); |
194 | ScQtFileDlgLayout->addLayout( Layout5 ); | 191 | ScQtFileDlgLayout->addLayout( Layout5 ); |
195 | 192 | ||
196 | // signals and slots connections | 193 | // signals and slots connections |
197 | connect( OkButton, SIGNAL( clicked() ), this, SLOT( slotOK() ) ); | 194 | connect( OkButton, SIGNAL( clicked() ), this, SLOT( slotOK() ) ); |
198 | connect( DirComboBox, SIGNAL( activated(int) ), this, SLOT( slotDirComboBoxChanged(int) ) ); | 195 | connect( DirComboBox, SIGNAL( activated(int) ), this, SLOT( slotDirComboBoxChanged(int) ) ); |
199 | connect( TypeComboBox, SIGNAL( activated(int) ), this, SLOT( slotTypeComboBoxChanged(int) ) ); | 196 | connect( TypeComboBox, SIGNAL( activated(int) ), this, SLOT( slotTypeComboBoxChanged(int) ) ); |
200 | connect( CancelButton, SIGNAL( clicked() ), this, SLOT( slotCancel() ) ); | 197 | connect( CancelButton, SIGNAL( clicked() ), this, SLOT( slotCancel() ) ); |
201 | connect( ListView, SIGNAL( returnPressed(QListViewItem*) ), this, SLOT( slotSelectionChanged(QListViewItem*) ) ); | 198 | connect( ListView, SIGNAL( returnPressed(QListViewItem*) ), this, SLOT( slotSelectionChanged(QListViewItem*) ) ); |
202 | connect( ListView, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotSelectionChanged(QListViewItem*) ) ); | 199 | connect( ListView, SIGNAL( selectionChanged(QListViewItem*) ), this, SLOT( slotSelectionChanged(QListViewItem*) ) ); |
203 | connect( ListView, SIGNAL( doubleClicked(QListViewItem*) ), this, SLOT( slotDoubleClicked(QListViewItem*) ) ); | 200 | connect( ListView, SIGNAL( doubleClicked(QListViewItem*) ), this, SLOT( slotDoubleClicked(QListViewItem*) ) ); |
204 | connect( FNameLineEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( slotFileTextChanged(const QString&) ) ); | 201 | connect( FNameLineEdit, SIGNAL( textChanged(const QString&) ), this, SLOT( slotFileTextChanged(const QString&) ) ); |
205 | connect( FNameLineEdit, SIGNAL( returnPressed() ), this, SLOT( slotOK() ) ); | 202 | connect( FNameLineEdit, SIGNAL( returnPressed() ), this, SLOT( slotOK() ) ); |
206 | connect( MkDirButton, SIGNAL( clicked() ), this, SLOT( slotMkDir() ) ); | 203 | connect( MkDirButton, SIGNAL( clicked() ), this, SLOT( slotMkDir() ) ); |
207 | } | 204 | } |
208 | 205 | ||
209 | /* | 206 | /* |
210 | * Destroys the object and frees any allocated resources | 207 | * Destroys the object and frees any allocated resources |
211 | */ | 208 | */ |
212 | ScQtFileDlg::~ScQtFileDlg() | 209 | ScQtFileDlg::~ScQtFileDlg() |
213 | { | 210 | { |
214 | // no need to delete child widgets, Qt does it all for us | 211 | // no need to delete child widgets, Qt does it all for us |
215 | } | 212 | } |
216 | 213 | ||
217 | void ScQtFileDlg::slotCancel() | 214 | void ScQtFileDlg::slotCancel() |
218 | { | 215 | { |
219 | qWarning( "ScQtFileDlg::slotCancel(): Not implemented yet!" ); | 216 | owarn << "ScQtFileDlg::slotCancel(): Not implemented yet!" << oendl; |
220 | } | 217 | } |
221 | 218 | ||
222 | void ScQtFileDlg::slotDirComboBoxChanged( int ) | 219 | void ScQtFileDlg::slotDirComboBoxChanged( int ) |
223 | { | 220 | { |
224 | qWarning( "ScQtFileDlg::slotDirComboBoxChanged( int ): Not implemented yet!" ); | 221 | owarn << "ScQtFileDlg::slotDirComboBoxChanged( int ): Not implemented yet!" << oendl; |
225 | } | 222 | } |
226 | 223 | ||
227 | void ScQtFileDlg::slotDoubleClicked(QListViewItem *) | 224 | void ScQtFileDlg::slotDoubleClicked(QListViewItem *) |
228 | { | 225 | { |
229 | qWarning( "ScQtFileDlg::slotDoubleClicked(QListViewItem *): Not implemented yet!" ); | 226 | owarn << "ScQtFileDlg::slotDoubleClicked(QListViewItem *): Not implemented yet!" << oendl; |
230 | } | 227 | } |
231 | 228 | ||
232 | void ScQtFileDlg::slotFileTextChanged( const QString & ) | 229 | void ScQtFileDlg::slotFileTextChanged( const QString & ) |
233 | { | 230 | { |
234 | qWarning( "ScQtFileDlg::slotFileTextChanged( const QString & ): Not implemented yet!" ); | 231 | owarn << "ScQtFileDlg::slotFileTextChanged( const QString & ): Not implemented yet!" << oendl; |
235 | } | 232 | } |
236 | 233 | ||
237 | void ScQtFileDlg::slotMkDir() | 234 | void ScQtFileDlg::slotMkDir() |
238 | { | 235 | { |
239 | qWarning( "ScQtFileDlg::slotMkDir(): Not implemented yet!" ); | 236 | owarn << "ScQtFileDlg::slotMkDir(): Not implemented yet!" << oendl; |
240 | } | 237 | } |
241 | 238 | ||
242 | void ScQtFileDlg::slotOK() | 239 | void ScQtFileDlg::slotOK() |
243 | { | 240 | { |
244 | qWarning( "ScQtFileDlg::slotOK(): Not implemented yet!" ); | 241 | owarn << "ScQtFileDlg::slotOK(): Not implemented yet!" << oendl; |
245 | } | 242 | } |
246 | 243 | ||
247 | void ScQtFileDlg::slotSelectionChanged(QListViewItem *) | 244 | void ScQtFileDlg::slotSelectionChanged(QListViewItem *) |
248 | { | 245 | { |
249 | qWarning( "ScQtFileDlg::slotSelectionChanged(QListViewItem *): Not implemented yet!" ); | 246 | owarn << "ScQtFileDlg::slotSelectionChanged(QListViewItem *): Not implemented yet!" << oendl; |
250 | } | 247 | } |
251 | 248 | ||
252 | void ScQtFileDlg::slotTypeComboBoxChanged( int ) | 249 | void ScQtFileDlg::slotTypeComboBoxChanged( int ) |
253 | { | 250 | { |
254 | qWarning( "ScQtFileDlg::slotTypeComboBoxChanged( int ): Not implemented yet!" ); | 251 | owarn << "ScQtFileDlg::slotTypeComboBoxChanged( int ): Not implemented yet!" << oendl; |
255 | } | 252 | } |
256 | 253 | ||