author | llornkcor <llornkcor> | 2002-04-25 18:23:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-25 18:23:16 (UTC) |
commit | a4e419f939f4f4237b56e117edaa7dc0d93dd396 (patch) (unidiff) | |
tree | 3d6914ab34e11e9d4de1d2c4c7e56096c1845d6c | |
parent | 42cb3d115a46637f4c46f4b3f3821075a2c18f02 (diff) | |
download | opie-a4e419f939f4f4237b56e117edaa7dc0d93dd396.zip opie-a4e419f939f4f4237b56e117edaa7dc0d93dd396.tar.gz opie-a4e419f939f4f4237b56e117edaa7dc0d93dd396.tar.bz2 |
changed bool to reflect new gizmo thingymabobber
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 4289fcf..5f47b9b 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -205,14 +205,14 @@ AdvancedFm::AdvancedFm( ) | |||
205 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 205 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
206 | currentDir.setPath( QDir::currentDirPath()); | 206 | currentDir.setPath( QDir::currentDirPath()); |
207 | 207 | ||
208 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 208 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
209 | currentRemoteDir.setPath( QDir::currentDirPath()); | 209 | currentRemoteDir.setPath( QDir::currentDirPath()); |
210 | 210 | ||
211 | b = TRUE; | 211 | b = TRUE; |
212 | currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); | 212 | currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); |
213 | currentPathCombo->setEditable(TRUE); | 213 | currentPathCombo->setEditable(TRUE); |
214 | layout->addMultiCellWidget( currentPathCombo, 3, 3, 0, 6); | 214 | layout->addMultiCellWidget( currentPathCombo, 3, 3, 0, 6); |
215 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); | 215 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); |
216 | 216 | ||
217 | connect( currentPathCombo, SIGNAL( activated( const QString & ) ), | 217 | connect( currentPathCombo, SIGNAL( activated( const QString & ) ), |
218 | this, SLOT( currentPathComboActivated( const QString & ) ) ); | 218 | this, SLOT( currentPathComboActivated( const QString & ) ) ); |
@@ -559,13 +559,13 @@ void AdvancedFm::doRemoteCd() | |||
559 | { | 559 | { |
560 | localListClicked( Remote_View->currentItem()); | 560 | localListClicked( Remote_View->currentItem()); |
561 | } | 561 | } |
562 | 562 | ||
563 | void AdvancedFm::showHidden() | 563 | void AdvancedFm::showHidden() |
564 | { | 564 | { |
565 | if (!b) { | 565 | if (b) { |
566 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 566 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
567 | // localMenu->setItemChecked(localMenu->idAt(0),TRUE); | 567 | // localMenu->setItemChecked(localMenu->idAt(0),TRUE); |
568 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 568 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
569 | b=TRUE; | 569 | b=TRUE; |
570 | 570 | ||
571 | } else { | 571 | } else { |
@@ -576,13 +576,13 @@ void AdvancedFm::showHidden() | |||
576 | } | 576 | } |
577 | populateLocalView(); | 577 | populateLocalView(); |
578 | } | 578 | } |
579 | 579 | ||
580 | void AdvancedFm::showRemoteHidden() | 580 | void AdvancedFm::showRemoteHidden() |
581 | { | 581 | { |
582 | if (!b) { | 582 | if (b) { |
583 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 583 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
584 | // viewMenu->setItemChecked(localMenu->idAt(0),TRUE); | 584 | // viewMenu->setItemChecked(localMenu->idAt(0),TRUE); |
585 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 585 | // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
586 | b=TRUE; | 586 | b=TRUE; |
587 | 587 | ||
588 | } else { | 588 | } else { |
@@ -640,13 +640,13 @@ void AdvancedFm::showLocalMenu(QListViewItem * item) | |||
640 | m.insertSeparator(); | 640 | m.insertSeparator(); |
641 | m.insertItem( tr( "Delete" ), this, SLOT( localDelete() )); | 641 | m.insertItem( tr( "Delete" ), this, SLOT( localDelete() )); |
642 | m.insertSeparator(); | 642 | m.insertSeparator(); |
643 | m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); | 643 | m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); |
644 | m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); | 644 | m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); |
645 | m.setCheckable(TRUE); | 645 | m.setCheckable(TRUE); |
646 | if (b) | 646 | if (!b) |
647 | m.setItemChecked(m.idAt(0),TRUE); | 647 | m.setItemChecked(m.idAt(0),TRUE); |
648 | else | 648 | else |
649 | m.setItemChecked(m.idAt(0),FALSE); | 649 | m.setItemChecked(m.idAt(0),FALSE); |
650 | m.exec( QCursor::pos() ); | 650 | m.exec( QCursor::pos() ); |
651 | } | 651 | } |
652 | } | 652 | } |
@@ -673,13 +673,13 @@ void AdvancedFm::showRemoteMenu(QListViewItem * item) | |||
673 | m.insertSeparator(); | 673 | m.insertSeparator(); |
674 | m.insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); | 674 | m.insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); |
675 | m.insertSeparator(); | 675 | m.insertSeparator(); |
676 | m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); | 676 | m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); |
677 | m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); | 677 | m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); |
678 | m.setCheckable(TRUE); | 678 | m.setCheckable(TRUE); |
679 | if (b) | 679 | if (!b) |
680 | m.setItemChecked(m.idAt(0),TRUE); | 680 | m.setItemChecked(m.idAt(0),TRUE); |
681 | else | 681 | else |
682 | m.setItemChecked(m.idAt(0),FALSE); | 682 | m.setItemChecked(m.idAt(0),FALSE); |
683 | m.exec( QCursor::pos() ); | 683 | m.exec( QCursor::pos() ); |
684 | } | 684 | } |
685 | } | 685 | } |