Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 77dca49..91318f1 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -7,25 +7,25 @@ | |||
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 | #define DEVELOPERS_VERSION | 12 | #define DEVELOPERS_VERSION |
13 | #include "advancedfm.h" | 13 | #include "advancedfm.h" |
14 | 14 | ||
15 | 15 | ||
16 | // #include <opie/ofileselector.h> | 16 | // #include <opie/ofileselector.h> |
17 | // #include <opie/ofiledialog.h> | 17 | // #include <opie/ofiledialog.h> |
18 | 18 | ||
19 | #include <opie/otabwidget.h> | 19 | #include <opie/osplitter.h> |
20 | 20 | ||
21 | #include <qpe/filemanager.h> | 21 | #include <qpe/filemanager.h> |
22 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | #include <qpe/config.h> | 24 | #include <qpe/config.h> |
25 | #include <qpe/mimetype.h> | 25 | #include <qpe/mimetype.h> |
26 | #include <qpe/applnk.h> | 26 | #include <qpe/applnk.h> |
27 | #include <qpe/ir.h> | 27 | #include <qpe/ir.h> |
28 | #include <qpe/resource.h> | 28 | #include <qpe/resource.h> |
29 | #include <qpe/menubutton.h> | 29 | #include <qpe/menubutton.h> |
30 | 30 | ||
31 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
@@ -209,28 +209,28 @@ void AdvancedFm::populateView() | |||
209 | 209 | ||
210 | thisView->setSorting( 3,FALSE); | 210 | thisView->setSorting( 3,FALSE); |
211 | fillCombo( (const QString &) path ); | 211 | fillCombo( (const QString &) path ); |
212 | } | 212 | } |
213 | 213 | ||
214 | void AdvancedFm::rePopulate() | 214 | void AdvancedFm::rePopulate() |
215 | { | 215 | { |
216 | int tmpTab = whichTab; | 216 | int tmpTab = whichTab; |
217 | qDebug("%d", tmpTab); | 217 | qDebug("%d", tmpTab); |
218 | 218 | ||
219 | for(int i =1; i < 3; i++) | 219 | for(int i =1; i < 3; i++) |
220 | { | 220 | { |
221 | TabWidget->setCurrentTab(i - 1); | 221 | TabWidget->setCurrentWidget(i - 1); |
222 | populateView(); | 222 | populateView(); |
223 | } | 223 | } |
224 | TabWidget->setCurrentTab( tmpTab - 1); | 224 | TabWidget->setCurrentWidget( tmpTab - 1); |
225 | } | 225 | } |
226 | 226 | ||
227 | void AdvancedFm::ListClicked(QListViewItem *selectedItem) | 227 | void AdvancedFm::ListClicked(QListViewItem *selectedItem) |
228 | { | 228 | { |
229 | if(selectedItem) | 229 | if(selectedItem) |
230 | { | 230 | { |
231 | QString strItem=selectedItem->text(0); | 231 | QString strItem=selectedItem->text(0); |
232 | QString strSize=selectedItem->text(1); | 232 | QString strSize=selectedItem->text(1); |
233 | strSize=strSize.stripWhiteSpace(); | 233 | strSize=strSize.stripWhiteSpace(); |
234 | bool isDirectory = false; | 234 | bool isDirectory = false; |
235 | QString strItem2; | 235 | QString strItem2; |
236 | 236 | ||
@@ -267,31 +267,31 @@ void AdvancedFm::ListPressed( int mouse, QListViewItem *, const QPoint& , int ) | |||
267 | cancelRename(); | 267 | cancelRename(); |
268 | } | 268 | } |
269 | } | 269 | } |
270 | break; | 270 | break; |
271 | case 2: | 271 | case 2: |
272 | menuTimer.start( 500, TRUE ); | 272 | menuTimer.start( 500, TRUE ); |
273 | break; | 273 | break; |
274 | }; | 274 | }; |
275 | } | 275 | } |
276 | 276 | ||
277 | void AdvancedFm::switchToLocalTab() | 277 | void AdvancedFm::switchToLocalTab() |
278 | { | 278 | { |
279 | TabWidget->setCurrentTab(0); | 279 | TabWidget->setCurrentWidget(0); |
280 | Local_View->setFocus(); | 280 | Local_View->setFocus(); |
281 | } | 281 | } |
282 | 282 | ||
283 | void AdvancedFm::switchToRemoteTab() | 283 | void AdvancedFm::switchToRemoteTab() |
284 | { | 284 | { |
285 | TabWidget->setCurrentTab(1); | 285 | TabWidget->setCurrentWidget(1); |
286 | Remote_View->setFocus(); | 286 | Remote_View->setFocus(); |
287 | } | 287 | } |
288 | 288 | ||
289 | void AdvancedFm::readConfig() | 289 | void AdvancedFm::readConfig() |
290 | { | 290 | { |
291 | Config cfg("AdvancedFm"); | 291 | Config cfg("AdvancedFm"); |
292 | } | 292 | } |
293 | 293 | ||
294 | void AdvancedFm::writeConfig() | 294 | void AdvancedFm::writeConfig() |
295 | { | 295 | { |
296 | Config cfg("AdvancedFm"); | 296 | Config cfg("AdvancedFm"); |
297 | } | 297 | } |
@@ -853,27 +853,27 @@ QListView * AdvancedFm::CurrentView() | |||
853 | 853 | ||
854 | QListView * AdvancedFm::OtherView() | 854 | QListView * AdvancedFm::OtherView() |
855 | { | 855 | { |
856 | if ( whichTab == 1) | 856 | if ( whichTab == 1) |
857 | return Remote_View; | 857 | return Remote_View; |
858 | else | 858 | else |
859 | return Local_View; | 859 | return Local_View; |
860 | } | 860 | } |
861 | 861 | ||
862 | void AdvancedFm::setOtherTabCurrent() | 862 | void AdvancedFm::setOtherTabCurrent() |
863 | { | 863 | { |
864 | if ( whichTab == 1) | 864 | if ( whichTab == 1) |
865 | TabWidget->setCurrentTab(1); | 865 | TabWidget->setCurrentWidget(1); |
866 | else | 866 | else |
867 | TabWidget->setCurrentTab(0); | 867 | TabWidget->setCurrentWidget(0); |
868 | } | 868 | } |
869 | 869 | ||
870 | void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { | 870 | void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { |
871 | qDebug("qcop message "+msg ); | 871 | qDebug("qcop message "+msg ); |
872 | QDataStream stream ( data, IO_ReadOnly ); | 872 | QDataStream stream ( data, IO_ReadOnly ); |
873 | if ( msg == "openDirectory(QString)" ) { | 873 | if ( msg == "openDirectory(QString)" ) { |
874 | qDebug("received"); | 874 | qDebug("received"); |
875 | QString file; | 875 | QString file; |
876 | stream >> file; | 876 | stream >> file; |
877 | gotoDirectory( (const QString &) file); | 877 | gotoDirectory( (const QString &) file); |
878 | } | 878 | } |
879 | } | 879 | } |