summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-10 00:16:23 (UTC)
committer llornkcor <llornkcor>2002-10-10 00:16:23 (UTC)
commit91e597f6607a1db7251c217154ab56ea94fb0bca (patch) (side-by-side diff)
tree684181f5e03851c4d41d944bc0857aec20979d6e
parent4c7d8f663ee98751da0f8264ea1d49799463f0bf (diff)
downloadopie-91e597f6607a1db7251c217154ab56ea94fb0bca.zip
opie-91e597f6607a1db7251c217154ab56ea94fb0bca.tar.gz
opie-91e597f6607a1db7251c217154ab56ea94fb0bca.tar.bz2
made popupmenu in popupmenu
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
@@ -727,63 +727,63 @@ void AdvancedFm::showFileMenu() {
MimeType mt( curApp );
const AppLnk* app = mt.application();
QFile fi(curApp);
QPopupMenu *m = new QPopupMenu(0);
+ QPopupMenu *n = new QPopupMenu(0);
+// QPopupMenu *o = new QPopupMenu(0);
m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() ));
if ( !QFileInfo(fi).isDir() ) {
- m->insertSeparator();
+// m->insertSeparator();
// m->insertItem( tr( "Change Directory" ), this, SLOT( doLocalCd() ));
// } else {
if ( app )
m->insertItem( app->pixmap(), tr( "Open in "
+ app->name() ), this, SLOT( runThis() ) );
else if( QFileInfo(fi).isExecutable() )
m->insertItem( Resource::loadPixmap( app->name()), tr( "Execute" ), this, SLOT( runThis() ) );
m->insertItem( Resource::loadPixmap( "txt" ), tr( "Open as text" ),this, SLOT( runText() ) );
}
- 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() ));
m->insertItem( tr( "Run Command" ), this, SLOT( runCommand() ));
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() ));
m->insertSeparator();
m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() ));
#if defined(QT_QWS_OPIE)
m->insertItem( tr( "Properties" ), this, SLOT( doProperties() ));