Diffstat (limited to 'noncore/apps/advancedfm/advancedfmData.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 10 |
1 files changed, 4 insertions, 6 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 | |||
@@ -8,15 +8,13 @@ | |||
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> |
@@ -126,13 +124,13 @@ void AdvancedFm::init() { | |||
126 | 124 | ||
127 | customDirsToMenu(); | 125 | customDirsToMenu(); |
128 | 126 | ||
129 | currentPathCombo = new QComboBox( FALSE, lineBox, "currentPathCombo" ); | 127 | currentPathCombo = new QComboBox( FALSE, lineBox, "currentPathCombo" ); |
130 | currentPathCombo->setEditable(TRUE); | 128 | currentPathCombo->setEditable(TRUE); |
131 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); | 129 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); |
132 | currentPathCombo->setFocusPolicy(NoFocus); | 130 | currentPathCombo->setFocusPolicy(NoFocus); |
133 | layout->addWidget( lineBox ); | 131 | layout->addWidget( lineBox ); |
134 | 132 | ||
135 | 133 | ||
136 | TabWidget = new OSplitter( Horizontal, this, "TabWidget" ); | 134 | TabWidget = new OSplitter( Horizontal, this, "TabWidget" ); |
137 | // TabWidget = new QTabWidget( this, "TabWidget" ); | 135 | // TabWidget = new QTabWidget( this, "TabWidget" ); |
138 | layout->addWidget( TabWidget, 4 ); | 136 | layout->addWidget( TabWidget, 4 ); |
@@ -150,13 +148,13 @@ void AdvancedFm::init() { | |||
150 | Local_View->setColumnAlignment(2,QListView::AlignRight); | 148 | Local_View->setColumnAlignment(2,QListView::AlignRight); |
151 | Local_View->setAllColumnsShowFocus(TRUE); | 149 | Local_View->setAllColumnsShowFocus(TRUE); |
152 | Local_View->setMultiSelection( TRUE ); | 150 | Local_View->setMultiSelection( TRUE ); |
153 | Local_View->setSelectionMode(QListView::Extended); | 151 | Local_View->setSelectionMode(QListView::Extended); |
154 | Local_View->setFocusPolicy(StrongFocus); | 152 | Local_View->setFocusPolicy(StrongFocus); |
155 | Local_View->installEventFilter( this ); | 153 | Local_View->installEventFilter( this ); |
156 | 154 | ||
157 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); | 155 | QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold); |
158 | 156 | ||
159 | tabLayout->addWidget( Local_View, 0, 0 ); | 157 | tabLayout->addWidget( Local_View, 0, 0 ); |
160 | 158 | ||
161 | TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1")); | 159 | TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1")); |
162 | // TabWidget->insertTab( tab, tr("1")); | 160 | // TabWidget->insertTab( tab, tr("1")); |
@@ -174,13 +172,13 @@ void AdvancedFm::init() { | |||
174 | Remote_View->setColumnAlignment(2,QListView::AlignRight); | 172 | Remote_View->setColumnAlignment(2,QListView::AlignRight); |
175 | Remote_View->setAllColumnsShowFocus(TRUE); | 173 | Remote_View->setAllColumnsShowFocus(TRUE); |
176 | Remote_View->setMultiSelection( TRUE ); | 174 | Remote_View->setMultiSelection( TRUE ); |
177 | Remote_View->setSelectionMode(QListView::Extended); | 175 | Remote_View->setSelectionMode(QListView::Extended); |
178 | Remote_View->setFocusPolicy(StrongFocus); | 176 | Remote_View->setFocusPolicy(StrongFocus); |
179 | Remote_View->installEventFilter( this ); | 177 | Remote_View->installEventFilter( this ); |
180 | 178 | ||
181 | QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); | 179 | QPEApplication::setStylusOperation( Remote_View->viewport(),QPEApplication::RightOnHold); |
182 | 180 | ||
183 | tabLayout_2->addWidget( Remote_View, 0, 0 ); | 181 | tabLayout_2->addWidget( Remote_View, 0, 0 ); |
184 | 182 | ||
185 | TabWidget->addWidget( tab_2, "advancedfm/smFileBrowser.png",tr( "2")); | 183 | TabWidget->addWidget( tab_2, "advancedfm/smFileBrowser.png",tr( "2")); |
186 | TabWidget->setSizeChange( 370 ); | 184 | TabWidget->setSizeChange( 370 ); |
@@ -208,13 +206,13 @@ void AdvancedFm::init() { | |||
208 | */ | 206 | */ |
209 | 207 | ||
210 | /////////////// | 208 | /////////////// |
211 | 209 | ||
212 | if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" )) | 210 | if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" )) |
213 | zaurusDevice=TRUE; | 211 | zaurusDevice=TRUE; |
214 | else | 212 | else |
215 | zaurusDevice=FALSE; | 213 | zaurusDevice=FALSE; |
216 | 214 | ||
217 | 215 | ||
218 | if( !StorageInfo::hasSd() || !StorageInfo::hasMmc()) { | 216 | if( !StorageInfo::hasSd() || !StorageInfo::hasMmc()) { |
219 | qDebug("not have sd"); | 217 | qDebug("not have sd"); |
220 | sdButton->hide(); | 218 | sdButton->hide(); |