Diffstat (limited to 'noncore/apps/advancedfm/advancedfmData.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index ddaa39a..763ae34 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp | |||
@@ -1,64 +1,62 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | advancedfmData.cpp | 2 | advancedfmData.cpp |
3 | ------------------- | 3 | ------------------- |
4 | ** Created: Mon 09-23-2002 13:24:11 | 4 | ** Created: Mon 09-23-2002 13:24:11 |
5 | copyright : (C) 2002 by ljp | 5 | copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #include "advancedfm.h" | 12 | #include "advancedfm.h" |
13 | 13 | ||
14 | #include <opie/osplitter.h> | ||
15 | #include <qpe/storage.h> | 14 | #include <qpe/storage.h> |
16 | |||
17 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
18 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
19 | #include <qpe/menubutton.h> | 17 | #include <qpe/menubutton.h> |
20 | 18 | ||
21 | #include <qlayout.h> | 19 | #include <qlayout.h> |
22 | #include <qhbox.h> | 20 | #include <qhbox.h> |
23 | #include <qmenubar.h> | 21 | #include <qmenubar.h> |
24 | #include <qcombobox.h> | 22 | #include <qcombobox.h> |
25 | #include <qtoolbutton.h> | 23 | #include <qtoolbutton.h> |
26 | #include <qlineedit.h> | 24 | #include <qlineedit.h> |
27 | #include <qlistview.h> | 25 | #include <qlistview.h> |
28 | 26 | ||
29 | #include <sys/utsname.h> | 27 | #include <sys/utsname.h> |
30 | 28 | ||
31 | 29 | ||
32 | void AdvancedFm::init() { | 30 | void AdvancedFm::init() { |
33 | #if defined(QT_QWS_OPIE) | 31 | #if defined(QT_QWS_OPIE) |
34 | qDebug("<<<<<<<<<<<<<<<<<<<<<<<< OPIE!!!"); | 32 | qDebug("<<<<<<<<<<<<<<<<<<<<<<<< OPIE!!!"); |
35 | #endif | 33 | #endif |
36 | setCaption( tr( "AdvancedFm" ) ); | 34 | setCaption( tr( "AdvancedFm" ) ); |
37 | 35 | ||
38 | QVBoxLayout *layout = new QVBoxLayout( this ); | 36 | QVBoxLayout *layout = new QVBoxLayout( this ); |
39 | layout->setSpacing( 2); | 37 | layout->setSpacing( 2); |
40 | layout->setMargin( 2); | 38 | layout->setMargin( 2); |
41 | 39 | ||
42 | QMenuBar *menuBar = new QMenuBar(this); | 40 | QMenuBar *menuBar = new QMenuBar(this); |
43 | fileMenu = new QPopupMenu( this ); | 41 | fileMenu = new QPopupMenu( this ); |
44 | viewMenu = new QPopupMenu( this ); | 42 | viewMenu = new QPopupMenu( this ); |
45 | // customDirMenu = new QPopupMenu( this ); | 43 | // customDirMenu = new QPopupMenu( this ); |
46 | 44 | ||
47 | layout->addWidget( menuBar ); | 45 | layout->addWidget( menuBar ); |
48 | 46 | ||
49 | menuBar->insertItem( tr( "File" ), fileMenu); | 47 | menuBar->insertItem( tr( "File" ), fileMenu); |
50 | menuBar->insertItem( tr( "View" ), viewMenu); | 48 | menuBar->insertItem( tr( "View" ), viewMenu); |
51 | 49 | ||
52 | cdUpButton = new QToolButton( 0,"cdUpButton"); | 50 | cdUpButton = new QToolButton( 0,"cdUpButton"); |
53 | cdUpButton->setPixmap(Resource::loadPixmap("up")); | 51 | cdUpButton->setPixmap(Resource::loadPixmap("up")); |
54 | cdUpButton->setAutoRaise( true ); | 52 | cdUpButton->setAutoRaise( true ); |
55 | menuBar->insertItem( cdUpButton ); | 53 | menuBar->insertItem( cdUpButton ); |
56 | 54 | ||
57 | 55 | ||
58 | QHBox *lineBox = new QHBox( this ); | 56 | QHBox *lineBox = new QHBox( this ); |
59 | 57 | ||
60 | qpeDirButton= new QToolButton( 0,"QPEButton"); | 58 | qpeDirButton= new QToolButton( 0,"QPEButton"); |
61 | qpeDirButton->setPixmap( Resource::loadPixmap("launcher/opielogo16x16"));//,"",this,"QPEButton"); | 59 | qpeDirButton->setPixmap( Resource::loadPixmap("launcher/opielogo16x16"));//,"",this,"QPEButton"); |
62 | qpeDirButton->setAutoRaise( true ); | 60 | qpeDirButton->setAutoRaise( true ); |
63 | menuBar->insertItem( qpeDirButton ); | 61 | menuBar->insertItem( qpeDirButton ); |
64 | 62 | ||