author | zautrix <zautrix> | 2004-08-06 10:53:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 10:53:41 (UTC) |
commit | cde989298c4891f54ad70ae03080ac8fa57b5c3f (patch) (unidiff) | |
tree | 945e4d75d5c6f2a6a2ebed6e50a6a1a769e4366c /korganizer | |
parent | 841ce8881dbeee8a10dea8b96f82addd28f52536 (diff) | |
download | kdepimpi-cde989298c4891f54ad70ae03080ac8fa57b5c3f.zip kdepimpi-cde989298c4891f54ad70ae03080ac8fa57b5c3f.tar.gz kdepimpi-cde989298c4891f54ad70ae03080ac8fa57b5c3f.tar.bz2 |
Added licence menu in kopi
-rw-r--r-- | korganizer/mainwindow.cpp | 10 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 6020a46..57b299f 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1,91 +1,92 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | 2 | ||
3 | #include <qaction.h> | 3 | #include <qaction.h> |
4 | #include <qpopupmenu.h> | 4 | #include <qpopupmenu.h> |
5 | #include <qpainter.h> | 5 | #include <qpainter.h> |
6 | #include <qwhatsthis.h> | 6 | #include <qwhatsthis.h> |
7 | #include <qmessagebox.h> | 7 | #include <qmessagebox.h> |
8 | #include <qlineedit.h> | 8 | #include <qlineedit.h> |
9 | #include <qfile.h> | 9 | #include <qfile.h> |
10 | #include <qdir.h> | 10 | #include <qdir.h> |
11 | #include <qapp.h> | 11 | #include <qapp.h> |
12 | #include <qfileinfo.h> | 12 | #include <qfileinfo.h> |
13 | #include <qlabel.h> | 13 | #include <qlabel.h> |
14 | #include <qwmatrix.h> | 14 | #include <qwmatrix.h> |
15 | #include <qtextbrowser.h> | 15 | #include <qtextbrowser.h> |
16 | #include <qtextstream.h> | 16 | #include <qtextstream.h> |
17 | #ifndef DESKTOP_VERSION | 17 | #ifndef DESKTOP_VERSION |
18 | #include <qpe/global.h> | 18 | #include <qpe/global.h> |
19 | #include <qpe/qpemenubar.h> | 19 | #include <qpe/qpemenubar.h> |
20 | #include <qpe/qpetoolbar.h> | 20 | #include <qpe/qpetoolbar.h> |
21 | #include <qpe/resource.h> | 21 | #include <qpe/resource.h> |
22 | #include <qpe/qpeapplication.h> | 22 | #include <qpe/qpeapplication.h> |
23 | #include <qtopia/alarmserver.h> | 23 | #include <qtopia/alarmserver.h> |
24 | #include <qtopia/qcopenvelope_qws.h> | 24 | #include <qtopia/qcopenvelope_qws.h> |
25 | #else | 25 | #else |
26 | #include <qmenubar.h> | 26 | #include <qmenubar.h> |
27 | #include <qtoolbar.h> | 27 | #include <qtoolbar.h> |
28 | #include <qapplication.h> | 28 | #include <qapplication.h> |
29 | //#include <resource.h> | 29 | //#include <resource.h> |
30 | 30 | ||
31 | #endif | 31 | #endif |
32 | #include <libkcal/calendarlocal.h> | 32 | #include <libkcal/calendarlocal.h> |
33 | #include <libkcal/todo.h> | 33 | #include <libkcal/todo.h> |
34 | #include <libkdepim/ksyncprofile.h> | 34 | #include <libkdepim/ksyncprofile.h> |
35 | #include <libkdepim/kincidenceformatter.h> | 35 | #include <libkdepim/kincidenceformatter.h> |
36 | 36 | ||
37 | #include "calendarview.h" | 37 | #include "calendarview.h" |
38 | #include "koviewmanager.h" | 38 | #include "koviewmanager.h" |
39 | #include "datenavigator.h" | 39 | #include "datenavigator.h" |
40 | #include "koagendaview.h" | 40 | #include "koagendaview.h" |
41 | #include "koagenda.h" | 41 | #include "koagenda.h" |
42 | #include "kodialogmanager.h" | 42 | #include "kodialogmanager.h" |
43 | #include "kdialogbase.h" | 43 | #include "kdialogbase.h" |
44 | #include "kapplication.h" | ||
44 | #include "kstandarddirs.h" | 45 | #include "kstandarddirs.h" |
45 | #include "koprefs.h" | 46 | #include "koprefs.h" |
46 | #include "kfiledialog.h" | 47 | #include "kfiledialog.h" |
47 | #include "koglobals.h" | 48 | #include "koglobals.h" |
48 | #include "kglobal.h" | 49 | #include "kglobal.h" |
49 | #include "klocale.h" | 50 | #include "klocale.h" |
50 | #include "kconfig.h" | 51 | #include "kconfig.h" |
51 | #include "simplealarmclient.h" | 52 | #include "simplealarmclient.h" |
52 | using namespace KCal; | 53 | using namespace KCal; |
53 | #ifndef _WIN32_ | 54 | #ifndef _WIN32_ |
54 | #include <unistd.h> | 55 | #include <unistd.h> |
55 | #else | 56 | #else |
56 | #include "koimportoldialog.h" | 57 | #include "koimportoldialog.h" |
57 | #endif | 58 | #endif |
58 | #include "mainwindow.h" | 59 | #include "mainwindow.h" |
59 | 60 | ||
60 | int globalFlagBlockStartup; | 61 | int globalFlagBlockStartup; |
61 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | 62 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : |
62 | QMainWindow( parent, name ) | 63 | QMainWindow( parent, name ) |
63 | { | 64 | { |
64 | 65 | ||
65 | #ifdef DESKTOP_VERSION | 66 | #ifdef DESKTOP_VERSION |
66 | setFont( QFont("Arial"), 14 ); | 67 | setFont( QFont("Arial"), 14 ); |
67 | #endif | 68 | #endif |
68 | 69 | ||
69 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; | 70 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |
70 | QString confFile = locateLocal("config","korganizerrc"); | 71 | QString confFile = locateLocal("config","korganizerrc"); |
71 | QFileInfo finf ( confFile ); | 72 | QFileInfo finf ( confFile ); |
72 | bool showWarning = !finf.exists(); | 73 | bool showWarning = !finf.exists(); |
73 | setIcon(SmallIcon( "ko24" ) ); | 74 | setIcon(SmallIcon( "ko24" ) ); |
74 | mBlockAtStartup = true; | 75 | mBlockAtStartup = true; |
75 | mFlagKeyPressed = false; | 76 | mFlagKeyPressed = false; |
76 | setCaption("KOrganizer/Pi"); | 77 | setCaption("KOrganizer/Pi"); |
77 | KOPrefs *p = KOPrefs::instance(); | 78 | KOPrefs *p = KOPrefs::instance(); |
78 | // if ( QApplication::desktop()->height() > 480 ) { | 79 | // if ( QApplication::desktop()->height() > 480 ) { |
79 | // if ( p->mHourSize == 4 ) | 80 | // if ( p->mHourSize == 4 ) |
80 | // p->mHourSize = 6; | 81 | // p->mHourSize = 6; |
81 | // } | 82 | // } |
82 | if ( p->mHourSize > 18 ) | 83 | if ( p->mHourSize > 18 ) |
83 | p->mHourSize = 18; | 84 | p->mHourSize = 18; |
84 | QMainWindow::ToolBarDock tbd; | 85 | QMainWindow::ToolBarDock tbd; |
85 | if ( p->mToolBarHor ) { | 86 | if ( p->mToolBarHor ) { |
86 | if ( p->mToolBarUp ) | 87 | if ( p->mToolBarUp ) |
87 | tbd = Bottom; | 88 | tbd = Bottom; |
88 | else | 89 | else |
89 | tbd = Top; | 90 | tbd = Top; |
90 | } | 91 | } |
91 | else { | 92 | else { |
@@ -646,96 +647,100 @@ void MainWindow::initActions() | |||
646 | action->addTo( importMenu ); | 647 | action->addTo( importMenu ); |
647 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 648 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
648 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 649 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
649 | this ); | 650 | this ); |
650 | action->addTo( importMenu ); | 651 | action->addTo( importMenu ); |
651 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); | 652 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); |
652 | 653 | ||
653 | //menuBar->insertItem( "Configure",configureMenu ); | 654 | //menuBar->insertItem( "Configure",configureMenu ); |
654 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); | 655 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); |
655 | icon = loadPixmap( "korganizer/korganizer" ); | 656 | icon = loadPixmap( "korganizer/korganizer" ); |
656 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 657 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
657 | action->addTo( helpMenu ); | 658 | action->addTo( helpMenu ); |
658 | connect( action, SIGNAL( activated() ), | 659 | connect( action, SIGNAL( activated() ), |
659 | SLOT( keyBindings() ) ); | 660 | SLOT( keyBindings() ) ); |
660 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 661 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
661 | action->addTo( helpMenu ); | 662 | action->addTo( helpMenu ); |
662 | connect( action, SIGNAL( activated() ), | 663 | connect( action, SIGNAL( activated() ), |
663 | SLOT( features() ) ); | 664 | SLOT( features() ) ); |
664 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); | 665 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); |
665 | action->addTo( helpMenu ); | 666 | action->addTo( helpMenu ); |
666 | connect( action, SIGNAL( activated() ), | 667 | connect( action, SIGNAL( activated() ), |
667 | SLOT( aboutAutoSaving() ) ); | 668 | SLOT( aboutAutoSaving() ) ); |
668 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); | 669 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); |
669 | action->addTo( helpMenu ); | 670 | action->addTo( helpMenu ); |
670 | connect( action, SIGNAL( activated() ), | 671 | connect( action, SIGNAL( activated() ), |
671 | SLOT( aboutKnownBugs() ) ); | 672 | SLOT( aboutKnownBugs() ) ); |
672 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); | 673 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); |
673 | action->addTo( helpMenu ); | 674 | action->addTo( helpMenu ); |
674 | connect( action, SIGNAL( activated() ), | 675 | connect( action, SIGNAL( activated() ), |
675 | SLOT( usertrans() ) ); | 676 | SLOT( usertrans() ) ); |
676 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 677 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
677 | action->addTo( helpMenu ); | 678 | action->addTo( helpMenu ); |
678 | connect( action, SIGNAL( activated() ), | 679 | connect( action, SIGNAL( activated() ), |
679 | SLOT( synchowto() ) ); | 680 | SLOT( synchowto() ) ); |
680 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 681 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
681 | action->addTo( helpMenu ); | 682 | action->addTo( helpMenu ); |
682 | connect( action, SIGNAL( activated() ), | 683 | connect( action, SIGNAL( activated() ), |
683 | SLOT( whatsNew() ) ); | 684 | SLOT( whatsNew() ) ); |
684 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); | 685 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); |
685 | action->addTo( helpMenu ); | 686 | action->addTo( helpMenu ); |
686 | connect( action, SIGNAL( activated() ), | 687 | connect( action, SIGNAL( activated() ), |
687 | SLOT( faq() ) ); | 688 | SLOT( faq() ) ); |
688 | 689 | ||
689 | 690 | ||
690 | action = new QAction( "about", i18n("About..."), 0, this ); | 691 | action = new QAction( "about", i18n("About..."), 0, this ); |
691 | action->addTo( helpMenu ); | 692 | action->addTo( helpMenu ); |
692 | connect( action, SIGNAL( activated() ), | 693 | connect( action, SIGNAL( activated() ), |
693 | SLOT( about() ) ); | 694 | SLOT( about() ) ); |
695 | action = new QAction( "licence", i18n("Licence..."), 0, this ); | ||
696 | action->addTo( helpMenu ); | ||
697 | connect( action, SIGNAL( activated() ), | ||
698 | SLOT( licence() ) ); | ||
694 | //menuBar->insertSeparator(); | 699 | //menuBar->insertSeparator(); |
695 | 700 | ||
696 | // ****************************************************** | 701 | // ****************************************************** |
697 | // menubar icons | 702 | // menubar icons |
698 | 703 | ||
699 | 704 | ||
700 | iconToolBar->setHorizontalStretchable (true ); | 705 | iconToolBar->setHorizontalStretchable (true ); |
701 | //menuBar->insertItem( iconToolBar ); | 706 | //menuBar->insertItem( iconToolBar ); |
702 | //xdays_action | 707 | //xdays_action |
703 | if (p-> mShowIconNewEvent) | 708 | if (p-> mShowIconNewEvent) |
704 | ne_action->addTo( iconToolBar ); | 709 | ne_action->addTo( iconToolBar ); |
705 | if (p->mShowIconNewTodo ) | 710 | if (p->mShowIconNewTodo ) |
706 | nt_action->addTo( iconToolBar ); | 711 | nt_action->addTo( iconToolBar ); |
707 | if (p-> mShowIconSearch) | 712 | if (p-> mShowIconSearch) |
708 | search_action->addTo( iconToolBar ); | 713 | search_action->addTo( iconToolBar ); |
709 | if (p-> mShowIconNext) | 714 | if (p-> mShowIconNext) |
710 | whatsnext_action->addTo( iconToolBar ); | 715 | whatsnext_action->addTo( iconToolBar ); |
711 | if (p-> mShowIconNextDays) | 716 | if (p-> mShowIconNextDays) |
712 | xdays_action->addTo( iconToolBar ); | 717 | xdays_action->addTo( iconToolBar ); |
713 | if (p-> mShowIconList) | 718 | if (p-> mShowIconList) |
714 | showlist_action->addTo( iconToolBar ); | 719 | showlist_action->addTo( iconToolBar ); |
715 | if (p-> mShowIconDay1) | 720 | if (p-> mShowIconDay1) |
716 | day1_action->addTo( iconToolBar ); | 721 | day1_action->addTo( iconToolBar ); |
717 | if (p-> mShowIconDay5) | 722 | if (p-> mShowIconDay5) |
718 | day5_action->addTo( iconToolBar ); | 723 | day5_action->addTo( iconToolBar ); |
719 | if (p-> mShowIconDay7) | 724 | if (p-> mShowIconDay7) |
720 | day7_action->addTo( iconToolBar ); | 725 | day7_action->addTo( iconToolBar ); |
721 | if (p-> mShowIconMonth) | 726 | if (p-> mShowIconMonth) |
722 | month_action->addTo( iconToolBar ); | 727 | month_action->addTo( iconToolBar ); |
723 | if (p-> mShowIconTodoview) | 728 | if (p-> mShowIconTodoview) |
724 | todoview_action->addTo( iconToolBar ); | 729 | todoview_action->addTo( iconToolBar ); |
725 | if (p-> mShowIconJournal) | 730 | if (p-> mShowIconJournal) |
726 | viewjournal_action->addTo( iconToolBar ); | 731 | viewjournal_action->addTo( iconToolBar ); |
727 | icon = loadPixmap( pathString + "2leftarrowB" ); | 732 | icon = loadPixmap( pathString + "2leftarrowB" ); |
728 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); | 733 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); |
729 | if (p-> mShowIconBackFast) { | 734 | if (p-> mShowIconBackFast) { |
730 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); | 735 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); |
731 | connect( action, SIGNAL( activated() ), | 736 | connect( action, SIGNAL( activated() ), |
732 | mView, SLOT( goPreviousMonth() ) ); | 737 | mView, SLOT( goPreviousMonth() ) ); |
733 | action->addTo( iconToolBar ); | 738 | action->addTo( iconToolBar ); |
734 | } | 739 | } |
735 | icon = loadPixmap( pathString + "1leftarrowB" ); | 740 | icon = loadPixmap( pathString + "1leftarrowB" ); |
736 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); | 741 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); |
737 | if (p-> mShowIconBack) { | 742 | if (p-> mShowIconBack) { |
738 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); | 743 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); |
739 | connect( action, SIGNAL( activated() ), | 744 | connect( action, SIGNAL( activated() ), |
740 | mView, SLOT( goPrevious() ) ); | 745 | mView, SLOT( goPrevious() ) ); |
741 | action->addTo( iconToolBar ); | 746 | action->addTo( iconToolBar ); |
@@ -1015,96 +1020,101 @@ void MainWindow::displayText( QString text ,QString cap ) | |||
1015 | tb.setText( text ); | 1020 | tb.setText( text ); |
1016 | #ifdef DESKTOP_VERSION | 1021 | #ifdef DESKTOP_VERSION |
1017 | dia.resize( 640, 480); | 1022 | dia.resize( 640, 480); |
1018 | #else | 1023 | #else |
1019 | dia.showMaximized(); | 1024 | dia.showMaximized(); |
1020 | #endif | 1025 | #endif |
1021 | dia.exec(); | 1026 | dia.exec(); |
1022 | } | 1027 | } |
1023 | void MainWindow::displayFile( QString fn, QString cap ) | 1028 | void MainWindow::displayFile( QString fn, QString cap ) |
1024 | { | 1029 | { |
1025 | QString fileName = resourcePath() + fn; | 1030 | QString fileName = resourcePath() + fn; |
1026 | QString text; | 1031 | QString text; |
1027 | QFile file( fileName ); | 1032 | QFile file( fileName ); |
1028 | if (!file.open( IO_ReadOnly ) ) { | 1033 | if (!file.open( IO_ReadOnly ) ) { |
1029 | return ; | 1034 | return ; |
1030 | 1035 | ||
1031 | } | 1036 | } |
1032 | QTextStream ts( &file ); | 1037 | QTextStream ts( &file ); |
1033 | text = ts.read(); | 1038 | text = ts.read(); |
1034 | file.close(); | 1039 | file.close(); |
1035 | displayText( text, cap); | 1040 | displayText( text, cap); |
1036 | } | 1041 | } |
1037 | void MainWindow::features() | 1042 | void MainWindow::features() |
1038 | { | 1043 | { |
1039 | 1044 | ||
1040 | displayFile( "featuresKOPI.txt",i18n("KO/Pi Features and hints") ); | 1045 | displayFile( "featuresKOPI.txt",i18n("KO/Pi Features and hints") ); |
1041 | } | 1046 | } |
1042 | 1047 | ||
1043 | void MainWindow::usertrans() | 1048 | void MainWindow::usertrans() |
1044 | { | 1049 | { |
1045 | 1050 | ||
1046 | displayFile( "usertranslationHOWTO.txt",i18n("KO/Pi User translation HowTo") ); | 1051 | displayFile( "usertranslationHOWTO.txt",i18n("KO/Pi User translation HowTo") ); |
1047 | } | 1052 | } |
1048 | void MainWindow::synchowto() | 1053 | void MainWindow::synchowto() |
1049 | { | 1054 | { |
1050 | 1055 | ||
1051 | displayFile( "howtoSYNC.txt",i18n("KO/Pi Synchronization HowTo") ); | 1056 | displayFile( "howtoSYNC.txt",i18n("KO/Pi Synchronization HowTo") ); |
1052 | } | 1057 | } |
1053 | void MainWindow::faq() | 1058 | void MainWindow::faq() |
1054 | { | 1059 | { |
1055 | displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") ); | 1060 | displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") ); |
1056 | 1061 | ||
1057 | } | 1062 | } |
1058 | void MainWindow::whatsNew() | 1063 | void MainWindow::whatsNew() |
1059 | { | 1064 | { |
1060 | displayFile( "kopiWhatsNew.txt",i18n("KO/Pi Version Info") ); | 1065 | displayFile( "kopiWhatsNew.txt",i18n("KO/Pi Version Info") ); |
1061 | 1066 | ||
1062 | } | 1067 | } |
1068 | void MainWindow::licence() | ||
1069 | { | ||
1070 | KApplication::showLicence(); | ||
1071 | |||
1072 | } | ||
1063 | void MainWindow::about() | 1073 | void MainWindow::about() |
1064 | { | 1074 | { |
1065 | QString version; | 1075 | QString version; |
1066 | #include <../version> | 1076 | #include <../version> |
1067 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1077 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1068 | i18n("KOrganizer/Platform-independent\n") + | 1078 | i18n("KOrganizer/Platform-independent\n") + |
1069 | "(KO/Pi) " + version + " - " + | 1079 | "(KO/Pi) " + version + " - " + |
1070 | 1080 | ||
1071 | #ifdef DESKTOP_VERSION | 1081 | #ifdef DESKTOP_VERSION |
1072 | i18n("Desktop Edition\n") + | 1082 | i18n("Desktop Edition\n") + |
1073 | #else | 1083 | #else |
1074 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + | 1084 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + |
1075 | #endif | 1085 | #endif |
1076 | i18n("(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n") ); | 1086 | i18n("(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n") ); |
1077 | } | 1087 | } |
1078 | void MainWindow::keyBindings() | 1088 | void MainWindow::keyBindings() |
1079 | { | 1089 | { |
1080 | QString cap = i18n("Key bindings KOrganizer/Pi"); | 1090 | QString cap = i18n("Key bindings KOrganizer/Pi"); |
1081 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1091 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1082 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1092 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1083 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1093 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1084 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1094 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1085 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1095 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1086 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1096 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1087 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1097 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1088 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1098 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ |
1089 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1099 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1090 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1100 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1091 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1101 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1092 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1102 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1093 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1103 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1094 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1104 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ |
1095 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1105 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1096 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1106 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1097 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1107 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1098 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1108 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1099 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1109 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1100 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1110 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1101 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1111 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1102 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1112 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1103 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1113 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1104 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1114 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1105 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1115 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1106 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1116 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1107 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1117 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1108 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1118 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1109 | i18n("<p><h3>In list view:</h3></p>\n") + | 1119 | i18n("<p><h3>In list view:</h3></p>\n") + |
1110 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1120 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index a681f42..8a3f7b3 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -1,90 +1,91 @@ | |||
1 | #ifndef KORGE_MAINWINDOW_H | 1 | #ifndef KORGE_MAINWINDOW_H |
2 | #define KORGE_MAINWINDOW_H | 2 | #define KORGE_MAINWINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include <qtimer.h> | 5 | #include <qtimer.h> |
6 | #include <qdict.h> | 6 | #include <qdict.h> |
7 | 7 | ||
8 | #include <libkcal/incidence.h> | 8 | #include <libkcal/incidence.h> |
9 | #include "simplealarmclient.h" | 9 | #include "simplealarmclient.h" |
10 | 10 | ||
11 | class QAction; | 11 | class QAction; |
12 | class CalendarView; | 12 | class CalendarView; |
13 | class KSyncProfile; | 13 | class KSyncProfile; |
14 | #ifdef DESKTOP_VERSION | 14 | #ifdef DESKTOP_VERSION |
15 | 15 | ||
16 | #define QPEToolBar QToolBar | 16 | #define QPEToolBar QToolBar |
17 | #define QPEMenuBar QMenuBar | 17 | #define QPEMenuBar QMenuBar |
18 | #endif | 18 | #endif |
19 | class QPEToolBar; | 19 | class QPEToolBar; |
20 | 20 | ||
21 | namespace KCal { | 21 | namespace KCal { |
22 | class CalendarLocal; | 22 | class CalendarLocal; |
23 | } | 23 | } |
24 | 24 | ||
25 | using namespace KCal; | 25 | using namespace KCal; |
26 | 26 | ||
27 | class MainWindow : public QMainWindow | 27 | class MainWindow : public QMainWindow |
28 | { | 28 | { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | public: | 30 | public: |
31 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 31 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
32 | ~MainWindow(); | 32 | ~MainWindow(); |
33 | public slots: | 33 | public slots: |
34 | void configureAgenda( int ); | 34 | void configureAgenda( int ); |
35 | void recieve( const QCString& msg, const QByteArray& data ); | 35 | void recieve( const QCString& msg, const QByteArray& data ); |
36 | static QString defaultFileName(); | 36 | static QString defaultFileName(); |
37 | static QString resourcePath(); | 37 | static QString resourcePath(); |
38 | protected slots: | 38 | protected slots: |
39 | void setCaptionToDates(); | 39 | void setCaptionToDates(); |
40 | int ringSync(); | 40 | int ringSync(); |
41 | void multiSync( bool askforPrefs = false ); | 41 | void multiSync( bool askforPrefs = false ); |
42 | void about(); | 42 | void about(); |
43 | void licence(); | ||
43 | void faq(); | 44 | void faq(); |
44 | void usertrans(); | 45 | void usertrans(); |
45 | void features(); | 46 | void features(); |
46 | void synchowto(); | 47 | void synchowto(); |
47 | void whatsNew(); | 48 | void whatsNew(); |
48 | void keyBindings(); | 49 | void keyBindings(); |
49 | void aboutAutoSaving();; | 50 | void aboutAutoSaving();; |
50 | void aboutKnownBugs(); | 51 | void aboutKnownBugs(); |
51 | 52 | ||
52 | void processIncidenceSelection( Incidence * ); | 53 | void processIncidenceSelection( Incidence * ); |
53 | 54 | ||
54 | void importQtopia(); | 55 | void importQtopia(); |
55 | void importBday(); | 56 | void importBday(); |
56 | void importOL(); | 57 | void importOL(); |
57 | void importIcal(); | 58 | void importIcal(); |
58 | void importFile( QString, bool ); | 59 | void importFile( QString, bool ); |
59 | void quickImportIcal(); | 60 | void quickImportIcal(); |
60 | 61 | ||
61 | void slotModifiedChanged( bool ); | 62 | void slotModifiedChanged( bool ); |
62 | 63 | ||
63 | void save(); | 64 | void save(); |
64 | void configureToolBar( int ); | 65 | void configureToolBar( int ); |
65 | void printSel(); | 66 | void printSel(); |
66 | void printCal(); | 67 | void printCal(); |
67 | void saveCalendar(); | 68 | void saveCalendar(); |
68 | void loadCalendar(); | 69 | void loadCalendar(); |
69 | void exportVCalendar(); | 70 | void exportVCalendar(); |
70 | 71 | ||
71 | void slotSyncMenu( int ); | 72 | void slotSyncMenu( int ); |
72 | void syncSSH(); | 73 | void syncSSH(); |
73 | void confSync(); | 74 | void confSync(); |
74 | void syncSharp(); | 75 | void syncSharp(); |
75 | void syncLocalFile(); | 76 | void syncLocalFile(); |
76 | bool syncWithFile( QString, bool ); | 77 | bool syncWithFile( QString, bool ); |
77 | void quickSyncLocalFile(); | 78 | void quickSyncLocalFile(); |
78 | 79 | ||
79 | 80 | ||
80 | protected: | 81 | protected: |
81 | void displayText( QString, QString); | 82 | void displayText( QString, QString); |
82 | void displayFile( QString, QString); | 83 | void displayFile( QString, QString); |
83 | 84 | ||
84 | void enableIncidenceActions( bool ); | 85 | void enableIncidenceActions( bool ); |
85 | 86 | ||
86 | private: | 87 | private: |
87 | void saveOnClose(); | 88 | void saveOnClose(); |
88 | int mCurrentSyncProfile; | 89 | int mCurrentSyncProfile; |
89 | void syncRemote( KSyncProfile* , bool ask = true); | 90 | void syncRemote( KSyncProfile* , bool ask = true); |
90 | void fillSyncMenu(); | 91 | void fillSyncMenu(); |