summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2004-10-12 20:54:38 (UTC)
committer zautrix <zautrix>2004-10-12 20:54:38 (UTC)
commit95ce1ce07164da5660a2bf1992fed4c263c6afca (patch) (unidiff)
tree46309cb90affec4c56f7453e3e87af7368744e98 /korganizer
parent60a63813f7ec38fe275e7ef06033a6d3eb3ec31c (diff)
downloadkdepimpi-95ce1ce07164da5660a2bf1992fed4c263c6afca.zip
kdepimpi-95ce1ce07164da5660a2bf1992fed4c263c6afca.tar.gz
kdepimpi-95ce1ce07164da5660a2bf1992fed4c263c6afca.tar.bz2
howto files moved
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp19
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
@@ -959,280 +959,267 @@ void MainWindow::exportToPhone( int mode )
959 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); 959 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel );
960 if ( mode == 1 ) 960 if ( mode == 1 )
961 ex2phone.setCaption(i18n("Export complete calendar")); 961 ex2phone.setCaption(i18n("Export complete calendar"));
962 if ( mode == 2 ) 962 if ( mode == 2 )
963 ex2phone.setCaption(i18n("Export filtered calendar")); 963 ex2phone.setCaption(i18n("Export filtered calendar"));
964 964
965 if ( !ex2phone.exec() ) { 965 if ( !ex2phone.exec() ) {
966 return; 966 return;
967 } 967 }
968 KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); 968 KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text();
969 KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); 969 KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text();
970 KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); 970 KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text();
971 971
972 int inFuture = 0; 972 int inFuture = 0;
973 if ( ex2phone.mWriteBackFuture->isChecked() ) 973 if ( ex2phone.mWriteBackFuture->isChecked() )
974 inFuture = ex2phone.mWriteBackFutureWeeks->value(); 974 inFuture = ex2phone.mWriteBackFutureWeeks->value();
975 QPtrList<Incidence> delSel; 975 QPtrList<Incidence> delSel;
976 if ( mode == 1 ) 976 if ( mode == 1 )
977 delSel = mCalendar->rawIncidences(); 977 delSel = mCalendar->rawIncidences();
978 if ( mode == 2 ) 978 if ( mode == 2 )
979 delSel = mCalendar->incidences(); 979 delSel = mCalendar->incidences();
980 CalendarLocal* cal = new CalendarLocal(); 980 CalendarLocal* cal = new CalendarLocal();
981 cal->setLocalTime(); 981 cal->setLocalTime();
982 Incidence *incidence = delSel.first(); 982 Incidence *incidence = delSel.first();
983 QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); 983 QDateTime cur = QDateTime::currentDateTime().addDays( -7 );
984 QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); 984 QDateTime end = cur.addDays( ( inFuture +1 ) *7 );
985 while ( incidence ) { 985 while ( incidence ) {
986 if ( incidence->type() != "Journal" ) { 986 if ( incidence->type() != "Journal" ) {
987 bool add = true; 987 bool add = true;
988 if ( inFuture ) { 988 if ( inFuture ) {
989 QDateTime dt; 989 QDateTime dt;
990 if ( incidence->type() == "Todo" ) { 990 if ( incidence->type() == "Todo" ) {
991 Todo * t = (Todo*)incidence; 991 Todo * t = (Todo*)incidence;
992 if ( t->hasDueDate() ) 992 if ( t->hasDueDate() )
993 dt = t->dtDue(); 993 dt = t->dtDue();
994 else 994 else
995 dt = cur.addSecs( 62 ); 995 dt = cur.addSecs( 62 );
996 } 996 }
997 else { 997 else {
998 bool ok; 998 bool ok;
999 dt = incidence->getNextOccurence( cur, &ok ); 999 dt = incidence->getNextOccurence( cur, &ok );
1000 if ( !ok ) 1000 if ( !ok )
1001 dt = cur.addSecs( -62 ); 1001 dt = cur.addSecs( -62 );
1002 } 1002 }
1003 if ( dt < cur || dt > end ) { 1003 if ( dt < cur || dt > end ) {
1004 add = false; 1004 add = false;
1005 } 1005 }
1006 } 1006 }
1007 if ( add ) { 1007 if ( add ) {
1008 Incidence *in = incidence->clone(); 1008 Incidence *in = incidence->clone();
1009 cal->addIncidence( in ); 1009 cal->addIncidence( in );
1010 } 1010 }
1011 } 1011 }
1012 incidence = delSel.next(); 1012 incidence = delSel.next();
1013 } 1013 }
1014 PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, 1014 PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice,
1015 KPimGlobalPrefs::instance()->mEx2PhoneConnection, 1015 KPimGlobalPrefs::instance()->mEx2PhoneConnection,
1016 KPimGlobalPrefs::instance()->mEx2PhoneModel ); 1016 KPimGlobalPrefs::instance()->mEx2PhoneModel );
1017 1017
1018 setCaption( i18n("Writing to phone...")); 1018 setCaption( i18n("Writing to phone..."));
1019 if ( PhoneFormat::writeToPhone( cal ) ) 1019 if ( PhoneFormat::writeToPhone( cal ) )
1020 setCaption( i18n("Export to phone successful!")); 1020 setCaption( i18n("Export to phone successful!"));
1021 else 1021 else
1022 setCaption( i18n("Error exporting to phone!")); 1022 setCaption( i18n("Error exporting to phone!"));
1023 delete cal; 1023 delete cal;
1024} 1024}
1025 1025
1026 1026
1027void MainWindow::setDefaultPreferences() 1027void 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
1037QString MainWindow::resourcePath() 1037QString MainWindow::resourcePath()
1038{ 1038{
1039 return KGlobal::iconLoader()->iconPath(); 1039 return KGlobal::iconLoader()->iconPath();
1040} 1040}
1041 1041
1042void MainWindow::displayText( QString text ,QString cap ) 1042void 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}
1059void MainWindow::displayFile( QString fn, QString cap ) 1059void 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}
1073void MainWindow::features() 1073void 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
1079void MainWindow::usertrans() 1079void 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
1085void MainWindow::synchowto() 1085void 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}
1103void MainWindow::faq() 1090void MainWindow::faq()
1104{ 1091{
1105 displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") ); 1092 displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") );
1106 1093
1107} 1094}
1108void MainWindow::whatsNew() 1095void 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}
1113void MainWindow::licence() 1100void MainWindow::licence()
1114{ 1101{
1115 KApplication::showLicence(); 1102 KApplication::showLicence();
1116 1103
1117} 1104}
1118void MainWindow::about() 1105void 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}
1133void MainWindow::keyBindings() 1120void 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") +
1175 i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + 1162 i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") +
1176 i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + 1163 i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") +
1177 i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ 1164 i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+
1178 i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ 1165 i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+
1179 i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ 1166 i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+
1180 i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ 1167 i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+
1181 i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ 1168 i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+
1182 i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + 1169 i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") +
1183 i18n("<p><b>White</b>: Item readonly</p>\n"); 1170 i18n("<p><b>White</b>: Item readonly</p>\n");
1184 displayText( text, cap); 1171 displayText( text, cap);
1185 1172
1186} 1173}
1187void MainWindow::aboutAutoSaving() 1174void MainWindow::aboutAutoSaving()
1188{ 1175{
1189 QMessageBox* msg; 1176 QMessageBox* msg;
1190 msg = new QMessageBox( i18n("Auto Saving in KOrganizer/Pi"), 1177 msg = new QMessageBox( i18n("Auto Saving in KOrganizer/Pi"),
1191 i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configureable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"), QMessageBox::NoIcon, 1178 i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configureable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"), QMessageBox::NoIcon,
1192 QMessageBox::Ok, 1179 QMessageBox::Ok,
1193 QMessageBox::NoButton, 1180 QMessageBox::NoButton,
1194 QMessageBox::NoButton); 1181 QMessageBox::NoButton);
1195 msg->exec(); 1182 msg->exec();
1196 delete msg; 1183 delete msg;
1197 1184
1198 1185
1199} 1186}
1200void MainWindow::aboutKnownBugs() 1187void MainWindow::aboutKnownBugs()
1201{ 1188{
1202 QMessageBox* msg; 1189 QMessageBox* msg;
1203 msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), 1190 msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"),
1204 i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ 1191 i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+
1205 i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ 1192 i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+
1206 i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n") + 1193 i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n") +
1207 i18n("\nor report them in the bugtracker on\n") + 1194 i18n("\nor report them in the bugtracker on\n") +
1208 i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), 1195 i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"),
1209 QMessageBox::NoIcon, 1196 QMessageBox::NoIcon,
1210 QMessageBox::Ok, 1197 QMessageBox::Ok,
1211 QMessageBox::NoButton, 1198 QMessageBox::NoButton,
1212 QMessageBox::NoButton); 1199 QMessageBox::NoButton);
1213 msg->exec(); 1200 msg->exec();
1214 delete msg; 1201 delete msg;
1215 1202
1216} 1203}
1217 1204
1218QString MainWindow::defaultFileName() 1205QString MainWindow::defaultFileName()
1219{ 1206{
1220 return locateLocal( "data", "korganizer/mycalendar.ics" ); 1207 return locateLocal( "data", "korganizer/mycalendar.ics" );
1221} 1208}
1222QString MainWindow::syncFileName() 1209QString MainWindow::syncFileName()
1223{ 1210{
1224#ifdef _WIN32_ 1211#ifdef _WIN32_
1225 return locateLocal( "tmp", "synccalendar.ics" ); 1212 return locateLocal( "tmp", "synccalendar.ics" );
1226#else 1213#else
1227 return QString( "/tmp/kopitempfile.ics" ); 1214 return QString( "/tmp/kopitempfile.ics" );
1228#endif 1215#endif
1229} 1216}
1230 1217
1231void MainWindow::processIncidenceSelection( Incidence *incidence ) 1218void MainWindow::processIncidenceSelection( Incidence *incidence )
1232{ 1219{
1233 if ( !incidence ) { 1220 if ( !incidence ) {
1234 enableIncidenceActions( false ); 1221 enableIncidenceActions( false );
1235 1222
1236 mNewSubTodoAction->setEnabled( false ); 1223 mNewSubTodoAction->setEnabled( false );
1237 setCaptionToDates(); 1224 setCaptionToDates();
1238 return; 1225 return;