messagelist
theme.cpp
Go to the documentation of this file.
39 // --------------------------------------------------------------------------------------------------------------
40 // 0x1013 08.11.2008 Initial theme version, introduced when this piece of code has been moved into trunk.
48 static const int gThemeCurrentVersion = 0x1019; // increase if you add new fields or change the meaning of some
241 for ( QList< ContentItem * >::ConstIterator it = src.mLeftItems.constBegin(); it != end ; ++it )
245 for ( QList< ContentItem * >::ConstIterator it = src.mRightItems.constBegin(); it != end ; ++it )
The ContentItem class defines a content item inside a Row.
Definition: theme.h:73
bool load(QDataStream &stream, int themeVersion)
Handles row loading (used by Theme::Column::load())
Definition: theme.cpp:380
Whether the message is an invitation.
Definition: theme.h:223
static bool applicableToMessageItems(Type type)
Static test that returns true if an instance of ContentItem with the specified type makes sense in a ...
Definition: theme.cpp:156
A class which holds information about sorting, e.g.
Definition: sortorder.h:37
bool containsTextItems() const
Returns true if this column contains text items.
Definition: theme.cpp:523
void removeAllLeftItems()
Removes all the left items from this row: the items are deleted.
Definition: theme.cpp:256
A set of options that can be applied to the MessageList in one shot.
Definition: optionset.h:47
static bool isValidMessageSorting(SortOrder::MessageSorting ms)
Returns true if the ms parameter specifies a valid MessageSorting option.
Definition: sortorder.cpp:267
static const int gThemeMinimumVersionWithColumnRuntimeData
Definition: theme.cpp:51
static QString description(Type type)
Returns a descriptive name for the specified content item type.
Definition: theme.cpp:75
void insertMessageRow(int idx, Row *row)
Inserts a message row to this theme column in the specified position.
Definition: theme.cpp:503
void insertColumn(int idx, Column *column)
Inserts a column to this theme at the specified position.
Definition: theme.cpp:736
The Row class defines a row of items inside a Column.
Definition: theme.h:466
void moveColumn(int idx, int newPosition)
Definition: theme.cpp:746
The icon that displays the atachment state (may be disabled)
Definition: theme.h:158
bool load(QDataStream &stream, int themeVersion)
Handles column loading (used by Theme::load())
Definition: theme.cpp:572
void setGroupHeaderBackgroundMode(GroupHeaderBackgroundMode bm)
Sets the group header background mode for this theme.
Definition: theme.cpp:753
static bool applicableToGroupHeaderItems(Type type)
Static test that returns true if an instance of ContentItem with the specified type makes sense in a ...
Definition: theme.cpp:161
bool load(QDataStream &stream, int themeVersion)
Handles content item loading (used by Theme::Row::load())
Definition: theme.cpp:180
Whether the message has a annotation/note.
Definition: theme.h:218
void save(QDataStream &stream) const
Handles row saving (used by Theme::Column::save())
Definition: theme.cpp:305
The Column class defines a view column available inside this theme.
Definition: theme.h:565
void setFont(const QFont &font)
Sets the custom font to be used with this item.
Definition: theme.cpp:166
static QList< QPair< QString, int > > enumerateGroupHeaderBackgroundStyles()
Enumerates the available group header background styles.
Definition: theme.cpp:768
No background at all: use style default.
Definition: theme.h:884
void append(const T &value)
One big rounded gradient rect for all the columns.
Definition: theme.h:899
void save(QDataStream &stream) const
Handles content item saving (used by Theme::Row::save())
Definition: theme.cpp:172
Display the subject of the message item.
Definition: theme.h:130
void save(QDataStream &stream) const
Handles column saving (used by Theme::save())
Definition: theme.cpp:540
QString key() const
static const int gThemeMinimumVersionWithColumnIcon
Definition: theme.cpp:54
GroupHeaderBackgroundMode
Which color do we use to paint group header background ?
Definition: theme.h:882
static const int gThemeMinimumVersionWithInvitationIcon
Definition: theme.cpp:56
void resetColumnState()
Resets the column state (visibility and width) to their default values (the "visible by default" ones...
Definition: theme.cpp:712
bool containsTextItems() const
Returns true if this row contains text items.
Definition: theme.cpp:288
static const int gThemeMinimumVersionWithSortingByUnreadStatusAllowed
Definition: theme.cpp:53
void resetColumnSizes()
Resets the column sizes to "default" (subset of resetColumnState() above).
Definition: theme.cpp:722
Don't sort the messages at all.
Definition: sortorder.h:80
One big rounded rect for all the columns.
Definition: theme.h:897
One big plain rect for all the columns.
Definition: theme.h:895
static QList< QPair< QString, int > > enumerateViewHeaderPolicyOptions()
Enumerates the available view header policy options.
Definition: theme.cpp:760
void insertGroupHeaderRow(int idx, Row *row)
Inserts a group header row to this theme column in the specified position.
Definition: theme.cpp:513
void detach()
Detaches the shared runtime data object and makes this object totally independent.
Definition: theme.cpp:480
static const int gThemeMinimumVersionWithIconSizeField
Definition: theme.cpp:52
Sort the messages by the "Unread" flags of status.
Definition: sortorder.h:89
void insertLeftItem(int idx, ContentItem *item)
Adds a left aligned item at the specified position in this row.
Definition: theme.cpp:268
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
virtual bool load(QDataStream &stream)
Pure virtual reimplemented from OptionSet.
Definition: theme.cpp:790
virtual void save(QDataStream &stream) const
Pure virtual reimplemented from OptionSet.
Definition: theme.cpp:892
const_iterator constEnd() const
const_iterator constBegin() const
static const int gThemeMinimumVersionWithAnnotationIcon
Definition: theme.cpp:55
Automatically determine the color (somewhere in the middle between background and text) ...
Definition: theme.h:885
void removeAllGroupHeaderRows()
Removes all the group header rows from this column.
Definition: theme.cpp:497
One rounded gradient filled rect per column.
Definition: theme.h:898
void insertRightItem(int idx, ContentItem *item)
Adds a right aligned item at the specified position in this row.
Definition: theme.cpp:278
bool isValid() const
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.