messagelist
configurethemesdialog.cpp
Go to the documentation of this file.
274 ThemeListWidgetItem * ConfigureThemesDialog::Private::findThemeItemById( const QString &themeId )
292 ThemeListWidgetItem * ConfigureThemesDialog::Private::findThemeItemByName( const QString &name, Theme * skipTheme )
330 QString ConfigureThemesDialog::Private::uniqueNameForTheme( const QString& baseName, Theme * skipTheme )
371 ThemeListWidgetItem * item = dynamic_cast< ThemeListWidgetItem * >( mThemeList->currentItem() );
399 if (KMessageBox::Yes == KMessageBox::questionYesNo(q, list.count() > 1 ? QLatin1String("Do you want to delete selected themes?")
400 : QString::fromLatin1("Do you want to delete \"%1\"?").arg(list.first()->text()), QLatin1String("Delete Theme"))) {
413 ThemeListWidgetItem *newItem = dynamic_cast< ThemeListWidgetItem * >(mThemeList->currentItem());
423 const QString filename = KFileDialog::getOpenFileName(QString(),QString::fromLatin1("*"),q,i18n("Import Theme"));
458 const QString filename = KFileDialog::getSaveFileName(QString(),QString::fromLatin1("*"),q,i18n("Export Theme"), KFileDialog::ConfirmOverwrite);
468 grp.writeEntry( QString::fromLatin1( "Set%1" ).arg( idx ), themeItem->theme()->saveToString() );
void setContentsMargins(int left, int top, int right, int bottom)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void newThemeButtonClicked()
Definition: configurethemesdialog.cpp:348
~ConfigureThemesDialog()
Definition: configurethemesdialog.cpp:174
The Row class defines a row of items inside a Column.
Definition: theme.h:466
QString uniqueNameForTheme(const QString &baseName, Core::Theme *skipTheme=0)
Definition: configurethemesdialog.cpp:330
void setFrameStyle(int style)
void setIcon(const QIcon &icon)
void setVisibleByDefault(bool vbd)
Sets the "visible by default" tag for this column.
Definition: theme.h:719
The Column class defines a view column available inside this theme.
Definition: theme.h:565
int count(const T &value) const
void setRowStretch(int row, int stretch)
const_iterator constEnd() const
void setIconSize(const QSize &size)
bool isEmpty() const
void okButtonClicked()
Definition: configurethemesdialog.cpp:188
bool isEmpty() const
QPushButton * mExportThemeButton
Definition: configurethemesdialog_p.h:73
void generateUniqueId()
(Re)generates a (hopefully) unique identifier for this option set.
Definition: optionset.cpp:57
void resetColumnState()
Resets the column state (visibility and width) to their default values (the "visible by default" ones...
Definition: theme.cpp:712
void editedThemeNameChanged()
Definition: configurethemesdialog.cpp:233
T & first()
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
ThemeListWidget * mThemeList
Definition: configurethemesdialog_p.h:68
void commitEditor()
Definition: configurethemesdialog.cpp:212
void cloneThemeButtonClicked()
Definition: configurethemesdialog.cpp:369
QPushButton * mNewThemeButton
Definition: configurethemesdialog_p.h:70
void fillThemeList()
Definition: configurethemesdialog.cpp:248
sizeHint
ThemeListWidgetItem * findThemeItemByTheme(Core::Theme *set)
Definition: configurethemesdialog.cpp:312
const_iterator constBegin() const
ThemeListWidgetItem * findThemeItemByName(const QString &name, Core::Theme *skipTheme=0)
Definition: configurethemesdialog.cpp:292
void importThemeButtonClicked()
Definition: configurethemesdialog.cpp:421
void exportThemeButtonClicked()
Definition: configurethemesdialog.cpp:452
ThemeEditor * mEditor
Definition: configurethemesdialog_p.h:69
QPushButton * mCloneThemeButton
Definition: configurethemesdialog_p.h:71
void setColumnStretch(int column, int stretch)
QPushButton * mDeleteThemeButton
Definition: configurethemesdialog_p.h:72
void setMinimumHeight(int minh)
QString fromLatin1(const char *str, int size)
void deleteThemeButtonClicked()
Definition: configurethemesdialog.cpp:392
void detach()
Detaches this object from the shared runtime data for columns.
Definition: theme.cpp:705
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:65
ConfigureThemesDialog *const q
Definition: configurethemesdialog_p.h:66
void selectTheme(const QString &themeId)
Definition: configurethemesdialog.cpp:179
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
Definition: themeeditor.h:202
void setSelected(bool select)
ThemeListWidgetItem * findThemeItemById(const QString &themeId)
Definition: configurethemesdialog.cpp:274
void themeListItemClicked(QListWidgetItem *)
Definition: configurethemesdialog.cpp:258
QPushButton * mImportThemeButton
Definition: configurethemesdialog_p.h:74
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.