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