messagelist
theme.h
Go to the documentation of this file.
134 Date = 2 | DisplaysText | CanUseCustomColor | ApplicableToMessageItems | ApplicableToGroupHeaderItems,
198 VerticalLine = 18 | CanUseCustomColor | ApplicableToMessageItems | ApplicableToGroupHeaderItems | IsSpacer,
206 MostRecentDate = 20 | DisplaysText | CanUseCustomColor | ApplicableToMessageItems | ApplicableToGroupHeaderItems,
390 { if ( softenByBlendingWhenDisabled )mFlags |= SoftenByBlendingWhenDisabled; else mFlags &= ~SoftenByBlendingWhenDisabled; }
910 //ShowWhenMoreThanOneColumn, ///< This doesn't work at the moment (since without header we don't have means for showing columns back)
The ContentItem class defines a content item inside a Row.
Definition: theme.h:73
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
The Expanded state icon for group headers.
Definition: theme.h:186
The icon that displays the unread/read state (never disabled)
Definition: theme.h:154
A set of options that can be applied to the MessageList in one shot.
Definition: optionset.h:47
const QList< ContentItem * > & rightItems() const
Returns the list of right aligned items for this row.
Definition: theme.h:512
SortOrder::MessageSorting messageSorting() const
Returns the sort order for messages that we should switch to when clicking on this column's header (i...
Definition: theme.h:731
The combined icon that displays the unread/read/replied/forwarded state (never disabled) ...
Definition: theme.h:210
static QString description(Type type)
Returns a descriptive name for the specified content item type.
Definition: theme.cpp:75
const QString & pixmapName() const
Returns the icon's name (used in SmallIcon) set for this column.
Definition: theme.h:686
void insertColumn(int idx, Column *column)
Inserts a column to this theme at the specified position.
Definition: theme.cpp:749
The Row class defines a row of items inside a Column.
Definition: theme.h:466
void moveColumn(int idx, int newPosition)
Definition: theme.cpp:759
void setSoftenByBlendingWhenDisabled(bool softenByBlendingWhenDisabled)
Sets the flag that causes this item to be painted "softly" when disabled.
Definition: theme.h:389
The icon that displays the atachment state (may be disabled)
Definition: theme.h:158
void setGroupHeaderBackgroundMode(GroupHeaderBackgroundMode bm)
Sets the group header background mode for this theme.
Definition: theme.cpp:766
GroupHeaderBackgroundStyle groupHeaderBackgroundStyle() const
Returns the group header background style for this theme.
Definition: theme.h:1004
bool displaysText() const
Returns true if this item displays some kind of text.
Definition: theme.h:286
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 isSenderOrReceiver() const
Returns true if this column is marked as "sender/receiver" and we should update its label on-the-fly...
Definition: theme.h:699
The Important tag icon.
Definition: theme.h:174
bool load(QDataStream &stream, int themeVersion)
Handles content item loading (used by Theme::Row::load())
Definition: theme.cpp:180
bool hideWhenDisabled() const
Returns true if this item should be hidden when in disabled state.
Definition: theme.h:363
Whether the message has a annotation/note.
Definition: theme.h:218
void setVisibleByDefault(bool vbd)
Sets the "visible by default" tag for this column.
Definition: theme.h:718
The Column class defines a view column available inside this theme.
Definition: theme.h:564
void setFont(const QFont &font)
Sets the custom font to be used with this item.
Definition: theme.cpp:166
const QColor & customColor() const
Returns the custom color set for this item.
Definition: theme.h:437
const QList< Row * > & messageRows() const
Returns the list of rows visible in this column for a MessageItem.
Definition: theme.h:773
The icon that displays the replied/forwarded state (may be disabled)
Definition: theme.h:162
static QList< QPair< QString, int > > enumerateGroupHeaderBackgroundStyles()
Enumerates the available group header background styles.
Definition: theme.cpp:781
No background at all: use style default.
Definition: theme.h:883
bool isClickable() const
Returns true if clicking on this kind of item can perform an action.
Definition: theme.h:304
One big rounded gradient rect for all the columns.
Definition: theme.h:898
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
bool canUseCustomColor() const
Returns true if this ContentItem can make use of a custom color.
Definition: theme.h:279
GroupHeaderBackgroundMode
Which color do we use to paint group header background ?
Definition: theme.h:881
void setGroupHeaderBackgroundColor(const QColor &clr)
Sets the group header background color for this theme.
Definition: theme.h:996
void resetColumnState()
Resets the column state (visibility and width) to their default values (the "visible by default" ones...
Definition: theme.cpp:725
Formatted date time of the message/group.
Definition: theme.h:134
const QList< ContentItem * > & leftItems() const
Returns the list of left aligned items for this row.
Definition: theme.h:481
A small empty spacer usable as separator.
Definition: theme.h:202
The list of MessageItem::Tag entries.
Definition: theme.h:214
ViewHeaderPolicy viewHeaderPolicy() const
Returns the currently set ViewHeaderPolicy.
Definition: theme.h:1025
bool displaysLongText() const
Returns true if this item displays a long text.
Definition: theme.h:293
From: or To: strip, depending on the folder settings.
Definition: theme.h:138
bool visibleByDefault() const
Returns true if this column has to be shown by default.
Definition: theme.h:712
void setCurrentlyVisible(bool currentlyVisible)
Sets the current shared visibility state for this column.
Definition: theme.h:752
void setUseCustomColor(bool useCustomColor)
Makes this item use the custom color that can be set by setCustomColor().
Definition: theme.h:341
void resetColumnSizes()
Resets the column sizes to "default" (subset of resetColumnState() above).
Definition: theme.cpp:735
GroupHeaderBackgroundMode groupHeaderBackgroundMode() const
Returns the group header background mode for this theme.
Definition: theme.h:976
One big rounded rect for all the columns.
Definition: theme.h:896
The Spam/Ham state icon.
Definition: theme.h:178
One big plain rect for all the columns.
Definition: theme.h:894
bool canBeDisabled() const
Returns true if this ContentItem can be in a "disabled" state.
Definition: theme.h:273
void setMessageSorting(SortOrder::MessageSorting ms)
Sets the sort order for messages that we should switch to when clicking on this column's header (if v...
Definition: theme.h:738
static QList< QPair< QString, int > > enumerateViewHeaderPolicyOptions()
Enumerates the available view header policy options.
Definition: theme.cpp:773
The ActionItem state icon.
Definition: theme.h:170
A vertical separation line.
Definition: theme.h:198
static bool compareName(Theme *theme1, Theme *theme2)
Definition: theme.h:872
int currentWidth() const
Returns the current shared width setting for this column or -1 if the width is not specified and shou...
Definition: theme.h:760
Column * column(int idx) const
Returns a pointer to the column at the specified index or 0 if there is no such column.
Definition: theme.h:946
void setUseCustomFont(bool useCustomFont)
Makes this item use the custom font that can be set by setCustomFont().
Definition: theme.h:355
For text and vertical line. If set then always use a custom color, otherwise use default text color...
Definition: theme.h:235
For text items: use 60% opacity.
Definition: theme.h:237
For text items. If set then always use a custom font, otherwise default to the global font...
Definition: theme.h:236
void setSoftenByBlending(bool softenByBlending)
Sets the flag that causes this item to be painted "softly".
Definition: theme.h:403
const QList< Row * > & groupHeaderRows() const
Returns the list of rows visible in this column for a GroupHeaderItem.
Definition: theme.h:803
void detach()
Detaches this object from the shared runtime data for columns.
Definition: theme.cpp:718
The Signature state icon for messages.
Definition: theme.h:194
The Theme class defines the visual appearance of the MessageList.
Definition: theme.h:65
const QColor & groupHeaderBackgroundColor() const
Returns the group header background color for this theme.
Definition: theme.h:989
void setIsSenderOrReceiver(bool sor)
Marks this column as containing the "sender/receiver" field.
Definition: theme.h:706
The group header label.
Definition: theme.h:166
void removeRightItem(ContentItem *item)
Removes the specified right aligned content item from this row.
Definition: theme.h:538
bool softenByBlendingWhenDisabled() const
Returns true if this item should be painted in a "soft" fashion when in disabled state.
Definition: theme.h:380
The Watched/Ignored state icon.
Definition: theme.h:182
void setGroupHeaderBackgroundStyle(GroupHeaderBackgroundStyle groupHeaderBackgroundStyle)
Sets the group header background style for this theme.
Definition: theme.h:1012
The Encryption state icon for messages.
Definition: theme.h:190
The date of the most recent message in subtree.
Definition: theme.h:206
Automatically determine the color (somewhere in the middle between background and text) ...
Definition: theme.h:884
void removeLeftItem(ContentItem *item)
Removes the specified left aligned content item from this row.
Definition: theme.h:506
In disabled state the icon should take no space (overrides SoftenByBlendingWhenDisabled) ...
Definition: theme.h:233
bool currentlyVisible() const
Returns the current shared visibility state for this column.
Definition: theme.h:745
void setViewHeaderPolicy(ViewHeaderPolicy vhp)
Sets the ViewHeaderPolicy for this theme.
Definition: theme.h:1031
One rounded gradient filled rect per column.
Definition: theme.h:897
bool softenByBlending() const
Returns true if this item should be always painted in a "soft" fashion.
Definition: theme.h:396
void setHideWhenDisabled(bool hideWhenDisabled)
Sets the flag that causes this item to be hidden when disabled.
Definition: theme.h:372
In disabled state the icon should be still shown, but made very soft by alpha blending.
Definition: theme.h:234
const QList< Column * > & columns() const
Returns the list of columns available in this theme.
Definition: theme.h:940
void setCurrentWidth(int currentWidth)
Sets the current shared width setting for this column.
Definition: theme.h:767
void setPixmapName(const QString &pixmapName)
Sets the icon's name (used in SmallIcon) for this column.
Definition: theme.h:692
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.