author | zautrix <zautrix> | 2004-08-06 22:09:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 22:09:46 (UTC) |
commit | 72e30db97aa4984aace0d40a1d55762e4745937d (patch) (unidiff) | |
tree | db5d5ea0748d2fa6ba63c317649567f07750f9aa | |
parent | acc0637eb0965d66b96d138d74514acf2cf24792 (diff) | |
download | kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.zip kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.gz kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.bz2 |
More licence stuff
-rw-r--r-- | kmicromail/mainwindow.cpp | 27 | ||||
-rw-r--r-- | microkde/kapplication.cpp | 9 | ||||
-rw-r--r-- | microkde/kapplication.h | 1 |
3 files changed, 34 insertions, 3 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 24196b4..e020297 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -173,13 +173,38 @@ MainWindow::~MainWindow() | |||
173 | void MainWindow::showLicence() | 173 | void MainWindow::showLicence() |
174 | { | 174 | { |
175 | KApplication::showLicence(); | 175 | KApplication::showLicence(); |
176 | } | 176 | } |
177 | void MainWindow::showAbout() | 177 | void MainWindow::showAbout() |
178 | { | 178 | { |
179 | qDebug("MainWindow::showAbout() "); | 179 | QString version; |
180 | #include <../version> | ||
181 | |||
182 | QString cap = "About KOpieMail/Pi"; | ||
183 | QString text =i18n("KOpieMail/Platform-independent\n") + | ||
184 | "(OM/Pi) " + version + " - " | ||
185 | |||
186 | #ifdef DESKTOP_VERSION | ||
187 | "Desktop Edition\n" | ||
188 | #else | ||
189 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" | ||
190 | #endif | ||
191 | "www.pi-sync.net\n\n" | ||
192 | |||
193 | |||
194 | |||
195 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" | ||
196 | "KOpieMail/Pi is based on Opie Mail\n" | ||
197 | "Copyright (c) Rajko Albrecht and the Opie team\n" | ||
198 | "KOpieMail/Pi is licensed under the GPL\n" | ||
199 | "\n" | ||
200 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" | ||
201 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" | ||
202 | "libEtPan has its own licence - see LibEtPan licence\n"; | ||
203 | |||
204 | KApplication::showText( cap, text ); | ||
180 | } | 205 | } |
181 | void MainWindow::showEtpanLicence() | 206 | void MainWindow::showEtpanLicence() |
182 | { | 207 | { |
183 | KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" ); | 208 | KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" ); |
184 | 209 | ||
185 | } | 210 | } |
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp index ad0b78e..98ef2f2 100644 --- a/microkde/kapplication.cpp +++ b/microkde/kapplication.cpp | |||
@@ -57,13 +57,18 @@ void KApplication::showFile(QString caption, QString fn) | |||
57 | if (!file.open( IO_ReadOnly ) ) { | 57 | if (!file.open( IO_ReadOnly ) ) { |
58 | return ; | 58 | return ; |
59 | } | 59 | } |
60 | QTextStream ts( &file ); | 60 | QTextStream ts( &file ); |
61 | text = ts.read(); | 61 | text = ts.read(); |
62 | file.close(); | 62 | file.close(); |
63 | 63 | KApplication::showText( caption, text ); | |
64 | |||
65 | } | ||
66 | |||
67 | void KApplication::showText(QString caption, QString text) | ||
68 | { | ||
64 | QDialog dia( 0, "name", true ); ; | 69 | QDialog dia( 0, "name", true ); ; |
65 | dia.setCaption( caption ); | 70 | dia.setCaption( caption ); |
66 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 71 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
67 | lay->setSpacing( 3 ); | 72 | lay->setSpacing( 3 ); |
68 | lay->setMargin( 3 ); | 73 | lay->setMargin( 3 ); |
69 | QTextBrowser tb ( &dia ); | 74 | QTextBrowser tb ( &dia ); |
@@ -72,8 +77,8 @@ void KApplication::showFile(QString caption, QString fn) | |||
72 | #ifdef DESKTOP_VERSION | 77 | #ifdef DESKTOP_VERSION |
73 | dia.resize( 640, 480); | 78 | dia.resize( 640, 480); |
74 | #else | 79 | #else |
75 | dia.showMaximized(); | 80 | dia.showMaximized(); |
76 | #endif | 81 | #endif |
77 | dia.exec(); | 82 | dia.exec(); |
78 | 83 | ||
79 | } | 84 | } |
diff --git a/microkde/kapplication.h b/microkde/kapplication.h index 5ae5c00..79cdb33 100644 --- a/microkde/kapplication.h +++ b/microkde/kapplication.h | |||
@@ -16,10 +16,11 @@ class KApplication | |||
16 | * @return the random string | 16 | * @return the random string |
17 | */ | 17 | */ |
18 | static QString randomString(int length); | 18 | static QString randomString(int length); |
19 | static int execDialog( QDialog* ); | 19 | static int execDialog( QDialog* ); |
20 | static void showLicence(); | 20 | static void showLicence(); |
21 | static void showFile(QString caption, QString file); | 21 | static void showFile(QString caption, QString file); |
22 | static void showText(QString caption, QString text); | ||
22 | }; | 23 | }; |
23 | 24 | ||
24 | 25 | ||
25 | #endif | 26 | #endif |