summaryrefslogtreecommitdiffabout
path: root/kmicromail/mainwindow.cpp
authorzautrix <zautrix>2004-08-06 22:09:46 (UTC)
committer zautrix <zautrix>2004-08-06 22:09:46 (UTC)
commit72e30db97aa4984aace0d40a1d55762e4745937d (patch) (unidiff)
treedb5d5ea0748d2fa6ba63c317649567f07750f9aa /kmicromail/mainwindow.cpp
parentacc0637eb0965d66b96d138d74514acf2cf24792 (diff)
downloadkdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.zip
kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.gz
kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.bz2
More licence stuff
Diffstat (limited to 'kmicromail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/mainwindow.cpp27
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
@@ -155,49 +155,74 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
155 155
156 QPopupMenu* helpMenu = new QPopupMenu( menuBar ); 156 QPopupMenu* helpMenu = new QPopupMenu( menuBar );
157 menuBar->insertItem( tr( "Help" ), helpMenu ); 157 menuBar->insertItem( tr( "Help" ), helpMenu );
158 QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); 158 QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this);
159 connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); 159 connect( li, SIGNAL( activated() ), SLOT( showAbout()) );
160 li->addTo(helpMenu); 160 li->addTo(helpMenu);
161 li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); 161 li = new QAction(tr("Licence"),QPixmap(), 0, 0, this);
162 connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); 162 connect( li, SIGNAL( activated() ), SLOT( showLicence()) );
163 li->addTo(helpMenu); 163 li->addTo(helpMenu);
164 li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); 164 li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this);
165 connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); 165 connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) );
166 li->addTo(helpMenu); 166 li->addTo(helpMenu);
167} 167}
168 168
169MainWindow::~MainWindow() 169MainWindow::~MainWindow()
170{ 170{
171} 171}
172 172
173void MainWindow::showLicence() 173void MainWindow::showLicence()
174{ 174{
175 KApplication::showLicence(); 175 KApplication::showLicence();
176} 176}
177void MainWindow::showAbout() 177void 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}
181void MainWindow::showEtpanLicence() 206void MainWindow::showEtpanLicence()
182{ 207{
183 KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" ); 208 KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" );
184 209
185} 210}
186void MainWindow::appMessage(const QCString &, const QByteArray &) 211void MainWindow::appMessage(const QCString &, const QByteArray &)
187{ 212{
188 qDebug("appMessage implemented by subclass"); 213 qDebug("appMessage implemented by subclass");
189} 214}
190 215
191void MainWindow::slotAdjustLayout() { 216void MainWindow::slotAdjustLayout() {
192 217
193 /* 218 /*
194 QWidget *d = QApplication::desktop(); 219 QWidget *d = QApplication::desktop();
195 220
196 if ( d->width() < d->height() ) { 221 if ( d->width() < d->height() ) {
197 layout->setDirection( QBoxLayout::TopToBottom ); 222 layout->setDirection( QBoxLayout::TopToBottom );
198 } else { 223 } else {
199 layout->setDirection( QBoxLayout::LeftToRight ); 224 layout->setDirection( QBoxLayout::LeftToRight );
200 } 225 }
201 */ 226 */
202} 227}
203 228