summaryrefslogtreecommitdiffabout
path: root/kmicromail/mainwindow.cpp
Unidiff
Diffstat (limited to 'kmicromail/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp
index 8c0a4cb..0e4a64f 100644
--- a/kmicromail/mainwindow.cpp
+++ b/kmicromail/mainwindow.cpp
@@ -1,274 +1,275 @@
1 1
2// CHANGED 2004-08-06 Lutz Rogowski 2// CHANGED 2004-08-06 Lutz Rogowski
3#include <qlabel.h> 3#include <qlabel.h>
4#include <qvbox.h> 4#include <qvbox.h>
5#include <qheader.h> 5#include <qheader.h>
6#include <qtimer.h> 6#include <qtimer.h>
7#include <qlayout.h> 7#include <qlayout.h>
8//#include <kdialog.h> 8//#include <kdialog.h>
9#include <kiconloader.h> 9#include <kiconloader.h>
10#include <kapplication.h> 10#include <kapplication.h>
11 11
12#ifdef DESKTOP_VERSION 12#ifdef DESKTOP_VERSION
13#include <qapplication.h> 13#include <qapplication.h>
14#include <qstatusbar.h> 14#include <qstatusbar.h>
15#include <kabc/stdaddressbook.h> 15#include <kabc/stdaddressbook.h>
16extern QStatusBar* globalSstatusBarMainWindow; 16extern QStatusBar* globalSstatusBarMainWindow;
17#else 17#else
18#include <qpe/qpeapplication.h> 18#include <qpe/qpeapplication.h>
19#include <klocale.h>
19#endif 20#endif
20#include "defines.h" 21#include "defines.h"
21#include "mainwindow.h" 22#include "mainwindow.h"
22#include <KDGanttMinimizeSplitter.h> 23#include <KDGanttMinimizeSplitter.h>
23 24
24#include "koprefs.h" 25#include "koprefs.h"
25 26
26MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) 27MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags )
27 : QMainWindow( parent, name ) //, flags ) 28 : QMainWindow( parent, name ) //, flags )
28{ 29{
29#ifdef DESKTOP_VERSION 30#ifdef DESKTOP_VERSION
30 globalSstatusBarMainWindow = statusBar(); 31 globalSstatusBarMainWindow = statusBar();
31#endif 32#endif
32 setCaption( i18n( "KOpieMail/Pi" ) ); 33 setCaption( i18n( "KOpieMail/Pi" ) );
33 setToolBarsMovable( false ); 34 setToolBarsMovable( false );
34 //KABC::StdAddressBook::self(); 35 //KABC::StdAddressBook::self();
35 toolBar = new QToolBar( this ); 36 toolBar = new QToolBar( this );
36 menuBar = new QPEMenuBar( toolBar ); 37 menuBar = new QPEMenuBar( toolBar );
37 mailMenu = new QPopupMenu( menuBar ); 38 mailMenu = new QPopupMenu( menuBar );
38 menuBar->insertItem( i18n( "Mail" ), mailMenu ); 39 menuBar->insertItem( i18n( "Mail" ), mailMenu );
39 settingsMenu = new QPopupMenu( menuBar ); 40 settingsMenu = new QPopupMenu( menuBar );
40 menuBar->insertItem( i18n( "Settings" ), settingsMenu ); 41 menuBar->insertItem( i18n( "Settings" ), settingsMenu );
41 42
42 addToolBar( toolBar ); 43 addToolBar( toolBar );
43 toolBar->setHorizontalStretchable( true ); 44 toolBar->setHorizontalStretchable( true );
44 QAction* getMail = new QAction( i18n( "Get all new mails" ), SmallIcon("enter"), 45 QAction* getMail = new QAction( i18n( "Get all new mails" ), SmallIcon("enter"),
45 0, 0, this ); 46 0, 0, this );
46 connect(getMail, SIGNAL( activated() ), 47 connect(getMail, SIGNAL( activated() ),
47 SLOT( slotGetAllMail() ) ); 48 SLOT( slotGetAllMail() ) );
48 getMail->addTo( mailMenu ); 49 getMail->addTo( mailMenu );
49 50
50 getMail = new QAction( i18n( "Get new messages" ), SmallIcon("add"), 51 getMail = new QAction( i18n( "Get new messages" ), SmallIcon("add"),
51 0, 0, this ); 52 0, 0, this );
52 getMail->addTo( toolBar ); 53 getMail->addTo( toolBar );
53 getMail->addTo( mailMenu ); 54 getMail->addTo( mailMenu );
54 connect(getMail, SIGNAL( activated() ), 55 connect(getMail, SIGNAL( activated() ),
55 SLOT( slotGetMail() ) ); 56 SLOT( slotGetMail() ) );
56 57
57 composeMail = new QAction( i18n( "Compose new mail" ), SmallIcon("composemail"), 58 composeMail = new QAction( i18n( "Compose new mail" ), SmallIcon("composemail"),
58 0, 0, this ); 59 0, 0, this );
59 composeMail->addTo( toolBar ); 60 composeMail->addTo( toolBar );
60 composeMail->addTo( mailMenu ); 61 composeMail->addTo( mailMenu );
61 62
62 sendQueued = new QAction( i18n( "Send queued mails" ), SmallIcon("sendqueued") , 63 sendQueued = new QAction( i18n( "Send queued mails" ), SmallIcon("sendqueued") ,
63 0, 0, this ); 64 0, 0, this );
64 sendQueued->addTo( toolBar ); 65 sendQueued->addTo( toolBar );
65 sendQueued->addTo( mailMenu ); 66 sendQueued->addTo( mailMenu );
66 67
67 /* 68 /*
68 syncFolders = new QAction( i18n( "Sync mailfolders" ), ICON_SYNC, 69 syncFolders = new QAction( i18n( "Sync mailfolders" ), ICON_SYNC,
69 0, 0, this ); 70 0, 0, this );
70 syncFolders->addTo( toolBar ); 71 syncFolders->addTo( toolBar );
71 syncFolders->addTo( mailMenu ); 72 syncFolders->addTo( mailMenu );
72 */ 73 */
73 74
74 showFolders = new QAction( i18n( "Show/Hide folders" ), SmallIcon("showfolders") , 75 showFolders = new QAction( i18n( "Show/Hide folders" ), SmallIcon("showfolders") ,
75 0, 0, this, 0, true ); 76 0, 0, this, 0, true );
76 showFolders->addTo( toolBar ); 77 showFolders->addTo( toolBar );
77 showFolders->addTo( mailMenu ); 78 showFolders->addTo( mailMenu );
78 showFolders->setOn( true ); 79 showFolders->setOn( true );
79 connect(showFolders, SIGNAL( toggled(bool) ), 80 connect(showFolders, SIGNAL( toggled(bool) ),
80 SLOT( slotShowFolders(bool) ) ); 81 SLOT( slotShowFolders(bool) ) );
81 82
82 /* 83 /*
83 searchMails = new QAction( i18n( "Search mails" ), SmallIcon("find") ), 84 searchMails = new QAction( i18n( "Search mails" ), SmallIcon("find") ),
84 0, 0, this ); 85 0, 0, this );
85 searchMails->addTo( toolBar ); 86 searchMails->addTo( toolBar );
86 searchMails->addTo( mailMenu ); 87 searchMails->addTo( mailMenu );
87 */ 88 */
88 89
89 deleteMails = new QAction(i18n("Delete Mail"), SmallIcon("trash"), 0, 0, this); 90 deleteMails = new QAction(i18n("Delete Mail"), SmallIcon("trash"), 0, 0, this);
90 deleteMails->addTo( toolBar ); 91 deleteMails->addTo( toolBar );
91 deleteMails->addTo( mailMenu ); 92 deleteMails->addTo( mailMenu );
92 connect( deleteMails, SIGNAL( activated() ), 93 connect( deleteMails, SIGNAL( activated() ),
93 SLOT( slotDeleteMail() ) ); 94 SLOT( slotDeleteMail() ) );
94 95
95 editSettings = new QAction( i18n( "Edit settings" ), SmallIcon("SettingsIcon") , 96 editSettings = new QAction( i18n( "Edit settings" ), SmallIcon("SettingsIcon") ,
96 0, 0, this ); 97 0, 0, this );
97 editSettings->addTo( settingsMenu ); 98 editSettings->addTo( settingsMenu );
98 connect( editSettings, SIGNAL( activated() ), 99 connect( editSettings, SIGNAL( activated() ),
99 SLOT( slotEditSettings() ) ); 100 SLOT( slotEditSettings() ) );
100 editAccounts = new QAction( i18n( "Configure accounts" ), SmallIcon("editaccounts") , 101 editAccounts = new QAction( i18n( "Configure accounts" ), SmallIcon("editaccounts") ,
101 0, 0, this ); 102 0, 0, this );
102 editAccounts->addTo( settingsMenu ); 103 editAccounts->addTo( settingsMenu );
103 codecMenu = new QPopupMenu( menuBar ); 104 codecMenu = new QPopupMenu( menuBar );
104 codecMenu->insertItem( "Western (iso-8859-1)",0,0); 105 codecMenu->insertItem( "Western (iso-8859-1)",0,0);
105 codecMenu->insertItem( "Cyrillic (iso-8859-5)",1,1); 106 codecMenu->insertItem( "Cyrillic (iso-8859-5)",1,1);
106 codecMenu->insertItem( "Western (iso-8859-15)",2,2); 107 codecMenu->insertItem( "Western (iso-8859-15)",2,2);
107 codecMenu->insertItem( "Chinese (big-5)",3,3); 108 codecMenu->insertItem( "Chinese (big-5)",3,3);
108 codecMenu->insertItem( "Unicode (utf-8)",4,4); 109 codecMenu->insertItem( "Unicode (utf-8)",4,4);
109 codecMenu->insertItem( "Userdefined ("+KOPrefs::instance()->mSendCodec+")",5,5); 110 codecMenu->insertItem( "Userdefined ("+KOPrefs::instance()->mSendCodec+")",5,5);
110 //disabled 111 //disabled
111 //settingsMenu->insertItem( i18n("Codec for new mails"), codecMenu); 112 //settingsMenu->insertItem( i18n("Codec for new mails"), codecMenu);
112 //setCentralWidget( view ); 113 //setCentralWidget( view );
113 114
114 QVBox* wrapperBox = new QVBox( this ); 115 QVBox* wrapperBox = new QVBox( this );
115 setCentralWidget( wrapperBox ); 116 setCentralWidget( wrapperBox );
116 117
117 // QWidget *view = new QWidget( wrapperBox ); 118 // QWidget *view = new QWidget( wrapperBox );
118 KDGanttMinimizeSplitter* split = new KDGanttMinimizeSplitter( Qt::Horizontal, wrapperBox); 119 KDGanttMinimizeSplitter* split = new KDGanttMinimizeSplitter( Qt::Horizontal, wrapperBox);
119 split->setMinimizeDirection( KDGanttMinimizeSplitter::Left); 120 split->setMinimizeDirection( KDGanttMinimizeSplitter::Left);
120 //layout = new QBoxLayout ( split, QBoxLayout::LeftToRight ); 121 //layout = new QBoxLayout ( split, QBoxLayout::LeftToRight );
121 122
122 folderView = new AccountView( split ); 123 folderView = new AccountView( split );
123 folderView->header()->hide(); 124 folderView->header()->hide();
124 folderView->setRootIsDecorated( false ); 125 folderView->setRootIsDecorated( false );
125 folderView->addColumn( i18n( "Mailbox" ) ); 126 folderView->addColumn( i18n( "Mailbox" ) );
126 127
127 //layout->addWidget( folderView ); 128 //layout->addWidget( folderView );
128 129
129 mailView = new QListView( split ); 130 mailView = new QListView( split );
130 mailView->addColumn( i18n( " " ) ); 131 mailView->addColumn( i18n( " " ) );
131 mailView->addColumn( i18n( "Subject" ),QListView::Manual ); 132 mailView->addColumn( i18n( "Subject" ),QListView::Manual );
132 mailView->addColumn( i18n( "Sender" ),QListView::Manual ); 133 mailView->addColumn( i18n( "Sender" ),QListView::Manual );
133 mailView->addColumn( i18n( "Size" ),QListView::Manual); 134 mailView->addColumn( i18n( "Size" ),QListView::Manual);
134 mailView->addColumn( i18n( "Date" ),QListView::Manual); 135 mailView->addColumn( i18n( "Date" ),QListView::Manual);
135 mailView->setAllColumnsShowFocus(true); 136 mailView->setAllColumnsShowFocus(true);
136 //mailView->setSorting(-1); 137 //mailView->setSorting(-1);
137 mailView->setRootIsDecorated( false ); 138 mailView->setRootIsDecorated( false );
138 statusWidget = new StatusWidget( wrapperBox ); 139 statusWidget = new StatusWidget( wrapperBox );
139 statusWidget->hide(); 140 statusWidget->hide();
140 141
141 //layout->addWidget( mailView ); 142 //layout->addWidget( mailView );
142 //layout->setStretchFactor( folderView, 1 ); 143 //layout->setStretchFactor( folderView, 1 );
143 //layout->setStretchFactor( mailView, 2 ); 144 //layout->setStretchFactor( mailView, 2 );
144 145
145 slotAdjustLayout(); 146 slotAdjustLayout();
146#ifndef DESKTOP_VERSION 147#ifndef DESKTOP_VERSION
147 QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); 148 QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold);
148 QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); 149 QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold);
149#endif 150#endif
150 connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this, 151 connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this,
151 SLOT( mailLeftClicked(QListViewItem*) ) ); 152 SLOT( mailLeftClicked(QListViewItem*) ) );
152 connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this, 153 connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this,
153 SLOT( mailLeftClicked(QListViewItem*) ) ); 154 SLOT( mailLeftClicked(QListViewItem*) ) );
154 connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, 155 connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this,
155 SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); 156 SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) );
156 connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), 157 connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)),
157 this,SLOT(refreshMailView(const QValueList<RecMailP>&))); 158 this,SLOT(refreshMailView(const QValueList<RecMailP>&)));
158 connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); 159 connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) );
159 connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); 160 connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) );
160// connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); 161// connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) );
161 connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); 162 connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) );
162 //mailView->setMultiSelection ( true ); 163 //mailView->setMultiSelection ( true );
163 mailView->setSelectionMode( QListView::Extended ); 164 mailView->setSelectionMode( QListView::Extended );
164 QValueList<int> list; 165 QValueList<int> list;
165 int fw = 100; 166 int fw = 100;
166 if ( QApplication::desktop()->width() > 320 ) 167 if ( QApplication::desktop()->width() > 320 )
167 fw = 50; 168 fw = 50;
168 list.append( fw ); 169 list.append( fw );
169 list.append( 100 ); 170 list.append( 100 );
170 split->setSizes( list ); 171 split->setSizes( list );
171 QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); 172 QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) );
172 mailView->setShowSortIndicator ( true ); 173 mailView->setShowSortIndicator ( true );
173 QLabel *spacer = new QLabel( toolBar ); 174 QLabel *spacer = new QLabel( toolBar );
174 spacer->setBackgroundMode( QWidget::PaletteButton ); 175 spacer->setBackgroundMode( QWidget::PaletteButton );
175 toolBar->setStretchableWidget( spacer ); 176 toolBar->setStretchableWidget( spacer );
176 177
177 QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); 178 QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this);
178 connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); 179 connect( closeMail, SIGNAL( activated() ), SLOT( close() ) );
179 if ( QApplication::desktop()->width() > 320 ) 180 if ( QApplication::desktop()->width() > 320 )
180 closeMail->addTo(toolBar); 181 closeMail->addTo(toolBar);
181 closeMail->addTo(mailMenu); 182 closeMail->addTo(mailMenu);
182 183
183 184
184 QPopupMenu* helpMenu = new QPopupMenu( menuBar ); 185 QPopupMenu* helpMenu = new QPopupMenu( menuBar );
185 menuBar->insertItem( i18n( "Help" ), helpMenu ); 186 menuBar->insertItem( i18n( "Help" ), helpMenu );
186 QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this); 187 QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this);
187 connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); 188 connect( li, SIGNAL( activated() ), SLOT( showAbout()) );
188 li->addTo(helpMenu); 189 li->addTo(helpMenu);
189 li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this); 190 li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this);
190 connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); 191 connect( li, SIGNAL( activated() ), SLOT( showLicence()) );
191 li->addTo(helpMenu); 192 li->addTo(helpMenu);
192 li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this); 193 li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this);
193 connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); 194 connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) );
194 li->addTo(helpMenu); 195 li->addTo(helpMenu);
195 connect( codecMenu, SIGNAL( activated(int) ), this, SLOT( slotSetCodec( int )) ); 196 connect( codecMenu, SIGNAL( activated(int) ), this, SLOT( slotSetCodec( int )) );
196 slotSetCodec( KOPrefs::instance()->mCurrentCodec ); 197 slotSetCodec( KOPrefs::instance()->mCurrentCodec );
197#ifdef DESKTOP_VERSION 198#ifdef DESKTOP_VERSION
198 resize ( 640, 480 ); 199 resize ( 640, 480 );
199#endif 200#endif
200} 201}
201 202
202MainWindow::~MainWindow() 203MainWindow::~MainWindow()
203{ 204{
204} 205}
205 206
206void MainWindow::slotSetCodec( int codec ) 207void MainWindow::slotSetCodec( int codec )
207{ 208{
208 codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, false ); 209 codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, false );
209 //qDebug("codec %d ", codec); 210 //qDebug("codec %d ", codec);
210 KOPrefs::instance()->mCurrentCodec = codec; 211 KOPrefs::instance()->mCurrentCodec = codec;
211 KOPrefs::instance()->isDirty = true; 212 KOPrefs::instance()->isDirty = true;
212 QString name; 213 QString name;
213 switch ( codec ) { 214 switch ( codec ) {
214 case 0: 215 case 0:
215 name = "iso-8859-1"; 216 name = "iso-8859-1";
216 break; 217 break;
217 case 1: 218 case 1:
218 name = "iso-8859-5"; 219 name = "iso-8859-5";
219 break; 220 break;
220 case 2: 221 case 2:
221 name = "iso-8859-15"; 222 name = "iso-8859-15";
222 break; 223 break;
223 case 3: 224 case 3:
224 name = "big-5"; 225 name = "big-5";
225 break; 226 break;
226 case 4: 227 case 4:
227 name = "utf-8"; 228 name = "utf-8";
228 break; 229 break;
229 case 5: 230 case 5:
230 name = KOPrefs::instance()->mSendCodec.lower(); 231 name = KOPrefs::instance()->mSendCodec.lower();
231 break; 232 break;
232 } 233 }
233 KOPrefs::instance()->mCurrentCodeName = name ; 234 KOPrefs::instance()->mCurrentCodeName = name ;
234 codecMenu->changeItem ( 5, "Userdefined ("+KOPrefs::instance()->mSendCodec+")"); 235 codecMenu->changeItem ( 5, "Userdefined ("+KOPrefs::instance()->mSendCodec+")");
235 codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, true ); 236 codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, true );
236} 237}
237void MainWindow::showLicence() 238void MainWindow::showLicence()
238{ 239{
239 KApplication::showLicence(); 240 KApplication::showLicence();
240} 241}
241void MainWindow::showAbout() 242void MainWindow::showAbout()
242{ 243{
243 QString version; 244 QString version;
244#include <../version> 245#include <../version>
245 246
246 QString cap = "About KOpieMail/Pi"; 247 QString cap = "About KOpieMail/Pi";
247 QString text =i18n("KOpieMail/Platform-independent\n") + 248 QString text =i18n("KOpieMail/Platform-independent\n") +
248 "(OM/Pi) " + version + " - " 249 "(OM/Pi) " + version + " - "
249 250
250#ifdef DESKTOP_VERSION 251#ifdef DESKTOP_VERSION
251 "Desktop Edition\n" 252 "Desktop Edition\n"
252#else 253#else
253 "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" 254 "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n"
254#endif 255#endif
255 "www.pi-sync.net\n\n" 256 "www.pi-sync.net\n\n"
256 257
257 258
258 259
259"Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" 260"Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n"
260 "KOpieMail/Pi is based on Opie Mail\n" 261 "KOpieMail/Pi is based on Opie Mail\n"
261 "Copyright (c) Rajko Albrecht and the Opie team\n" 262 "Copyright (c) Rajko Albrecht and the Opie team\n"
262 "KOpieMail/Pi is licensed under the GPL\n" 263 "KOpieMail/Pi is licensed under the GPL\n"
263 "\n" 264 "\n"
264 "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" 265 "KOpieMail/Pi uses LibEtPan - a mail stuff library\n"
265 "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" 266 "Copyright (C) 2001, 2002 - DINH Viet Hoa\n"
266 "libEtPan has its own licence - see LibEtPan licence\n"; 267 "libEtPan has its own licence - see LibEtPan licence\n";
267 268
268 KApplication::showText( cap, text ); 269 KApplication::showText( cap, text );
269} 270}
270void MainWindow::showEtpanLicence() 271void MainWindow::showEtpanLicence()
271{ 272{
272 KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); 273 KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" );
273 274
274} 275}