author | zautrix <zautrix> | 2004-08-06 22:09:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 22:09:46 (UTC) |
commit | 72e30db97aa4984aace0d40a1d55762e4745937d (patch) (side-by-side diff) | |
tree | db5d5ea0748d2fa6ba63c317649567f07750f9aa /kmicromail | |
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 |
1 files changed, 26 insertions, 1 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 24196b4..e020297 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp @@ -147,65 +147,90 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) spacer->setBackgroundMode( QWidget::PaletteButton ); toolBar->setStretchableWidget( spacer ); QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); closeMail->addTo(toolBar); closeMail->addTo(mailMenu); QPopupMenu* helpMenu = new QPopupMenu( menuBar ); menuBar->insertItem( tr( "Help" ), helpMenu ); QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); li->addTo(helpMenu); li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); li->addTo(helpMenu); li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); li->addTo(helpMenu); } MainWindow::~MainWindow() { } void MainWindow::showLicence() { KApplication::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 <lutz@pi-sync.net>\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() { KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" ); } void MainWindow::appMessage(const QCString &, const QByteArray &) { qDebug("appMessage implemented by subclass"); } void MainWindow::slotAdjustLayout() { /* QWidget *d = QApplication::desktop(); if ( d->width() < d->height() ) { layout->setDirection( QBoxLayout::TopToBottom ); } else { layout->setDirection( QBoxLayout::LeftToRight ); } */ } void MainWindow::slotAdjustColumns() { bool hidden = folderView->isHidden(); if ( hidden ) folderView->show(); folderView->setColumnWidth( 0, folderView->visibleWidth() ); if ( hidden ) folderView->hide(); mailView->setColumnWidth( 0, 10 ); |