[prev in list] [next in list] [prev in thread] [next in thread]
List: kmail-devel
Subject: [Bug 1015] kmail should have templates
From: Jonathan Marten <jjm () keelhaul ! me ! uk>
Date: 2006-11-06 17:46:29
Message-ID: 20061106174629.2573.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=1015
------- Additional Comments From jjm keelhaul me uk 2006-11-06 18:46 -------
SVN commit 602738 by marten:
GUI for an identity-specific templates folder
CCBUG:1015
CCMAIL:kmail-devel kde org
GUI:
M +24 -2 branches/work/kdepim-3.5.5+/kmail/identitydialog.cpp
M +1 -0 branches/work/kdepim-3.5.5+/kmail/identitydialog.h
--- branches/work/kdepim-3.5.5+/kmail/identitydialog.cpp #602737:602738
@ -288,9 +288,9 @
row = -1;
tab = new QWidget( tabWidget );
tabWidget->addTab( tab, i18n("&Advanced") );
- glay = new QGridLayout( tab, 7, 2, marginHint(), spacingHint() );
+ glay = new QGridLayout( tab, 8, 2, marginHint(), spacingHint() );
// the last (empty) row takes all the remaining space
- glay->setRowStretch( 7-1, 1 );
+ glay->setRowStretch( 8-1, 1 );
glay->setColStretch( 1, 1 );
// "Reply-To Address" line edit and label:
@ -355,6 +355,15 @
glay->addWidget( new QLabel( mDraftsCombo, i18n("&Drafts folder:"), tab ),
row, 0 );
+ // "Templates Folder" combo box and label:
+ ++row;
+ mTemplatesCombo = new FolderRequester( tab,
+ kmkernel->getKMMainWidget()->folderTree() );
+ mTemplatesCombo->setShowOutbox( false );
+ glay->addWidget( mTemplatesCombo, row, 1 );
+ glay->addWidget( new QLabel( mTemplatesCombo, i18n("&Templates folder:"), tab ),
+ row, 0 );
+
// "Special transport" combobox and label:
++row;
mTransportCheck = new QCheckBox( i18n("Special &transport:"), tab );
@ -614,6 +623,17 @
else
mDraftsCombo->setFolder( ident.drafts() );
+ if ( ident.templates().isEmpty() ||
+ !checkFolderExists( ident.templates(),
+ i18n("The custom templates folder for identity "
+ "\"%1\" does not exist (anymore); "
+ "therefore, the default templates folder "
+ "will be used.")
+ .arg( ident.identityName() ) ) )
+ mTemplatesCombo->setFolder( kmkernel->templatesFolder() );
+ else
+ mTemplatesCombo->setFolder( ident.templates() );
+
// "Templates" tab:
uint identity = ident.uoid();
QString iid = QString("IDENTITY_%1").arg( identity );
@ -649,6 +669,8 @
mFccCombo->folder()->idString() : QString::null );
ident.setDrafts( mDraftsCombo->folder() ?
mDraftsCombo->folder()->idString() : QString::null );
+ ident.setTemplates( mTemplatesCombo->folder() ?
+ mTemplatesCombo->folder()->idString() : QString::null );
// "Templates" tab:
uint identity = ident.uoid();
QString iid = QString("IDENTITY_%1").arg( identity );
--- branches/work/kdepim-3.5.5+/kmail/identitydialog.h #602737:602738
@ -100,6 +100,7 @
KMail::DictionaryComboBox *mDictionaryCombo;
FolderRequester *mFccCombo;
FolderRequester *mDraftsCombo;
+ FolderRequester *mTemplatesCombo;
QCheckBox *mTransportCheck;
QComboBox *mTransportCombo; // should be a KMTransportCombo...
// "templates" tab:
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic