author | llornkcor <llornkcor> | 2002-04-25 18:15:30 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-25 18:15:30 (UTC) |
commit | 42cb3d115a46637f4c46f4b3f3821075a2c18f02 (patch) (side-by-side diff) | |
tree | b11a7aebc1c5282e463e211d89ba64cccf8dae29 | |
parent | 1568872bbd1c92242d7110fe931da23226ca0c55 (diff) | |
download | opie-42cb3d115a46637f4c46f4b3f3821075a2c18f02.zip opie-42cb3d115a46637f4c46f4b3f3821075a2c18f02.tar.gz opie-42cb3d115a46637f4c46f4b3f3821075a2c18f02.tar.bz2 |
fixed menu items
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 35 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 4 |
2 files changed, 33 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 1083f23..4289fcf 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -120,5 +120,6 @@ AdvancedFm::AdvancedFm( ) fileMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); + fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); fileMenu->insertSeparator(); - fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); - fileMenu->insertItem( tr( "Rename" ), this, SLOT( localRename() )); + fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() )); + fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() )); fileMenu->insertItem( tr( "Run Command" ), this, SLOT( runCommandStd() )); @@ -126,3 +127,3 @@ AdvancedFm::AdvancedFm( ) fileMenu->insertSeparator(); - fileMenu->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); + fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() )); fileMenu->setCheckable(TRUE); @@ -203,8 +204,9 @@ AdvancedFm::AdvancedFm( ) - currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); + currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); currentDir.setPath( QDir::currentDirPath()); - currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); + currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); currentRemoteDir.setPath( QDir::currentDirPath()); +b = TRUE; currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); @@ -1264,2 +1266,25 @@ void AdvancedFm::fileStatus() { +void AdvancedFm::mkDir() { + if (TabWidget->currentPageIndex() == 0) + localMakDir(); + else + remoteMakDir(); + +} + +void AdvancedFm::rn() { + if (TabWidget->currentPageIndex() == 0) + localRename(); + else + remoteRename(); + +} + +void AdvancedFm::del() { + if (TabWidget->currentPageIndex() == 0) + localDelete(); + else + remoteDelete(); +} + void AdvancedFm::doAbout() { diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 30ff28c..a5f26a7 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h @@ -66,3 +66,5 @@ protected slots: // void copy(); - + void mkDir(); + void del(); + void rn(); void populateLocalView(); |