summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index ec475a4..7fba0af 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -732,2 +732,4 @@ void AdvancedFm::showFileMenu() {
QPopupMenu *m = new QPopupMenu(0);
+ QPopupMenu *n = new QPopupMenu(0);
+// QPopupMenu *o = new QPopupMenu(0);
@@ -735,3 +737,3 @@ void AdvancedFm::showFileMenu() {
if ( !QFileInfo(fi).isDir() ) {
- m->insertSeparator();
+// m->insertSeparator();
// m->insertItem( tr( "Change Directory" ), this, SLOT( doLocalCd() ));
@@ -747,29 +749,33 @@ void AdvancedFm::showFileMenu() {
}
- m->insertSeparator();
+ m->insertItem(tr("Actions"),n);
+ if(isLocalView)
+ n->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() ));
+ else
+ n->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() ));
+
+ n->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() ));
+ n->insertSeparator();
+
+
if(isLocalView)
- m->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() ));
+ n->insertItem( tr( "Rename" ), this, SLOT( localRename() ));
else
- m->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() ));
+ n->insertItem( tr( "Rename" ), this, SLOT( remoteRename() ));
- m->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() ));
- m->insertSeparator();
+ n->insertItem( tr( "Copy" ), this, SLOT( copy() ));
+ n->insertItem( tr( "Copy As" ), this, SLOT( copyAs() ));
+ n->insertItem( tr( "Copy Same Dir" ), this, SLOT( copySameDir() ));
+ n->insertItem( tr( "Move" ), this, SLOT( move() ));
+
+ n->insertSeparator();
if(isLocalView)
- m->insertItem( tr( "Rename" ), this, SLOT( localRename() ));
+ n->insertItem( tr( "Delete" ), this, SLOT( localDelete() ));
else
- m->insertItem( tr( "Rename" ), this, SLOT( remoteRename() ));
+ n->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() ));
- m->insertItem( tr( "Copy" ), this, SLOT( copy() ));
- m->insertItem( tr( "Copy As" ), this, SLOT( copyAs() ));
- m->insertItem( tr( "Copy Same Dir" ), this, SLOT( copySameDir() ));
- m->insertItem( tr( "Move" ), this, SLOT( move() ));
- m->insertSeparator();
- m->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() ));
-// if(isLocalView)
-// m->insertItem( tr( "Rescan" ), this, SLOT( populateLocalView() ));
-// else
-// m->insertItem( tr( "Rescan" ), this, SLOT( populateRemoteView() ));
+ m->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() ));
@@ -777,8 +783,2 @@ void AdvancedFm::showFileMenu() {
m->insertItem( tr( "File Info" ), this, SLOT( fileStatus() ));
- m->insertSeparator();
-
- if(isLocalView)
- m->insertItem( tr( "Delete" ), this, SLOT( localDelete() ));
- else
- m->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() ));