author | llornkcor <llornkcor> | 2004-09-25 05:01:41 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 05:01:41 (UTC) |
commit | 45a59fcd4a35c9c0ce35162c0ac7a5c914e24a52 (patch) (unidiff) | |
tree | 99fd7480b1825b8eb956f40f163aa3fc20cfc6cf | |
parent | 06073d16f0dd3fb332af60467bb90480e21ebc28 (diff) | |
download | opie-45a59fcd4a35c9c0ce35162c0ac7a5c914e24a52.zip opie-45a59fcd4a35c9c0ce35162c0ac7a5c914e24a52.tar.gz opie-45a59fcd4a35c9c0ce35162c0ac7a5c914e24a52.tar.bz2 |
redunancy
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 31 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 1 |
2 files changed, 4 insertions, 28 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 3bfec7d..3cd2067 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -281,129 +281,129 @@ void AdvancedFm::refreshCurrentTab() { | |||
281 | } | 281 | } |
282 | 282 | ||
283 | void AdvancedFm::switchToLocalTab() { | 283 | void AdvancedFm::switchToLocalTab() { |
284 | TabWidget->setCurrentWidget(0); | 284 | TabWidget->setCurrentWidget(0); |
285 | Local_View->setFocus(); | 285 | Local_View->setFocus(); |
286 | whichTab = 1; | 286 | whichTab = 1; |
287 | } | 287 | } |
288 | 288 | ||
289 | void AdvancedFm::switchToRemoteTab() { | 289 | void AdvancedFm::switchToRemoteTab() { |
290 | TabWidget->setCurrentWidget(1); | 290 | TabWidget->setCurrentWidget(1); |
291 | Remote_View->setFocus(); | 291 | Remote_View->setFocus(); |
292 | whichTab = 2; | 292 | whichTab = 2; |
293 | } | 293 | } |
294 | 294 | ||
295 | void AdvancedFm::currentPathComboChanged() { | 295 | void AdvancedFm::currentPathComboChanged() { |
296 | if(QDir( currentPathCombo->lineEdit()->text()).exists()) { | 296 | if(QDir( currentPathCombo->lineEdit()->text()).exists()) { |
297 | CurrentDir()->setPath( currentPathCombo->lineEdit()->text() ); | 297 | CurrentDir()->setPath( currentPathCombo->lineEdit()->text() ); |
298 | populateView(); | 298 | populateView(); |
299 | } else { | 299 | } else { |
300 | QMessageBox::message(tr("Note"),tr("That directory does not exist")); | 300 | QMessageBox::message(tr("Note"),tr("That directory does not exist")); |
301 | } | 301 | } |
302 | } | 302 | } |
303 | 303 | ||
304 | void AdvancedFm::fillCombo(const QString ¤tPath) { | 304 | void AdvancedFm::fillCombo(const QString ¤tPath) { |
305 | 305 | ||
306 | if ( TabWidget->currentWidget() == tab) { | 306 | if ( TabWidget->currentWidget() == tab) { |
307 | // if ( whichTab == 1) { | 307 | // if ( whichTab == 1) { |
308 | currentPathCombo->lineEdit()->setText( currentPath); | 308 | currentPathCombo->lineEdit()->setText( currentPath); |
309 | if( localDirPathStringList.grep( currentPath,TRUE).isEmpty() ) { | 309 | if( localDirPathStringList.grep( currentPath,TRUE).isEmpty() ) { |
310 | currentPathCombo->clear(); | 310 | currentPathCombo->clear(); |
311 | localDirPathStringList.prepend( currentPath ); | 311 | localDirPathStringList.prepend( currentPath ); |
312 | currentPathCombo->insertStringList( localDirPathStringList,-1); | 312 | currentPathCombo->insertStringList( localDirPathStringList,-1); |
313 | } | 313 | } |
314 | } else { | 314 | } else { |
315 | currentPathCombo->lineEdit()->setText( currentPath); | 315 | currentPathCombo->lineEdit()->setText( currentPath); |
316 | if( remoteDirPathStringList.grep( currentPath,TRUE).isEmpty() ) { | 316 | if( remoteDirPathStringList.grep( currentPath,TRUE).isEmpty() ) { |
317 | currentPathCombo->clear(); | 317 | currentPathCombo->clear(); |
318 | remoteDirPathStringList.prepend( currentPath ); | 318 | remoteDirPathStringList.prepend( currentPath ); |
319 | currentPathCombo->insertStringList( remoteDirPathStringList,-1); | 319 | currentPathCombo->insertStringList( remoteDirPathStringList,-1); |
320 | } | 320 | } |
321 | } | 321 | } |
322 | } | 322 | } |
323 | 323 | ||
324 | void AdvancedFm::currentPathComboActivated(const QString & currentPath) { | 324 | void AdvancedFm::currentPathComboActivated(const QString & currentPath) { |
325 | chdir( currentPath.latin1() ); | 325 | chdir( currentPath.latin1() ); |
326 | CurrentDir()->cd( currentPath, TRUE); | 326 | CurrentDir()->cd( currentPath, TRUE); |
327 | populateView(); | 327 | populateView(); |
328 | update(); | 328 | update(); |
329 | } | 329 | } |
330 | 330 | ||
331 | QStringList AdvancedFm::getPath() { | 331 | QStringList AdvancedFm::getPath() { |
332 | QStringList strList; | 332 | QStringList strList; |
333 | QListView *thisView=CurrentView(); | 333 | QListView *thisView=CurrentView(); |
334 | QList<QListViewItem> * getSelectedItems( QListView * thisView ); | 334 | QList<QListViewItem> * getSelectedItems( QListView * thisView ); |
335 | QListViewItemIterator it( thisView ); | 335 | QListViewItemIterator it( thisView ); |
336 | for ( ; it.current(); ++it ) { | 336 | for ( ; it.current(); ++it ) { |
337 | if ( it.current()->isSelected() ) { | 337 | if ( it.current()->isSelected() ) { |
338 | strList << it.current()->text(0); | 338 | strList << it.current()->text(0); |
339 | // odebug << it.current()->text(0) << oendl; | 339 | // odebug << it.current()->text(0) << oendl; |
340 | } | 340 | } |
341 | } | 341 | } |
342 | return strList; | 342 | return strList; |
343 | } | 343 | } |
344 | 344 | ||
345 | void AdvancedFm::changeTo(QString dir) { | 345 | void AdvancedFm::changeTo(const QString dir) { |
346 | chdir( dir.latin1()); | 346 | chdir( dir.latin1()); |
347 | CurrentDir()->cd(dir, TRUE); | 347 | CurrentDir()->cd(dir, TRUE); |
348 | populateView(); | 348 | populateView(); |
349 | update(); | 349 | update(); |
350 | } | 350 | } |
351 | 351 | ||
352 | void AdvancedFm::homeButtonPushed() { | 352 | void AdvancedFm::homeButtonPushed() { |
353 | changeTo(QDir::homeDirPath()); | 353 | changeTo(QDir::homeDirPath()); |
354 | } | 354 | } |
355 | 355 | ||
356 | void AdvancedFm::docButtonPushed() { | 356 | void AdvancedFm::docButtonPushed() { |
357 | changeTo(QPEApplication::documentDir()); | 357 | changeTo(QPEApplication::documentDir()); |
358 | } | 358 | } |
359 | 359 | ||
360 | void AdvancedFm::SDButtonPushed() { | 360 | void AdvancedFm::SDButtonPushed() { |
361 | changeTo("/mnt/card");// this can change so fix | 361 | changeTo("/mnt/card");// this can change so fix |
362 | } | 362 | } |
363 | 363 | ||
364 | void AdvancedFm::CFButtonPushed() { | 364 | void 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 | ||
371 | void AdvancedFm::QPEButtonPushed() { | 371 | void AdvancedFm::QPEButtonPushed() { |
372 | changeTo(QPEApplication::qpeDir()); | 372 | changeTo(QPEApplication::qpeDir()); |
373 | } | 373 | } |
374 | 374 | ||
375 | void AdvancedFm::doAbout() { | 375 | void 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 | ||
379 | void AdvancedFm::keyPressEvent( QKeyEvent *e) { | 379 | void AdvancedFm::keyPressEvent( QKeyEvent *e) { |
380 | Q_UNUSED(e); | 380 | Q_UNUSED(e); |
381 | } | 381 | } |
382 | 382 | ||
383 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { | 383 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { |
384 | if( CurrentView()->hasFocus() ) | 384 | if( CurrentView()->hasFocus() ) |
385 | e->ignore(); | 385 | e->ignore(); |
386 | if( e->key() == Key_Left ) | 386 | if( e->key() == Key_Left ) |
387 | upDir(); | 387 | upDir(); |
388 | else if( e->key() == Key_Return || e->key() == Key_Enter) | 388 | else if( e->key() == Key_Return || e->key() == Key_Enter) |
389 | navigateToSelected(); | 389 | navigateToSelected(); |
390 | else if( e->key() == Key_Tab) | 390 | else if( e->key() == Key_Tab) |
391 | setOtherTabCurrent(); | 391 | setOtherTabCurrent(); |
392 | else if( e->key() == Key_Delete ) | 392 | else if( e->key() == Key_Delete ) |
393 | del(); | 393 | del(); |
394 | else if( e->key() == Key_A) | 394 | else if( e->key() == Key_A) |
395 | copyAs(); | 395 | copyAs(); |
396 | else if( e->key() == Key_C) | 396 | else if( e->key() == Key_C) |
397 | copy(); | 397 | copy(); |
398 | else if( e->key() == Key_E) | 398 | else if( e->key() == Key_E) |
399 | runThis(); | 399 | runThis(); |
400 | else if( e->key() == Key_G) | 400 | else if( e->key() == Key_G) |
401 | currentPathCombo->lineEdit()->setFocus(); | 401 | currentPathCombo->lineEdit()->setFocus(); |
402 | else if( e->key() == Key_H ) | 402 | else if( e->key() == Key_H ) |
403 | showHidden(); | 403 | showHidden(); |
404 | else if( e->key() == Key_I) | 404 | else if( e->key() == Key_I) |
405 | fileStatus(); | 405 | fileStatus(); |
406 | else if( e->key() == Key_M) | 406 | else if( e->key() == Key_M) |
407 | move(); | 407 | move(); |
408 | else if( e->key() == Key_N ) | 408 | else if( e->key() == Key_N ) |
409 | mkDir(); | 409 | mkDir(); |
@@ -638,186 +638,163 @@ void AdvancedFm::addCustomDir() { | |||
638 | 638 | ||
639 | bool addIt=true; | 639 | bool addIt=true; |
640 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { | 640 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { |
641 | if( dir == (*it)) { | 641 | if( dir == (*it)) { |
642 | addIt=false; | 642 | addIt=false; |
643 | } | 643 | } |
644 | } | 644 | } |
645 | if(addIt) { | 645 | if(addIt) { |
646 | menuButton->insertItem(dir); | 646 | menuButton->insertItem(dir); |
647 | // customDirMenu->insertItem(dir); | 647 | // customDirMenu->insertItem(dir); |
648 | list << dir; | 648 | list << dir; |
649 | } | 649 | } |
650 | 650 | ||
651 | cfg.writeEntry("CustomDir", list, ','); | 651 | cfg.writeEntry("CustomDir", list, ','); |
652 | cfg.write(); | 652 | cfg.write(); |
653 | } | 653 | } |
654 | 654 | ||
655 | void AdvancedFm::removeCustomDir() { | 655 | void AdvancedFm::removeCustomDir() { |
656 | // odebug << "remove custom dir" << oendl; | 656 | // odebug << "remove custom dir" << oendl; |
657 | Config cfg("AdvancedFm"); | 657 | Config cfg("AdvancedFm"); |
658 | cfg.setGroup("Menu"); | 658 | cfg.setGroup("Menu"); |
659 | QString dir; | 659 | QString dir; |
660 | QStringList list = cfg.readListEntry( (const QString &)"CustomDir", (const QChar)','); | 660 | QStringList list = cfg.readListEntry( (const QString &)"CustomDir", (const QChar)','); |
661 | QStringList list2; | 661 | QStringList list2; |
662 | dir = CurrentDir()->canonicalPath(); | 662 | dir = CurrentDir()->canonicalPath(); |
663 | int ramble=2; | 663 | int ramble=2; |
664 | // int ramble=-24; | 664 | // int ramble=-24; |
665 | //first remove list | 665 | //first remove list |
666 | if(list.grep(dir,true).isEmpty()) { | 666 | if(list.grep(dir,true).isEmpty()) { |
667 | QMessageBox::message(tr( "AdvancedFm" ), | 667 | QMessageBox::message(tr( "AdvancedFm" ), |
668 | tr("Cannot remove current directory\nfrom bookmarks.\nIt is not bookmarked!")); | 668 | tr("Cannot remove current directory\nfrom bookmarks.\nIt is not bookmarked!")); |
669 | } else { | 669 | } else { |
670 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { | 670 | for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { |
671 | if((*it) != dir) { | 671 | if((*it) != dir) { |
672 | //current item is not our current dir, so add it to temp list | 672 | //current item is not our current dir, so add it to temp list |
673 | list2 <<(*it); | 673 | list2 <<(*it); |
674 | } else { | 674 | } else { |
675 | // customDirMenu->removeItem( ramble); | 675 | // customDirMenu->removeItem( ramble); |
676 | menuButton->remove( ramble); | 676 | menuButton->remove( ramble); |
677 | 677 | ||
678 | } | 678 | } |
679 | ramble++; | 679 | ramble++; |
680 | // ramble--; | 680 | // ramble--; |
681 | } | 681 | } |
682 | 682 | ||
683 | cfg.writeEntry("CustomDir", list2, ','); | 683 | cfg.writeEntry("CustomDir", list2, ','); |
684 | cfg.write(); | 684 | cfg.write(); |
685 | } | 685 | } |
686 | // customDirsToMenu(); | 686 | // customDirsToMenu(); |
687 | 687 | ||
688 | } | 688 | } |
689 | 689 | ||
690 | void AdvancedFm::gotoCustomDir(const QString &dir) { | 690 | void AdvancedFm::gotoCustomDir(const QString &dir) { |
691 | // odebug << "gotoCustomDir(const QString &dir) " +dir << oendl; | 691 | // odebug << "gotoCustomDir(const QString &dir) " +dir << oendl; |
692 | // QString curDir = dir; | 692 | // QString curDir = dir; |
693 | // QDir *thisDir = CurrentDir(); | 693 | // QDir *thisDir = CurrentDir(); |
694 | // if( curDir.isEmpty()) { | 694 | // if( curDir.isEmpty()) { |
695 | // } | 695 | // } |
696 | if( dir == s_addBookmark) { | 696 | if( dir == s_addBookmark) { |
697 | addCustomDir(); | 697 | addCustomDir(); |
698 | } | 698 | } |
699 | if( dir == s_removeBookmark) { | 699 | if( dir == s_removeBookmark) { |
700 | removeCustomDir( ); | 700 | removeCustomDir( ); |
701 | } else { | 701 | } else { |
702 | gotoDirectory( dir); | 702 | changeTo( dir); |
703 | // if(QDir( curDir).exists() ) | 703 | // if(QDir( curDir).exists() ) |
704 | // { | 704 | // { |
705 | // thisDir->setPath( curDir ); | 705 | // thisDir->setPath( curDir ); |
706 | // chdir( curDir.latin1() ); | 706 | // chdir( curDir.latin1() ); |
707 | // thisDir->cd( curDir, TRUE); | 707 | // thisDir->cd( curDir, TRUE); |
708 | // populateView(); | 708 | // populateView(); |
709 | // } | 709 | // } |
710 | } | 710 | } |
711 | } | 711 | } |
712 | 712 | ||
713 | QDir *AdvancedFm::CurrentDir() { | 713 | QDir *AdvancedFm::CurrentDir() { |
714 | if ( whichTab == 1) { | 714 | if ( whichTab == 1) { |
715 | // qDebug("CurrentTab is Local"); | 715 | // qDebug("CurrentTab is Local"); |
716 | return ¤tDir; | 716 | return ¤tDir; |
717 | } else { | 717 | } else { |
718 | // qDebug("CurrentTab is Remote"); | 718 | // qDebug("CurrentTab is Remote"); |
719 | return ¤tRemoteDir; | 719 | return ¤tRemoteDir; |
720 | } | 720 | } |
721 | } | 721 | } |
722 | 722 | ||
723 | QDir *AdvancedFm::OtherDir() { | 723 | QDir *AdvancedFm::OtherDir() { |
724 | // if ( TabWidget->currentWidget() == tab) { | 724 | // if ( TabWidget->currentWidget() == tab) { |
725 | if ( whichTab == 1) { | 725 | if ( whichTab == 1) { |
726 | return ¤tRemoteDir; | 726 | return ¤tRemoteDir; |
727 | } else { | 727 | } else { |
728 | return ¤tDir; | 728 | return ¤tDir; |
729 | } | 729 | } |
730 | } | 730 | } |
731 | 731 | ||
732 | QListView * AdvancedFm::CurrentView() { | 732 | QListView * AdvancedFm::CurrentView() { |
733 | // if ( TabWidget->currentWidget() == tab) { | 733 | // if ( TabWidget->currentWidget() == tab) { |
734 | if ( whichTab == 1) { | 734 | if ( whichTab == 1) { |
735 | // qDebug("CurrentView: local"); | 735 | // qDebug("CurrentView: local"); |
736 | return Local_View; | 736 | return Local_View; |
737 | } else { | 737 | } else { |
738 | // owarn << "CurrentView Tab 2" << oendl; | 738 | // owarn << "CurrentView Tab 2" << oendl; |
739 | // qDebug("CurrentView: remote"); | 739 | // qDebug("CurrentView: remote"); |
740 | return Remote_View; | 740 | return Remote_View; |
741 | } | 741 | } |
742 | } | 742 | } |
743 | 743 | ||
744 | QListView * AdvancedFm::OtherView() { | 744 | QListView * AdvancedFm::OtherView() { |
745 | if ( whichTab == 1) | 745 | if ( whichTab == 1) |
746 | return Remote_View; | 746 | return Remote_View; |
747 | else | 747 | else |
748 | return Local_View; | 748 | return Local_View; |
749 | } | 749 | } |
750 | 750 | ||
751 | void AdvancedFm::setOtherTabCurrent() { | 751 | void AdvancedFm::setOtherTabCurrent() { |
752 | // qDebug("setOtherTabCurrent() %d",whichTab); | 752 | // qDebug("setOtherTabCurrent() %d",whichTab); |
753 | if ( whichTab == 1) { | 753 | if ( whichTab == 1) { |
754 | TabWidget->setCurrentWidget(1); | 754 | TabWidget->setCurrentWidget(1); |
755 | } else { | 755 | } else { |
756 | TabWidget->setCurrentWidget(0); | 756 | TabWidget->setCurrentWidget(0); |
757 | } | 757 | } |
758 | OtherView()->setFocus(); | 758 | OtherView()->setFocus(); |
759 | OtherView()->setSelected( CurrentView()->firstChild(), true); | 759 | OtherView()->setSelected( CurrentView()->firstChild(), true); |
760 | } | 760 | } |
761 | 761 | ||
762 | void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { | 762 | void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { |
763 | // odebug << "qcop message "+msg << oendl; | 763 | // odebug << "qcop message "+msg << oendl; |
764 | QDataStream stream ( data, IO_ReadOnly ); | 764 | QDataStream stream ( data, IO_ReadOnly ); |
765 | if ( msg == "openDirectory(QString)" ) { | 765 | if ( msg == "openDirectory(QString)" ) { |
766 | // odebug << "received" << oendl; | 766 | // odebug << "received" << oendl; |
767 | QString file; | 767 | QString file; |
768 | stream >> file; | 768 | stream >> file; |
769 | gotoDirectory( (const QString &) file); | 769 | changeTo( (const QString &) file); |
770 | } | 770 | } |
771 | } | 771 | } |
772 | 772 | ||
773 | void AdvancedFm::setDocument(const QString &file) { | 773 | void AdvancedFm::setDocument(const QString &file) { |
774 | gotoDirectory( file); | 774 | changeTo( file); |
775 | 775 | ||
776 | } | 776 | } |
777 | 777 | ||
778 | void AdvancedFm::gotoDirectory(const QString &file) { | ||
779 | // qDebug("goto dir "+file); | ||
780 | QString curDir = file; | ||
781 | QDir *thisDir = CurrentDir(); | ||
782 | if(QDir( curDir).exists() ) { | ||
783 | thisDir->setPath( curDir ); | ||
784 | chdir( curDir.latin1() ); | ||
785 | thisDir->cd( curDir, TRUE); | ||
786 | populateView(); | ||
787 | } | ||
788 | else if(QFileInfo(curDir).exists()) { | ||
789 | QFileInfo fileInfo(curDir); | ||
790 | curDir=fileInfo.dirPath(); | ||
791 | if(QDir( curDir).exists() ) { | ||
792 | thisDir->setPath( curDir ); | ||
793 | chdir( curDir.latin1() ); | ||
794 | thisDir->cd( curDir, TRUE); | ||
795 | populateView(); | ||
796 | } | ||
797 | findFile(file); | ||
798 | } | ||
799 | |||
800 | } | ||
801 | 778 | ||
802 | void AdvancedFm::findFile(const QString &fileName) { | 779 | void AdvancedFm::findFile(const QString &fileName) { |
803 | QFileInfo fi(fileName); | 780 | QFileInfo fi(fileName); |
804 | QListView *thisView = CurrentView(); | 781 | QListView *thisView = CurrentView(); |
805 | QListViewItemIterator it( thisView ); | 782 | QListViewItemIterator it( thisView ); |
806 | for ( ; it.current(); ++it ) { | 783 | for ( ; it.current(); ++it ) { |
807 | if(it.current()->text(0) == fi.fileName()) { | 784 | if(it.current()->text(0) == fi.fileName()) { |
808 | it.current()->setSelected(true); | 785 | it.current()->setSelected(true); |
809 | thisView->ensureItemVisible(it.current()); | 786 | thisView->ensureItemVisible(it.current()); |
810 | } | 787 | } |
811 | } | 788 | } |
812 | } | 789 | } |
813 | 790 | ||
814 | void AdvancedFm::slotSwitchMenu(int item) { | 791 | void AdvancedFm::slotSwitchMenu(int item) { |
815 | Q_UNUSED(item); | 792 | Q_UNUSED(item); |
816 | // qDebug( "Switch %d",item); | 793 | // qDebug( "Switch %d",item); |
817 | // viewMenu->setItemChecked(item, true); | 794 | // viewMenu->setItemChecked(item, true); |
818 | } | 795 | } |
819 | 796 | ||
820 | void AdvancedFm::navigateToSelected() { | 797 | void AdvancedFm::navigateToSelected() { |
821 | if( !CurrentView()->currentItem()) return; | 798 | if( !CurrentView()->currentItem()) return; |
822 | doDirChange(); | 799 | doDirChange(); |
823 | } | 800 | } |
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 9dbdc70..00ab909 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -116,79 +116,78 @@ protected slots: | |||
116 | void showMenuHidden(); | 116 | void showMenuHidden(); |
117 | void ListClicked(QListViewItem *); | 117 | void ListClicked(QListViewItem *); |
118 | void ListPressed( int, QListViewItem *, const QPoint&, int); | 118 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
119 | void makeDir(); | 119 | void makeDir(); |
120 | void doDelete(); | 120 | void doDelete(); |
121 | void tabChanged(QWidget*); | 121 | void tabChanged(QWidget*); |
122 | void cleanUp(); | 122 | void cleanUp(); |
123 | void renameIt(); | 123 | void renameIt(); |
124 | void runThis(); | 124 | void runThis(); |
125 | void runText(); | 125 | void runText(); |
126 | void filePerms(); | 126 | void filePerms(); |
127 | void doProperties(); | 127 | void doProperties(); |
128 | void runCommand(); | 128 | void runCommand(); |
129 | void runCommandStd(); | 129 | void runCommandStd(); |
130 | QStringList getPath(); | 130 | QStringList getPath(); |
131 | void mkSym(); | 131 | void mkSym(); |
132 | void switchToLocalTab(); | 132 | void switchToLocalTab(); |
133 | void switchToRemoteTab(); | 133 | void switchToRemoteTab(); |
134 | void refreshCurrentTab(); | 134 | void refreshCurrentTab(); |
135 | 135 | ||
136 | void openSearch(); | 136 | void openSearch(); |
137 | void dirMenuSelected(int); | 137 | void dirMenuSelected(int); |
138 | void showFileMenu(); | 138 | void showFileMenu(); |
139 | void homeButtonPushed(); | 139 | void homeButtonPushed(); |
140 | void docButtonPushed(); | 140 | void docButtonPushed(); |
141 | void SDButtonPushed(); | 141 | void SDButtonPushed(); |
142 | void CFButtonPushed(); | 142 | void CFButtonPushed(); |
143 | void QPEButtonPushed(); | 143 | void QPEButtonPushed(); |
144 | void upDir(); | 144 | void upDir(); |
145 | void currentPathComboChanged(); | 145 | void currentPathComboChanged(); |
146 | 146 | ||
147 | void copy(); | 147 | void copy(); |
148 | void copyTimer(); | 148 | void copyTimer(); |
149 | void copyAs(); | 149 | void copyAs(); |
150 | void copyAsTimer(); | 150 | void copyAsTimer(); |
151 | void copySameDir(); | 151 | void copySameDir(); |
152 | void copySameDirTimer(); | 152 | void copySameDirTimer(); |
153 | void move(); | 153 | void move(); |
154 | void moveTimer(); | 154 | void moveTimer(); |
155 | 155 | ||
156 | void currentPathComboActivated(const QString &); | 156 | void currentPathComboActivated(const QString &); |
157 | void fillCombo(const QString &); | 157 | void fillCombo(const QString &); |
158 | bool copyFile( const QString & , const QString & ); | 158 | bool copyFile( const QString & , const QString & ); |
159 | void fileStatus(); | 159 | void fileStatus(); |
160 | void doAbout(); | 160 | void doAbout(); |
161 | void doBeam(); | 161 | void doBeam(); |
162 | void fileBeamFinished( Ir *); | 162 | void fileBeamFinished( Ir *); |
163 | bool copyDirectory( const QString & , const QString & ); | 163 | bool copyDirectory( const QString & , const QString & ); |
164 | // void navigateToSelected(); | 164 | // void navigateToSelected(); |
165 | bool moveDirectory( const QString & , const QString & ); | 165 | bool moveDirectory( const QString & , const QString & ); |
166 | 166 | ||
167 | // void slotSwitchtoLocal(int); | 167 | // void slotSwitchtoLocal(int); |
168 | 168 | ||
169 | private: | 169 | private: |
170 | MenuButton *menuButton; | 170 | MenuButton *menuButton; |
171 | QString oldName, localViewDir, remoteViewDir; | 171 | QString oldName, localViewDir, remoteViewDir; |
172 | void startProcess(const QString &); | 172 | void startProcess(const QString &); |
173 | bool eventFilter( QObject * , QEvent * ); | 173 | bool eventFilter( QObject * , QEvent * ); |
174 | void cancelRename(); | 174 | void cancelRename(); |
175 | void doRename(QListView *); | 175 | void doRename(QListView *); |
176 | void okRename(); | 176 | void okRename(); |
177 | void customDirsToMenu(); | 177 | void customDirsToMenu(); |
178 | void addCustomDir(); | 178 | void addCustomDir(); |
179 | void removeCustomDir(); | 179 | void removeCustomDir(); |
180 | void gotoDirectory(const QString &); | ||
181 | void navigateToSelected(); | 180 | void navigateToSelected(); |
182 | void findFile(const QString &); | 181 | void findFile(const QString &); |
183 | 182 | ||
184 | private slots: | 183 | private slots: |
185 | void processEnded(Opie::Core::OProcess *); | 184 | void processEnded(Opie::Core::OProcess *); |
186 | void oprocessStderr(Opie::Core::OProcess *, char *, int); | 185 | void oprocessStderr(Opie::Core::OProcess *, char *, int); |
187 | void gotoCustomDir(const QString &); | 186 | void gotoCustomDir(const QString &); |
188 | void qcopReceive(const QCString&, const QByteArray&); | 187 | void qcopReceive(const QCString&, const QByteArray&); |
189 | void setDocument(const QString &); | 188 | void setDocument(const QString &); |
190 | // void doMenu(int | 189 | // void doMenu(int |
191 | 190 | ||
192 | }; | 191 | }; |
193 | 192 | ||
194 | #endif // ADVANCEDFM_H | 193 | #endif // ADVANCEDFM_H |