author | llornkcor <llornkcor> | 2003-02-24 03:49:20 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-02-24 03:49:20 (UTC) |
commit | 04470810d71cc8aa3ddde193559312fd3ecc7a11 (patch) (unidiff) | |
tree | f9d291fed1aa1627927863fc0381d6d15f6b6f7e | |
parent | e144592570ddacf26d27f3e2759dbe7f2370d0a0 (diff) | |
download | opie-04470810d71cc8aa3ddde193559312fd3ecc7a11.zip opie-04470810d71cc8aa3ddde193559312fd3ecc7a11.tar.gz opie-04470810d71cc8aa3ddde193559312fd3ecc7a11.tar.bz2 |
fix for hidden dirs
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 34 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 18 |
2 files changed, 26 insertions, 26 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index fc6c3bf..d56e746 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -285,9 +285,8 @@ void AdvancedFm::ListPressed( int mouse, QListViewItem *, const QPoint& , int ) | |||
285 | if(renameBox != 0 ) | 285 | if(renameBox != 0 ) |
286 | { | 286 | { |
287 | cancelRename(); | 287 | cancelRename(); |
288 | } | 288 | } |
289 | |||
290 | } | 289 | } |
291 | break; | 290 | break; |
292 | case 2: | 291 | case 2: |
293 | menuTimer.start( 500, TRUE ); | 292 | menuTimer.start( 500, TRUE ); |
@@ -366,19 +365,19 @@ void AdvancedFm::currentPathComboActivated(const QString & currentPath) | |||
366 | QStringList AdvancedFm::getPath() | 365 | QStringList AdvancedFm::getPath() |
367 | { | 366 | { |
368 | QStringList strList; | 367 | QStringList strList; |
369 | QListView *thisView=CurrentView(); | 368 | QListView *thisView=CurrentView(); |
370 | QList<QListViewItem> * getSelectedItems( QListView * thisView ); | 369 | QList<QListViewItem> * getSelectedItems( QListView * thisView ); |
371 | QListViewItemIterator it( thisView ); | 370 | QListViewItemIterator it( thisView ); |
372 | for ( ; it.current(); ++it ) | 371 | for ( ; it.current(); ++it ) |
373 | { | 372 | { |
374 | if ( it.current()->isSelected() ) | 373 | if ( it.current()->isSelected() ) |
375 | { | 374 | { |
376 | strList << it.current()->text(0); | 375 | strList << it.current()->text(0); |
377 | // qDebug(it.current()->text(0)); | 376 | // qDebug(it.current()->text(0)); |
378 | } | 377 | } |
379 | } | 378 | } |
380 | return strList; | 379 | return strList; |
381 | } | 380 | } |
382 | 381 | ||
383 | void AdvancedFm::homeButtonPushed() | 382 | void AdvancedFm::homeButtonPushed() |
384 | { | 383 | { |
@@ -392,20 +391,19 @@ void AdvancedFm::homeButtonPushed() | |||
392 | void AdvancedFm::docButtonPushed() | 391 | void AdvancedFm::docButtonPushed() |
393 | { | 392 | { |
394 | QString current = QPEApplication::documentDir(); | 393 | QString current = QPEApplication::documentDir(); |
395 | chdir( current.latin1() ); | 394 | chdir( current.latin1() ); |
396 | 395 | CurrentDir()->cd( current, TRUE); | |
397 | CurrentDir()->cd( current, TRUE); | 396 | populateView(); |
398 | populateView(); | ||
399 | update(); | 397 | update(); |
400 | } | 398 | } |
401 | 399 | ||
402 | void AdvancedFm::SDButtonPushed() | 400 | void AdvancedFm::SDButtonPushed() |
403 | { | 401 | { |
404 | QString current = "/mnt/card";// this can change so fix | 402 | QString current = "/mnt/card";// this can change so fix |
405 | chdir( current.latin1() ); | 403 | chdir( current.latin1() ); |
406 | CurrentDir()->cd( current, TRUE); | 404 | CurrentDir()->cd( current, TRUE); |
407 | populateView(); | 405 | populateView(); |
408 | update(); | 406 | update(); |
409 | } | 407 | } |
410 | 408 | ||
411 | void AdvancedFm::CFButtonPushed() | 409 | void AdvancedFm::CFButtonPushed() |
@@ -414,9 +412,8 @@ void AdvancedFm::CFButtonPushed() | |||
414 | if(zaurusDevice) | 412 | if(zaurusDevice) |
415 | current= "/mnt/cf"; //zaurus | 413 | current= "/mnt/cf"; //zaurus |
416 | else | 414 | else |
417 | current = "/mnt/hda"; //ipaq | 415 | current = "/mnt/hda"; //ipaq |
418 | |||
419 | chdir( current.latin1() ); | 416 | chdir( current.latin1() ); |
420 | CurrentDir()->cd( current, TRUE); | 417 | CurrentDir()->cd( current, TRUE); |
421 | populateView(); | 418 | populateView(); |
422 | update(); | 419 | update(); |
@@ -786,9 +783,10 @@ void AdvancedFm::removeCustomDir() | |||
786 | // int ramble=-24; | 783 | // int ramble=-24; |
787 | //first remove list | 784 | //first remove list |
788 | if(list.grep(dir,true).isEmpty()) | 785 | if(list.grep(dir,true).isEmpty()) |
789 | { | 786 | { |
790 | QMessageBox::message("AdvancedFm",tr("Cannot remove current directory\nfrom bookmarks.\nIt is not bookmarked!!")); | 787 | QMessageBox::message("AdvancedFm", |
788 | tr("Cannot remove current directory\nfrom bookmarks.\nIt is not bookmarked!!")); | ||
791 | } | 789 | } |
792 | else | 790 | else |
793 | { | 791 | { |
794 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) | 792 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) |
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index c553017..062a013 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -54,21 +54,21 @@ void AdvancedFm::doDirChange() | |||
54 | void AdvancedFm::showMenuHidden() | 54 | void AdvancedFm::showMenuHidden() |
55 | { | 55 | { |
56 | if (b) | 56 | if (b) |
57 | { | 57 | { |
58 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 58 | CurrentDir()->setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
59 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 59 | OtherDir()->setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
60 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); | 60 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); |
61 | // b=FALSE; | 61 | // b=FALSE; |
62 | 62 | ||
63 | } | 63 | } |
64 | else | 64 | else |
65 | { | 65 | { |
66 | currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); | 66 | CurrentDir()->setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); |
67 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); | 67 | OtherDir()->setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); |
68 | fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); | 68 | fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); |
69 | // b=TRUE; | 69 | // b=TRUE; |
70 | } | 70 | } |
71 | populateView(); | 71 | populateView(); |
72 | // populateRemoteView(); | 72 | // populateRemoteView(); |
73 | // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); | 73 | // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); |
74 | if(b) b = false; else b = true; | 74 | if(b) b = false; else b = true; |
@@ -78,15 +78,17 @@ void AdvancedFm::showHidden() | |||
78 | { | 78 | { |
79 | if (b) | 79 | if (b) |
80 | { | 80 | { |
81 | CurrentDir()->setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 81 | CurrentDir()->setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
82 | OtherDir()->setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | ||
82 | // fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); | 83 | // fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); |
83 | // b=FALSE; | 84 | // b=FALSE; |
84 | 85 | ||
85 | } | 86 | } |
86 | else | 87 | else |
87 | { | 88 | { |
88 | CurrentDir()->setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); | 89 | CurrentDir()->setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); |
90 | s OtherDir()->setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); | ||
89 | // fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); | 91 | // fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); |
90 | // b=TRUE; | 92 | // b=TRUE; |
91 | } | 93 | } |
92 | populateView(); | 94 | populateView(); |