summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-09-26 01:49:06 (UTC)
committer llornkcor <llornkcor>2004-09-26 01:49:06 (UTC)
commit358c159e5d4f28eedfbd8e539e4420324c565eba (patch) (unidiff)
tree59a1280ed80b8b2ebdcf38b90ead208bfd18b628
parentff6c55833c0cba33469f668ca158e96b409b4967 (diff)
downloadopie-358c159e5d4f28eedfbd8e539e4420324c565eba.zip
opie-358c159e5d4f28eedfbd8e539e4420324c565eba.tar.gz
opie-358c159e5d4f28eedfbd8e539e4420324c565eba.tar.bz2
fix view menu
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 0dc822d..9aa0c77 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -63,39 +63,39 @@ void AdvancedFm::cleanUp() {
63 sfile+="/._temp"; 63 sfile+="/._temp";
64 else 64 else
65 sfile+="._temp"; 65 sfile+="._temp";
66 QFile file( sfile); 66 QFile file( sfile);
67 if(file.exists()) 67 if(file.exists())
68 file.remove(); 68 file.remove();
69} 69}
70 70
71void AdvancedFm::tabChanged(QWidget *wd) { 71void AdvancedFm::tabChanged(QWidget *wd) {
72 // qDebug("tabChanged"); 72 // qDebug("tabChanged");
73 if(wd == tab) { 73 if(wd == tab) {
74 whichTab = 1; 74 whichTab = 1;
75 viewMenu->setItemChecked(viewMenu->idAt(0), true);
76 viewMenu->setItemChecked(viewMenu->idAt(1), false);
75 // qDebug("tabchanged: LOCAL VIEW SHOWN"); 77 // qDebug("tabchanged: LOCAL VIEW SHOWN");
76 } 78 }
77 else if(wd == tab_2) { 79 else if(wd == tab_2) {
78 whichTab = 2; 80 whichTab = 2;
81 viewMenu->setItemChecked(viewMenu->idAt(0), false);
82 viewMenu->setItemChecked(viewMenu->idAt(1), true);
79 // qDebug("tabchanged: REMOTE VIEW SHOWN"); 83 // qDebug("tabchanged: REMOTE VIEW SHOWN");
80 } 84 }
81 qApp->processEvents(); 85 qApp->processEvents();
82 QString path = CurrentDir()->canonicalPath(); 86 QString path = CurrentDir()->canonicalPath();
83 // qDebug(path); 87 // qDebug(path);
84 if ( TabWidget->currentWidget() == tab) { 88 if ( TabWidget->currentWidget() == tab) {
85 viewMenu->setItemChecked(viewMenu->idAt(0), true);
86 viewMenu->setItemChecked(viewMenu->idAt(1), false);
87 } else { 89 } else {
88 viewMenu->setItemChecked(viewMenu->idAt(0), false);
89 viewMenu->setItemChecked(viewMenu->idAt(1), true);
90 } 90 }
91 91
92 chdir( path.latin1()); 92 chdir( path.latin1());
93 currentPathCombo->lineEdit()->setText(path); 93 currentPathCombo->lineEdit()->setText(path);
94} 94}
95 95
96 96
97void AdvancedFm::populateView() { 97void AdvancedFm::populateView() {
98 98
99 QPixmap pm; 99 QPixmap pm;
100 QListView *thisView = CurrentView(); 100 QListView *thisView = CurrentView();
101 QDir *thisDir = CurrentDir(); 101 QDir *thisDir = CurrentDir();
@@ -356,25 +356,25 @@ void AdvancedFm::doAbout() {
356 356
357void AdvancedFm::keyPressEvent( QKeyEvent *e) { 357void AdvancedFm::keyPressEvent( QKeyEvent *e) {
358 Q_UNUSED(e); 358 Q_UNUSED(e);
359} 359}
360 360
361void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { 361void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
362// if( CurrentView()->hasFocus() ) 362// if( CurrentView()->hasFocus() )
363// e->ignore(); 363// e->ignore();
364 if( currentPathCombo->lineEdit()->hasFocus()) { 364 if( currentPathCombo->lineEdit()->hasFocus()) {
365 // qDebug("shout!"); 365 // qDebug("shout!");
366 } 366 }
367 367
368 else if( e->key() == Key_Left ) 368 else if( e->key() == Key_Left )
369 upDir(); 369 upDir();
370 else if( e->key() == Key_Return || e->key() == Key_Enter) 370 else if( e->key() == Key_Return || e->key() == Key_Enter)
371 navigateToSelected(); 371 navigateToSelected();
372 else if( e->key() == Key_Tab) 372 else if( e->key() == Key_Tab)
373 setOtherTabCurrent(); 373 setOtherTabCurrent();
374 else if( e->key() == Key_Delete ) 374 else if( e->key() == Key_Delete )
375 del(); 375 del();
376 else if( e->key() == Key_A) 376 else if( e->key() == Key_A)
377 copyAs(); 377 copyAs();
378 else if( e->key() == Key_C) 378 else if( e->key() == Key_C)
379 copy(); 379 copy();
380 else if( e->key() == Key_E) 380 else if( e->key() == Key_E)