-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 | |||
@@ -1040,67 +1040,86 @@ void MainWindow::displayText( QString text ,QString cap ) | |||
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 | } |