author | zautrix <zautrix> | 2004-08-09 18:02:44 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-09 18:02:44 (UTC) |
commit | 4f05a9fcbb9e54184aef93883886aaf865104463 (patch) (unidiff) | |
tree | f5e94f7694b74dca3b11e1e74a94058a4526dafe /korganizer | |
parent | e1909ade2188e53feee65089d5f2882563876c58 (diff) | |
download | kdepimpi-4f05a9fcbb9e54184aef93883886aaf865104463.zip kdepimpi-4f05a9fcbb9e54184aef93883886aaf865104463.tar.gz kdepimpi-4f05a9fcbb9e54184aef93883886aaf865104463.tar.bz2 |
more syncing
-rw-r--r-- | korganizer/mainwindow.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index cce182a..6c0aa9b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1008,131 +1008,150 @@ void MainWindow::slotSyncMenu( int action ) | |||
1008 | } else | 1008 | } else |
1009 | syncRemote( temp ); | 1009 | syncRemote( temp ); |
1010 | 1010 | ||
1011 | } | 1011 | } |
1012 | } | 1012 | } |
1013 | delete temp; | 1013 | delete temp; |
1014 | mBlockSaveFlag = false; | 1014 | mBlockSaveFlag = false; |
1015 | } | 1015 | } |
1016 | void MainWindow::setDefaultPreferences() | 1016 | void MainWindow::setDefaultPreferences() |
1017 | { | 1017 | { |
1018 | KOPrefs *p = KOPrefs::instance(); | 1018 | KOPrefs *p = KOPrefs::instance(); |
1019 | 1019 | ||
1020 | p->mCompactDialogs = true; | 1020 | p->mCompactDialogs = true; |
1021 | p->mConfirm = true; | 1021 | p->mConfirm = true; |
1022 | // p->mEnableQuickTodo = false; | 1022 | // p->mEnableQuickTodo = false; |
1023 | } | 1023 | } |
1024 | 1024 | ||
1025 | QString MainWindow::resourcePath() | 1025 | QString MainWindow::resourcePath() |
1026 | { | 1026 | { |
1027 | return KGlobal::iconLoader()->iconPath(); | 1027 | return KGlobal::iconLoader()->iconPath(); |
1028 | } | 1028 | } |
1029 | 1029 | ||
1030 | void MainWindow::displayText( QString text ,QString cap ) | 1030 | void MainWindow::displayText( QString text ,QString cap ) |
1031 | { | 1031 | { |
1032 | QDialog dia( this, "name", true ); ; | 1032 | QDialog dia( this, "name", true ); ; |
1033 | dia.setCaption( cap ); | 1033 | dia.setCaption( cap ); |
1034 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 1034 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
1035 | lay->setSpacing( 3 ); | 1035 | lay->setSpacing( 3 ); |
1036 | lay->setMargin( 3 ); | 1036 | lay->setMargin( 3 ); |
1037 | QTextBrowser tb ( &dia ); | 1037 | QTextBrowser tb ( &dia ); |
1038 | lay->addWidget( &tb ); | 1038 | lay->addWidget( &tb ); |
1039 | tb.setText( text ); | 1039 | tb.setText( text ); |
1040 | #ifdef DESKTOP_VERSION | 1040 | #ifdef DESKTOP_VERSION |
1041 | dia.resize( 640, 480); | 1041 | dia.resize( 640, 480); |
1042 | #else | 1042 | #else |
1043 | dia.showMaximized(); | 1043 | dia.showMaximized(); |
1044 | #endif | 1044 | #endif |
1045 | dia.exec(); | 1045 | dia.exec(); |
1046 | } | 1046 | } |
1047 | void MainWindow::displayFile( QString fn, QString cap ) | 1047 | void MainWindow::displayFile( QString fn, QString cap ) |
1048 | { | 1048 | { |
1049 | QString fileName = resourcePath() + fn; | 1049 | QString fileName = resourcePath() + fn; |
1050 | QString text; | 1050 | QString text; |
1051 | QFile file( fileName ); | 1051 | QFile file( fileName ); |
1052 | if (!file.open( IO_ReadOnly ) ) { | 1052 | if (!file.open( IO_ReadOnly ) ) { |
1053 | return ; | 1053 | return ; |
1054 | 1054 | ||
1055 | } | 1055 | } |
1056 | QTextStream ts( &file ); | 1056 | QTextStream ts( &file ); |
1057 | text = ts.read(); | 1057 | text = ts.read(); |
1058 | file.close(); | 1058 | file.close(); |
1059 | displayText( text, cap); | 1059 | displayText( text, cap); |
1060 | } | 1060 | } |
1061 | void MainWindow::features() | 1061 | void MainWindow::features() |
1062 | { | 1062 | { |
1063 | 1063 | ||
1064 | displayFile( "featuresKOPI.txt",i18n("KO/Pi Features and hints") ); | 1064 | displayFile( "featuresKOPI.txt",i18n("KO/Pi Features and hints") ); |
1065 | } | 1065 | } |
1066 | 1066 | ||
1067 | void MainWindow::usertrans() | 1067 | void MainWindow::usertrans() |
1068 | { | 1068 | { |
1069 | 1069 | ||
1070 | displayFile( "usertranslationHOWTO.txt",i18n("KO/Pi User translation HowTo") ); | 1070 | displayFile( "usertranslationHOWTO.txt",i18n("KO/Pi User translation HowTo") ); |
1071 | } | 1071 | } |
1072 | #if 0 | ||
1073 | #include <libkcal/vcalformat.h> | ||
1074 | #include <libkcal/event.h> | ||
1075 | #include <libkcal/todo.h> | ||
1076 | #include <libkcal/incidence.h> | ||
1077 | #endif | ||
1072 | void MainWindow::synchowto() | 1078 | void MainWindow::synchowto() |
1073 | { | 1079 | { |
1074 | 1080 | #if 0 | |
1081 | QPtrList<Incidence> er = mCalendar->rawIncidences(); | ||
1082 | Incidence* inR = er.first(); | ||
1083 | VCalFormat vf; | ||
1084 | QString strout; | ||
1085 | while ( inR ) { | ||
1086 | if ( inR->type() == "Todo" ) | ||
1087 | strout = vf.todoToString( (Todo *) inR ); | ||
1088 | if ( inR->type() == "Event" ) | ||
1089 | strout = vf.eventToString( (Event *) inR ); | ||
1090 | qDebug("incidence: \n%s\n ente\n\n",strout.latin1() ); | ||
1091 | inR = er.next(); | ||
1092 | } | ||
1093 | #endif | ||
1075 | displayFile( "howtoSYNC.txt",i18n("KO/Pi Synchronization HowTo") ); | 1094 | displayFile( "howtoSYNC.txt",i18n("KO/Pi Synchronization HowTo") ); |
1076 | } | 1095 | } |
1077 | void MainWindow::faq() | 1096 | void MainWindow::faq() |
1078 | { | 1097 | { |
1079 | displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") ); | 1098 | displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") ); |
1080 | 1099 | ||
1081 | } | 1100 | } |
1082 | void MainWindow::whatsNew() | 1101 | void MainWindow::whatsNew() |
1083 | { | 1102 | { |
1084 | displayFile( "kopiWhatsNew.txt",i18n("KO/Pi Version Info") ); | 1103 | displayFile( "kopiWhatsNew.txt",i18n("KO/Pi Version Info") ); |
1085 | 1104 | ||
1086 | } | 1105 | } |
1087 | void MainWindow::licence() | 1106 | void MainWindow::licence() |
1088 | { | 1107 | { |
1089 | KApplication::showLicence(); | 1108 | KApplication::showLicence(); |
1090 | 1109 | ||
1091 | } | 1110 | } |
1092 | void MainWindow::about() | 1111 | void MainWindow::about() |
1093 | { | 1112 | { |
1094 | QString version; | 1113 | QString version; |
1095 | #include <../version> | 1114 | #include <../version> |
1096 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1115 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1097 | i18n("KOrganizer/Platform-independent\n") + | 1116 | i18n("KOrganizer/Platform-independent\n") + |
1098 | "(KO/Pi) " + version + " - " + | 1117 | "(KO/Pi) " + version + " - " + |
1099 | 1118 | ||
1100 | #ifdef DESKTOP_VERSION | 1119 | #ifdef DESKTOP_VERSION |
1101 | i18n("Desktop Edition\n") + | 1120 | i18n("Desktop Edition\n") + |
1102 | #else | 1121 | #else |
1103 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + | 1122 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + |
1104 | #endif | 1123 | #endif |
1105 | 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") ); | 1124 | 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") ); |
1106 | } | 1125 | } |
1107 | void MainWindow::keyBindings() | 1126 | void MainWindow::keyBindings() |
1108 | { | 1127 | { |
1109 | QString cap = i18n("Key bindings KOrganizer/Pi"); | 1128 | QString cap = i18n("Key bindings KOrganizer/Pi"); |
1110 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1129 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1111 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1130 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1112 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1131 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1113 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1132 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1114 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1133 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1115 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1134 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1116 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1135 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1117 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1136 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ |
1118 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1137 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1119 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1138 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1120 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1139 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1121 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1140 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1122 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1141 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1123 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1142 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ |
1124 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1143 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1125 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1144 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1126 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1145 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1127 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1146 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1128 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1147 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1129 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1148 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1130 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1149 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1131 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1150 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1132 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1151 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1133 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1152 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1134 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1153 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1135 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1154 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1136 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1155 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1137 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1156 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1138 | i18n("<p><h3>In list view:</h3></p>\n") + | 1157 | i18n("<p><h3>In list view:</h3></p>\n") + |