-rw-r--r-- | bin/kdepim/WhatsNew.txt | 13 | ||||
-rw-r--r-- | kmicromail/composemail.cpp | 21 | ||||
-rw-r--r-- | kmicromail/composemail.h | 1 | ||||
-rw-r--r-- | kmicromail/composemailui.ui | 74 | ||||
-rw-r--r-- | kmicromail/editaccounts.cpp | 19 | ||||
-rw-r--r-- | kmicromail/editaccounts.h | 1 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/settings.cpp | 46 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/settings.h | 6 | ||||
-rw-r--r-- | kmicromail/main.cpp | 2 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 2 | ||||
-rw-r--r-- | kmicromail/smtpconfigui.ui | 97 |
11 files changed, 191 insertions, 91 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 3dbbbb6..031c7f2 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -15,8 +15,21 @@ there is now a "week number quick selector". | |||
15 | (Click on the black triangle). | 15 | (Click on the black triangle). |
16 | 16 | ||
17 | Made the quite difficult timezone change in KO/Pi easy. | 17 | Made the quite difficult timezone change in KO/Pi easy. |
18 | 18 | ||
19 | OM/Pi: | ||
20 | Fixed too small icons on desktop. | ||
21 | Fixed non visible icons in mainwindow on Z with fastload enabled. | ||
22 | Added signature file setting to smtp account config. | ||
23 | And the signature can be edited and saved in the edit mail dialog. | ||
24 | That does mean: | ||
25 | Simply edit the signature for the selected smtp account in the | ||
26 | edit new mail dialog and press the "save signature" button there. | ||
27 | Then the signature is saved to the file specified in the smtp account settings. | ||
28 | If there is no file specified, it is saved automatically to the file | ||
29 | kdepim/apps/kopiemail/<accountname>.sig. | ||
30 | |||
31 | |||
19 | 32 | ||
20 | ********** VERSION 2.0.1 ************ | 33 | ********** VERSION 2.0.1 ************ |
21 | 34 | ||
22 | Oooops ... I forgot to test on the Zaurus 5500 ... | 35 | Oooops ... I forgot to test on the Zaurus 5500 ... |
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 976e309..ed8a2ee 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -148,9 +148,11 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo | |||
148 | i18n( "Ok" ) ); | 148 | i18n( "Ok" ) ); |
149 | return; | 149 | return; |
150 | } | 150 | } |
151 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); | 151 | connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) ); |
152 | 152 | connect( SaveSigButton, SIGNAL( clicked() ), SLOT( saveSig()) ); | |
153 | if ( smtpAccountBox->count()) | ||
154 | fillValues(0); | ||
153 | 155 | ||
154 | } | 156 | } |
155 | 157 | ||
156 | void ComposeMail::fillSettings() | 158 | void ComposeMail::fillSettings() |
@@ -164,10 +166,17 @@ void ComposeMail::fillSettings() | |||
164 | fromBox->insertItem((*sit)); | 166 | fromBox->insertItem((*sit)); |
165 | } | 167 | } |
166 | senderNameEdit->setText(KOPrefs::instance()->mName); | 168 | senderNameEdit->setText(KOPrefs::instance()->mName); |
167 | } | 169 | } |
168 | 170 | void ComposeMail::saveSig() | |
169 | 171 | { | |
172 | if ( smtpAccountBox->count()) { | ||
173 | int cur = smtpAccountBox->currentItem (); | ||
174 | SMTPaccount *smtp = smtpAccounts.at( cur ); | ||
175 | if ( smtp ) | ||
176 | smtp->setSignature( sigMultiLine->text()); | ||
177 | } | ||
178 | } | ||
170 | void ComposeMail::saveAsDraft() | 179 | void ComposeMail::saveAsDraft() |
171 | { | 180 | { |
172 | 181 | ||
173 | Opie::Core::OSmartPointer<Mail> mail= new Mail(); | 182 | Opie::Core::OSmartPointer<Mail> mail= new Mail(); |
@@ -337,9 +346,9 @@ void ComposeMail::pickAddressReply() | |||
337 | mPickLineEdit = replyLine; | 346 | mPickLineEdit = replyLine; |
338 | pickAddress( ); | 347 | pickAddress( ); |
339 | } | 348 | } |
340 | 349 | ||
341 | void ComposeMail::fillValues( int ) | 350 | void ComposeMail::fillValues( int current ) |
342 | { | 351 | { |
343 | #if 0 | 352 | #if 0 |
344 | SMTPaccount *smtp = smtpAccounts.at( current ); | 353 | SMTPaccount *smtp = smtpAccounts.at( current ); |
345 | ccLine->clear(); | 354 | ccLine->clear(); |
@@ -353,10 +362,12 @@ void ComposeMail::fillValues( int ) | |||
353 | replyLine->clear(); | 362 | replyLine->clear(); |
354 | if ( smtp->getUseReply() ) { | 363 | if ( smtp->getUseReply() ) { |
355 | replyLine->setText( smtp->getReply() ); | 364 | replyLine->setText( smtp->getReply() ); |
356 | } | 365 | } |
357 | sigMultiLine->setText( smtp->getSignature() ); | ||
358 | #endif | 366 | #endif |
367 | SMTPaccount *smtp = smtpAccounts.at( current ); | ||
368 | if ( smtp ) | ||
369 | sigMultiLine->setText( smtp->getSignature() ); | ||
359 | } | 370 | } |
360 | 371 | ||
361 | void ComposeMail::slotAdjustColumns() | 372 | void ComposeMail::slotAdjustColumns() |
362 | { | 373 | { |
diff --git a/kmicromail/composemail.h b/kmicromail/composemail.h index a7fa41c..966ac3e 100644 --- a/kmicromail/composemail.h +++ b/kmicromail/composemail.h | |||
@@ -67,8 +67,9 @@ private slots: | |||
67 | void addAttachment(); | 67 | void addAttachment(); |
68 | void removeAttachment(); | 68 | void removeAttachment(); |
69 | void clearStatus(); | 69 | void clearStatus(); |
70 | void setStatus( QString ); | 70 | void setStatus( QString ); |
71 | void saveSig(); | ||
71 | 72 | ||
72 | protected: | 73 | protected: |
73 | QLineEdit* mPickLineEdit; | 74 | QLineEdit* mPickLineEdit; |
74 | Opie::Core::OSmartPointer<Mail> mMail; | 75 | Opie::Core::OSmartPointer<Mail> mMail; |
diff --git a/kmicromail/composemailui.ui b/kmicromail/composemailui.ui index 610907c..23f47d3 100644 --- a/kmicromail/composemailui.ui +++ b/kmicromail/composemailui.ui | |||
@@ -11,10 +11,10 @@ | |||
11 | <name>geometry</name> | 11 | <name>geometry</name> |
12 | <rect> | 12 | <rect> |
13 | <x>0</x> | 13 | <x>0</x> |
14 | <y>0</y> | 14 | <y>0</y> |
15 | <width>579</width> | 15 | <width>275</width> |
16 | <height>476</height> | 16 | <height>382</height> |
17 | </rect> | 17 | </rect> |
18 | </property> | 18 | </property> |
19 | <property stdset="1"> | 19 | <property stdset="1"> |
20 | <name>sizePolicy</name> | 20 | <name>sizePolicy</name> |
@@ -330,26 +330,15 @@ | |||
330 | </attribute> | 330 | </attribute> |
331 | <grid> | 331 | <grid> |
332 | <property stdset="1"> | 332 | <property stdset="1"> |
333 | <name>margin</name> | 333 | <name>margin</name> |
334 | <number>3</number> | 334 | <number>2</number> |
335 | </property> | 335 | </property> |
336 | <property stdset="1"> | 336 | <property stdset="1"> |
337 | <name>spacing</name> | 337 | <name>spacing</name> |
338 | <number>3</number> | 338 | <number>2</number> |
339 | </property> | 339 | </property> |
340 | <widget row="3" column="0" > | 340 | <widget row="1" column="0" > |
341 | <class>QPushButton</class> | ||
342 | <property stdset="1"> | ||
343 | <name>name</name> | ||
344 | <cstring>replyButton</cstring> | ||
345 | </property> | ||
346 | <property stdset="1"> | ||
347 | <name>text</name> | ||
348 | <string>Reply-To</string> | ||
349 | </property> | ||
350 | </widget> | ||
351 | <widget row="2" column="0" > | ||
352 | <class>QPushButton</class> | 341 | <class>QPushButton</class> |
353 | <property stdset="1"> | 342 | <property stdset="1"> |
354 | <name>name</name> | 343 | <name>name</name> |
355 | <cstring>bccButton</cstring> | 344 | <cstring>bccButton</cstring> |
@@ -358,77 +347,78 @@ | |||
358 | <name>text</name> | 347 | <name>text</name> |
359 | <string>BCC</string> | 348 | <string>BCC</string> |
360 | </property> | 349 | </property> |
361 | </widget> | 350 | </widget> |
362 | <widget row="1" column="1" > | 351 | <widget row="0" column="1" > |
363 | <class>QLineEdit</class> | 352 | <class>QLineEdit</class> |
364 | <property stdset="1"> | 353 | <property stdset="1"> |
365 | <name>name</name> | 354 | <name>name</name> |
366 | <cstring>ccLine</cstring> | 355 | <cstring>ccLine</cstring> |
367 | </property> | 356 | </property> |
368 | </widget> | 357 | </widget> |
369 | <widget row="2" column="1" > | 358 | <widget row="1" column="1" > |
370 | <class>QLineEdit</class> | 359 | <class>QLineEdit</class> |
371 | <property stdset="1"> | 360 | <property stdset="1"> |
372 | <name>name</name> | 361 | <name>name</name> |
373 | <cstring>bccLine</cstring> | 362 | <cstring>bccLine</cstring> |
374 | </property> | 363 | </property> |
375 | </widget> | 364 | </widget> |
376 | <widget row="3" column="1" > | 365 | <widget row="2" column="1" > |
377 | <class>QLineEdit</class> | 366 | <class>QLineEdit</class> |
378 | <property stdset="1"> | 367 | <property stdset="1"> |
379 | <name>name</name> | 368 | <name>name</name> |
380 | <cstring>replyLine</cstring> | 369 | <cstring>replyLine</cstring> |
381 | </property> | 370 | </property> |
382 | </widget> | 371 | </widget> |
383 | <widget row="6" column="0" rowspan="1" colspan="2" > | 372 | <widget row="4" column="0" rowspan="1" colspan="2" > |
384 | <class>QMultiLineEdit</class> | 373 | <class>QMultiLineEdit</class> |
385 | <property stdset="1"> | 374 | <property stdset="1"> |
386 | <name>name</name> | 375 | <name>name</name> |
387 | <cstring>sigMultiLine</cstring> | 376 | <cstring>sigMultiLine</cstring> |
388 | </property> | 377 | </property> |
389 | </widget> | 378 | </widget> |
390 | <widget row="5" column="0" > | 379 | <widget row="0" column="0" > |
391 | <class>QLabel</class> | 380 | <class>QPushButton</class> |
392 | <property stdset="1"> | 381 | <property stdset="1"> |
393 | <name>name</name> | 382 | <name>name</name> |
394 | <cstring>sigLabel</cstring> | 383 | <cstring>ccButton</cstring> |
395 | </property> | 384 | </property> |
396 | <property stdset="1"> | 385 | <property stdset="1"> |
397 | <name>text</name> | 386 | <name>text</name> |
398 | <string>Signature</string> | 387 | <string>CC</string> |
399 | </property> | 388 | </property> |
400 | </widget> | 389 | </widget> |
401 | <spacer row="4" column="0" > | 390 | <widget row="3" column="1" > |
402 | <property> | 391 | <class>QPushButton</class> |
392 | <property stdset="1"> | ||
403 | <name>name</name> | 393 | <name>name</name> |
404 | <cstring>Spacer3</cstring> | 394 | <cstring>SaveSigButton</cstring> |
405 | </property> | 395 | </property> |
406 | <property stdset="1"> | 396 | <property stdset="1"> |
407 | <name>orientation</name> | 397 | <name>text</name> |
408 | <enum>Vertical</enum> | 398 | <string>Save signature</string> |
409 | </property> | 399 | </property> |
400 | </widget> | ||
401 | <widget row="2" column="0" > | ||
402 | <class>QPushButton</class> | ||
410 | <property stdset="1"> | 403 | <property stdset="1"> |
411 | <name>sizeType</name> | 404 | <name>name</name> |
412 | <enum>Expanding</enum> | 405 | <cstring>replyButton</cstring> |
413 | </property> | 406 | </property> |
414 | <property> | 407 | <property stdset="1"> |
415 | <name>sizeHint</name> | 408 | <name>text</name> |
416 | <size> | 409 | <string>Reply-To</string> |
417 | <width>20</width> | ||
418 | <height>20</height> | ||
419 | </size> | ||
420 | </property> | 410 | </property> |
421 | </spacer> | 411 | </widget> |
422 | <widget row="1" column="0" > | 412 | <widget row="3" column="0" > |
423 | <class>QPushButton</class> | 413 | <class>QLabel</class> |
424 | <property stdset="1"> | 414 | <property stdset="1"> |
425 | <name>name</name> | 415 | <name>name</name> |
426 | <cstring>ccButton</cstring> | 416 | <cstring>sigLabel</cstring> |
427 | </property> | 417 | </property> |
428 | <property stdset="1"> | 418 | <property stdset="1"> |
429 | <name>text</name> | 419 | <name>text</name> |
430 | <string>CC</string> | 420 | <string>Signature</string> |
431 | </property> | 421 | </property> |
432 | </widget> | 422 | </widget> |
433 | </grid> | 423 | </grid> |
434 | </widget> | 424 | </widget> |
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index 48c3963..8253c91 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp | |||
@@ -18,8 +18,9 @@ | |||
18 | #include <qtabwidget.h> | 18 | #include <qtabwidget.h> |
19 | #include <qlistview.h> | 19 | #include <qlistview.h> |
20 | #include <qspinbox.h> | 20 | #include <qspinbox.h> |
21 | #include <klocale.h> | 21 | #include <klocale.h> |
22 | #include <kfiledialog.h> | ||
22 | 23 | ||
23 | #include <libmailwrapper/nntpwrapper.h> | 24 | #include <libmailwrapper/nntpwrapper.h> |
24 | 25 | ||
25 | using namespace Opie::Core; | 26 | using namespace Opie::Core; |
@@ -478,18 +479,30 @@ SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name, | |||
478 | connect( loginBox, SIGNAL( toggled(bool) ), userLine, SLOT( setEnabled(bool) ) ); | 479 | connect( loginBox, SIGNAL( toggled(bool) ), userLine, SLOT( setEnabled(bool) ) ); |
479 | connect( loginBox, SIGNAL( toggled(bool) ), passLine, SLOT( setEnabled(bool) ) ); | 480 | connect( loginBox, SIGNAL( toggled(bool) ), passLine, SLOT( setEnabled(bool) ) ); |
480 | 481 | ||
481 | fillValues(); | 482 | fillValues(); |
482 | 483 | QIconSet icon; | |
484 | //icon = SmallIcon("fileexport"); | ||
485 | icon = SmallIcon("fileopen"); | ||
486 | SignaturButton->setText(""); | ||
487 | SignaturButton->setIconSet (icon ) ; | ||
488 | SignaturButton->setMaximumSize ( SignaturButton->sizeHint().height()+4,SignaturButton->sizeHint().height()) ; | ||
489 | connect( SignaturButton, SIGNAL( clicked() ), this, SLOT( chooseSig() ) ); | ||
483 | connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) ); | 490 | connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) ); |
484 | ComboBox1->insertItem( "Only if available", 0 ); | 491 | ComboBox1->insertItem( "Only if available", 0 ); |
485 | ComboBox1->insertItem( "Always, Negotiated", 1 ); | 492 | ComboBox1->insertItem( "Always, Negotiated", 1 ); |
486 | ComboBox1->insertItem( "Connect on secure port", 2 ); | 493 | ComboBox1->insertItem( "Connect on secure port", 2 ); |
487 | ComboBox1->insertItem( "Run command instead", 3 ); | 494 | ComboBox1->insertItem( "Run command instead", 3 ); |
488 | CommandEdit->hide(); | 495 | CommandEdit->hide(); |
489 | ComboBox1->setCurrentItem( data->ConnectionType() ); | 496 | ComboBox1->setCurrentItem( data->ConnectionType() ); |
490 | } | 497 | } |
491 | 498 | void SMTPconfig::chooseSig() | |
499 | { | ||
500 | QString lnk = KFileDialog::getOpenFileName( "", "Choose Signatur File", this ); | ||
501 | if ( !lnk.isEmpty() ) { | ||
502 | SignaturEdit->setText( lnk ); | ||
503 | } | ||
504 | } | ||
492 | void SMTPconfig::slotConnectionToggle( int index ) | 505 | void SMTPconfig::slotConnectionToggle( int index ) |
493 | { | 506 | { |
494 | // 2 is ssl connection | 507 | // 2 is ssl connection |
495 | if ( index == 2 ) | 508 | if ( index == 2 ) |
@@ -515,8 +528,9 @@ void SMTPconfig::fillValues() | |||
515 | ComboBox1->setCurrentItem( data->ConnectionType() ); | 528 | ComboBox1->setCurrentItem( data->ConnectionType() ); |
516 | loginBox->setChecked( data->getLogin() ); | 529 | loginBox->setChecked( data->getLogin() ); |
517 | userLine->setText( data->getUser() ); | 530 | userLine->setText( data->getUser() ); |
518 | passLine->setText( data->getPassword() ); | 531 | passLine->setText( data->getPassword() ); |
532 | SignaturEdit->setText( data->getSigFile() ); | ||
519 | } | 533 | } |
520 | 534 | ||
521 | void SMTPconfig::accept() | 535 | void SMTPconfig::accept() |
522 | { | 536 | { |
@@ -526,8 +540,9 @@ void SMTPconfig::accept() | |||
526 | data->setConnectionType( ComboBox1->currentItem() ); | 540 | data->setConnectionType( ComboBox1->currentItem() ); |
527 | data->setLogin( loginBox->isChecked() ); | 541 | data->setLogin( loginBox->isChecked() ); |
528 | data->setUser( userLine->text() ); | 542 | data->setUser( userLine->text() ); |
529 | data->setPassword( passLine->text() ); | 543 | data->setPassword( passLine->text() ); |
544 | data->setSigFile( SignaturEdit->text() ); | ||
530 | 545 | ||
531 | QDialog::accept(); | 546 | QDialog::accept(); |
532 | } | 547 | } |
533 | 548 | ||
diff --git a/kmicromail/editaccounts.h b/kmicromail/editaccounts.h index 6cf842e..465780c 100644 --- a/kmicromail/editaccounts.h +++ b/kmicromail/editaccounts.h | |||
@@ -120,8 +120,9 @@ public slots: | |||
120 | 120 | ||
121 | protected slots: | 121 | protected slots: |
122 | void slotConnectionToggle( int index ); | 122 | void slotConnectionToggle( int index ); |
123 | void accept(); | 123 | void accept(); |
124 | void chooseSig(); | ||
124 | 125 | ||
125 | private: | 126 | private: |
126 | SMTPaccount *data; | 127 | SMTPaccount *data; |
127 | 128 | ||
diff --git a/kmicromail/libmailwrapper/settings.cpp b/kmicromail/libmailwrapper/settings.cpp index 19093b1..8f909f9 100644 --- a/kmicromail/libmailwrapper/settings.cpp +++ b/kmicromail/libmailwrapper/settings.cpp | |||
@@ -1,7 +1,11 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | #include <qdir.h> | 2 | #include <qdir.h> |
3 | 3 | ||
4 | #include <qtextcodec.h> | ||
5 | #include <qtextstream.h> | ||
6 | #include <qfile.h> | ||
7 | |||
4 | //#include <opie2/odebug.h> | 8 | //#include <opie2/odebug.h> |
5 | #include <kconfig.h> | 9 | #include <kconfig.h> |
6 | 10 | ||
7 | #include <kstandarddirs.h> | 11 | #include <kstandarddirs.h> |
@@ -365,8 +369,47 @@ SMTPaccount::SMTPaccount( QString filename ) | |||
365 | type = MAILLIB::A_SMTP; | 369 | type = MAILLIB::A_SMTP; |
366 | port = SMTP_PORT; | 370 | port = SMTP_PORT; |
367 | } | 371 | } |
368 | 372 | ||
373 | QString SMTPaccount::getSignature() | ||
374 | { | ||
375 | QFileInfo fi ( signature ); | ||
376 | if ( ! fi.exists() ) | ||
377 | return QString(); | ||
378 | |||
379 | QFile file( signature ); | ||
380 | if (!file.open( IO_ReadOnly ) ) { | ||
381 | return QString(); | ||
382 | |||
383 | } | ||
384 | QTextStream ts( &file ); | ||
385 | ts.setCodec( QTextCodec::codecForName("utf8") ); | ||
386 | QString text = ts.read(); | ||
387 | file.close(); | ||
388 | |||
389 | return text; | ||
390 | |||
391 | } | ||
392 | void SMTPaccount::setSignature( QString b ) | ||
393 | { | ||
394 | |||
395 | QFileInfo fi ( signature ); | ||
396 | if ( ! fi.exists() ) { | ||
397 | QString filedir( locateLocal("data", "kopiemail" ) ); | ||
398 | signature = filedir+ "/" + getAccountName() +".sig"; | ||
399 | qDebug("new sig %s ", signature.latin1()); | ||
400 | save(); | ||
401 | } | ||
402 | QFile fileIn( signature ); | ||
403 | if (!fileIn.open( IO_WriteOnly ) ) { | ||
404 | qDebug("OM: Cannot write signature file %s ", signature.latin1() ); | ||
405 | return ; | ||
406 | } | ||
407 | QTextStream tsIn( &fileIn ); | ||
408 | tsIn.setCodec( QTextCodec::codecForName("utf8") ); | ||
409 | tsIn << b ; | ||
410 | fileIn.close(); | ||
411 | } | ||
369 | QString SMTPaccount::getUniqueFileName() | 412 | QString SMTPaccount::getUniqueFileName() |
370 | { | 413 | { |
371 | int num = 0; | 414 | int num = 0; |
372 | QString unique; | 415 | QString unique; |
@@ -391,9 +434,9 @@ void SMTPaccount::read() | |||
391 | ssl = conf->readBoolEntry( "SSL" ); | 434 | ssl = conf->readBoolEntry( "SSL" ); |
392 | connectionType = conf->readNumEntry( "ConnectionType" ); | 435 | connectionType = conf->readNumEntry( "ConnectionType" ); |
393 | login = conf->readBoolEntry( "Login" ); | 436 | login = conf->readBoolEntry( "Login" ); |
394 | user = conf->readEntry( "User" ); | 437 | user = conf->readEntry( "User" ); |
395 | //password = conf->readEntryCrypt( "Password" ); | 438 | signature = conf->readEntry( "SigFile" ); |
396 | setPasswordList( conf->readListEntry( "FolderHistory")); | 439 | setPasswordList( conf->readListEntry( "FolderHistory")); |
397 | delete conf; | 440 | delete conf; |
398 | } | 441 | } |
399 | 442 | ||
@@ -409,8 +452,9 @@ void SMTPaccount::save() | |||
409 | conf->writeEntry( "SSL", ssl ); | 452 | conf->writeEntry( "SSL", ssl ); |
410 | conf->writeEntry( "ConnectionType", connectionType ); | 453 | conf->writeEntry( "ConnectionType", connectionType ); |
411 | conf->writeEntry( "Login", login ); | 454 | conf->writeEntry( "Login", login ); |
412 | conf->writeEntry( "User", user ); | 455 | conf->writeEntry( "User", user ); |
456 | conf->writeEntry( "SigFile", signature ); | ||
413 | //conf->writeEntryCrypt( "Password", password ); | 457 | //conf->writeEntryCrypt( "Password", password ); |
414 | conf->writeEntry( "FolderHistory",getPasswordList() ); | 458 | conf->writeEntry( "FolderHistory",getPasswordList() ); |
415 | conf->sync(); | 459 | conf->sync(); |
416 | delete conf; | 460 | delete conf; |
diff --git a/kmicromail/libmailwrapper/settings.h b/kmicromail/libmailwrapper/settings.h index c996fe0..a6e95fe 100644 --- a/kmicromail/libmailwrapper/settings.h +++ b/kmicromail/libmailwrapper/settings.h | |||
@@ -126,8 +126,14 @@ public: | |||
126 | 126 | ||
127 | void setLogin( bool b ) { login = b; } | 127 | void setLogin( bool b ) { login = b; } |
128 | bool getLogin() { return login; } | 128 | bool getLogin() { return login; } |
129 | 129 | ||
130 | void setSigFile( QString b ) { signature = b; } | ||
131 | QString getSigFile() { return signature; } | ||
132 | |||
133 | QString getSignature(); | ||
134 | void setSignature( QString b ); | ||
135 | |||
130 | private: | 136 | private: |
131 | QString file, name, mail, org, cc, bcc, reply, signature; | 137 | QString file, name, mail, org, cc, bcc, reply, signature; |
132 | bool useCC, useBCC, useReply, login; | 138 | bool useCC, useBCC, useReply, login; |
133 | 139 | ||
diff --git a/kmicromail/main.cpp b/kmicromail/main.cpp index 006390c..1789da0 100644 --- a/kmicromail/main.cpp +++ b/kmicromail/main.cpp | |||
@@ -40,9 +40,9 @@ int main( int argc, char **argv ) { | |||
40 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/icons22/"); | 40 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/icons22/"); |
41 | else | 41 | else |
42 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/"); | 42 | KGlobal::iconLoader()->setIconPath( fileName +"/pics/kdepim/kopiemail/"); |
43 | #else | 43 | #else |
44 | fileName = qApp->applicationDirPath () + "/kdepim/kopiemail/"; | 44 | fileName = qApp->applicationDirPath () + "/kdepim/kopiemail/icons22/"; |
45 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 45 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |
46 | #endif | 46 | #endif |
47 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kopiemail"))); | 47 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kopiemail"))); |
48 | KPimGlobalPrefs::instance()->setGlobalConfig(); | 48 | KPimGlobalPrefs::instance()->setGlobalConfig(); |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 0794e00..4c58909 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -234,8 +234,10 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
234 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); | 234 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); |
235 | li->addTo(helpMenu); | 235 | li->addTo(helpMenu); |
236 | connect( codecMenu, SIGNAL( activated(int) ), this, SLOT( slotSetCodec( int )) ); | 236 | connect( codecMenu, SIGNAL( activated(int) ), this, SLOT( slotSetCodec( int )) ); |
237 | slotSetCodec( KOPrefs::instance()->mCurrentCodec ); | 237 | slotSetCodec( KOPrefs::instance()->mCurrentCodec ); |
238 | menuBar->setMaximumWidth( menuBar->sizeHint().width()); | ||
239 | //menuBar->setMaximumSize( menuBar->sizeHint()); | ||
238 | #ifdef DESKTOP_VERSION | 240 | #ifdef DESKTOP_VERSION |
239 | resize ( 640, 480 ); | 241 | resize ( 640, 480 ); |
240 | #endif | 242 | #endif |
241 | } | 243 | } |
diff --git a/kmicromail/smtpconfigui.ui b/kmicromail/smtpconfigui.ui index ae0a49a..aae6f12 100644 --- a/kmicromail/smtpconfigui.ui +++ b/kmicromail/smtpconfigui.ui | |||
@@ -11,10 +11,10 @@ | |||
11 | <name>geometry</name> | 11 | <name>geometry</name> |
12 | <rect> | 12 | <rect> |
13 | <x>0</x> | 13 | <x>0</x> |
14 | <y>0</y> | 14 | <y>0</y> |
15 | <width>331</width> | 15 | <width>266</width> |
16 | <height>426</height> | 16 | <height>365</height> |
17 | </rect> | 17 | </rect> |
18 | </property> | 18 | </property> |
19 | <property stdset="1"> | 19 | <property stdset="1"> |
20 | <name>caption</name> | 20 | <name>caption</name> |
@@ -28,13 +28,13 @@ | |||
28 | </property> | 28 | </property> |
29 | <vbox> | 29 | <vbox> |
30 | <property stdset="1"> | 30 | <property stdset="1"> |
31 | <name>margin</name> | 31 | <name>margin</name> |
32 | <number>3</number> | 32 | <number>5</number> |
33 | </property> | 33 | </property> |
34 | <property stdset="1"> | 34 | <property stdset="1"> |
35 | <name>spacing</name> | 35 | <name>spacing</name> |
36 | <number>3</number> | 36 | <number>2</number> |
37 | </property> | 37 | </property> |
38 | <widget> | 38 | <widget> |
39 | <class>QLabel</class> | 39 | <class>QLabel</class> |
40 | <property stdset="1"> | 40 | <property stdset="1"> |
@@ -57,26 +57,8 @@ | |||
57 | <string>Name of the Account</string> | 57 | <string>Name of the Account</string> |
58 | </property> | 58 | </property> |
59 | </widget> | 59 | </widget> |
60 | <widget> | 60 | <widget> |
61 | <class>Line</class> | ||
62 | <property stdset="1"> | ||
63 | <name>name</name> | ||
64 | <cstring>line1</cstring> | ||
65 | </property> | ||
66 | <property stdset="1"> | ||
67 | <name>sizePolicy</name> | ||
68 | <sizepolicy> | ||
69 | <hsizetype>1</hsizetype> | ||
70 | <vsizetype>0</vsizetype> | ||
71 | </sizepolicy> | ||
72 | </property> | ||
73 | <property stdset="1"> | ||
74 | <name>orientation</name> | ||
75 | <enum>Horizontal</enum> | ||
76 | </property> | ||
77 | </widget> | ||
78 | <widget> | ||
79 | <class>QLayoutWidget</class> | 61 | <class>QLayoutWidget</class> |
80 | <property stdset="1"> | 62 | <property stdset="1"> |
81 | <name>name</name> | 63 | <name>name</name> |
82 | <cstring>Layout20</cstring> | 64 | <cstring>Layout20</cstring> |
@@ -199,26 +181,8 @@ | |||
199 | <string>ssh $SERVER exec</string> | 181 | <string>ssh $SERVER exec</string> |
200 | </property> | 182 | </property> |
201 | </widget> | 183 | </widget> |
202 | <widget> | 184 | <widget> |
203 | <class>Line</class> | ||
204 | <property stdset="1"> | ||
205 | <name>name</name> | ||
206 | <cstring>line2</cstring> | ||
207 | </property> | ||
208 | <property stdset="1"> | ||
209 | <name>sizePolicy</name> | ||
210 | <sizepolicy> | ||
211 | <hsizetype>1</hsizetype> | ||
212 | <vsizetype>0</vsizetype> | ||
213 | </sizepolicy> | ||
214 | </property> | ||
215 | <property stdset="1"> | ||
216 | <name>orientation</name> | ||
217 | <enum>Horizontal</enum> | ||
218 | </property> | ||
219 | </widget> | ||
220 | <widget> | ||
221 | <class>QCheckBox</class> | 185 | <class>QCheckBox</class> |
222 | <property stdset="1"> | 186 | <property stdset="1"> |
223 | <name>name</name> | 187 | <name>name</name> |
224 | <cstring>loginBox</cstring> | 188 | <cstring>loginBox</cstring> |
@@ -326,8 +290,61 @@ | |||
326 | </vbox> | 290 | </vbox> |
327 | </widget> | 291 | </widget> |
328 | </hbox> | 292 | </hbox> |
329 | </widget> | 293 | </widget> |
294 | <widget> | ||
295 | <class>QLayoutWidget</class> | ||
296 | <property stdset="1"> | ||
297 | <name>name</name> | ||
298 | <cstring>Layout7</cstring> | ||
299 | </property> | ||
300 | <hbox> | ||
301 | <property stdset="1"> | ||
302 | <name>margin</name> | ||
303 | <number>0</number> | ||
304 | </property> | ||
305 | <property stdset="1"> | ||
306 | <name>spacing</name> | ||
307 | <number>6</number> | ||
308 | </property> | ||
309 | <widget> | ||
310 | <class>QLabel</class> | ||
311 | <property stdset="1"> | ||
312 | <name>name</name> | ||
313 | <cstring>TextLabel1_2</cstring> | ||
314 | </property> | ||
315 | <property stdset="1"> | ||
316 | <name>text</name> | ||
317 | <string>Signatur File</string> | ||
318 | </property> | ||
319 | </widget> | ||
320 | <widget> | ||
321 | <class>QLineEdit</class> | ||
322 | <property stdset="1"> | ||
323 | <name>name</name> | ||
324 | <cstring>SignaturEdit</cstring> | ||
325 | </property> | ||
326 | </widget> | ||
327 | <widget> | ||
328 | <class>QPushButton</class> | ||
329 | <property stdset="1"> | ||
330 | <name>name</name> | ||
331 | <cstring>SignaturButton</cstring> | ||
332 | </property> | ||
333 | <property stdset="1"> | ||
334 | <name>sizePolicy</name> | ||
335 | <sizepolicy> | ||
336 | <hsizetype>1</hsizetype> | ||
337 | <vsizetype>1</vsizetype> | ||
338 | </sizepolicy> | ||
339 | </property> | ||
340 | <property stdset="1"> | ||
341 | <name>text</name> | ||
342 | <string>F</string> | ||
343 | </property> | ||
344 | </widget> | ||
345 | </hbox> | ||
346 | </widget> | ||
330 | <spacer> | 347 | <spacer> |
331 | <property> | 348 | <property> |
332 | <name>name</name> | 349 | <name>name</name> |
333 | <cstring>spacer</cstring> | 350 | <cstring>spacer</cstring> |