summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 9cb9aba..3bfec7d 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -356,53 +356,52 @@ void AdvancedFm::homeButtonPushed() {
356void AdvancedFm::docButtonPushed() { 356void AdvancedFm::docButtonPushed() {
357 changeTo(QPEApplication::documentDir()); 357 changeTo(QPEApplication::documentDir());
358} 358}
359 359
360void AdvancedFm::SDButtonPushed() { 360void AdvancedFm::SDButtonPushed() {
361 changeTo("/mnt/card");// this can change so fix 361 changeTo("/mnt/card");// this can change so fix
362} 362}
363 363
364void AdvancedFm::CFButtonPushed() { 364void AdvancedFm::CFButtonPushed() {
365 if(zaurusDevice) 365 if(zaurusDevice)
366 changeTo("/mnt/cf"); //zaurus 366 changeTo("/mnt/cf"); //zaurus
367 else 367 else
368 changeTo("/mnt/hda"); //ipaq 368 changeTo("/mnt/hda"); //ipaq
369} 369}
370 370
371void AdvancedFm::QPEButtonPushed() { 371void AdvancedFm::QPEButtonPushed() {
372 changeTo(QPEApplication::qpeDir()); 372 changeTo(QPEApplication::qpeDir());
373} 373}
374 374
375void AdvancedFm::doAbout() { 375void AdvancedFm::doAbout() {
376 QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>")); 376 QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>"));
377} 377}
378 378
379void AdvancedFm::keyPressEvent( QKeyEvent *e) { 379void AdvancedFm::keyPressEvent( QKeyEvent *e) {
380 qDebug("keypressevent"); 380 Q_UNUSED(e);
381} 381}
382 382
383void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { 383void AdvancedFm::keyReleaseEvent( QKeyEvent *e) {
384 qDebug("key release");
385 if( CurrentView()->hasFocus() ) 384 if( CurrentView()->hasFocus() )
386 e->ignore(); 385 e->ignore();
387 if( e->key() == Key_Left ) 386 if( e->key() == Key_Left )
388 upDir(); 387 upDir();
389 else if( e->key() == Key_Return || e->key() == Key_Enter) 388 else if( e->key() == Key_Return || e->key() == Key_Enter)
390 navigateToSelected(); 389 navigateToSelected();
391 else if( e->key() == Key_Tab) 390 else if( e->key() == Key_Tab)
392 setOtherTabCurrent(); 391 setOtherTabCurrent();
393 else if( e->key() == Key_Delete ) 392 else if( e->key() == Key_Delete )
394 del(); 393 del();
395 else if( e->key() == Key_A) 394 else if( e->key() == Key_A)
396 copyAs(); 395 copyAs();
397 else if( e->key() == Key_C) 396 else if( e->key() == Key_C)
398 copy(); 397 copy();
399 else if( e->key() == Key_E) 398 else if( e->key() == Key_E)
400 runThis(); 399 runThis();
401 else if( e->key() == Key_G) 400 else if( e->key() == Key_G)
402 currentPathCombo->lineEdit()->setFocus(); 401 currentPathCombo->lineEdit()->setFocus();
403 else if( e->key() == Key_H ) 402 else if( e->key() == Key_H )
404 showHidden(); 403 showHidden();
405 else if( e->key() == Key_I) 404 else if( e->key() == Key_I)
406 fileStatus(); 405 fileStatus();
407 else if( e->key() == Key_M) 406 else if( e->key() == Key_M)
408 move(); 407 move();
@@ -792,32 +791,33 @@ void AdvancedFm::gotoDirectory(const QString &file) {
792 if(QDir( curDir).exists() ) { 791 if(QDir( curDir).exists() ) {
793 thisDir->setPath( curDir ); 792 thisDir->setPath( curDir );
794 chdir( curDir.latin1() ); 793 chdir( curDir.latin1() );
795 thisDir->cd( curDir, TRUE); 794 thisDir->cd( curDir, TRUE);
796 populateView(); 795 populateView();
797 } 796 }
798 findFile(file); 797 findFile(file);
799 } 798 }
800 799
801} 800}
802 801
803void AdvancedFm::findFile(const QString &fileName) { 802void AdvancedFm::findFile(const QString &fileName) {
804 QFileInfo fi(fileName); 803 QFileInfo fi(fileName);
805 QListView *thisView = CurrentView(); 804 QListView *thisView = CurrentView();
806 QListViewItemIterator it( thisView ); 805 QListViewItemIterator it( thisView );
807 for ( ; it.current(); ++it ) { 806 for ( ; it.current(); ++it ) {
808 if(it.current()->text(0) == fi.fileName()) { 807 if(it.current()->text(0) == fi.fileName()) {
809 it.current()->setSelected(true); 808 it.current()->setSelected(true);
810 thisView->ensureItemVisible(it.current()); 809 thisView->ensureItemVisible(it.current());
811 } 810 }
812 } 811 }
813} 812}
814 813
815void AdvancedFm::slotSwitchMenu(int item) { 814void AdvancedFm::slotSwitchMenu(int item) {
815 Q_UNUSED(item);
816 // qDebug( "Switch %d",item); 816 // qDebug( "Switch %d",item);
817 // viewMenu->setItemChecked(item, true); 817 // viewMenu->setItemChecked(item, true);
818} 818}
819 819
820void AdvancedFm::navigateToSelected() { 820void AdvancedFm::navigateToSelected() {
821 if( !CurrentView()->currentItem()) return; 821 if( !CurrentView()->currentItem()) return;
822 doDirChange(); 822 doDirChange();
823} 823}