author | llornkcor <llornkcor> | 2002-11-16 03:59:23 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-16 03:59:23 (UTC) |
commit | b17b2274c200403da25a994ed9d8ba4856d725c0 (patch) (unidiff) | |
tree | d3f64243b4f0a8b8ec6300ac33430633da9543a8 /noncore/apps/advancedfm | |
parent | d3e670971b2b721eb2b484801cf1c6ecbf52d436 (diff) | |
download | opie-b17b2274c200403da25a994ed9d8ba4856d725c0.zip opie-b17b2274c200403da25a994ed9d8ba4856d725c0.tar.gz opie-b17b2274c200403da25a994ed9d8ba4856d725c0.tar.bz2 |
various changes, popupmenu at complete left.
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 08dc24e..23244a2 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -804,26 +804,26 @@ void AdvancedFm::showFileMenu() { | |||
804 | #if defined(QT_QWS_OPIE) | 804 | #if defined(QT_QWS_OPIE) |
805 | m->insertItem( tr( "Properties" ), this, SLOT( doProperties() )); | 805 | m->insertItem( tr( "Properties" ), this, SLOT( doProperties() )); |
806 | #endif | 806 | #endif |
807 | m->setCheckable(TRUE); | 807 | m->setCheckable(TRUE); |
808 | if (!b) | 808 | if (!b) |
809 | m->setItemChecked(m->idAt(0),TRUE); | 809 | m->setItemChecked(m->idAt(0),TRUE); |
810 | else | 810 | else |
811 | m->setItemChecked(m->idAt(0),FALSE); | 811 | m->setItemChecked(m->idAt(0),FALSE); |
812 | 812 | ||
813 | if(Ir::supported()) | 813 | if(Ir::supported()) |
814 | m->insertItem( tr( "Beam File" ), this, SLOT( doBeam() )); | 814 | m->insertItem( tr( "Beam File" ), this, SLOT( doBeam() )); |
815 | m->setFocus(); | 815 | m->setFocus(); |
816 | m->exec( QCursor::pos() ); | 816 | m->exec( QPoint( 4,QCursor::pos().y()) ); |
817 | sleep(1); | 817 | |
818 | if(m) delete m; | 818 | if(m) delete m; |
819 | } | 819 | } |
820 | 820 | ||
821 | 821 | ||
822 | void AdvancedFm::cancelMenuTimer() { | 822 | void AdvancedFm::cancelMenuTimer() { |
823 | 823 | ||
824 | // qDebug("selectionChanged: cancel menu timer"); | 824 | // qDebug("selectionChanged: cancel menu timer"); |
825 | if( menuTimer.isActive() ) | 825 | if( menuTimer.isActive() ) |
826 | menuTimer.stop(); | 826 | menuTimer.stop(); |
827 | } | 827 | } |
828 | 828 | ||
829 | QString AdvancedFm::checkDiskSpace(const QString &path) { | 829 | QString AdvancedFm::checkDiskSpace(const QString &path) { |
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index f0a0a35..0966f02 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp | |||
@@ -78,24 +78,25 @@ void AdvancedFm::init() { | |||
78 | homeButton->setPixmap(Resource::loadPixmap("home")); | 78 | homeButton->setPixmap(Resource::loadPixmap("home")); |
79 | homeButton->setFixedSize( QSize( 20, 20 ) ); | 79 | homeButton->setFixedSize( QSize( 20, 20 ) ); |
80 | layout->addMultiCellWidget( homeButton, 0, 0, 7, 7); | 80 | layout->addMultiCellWidget( homeButton, 0, 0, 7, 7); |
81 | 81 | ||
82 | fileMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() )); | 82 | fileMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() )); |
83 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); | 83 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); |
84 | fileMenu->insertSeparator(); | 84 | fileMenu->insertSeparator(); |
85 | fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() )); | 85 | fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() )); |
86 | fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() )); | 86 | fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() )); |
87 | fileMenu->insertItem( tr( "Run Command" ), this, SLOT( runCommandStd() )); | 87 | fileMenu->insertItem( tr( "Run Command" ), this, SLOT( runCommandStd() )); |
88 | fileMenu->insertItem( tr( "Run Command with Output" ), this, SLOT( runCommand() )); | 88 | fileMenu->insertItem( tr( "Run Command with Output" ), this, SLOT( runCommand() )); |
89 | fileMenu->insertSeparator(); | 89 | fileMenu->insertSeparator(); |
90 | fileMenu->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() )); | ||
90 | fileMenu->insertItem( tr( "Select All" ), this, SLOT( selectAll() )); | 91 | fileMenu->insertItem( tr( "Select All" ), this, SLOT( selectAll() )); |
91 | fileMenu->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() )); | 92 | fileMenu->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() )); |
92 | fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() )); | 93 | fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() )); |
93 | fileMenu->setCheckable(TRUE); | 94 | fileMenu->setCheckable(TRUE); |
94 | 95 | ||
95 | viewMenu->insertItem( tr( "Switch to Local" ), this, SLOT( switchToLocalTab() )); | 96 | viewMenu->insertItem( tr( "Switch to Local" ), this, SLOT( switchToLocalTab() )); |
96 | viewMenu->insertItem( tr( "Switch to Remote" ), this, SLOT( switchToRemoteTab() )); | 97 | viewMenu->insertItem( tr( "Switch to Remote" ), this, SLOT( switchToRemoteTab() )); |
97 | viewMenu->insertSeparator(); | 98 | viewMenu->insertSeparator(); |
98 | viewMenu->insertItem( tr( "About" ), this, SLOT( doAbout() )); | 99 | viewMenu->insertItem( tr( "About" ), this, SLOT( doAbout() )); |
99 | viewMenu->setCheckable(TRUE); | 100 | viewMenu->setCheckable(TRUE); |
100 | 101 | ||
101 | 102 | ||