-rw-r--r-- | kmicromail/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 5793a58..21edfd2 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -146,129 +146,129 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
146 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 146 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
147 | mailView->setShowSortIndicator ( true ); | 147 | mailView->setShowSortIndicator ( true ); |
148 | QLabel *spacer = new QLabel( toolBar ); | 148 | QLabel *spacer = new QLabel( toolBar ); |
149 | spacer->setBackgroundMode( QWidget::PaletteButton ); | 149 | spacer->setBackgroundMode( QWidget::PaletteButton ); |
150 | toolBar->setStretchableWidget( spacer ); | 150 | toolBar->setStretchableWidget( spacer ); |
151 | 151 | ||
152 | QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); | 152 | QAction* closeMail = new QAction(tr("Close"),SmallIcon("exit"), 0, 0, this); |
153 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); | 153 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); |
154 | closeMail->addTo(toolBar); | 154 | closeMail->addTo(toolBar); |
155 | closeMail->addTo(mailMenu); | 155 | closeMail->addTo(mailMenu); |
156 | 156 | ||
157 | 157 | ||
158 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); | 158 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); |
159 | menuBar->insertItem( tr( "Help" ), helpMenu ); | 159 | menuBar->insertItem( tr( "Help" ), helpMenu ); |
160 | QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); | 160 | QAction* li = new QAction(tr("About"), QPixmap(), 0, 0, this); |
161 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); | 161 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); |
162 | li->addTo(helpMenu); | 162 | li->addTo(helpMenu); |
163 | li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); | 163 | li = new QAction(tr("Licence"),QPixmap(), 0, 0, this); |
164 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); | 164 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); |
165 | li->addTo(helpMenu); | 165 | li->addTo(helpMenu); |
166 | li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); | 166 | li = new QAction(tr("LibEtPan Licence"), QPixmap(), 0, 0, this); |
167 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); | 167 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); |
168 | li->addTo(helpMenu); | 168 | li->addTo(helpMenu); |
169 | } | 169 | } |
170 | 170 | ||
171 | MainWindow::~MainWindow() | 171 | MainWindow::~MainWindow() |
172 | { | 172 | { |
173 | } | 173 | } |
174 | 174 | ||
175 | void MainWindow::showLicence() | 175 | void MainWindow::showLicence() |
176 | { | 176 | { |
177 | KApplication::showLicence(); | 177 | KApplication::showLicence(); |
178 | } | 178 | } |
179 | void MainWindow::showAbout() | 179 | void MainWindow::showAbout() |
180 | { | 180 | { |
181 | QString version; | 181 | QString version; |
182 | #include <../version> | 182 | #include <../version> |
183 | 183 | ||
184 | QString cap = "About KOpieMail/Pi"; | 184 | QString cap = "About KOpieMail/Pi"; |
185 | QString text =i18n("KOpieMail/Platform-independent\n") + | 185 | QString text =i18n("KOpieMail/Platform-independent\n") + |
186 | "(OM/Pi) " + version + " - " | 186 | "(OM/Pi) " + version + " - " |
187 | 187 | ||
188 | #ifdef DESKTOP_VERSION | 188 | #ifdef DESKTOP_VERSION |
189 | "Desktop Edition\n" | 189 | "Desktop Edition\n" |
190 | #else | 190 | #else |
191 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" | 191 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" |
192 | #endif | 192 | #endif |
193 | "www.pi-sync.net\n\n" | 193 | "www.pi-sync.net\n\n" |
194 | 194 | ||
195 | 195 | ||
196 | 196 | ||
197 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" | 197 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" |
198 | "KOpieMail/Pi is based on Opie Mail\n" | 198 | "KOpieMail/Pi is based on Opie Mail\n" |
199 | "Copyright (c) Rajko Albrecht and the Opie team\n" | 199 | "Copyright (c) Rajko Albrecht and the Opie team\n" |
200 | "KOpieMail/Pi is licensed under the GPL\n" | 200 | "KOpieMail/Pi is licensed under the GPL\n" |
201 | "\n" | 201 | "\n" |
202 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" | 202 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" |
203 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" | 203 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" |
204 | "libEtPan has its own licence - see LibEtPan licence\n"; | 204 | "libEtPan has its own licence - see LibEtPan licence\n"; |
205 | 205 | ||
206 | KApplication::showText( cap, text ); | 206 | KApplication::showText( cap, text ); |
207 | } | 207 | } |
208 | void MainWindow::showEtpanLicence() | 208 | void MainWindow::showEtpanLicence() |
209 | { | 209 | { |
210 | KApplication::showFile( "LibEtPan licence", "kdepim/kmicromail/COPYRIGHTlibetpan" ); | 210 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); |
211 | 211 | ||
212 | } | 212 | } |
213 | void MainWindow::appMessage(const QCString &, const QByteArray &) | 213 | void MainWindow::appMessage(const QCString &, const QByteArray &) |
214 | { | 214 | { |
215 | qDebug("appMessage implemented by subclass"); | 215 | qDebug("appMessage implemented by subclass"); |
216 | } | 216 | } |
217 | 217 | ||
218 | void MainWindow::slotAdjustLayout() { | 218 | void MainWindow::slotAdjustLayout() { |
219 | 219 | ||
220 | /* | 220 | /* |
221 | QWidget *d = QApplication::desktop(); | 221 | QWidget *d = QApplication::desktop(); |
222 | 222 | ||
223 | if ( d->width() < d->height() ) { | 223 | if ( d->width() < d->height() ) { |
224 | layout->setDirection( QBoxLayout::TopToBottom ); | 224 | layout->setDirection( QBoxLayout::TopToBottom ); |
225 | } else { | 225 | } else { |
226 | layout->setDirection( QBoxLayout::LeftToRight ); | 226 | layout->setDirection( QBoxLayout::LeftToRight ); |
227 | } | 227 | } |
228 | */ | 228 | */ |
229 | } | 229 | } |
230 | 230 | ||
231 | void MainWindow::slotAdjustColumns() | 231 | void MainWindow::slotAdjustColumns() |
232 | { | 232 | { |
233 | bool hidden = folderView->isHidden(); | 233 | bool hidden = folderView->isHidden(); |
234 | if ( hidden ) folderView->show(); | 234 | if ( hidden ) folderView->show(); |
235 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 235 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
236 | if ( hidden ) folderView->hide(); | 236 | if ( hidden ) folderView->hide(); |
237 | 237 | ||
238 | mailView->setColumnWidth( 0, 10 ); | 238 | mailView->setColumnWidth( 0, 10 ); |
239 | mailView->setColumnWidth( 1, 100 ); | 239 | mailView->setColumnWidth( 1, 100 ); |
240 | mailView->setColumnWidth( 2, 100 ); | 240 | mailView->setColumnWidth( 2, 100 ); |
241 | mailView->setColumnWidth( 3, 50 ); | 241 | mailView->setColumnWidth( 3, 50 ); |
242 | mailView->setColumnWidth( 4, 120 ); | 242 | mailView->setColumnWidth( 4, 120 ); |
243 | } | 243 | } |
244 | 244 | ||
245 | void MainWindow::slotEditSettings() | 245 | void MainWindow::slotEditSettings() |
246 | { | 246 | { |
247 | } | 247 | } |
248 | 248 | ||
249 | void MainWindow::slotShowFolders( bool ) | 249 | void MainWindow::slotShowFolders( bool ) |
250 | { | 250 | { |
251 | qDebug("not implemented: "); | 251 | qDebug("not implemented: "); |
252 | } | 252 | } |
253 | 253 | ||
254 | void MainWindow::refreshMailView(const QValueList<RecMailP>&) | 254 | void MainWindow::refreshMailView(const QValueList<RecMailP>&) |
255 | { | 255 | { |
256 | qDebug("not implemented: "); | 256 | qDebug("not implemented: "); |
257 | } | 257 | } |
258 | 258 | ||
259 | void MainWindow::mailLeftClicked(QListViewItem * ) | 259 | void MainWindow::mailLeftClicked(QListViewItem * ) |
260 | { | 260 | { |
261 | qDebug("not implemented: "); | 261 | qDebug("not implemented: "); |
262 | } | 262 | } |
263 | 263 | ||
264 | void MainWindow::displayMail() | 264 | void MainWindow::displayMail() |
265 | { | 265 | { |
266 | qDebug("not implemented: "); | 266 | qDebug("not implemented: "); |
267 | } | 267 | } |
268 | 268 | ||
269 | void MainWindow::slotDeleteMail() | 269 | void MainWindow::slotDeleteMail() |
270 | { | 270 | { |
271 | qDebug("not implemented: "); | 271 | qDebug("not implemented: "); |
272 | } | 272 | } |
273 | 273 | ||
274 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) | 274 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) |