From 72e30db97aa4984aace0d40a1d55762e4745937d Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 06 Aug 2004 22:09:46 +0000 Subject: More licence stuff --- diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 24196b4..e020297 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -176,7 +176,32 @@ void MainWindow::showLicence() } void MainWindow::showAbout() { - qDebug("MainWindow::showAbout() "); + QString version; +#include <../version> + + QString cap = "About KOpieMail/Pi"; + QString text = i18n("KOpieMail/Platform-independent\n") + + "(OM/Pi) " + version + " - " + +#ifdef DESKTOP_VERSION + "Desktop Edition\n" +#else + "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" +#endif + "www.pi-sync.net\n\n" + + + +"Copyright (c) 2004 Lutz Rogowski \n" + "KOpieMail/Pi is based on Opie Mail\n" + "Copyright (c) Rajko Albrecht and the Opie team\n" + "KOpieMail/Pi is licensed under the GPL\n" + "\n" + "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" + "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" + "libEtPan has its own licence - see LibEtPan licence\n"; + + KApplication::showText( cap, text ); } void MainWindow::showEtpanLicence() { diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp index ad0b78e..98ef2f2 100644 --- a/microkde/kapplication.cpp +++ b/microkde/kapplication.cpp @@ -60,7 +60,12 @@ void KApplication::showFile(QString caption, QString fn) QTextStream ts( &file ); text = ts.read(); file.close(); - + KApplication::showText( caption, text ); + +} + +void KApplication::showText(QString caption, QString text) +{ QDialog dia( 0, "name", true ); ; dia.setCaption( caption ); QVBoxLayout* lay = new QVBoxLayout( &dia ); @@ -75,5 +80,5 @@ void KApplication::showFile(QString caption, QString fn) dia.showMaximized(); #endif dia.exec(); - + } diff --git a/microkde/kapplication.h b/microkde/kapplication.h index 5ae5c00..79cdb33 100644 --- a/microkde/kapplication.h +++ b/microkde/kapplication.h @@ -19,6 +19,7 @@ class KApplication static int execDialog( QDialog* ); static void showLicence(); static void showFile(QString caption, QString file); + static void showText(QString caption, QString text); }; -- cgit v0.9.0.2