messagelist
configureaggregationsdialog.cpp
Go to the documentation of this file.
117 d->mNewAggregationButton->setIconSize( QSize( KIconLoader::SizeSmall, KIconLoader::SizeSmall ) );
125 d->mCloneAggregationButton->setIconSize( QSize( KIconLoader::SizeSmall, KIconLoader::SizeSmall ) );
156 d->mDeleteAggregationButton->setIconSize( QSize( KIconLoader::SizeSmall, KIconLoader::SizeSmall ) );
201 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
226 const QString goodName = uniqueNameForAggregation( editedAggregation->name(), editedAggregation );
264 AggregationListWidgetItem * item = cur ? dynamic_cast< AggregationListWidgetItem * >( cur ) : 0;
265 mDeleteAggregationButton->setEnabled( item && !item->aggregation()->readOnly() && ( mAggregationList->count() > 1 ) );
274 AggregationListWidgetItem * ConfigureAggregationsDialog::Private::findAggregationItemByName( const QString &name, Aggregation * skipAggregation )
280 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
294 AggregationListWidgetItem * ConfigureAggregationsDialog::Private::findAggregationItemById( const QString &aggregationId )
300 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
311 AggregationListWidgetItem * ConfigureAggregationsDialog::Private::findAggregationItemByAggregation( Aggregation * set )
317 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
329 QString ConfigureAggregationsDialog::Private::uniqueNameForAggregation( const QString& baseName, Aggregation * skipAggregation )
351 AggregationListWidgetItem * item = new AggregationListWidgetItem( mAggregationList, emptyAggregation );
359 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->currentItem() );
393 AggregationListWidgetItem *newItem = dynamic_cast< AggregationListWidgetItem * >(mAggregationList->currentItem());
399 const QString filename = KFileDialog::getOpenFileName(QString(),QString::fromLatin1("*"),q,i18n("Import Aggregation"));
435 const QString filename = KFileDialog::getSaveFileName(QString(),QString::fromLatin1("*"),q,i18n("Export Aggregation"));
445 grp.writeEntry( QString::fromLatin1( "Set%1" ).arg( idx ), themeItem->aggregation()->saveToString() );
A set of aggregation options that can be applied to the MessageList::Model in a single shot...
Definition: aggregation.h:43
A widget that allows editing a single MessageList::Aggregation.
Definition: aggregationeditor.h:46
AggregationListWidgetItem * findAggregationItemById(const QString &aggregationId)
Definition: configureaggregationsdialog.cpp:294
QString uniqueNameForAggregation(const QString &baseName, Core::Aggregation *skipAggregation=0)
Definition: configureaggregationsdialog.cpp:329
ConfigureAggregationsDialog *const q
Definition: configureaggregationsdialog_p.h:76
void cloneAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:357
void newAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:347
void commitEditor()
Definition: configureaggregationsdialog.cpp:215
QPushButton * mImportAggregationButton
Definition: configureaggregationsdialog_p.h:84
AggregationListWidgetItem * findAggregationItemByName(const QString &name, Core::Aggregation *skipAggregation=0)
Definition: configureaggregationsdialog.cpp:274
void deleteAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:374
void okButtonClicked()
Definition: configureaggregationsdialog.cpp:191
QPushButton * mCloneAggregationButton
Definition: configureaggregationsdialog_p.h:81
void generateUniqueId()
(Re)generates a (hopefully) unique identifier for this option set.
Definition: optionset.cpp:57
void exportAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:429
bool loadFromString(const QString &data)
Attempts to unpack this configuration object from a string (that is likely to come out from a config ...
Definition: optionset.cpp:86
void selectAggregation(const QString &aggregationId)
Definition: configureaggregationsdialog.cpp:182
void editedAggregationNameChanged()
Definition: configureaggregationsdialog.cpp:231
void fillAggregationList()
Definition: configureaggregationsdialog.cpp:246
QPushButton * mDeleteAggregationButton
Definition: configureaggregationsdialog_p.h:82
The dialog used for configuring MessageList::Aggregation sets.
Definition: configureaggregationsdialog_p.h:49
void updateButton(QListWidgetItem *cur)
Definition: configureaggregationsdialog.cpp:260
AggregationEditor * mEditor
Definition: configureaggregationsdialog_p.h:79
~ConfigureAggregationsDialog()
Definition: configureaggregationsdialog.cpp:177
AggregationListWidgetItem * findAggregationItemByAggregation(Core::Aggregation *set)
Definition: configureaggregationsdialog.cpp:311
AggregationListWidget * mAggregationList
Definition: configureaggregationsdialog_p.h:78
void importAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:397
QPushButton * mNewAggregationButton
Definition: configureaggregationsdialog_p.h:80
void aggregationListItemClicked(QListWidgetItem *cur)
Definition: configureaggregationsdialog.cpp:254
QPushButton * mExportAggregationButton
Definition: configureaggregationsdialog_p.h:83
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.