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 ) );
202 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
228 const QString goodName = uniqueNameForAggregation( editedAggregation->name(), editedAggregation );
268 AggregationListWidgetItem * item = cur ? dynamic_cast< AggregationListWidgetItem * >( cur ) : 0;
269 mDeleteAggregationButton->setEnabled( item && !item->aggregation()->readOnly() && ( mAggregationList->count() > 1 ) );
278 AggregationListWidgetItem * ConfigureAggregationsDialog::Private::findAggregationItemByName( const QString &name, Aggregation * skipAggregation )
284 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
298 AggregationListWidgetItem * ConfigureAggregationsDialog::Private::findAggregationItemById( const QString &aggregationId )
304 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
315 AggregationListWidgetItem * ConfigureAggregationsDialog::Private::findAggregationItemByAggregation( Aggregation * set )
321 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->item( i ) );
333 QString ConfigureAggregationsDialog::Private::uniqueNameForAggregation( const QString& baseName, Aggregation * skipAggregation )
355 AggregationListWidgetItem * item = new AggregationListWidgetItem( mAggregationList, emptyAggregation );
363 AggregationListWidgetItem * item = dynamic_cast< AggregationListWidgetItem * >( mAggregationList->currentItem() );
397 AggregationListWidgetItem *newItem = dynamic_cast< AggregationListWidgetItem * >(mAggregationList->currentItem());
403 const QString filename = KFileDialog::getOpenFileName(QString(),QString::fromLatin1("*"),q,i18n("Import Aggregation"));
439 const QString filename = KFileDialog::getSaveFileName(QString(),QString::fromLatin1("*"),q,i18n("Export Aggregation"), KFileDialog::ConfirmOverwrite);
449 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
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
AggregationListWidgetItem * findAggregationItemById(const QString &aggregationId)
Definition: configureaggregationsdialog.cpp:298
QString uniqueNameForAggregation(const QString &baseName, Core::Aggregation *skipAggregation=0)
Definition: configureaggregationsdialog.cpp:333
ConfigureAggregationsDialog *const q
Definition: configureaggregationsdialog_p.h:76
void cloneAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:361
void newAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:351
void setFrameStyle(int style)
void setIcon(const QIcon &icon)
void commitEditor()
Definition: configureaggregationsdialog.cpp:217
QPushButton * mImportAggregationButton
Definition: configureaggregationsdialog_p.h:84
int count(const T &value) const
AggregationListWidgetItem * findAggregationItemByName(const QString &name, Core::Aggregation *skipAggregation=0)
Definition: configureaggregationsdialog.cpp:278
void setRowStretch(int row, int stretch)
const_iterator constEnd() const
void deleteAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:378
void setIconSize(const QSize &size)
bool isEmpty() const
void okButtonClicked()
Definition: configureaggregationsdialog.cpp:191
bool isEmpty() const
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:433
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:233
void fillAggregationList()
Definition: configureaggregationsdialog.cpp:248
sizeHint
QPushButton * mDeleteAggregationButton
Definition: configureaggregationsdialog_p.h:82
The dialog used for configuring MessageList::Aggregation sets.
Definition: configureaggregationsdialog_p.h:49
const_iterator constBegin() const
void updateButton(QListWidgetItem *cur)
Definition: configureaggregationsdialog.cpp:264
AggregationEditor * mEditor
Definition: configureaggregationsdialog_p.h:79
void setColumnStretch(int column, int stretch)
~ConfigureAggregationsDialog()
Definition: configureaggregationsdialog.cpp:177
void setMinimumHeight(int minh)
QString fromLatin1(const char *str, int size)
AggregationListWidgetItem * findAggregationItemByAggregation(Core::Aggregation *set)
Definition: configureaggregationsdialog.cpp:315
AggregationListWidget * mAggregationList
Definition: configureaggregationsdialog_p.h:78
void importAggregationButtonClicked()
Definition: configureaggregationsdialog.cpp:401
QPushButton * mNewAggregationButton
Definition: configureaggregationsdialog_p.h:80
void aggregationListItemClicked(QListWidgetItem *cur)
Definition: configureaggregationsdialog.cpp:258
QPushButton * mExportAggregationButton
Definition: configureaggregationsdialog_p.h:83
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setSelected(bool select)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.