summaryrefslogtreecommitdiffabout
path: root/kmicromail
authorzautrix <zautrix>2004-08-06 21:32:25 (UTC)
committer zautrix <zautrix>2004-08-06 21:32:25 (UTC)
commitacc0637eb0965d66b96d138d74514acf2cf24792 (patch) (unidiff)
tree6787abd671406bbdeb2e3387aa39ba4806d84689 /kmicromail
parent2087f0a25354897ff9b987093e1c6716d7bd967b (diff)
downloadkdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.zip
kdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.tar.gz
kdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.tar.bz2
more licence stuff
Diffstat (limited to 'kmicromail') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/mainwindow.cpp27
-rw-r--r--kmicromail/mainwindow.h3
2 files changed, 30 insertions, 0 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index aa51a37..24196b4 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -4,8 +4,9 @@
4#include <qtimer.h> 4#include <qtimer.h>
5#include <qlayout.h> 5#include <qlayout.h>
6#include <kdialog.h> 6#include <kdialog.h>
7#include <kiconloader.h> 7#include <kiconloader.h>
8#include <kapplication.h>
8 9
9#ifndef DESKTOP_VERSION 10#ifndef DESKTOP_VERSION
10#include <qpe/qpeapplication.h> 11#include <qpe/qpeapplication.h>
11#endif 12#endif
@@ -149,14 +150,40 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
149 QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); 150 QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this);
150 connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); 151 connect( closeMail, SIGNAL( activated() ), SLOT( close() ) );
151 closeMail->addTo(toolBar); 152 closeMail->addTo(toolBar);
152 closeMail->addTo(mailMenu); 153 closeMail->addTo(mailMenu);
154
155
156 QPopupMenu* helpMenu = new QPopupMenu( menuBar );
157 menuBar->insertItem( tr( "Help" ), helpMenu );
158 QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this);
159 connect( li, SIGNAL( activated() ), SLOT( showAbout()) );
160 li->addTo(helpMenu);
161 li = new QAction(tr("Licence"),QPixmap(), 0, 0, this);
162 connect( li, SIGNAL( activated() ), SLOT( showLicence()) );
163 li->addTo(helpMenu);
164 li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this);
165 connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) );
166 li->addTo(helpMenu);
153} 167}
154 168
155MainWindow::~MainWindow() 169MainWindow::~MainWindow()
156{ 170{
157} 171}
158 172
173void MainWindow::showLicence()
174{
175 KApplication::showLicence();
176}
177void MainWindow::showAbout()
178{
179 qDebug("MainWindow::showAbout() ");
180}
181void MainWindow::showEtpanLicence()
182{
183 KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" );
184
185}
159void MainWindow::appMessage(const QCString &, const QByteArray &) 186void MainWindow::appMessage(const QCString &, const QByteArray &)
160{ 187{
161 qDebug("appMessage implemented by subclass"); 188 qDebug("appMessage implemented by subclass");
162} 189}
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h
index 0cb252c..d6dc6cc 100644
--- a/kmicromail/mainwindow.h
+++ b/kmicromail/mainwindow.h
@@ -39,8 +39,11 @@ protected slots:
39 virtual void mailHold(int, QListViewItem *,const QPoint&,int); 39 virtual void mailHold(int, QListViewItem *,const QPoint&,int);
40 virtual void slotAdjustLayout(); 40 virtual void slotAdjustLayout();
41 virtual void slotEditSettings(); 41 virtual void slotEditSettings();
42 virtual void mailLeftClicked( QListViewItem * ); 42 virtual void mailLeftClicked( QListViewItem * );
43 void showLicence();
44 void showAbout();
45 void showEtpanLicence();
43 46
44protected: 47protected:
45 QToolBar *toolBar; 48 QToolBar *toolBar;
46 StatusWidget *statusWidget; 49 StatusWidget *statusWidget;