• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/libkopete

Kopete::AppearanceSettings

Kopete::AppearanceSettings Class Reference

#include <kopeteappearancesettings.h>

Inheritance diagram for Kopete::AppearanceSettings:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 16 of file kopeteappearancesettings.h.


Public Types

enum  { signalAppearanceChanged = 0x1, signalMessageOverridesChanged = 0x2, signalContactListAppearanceChanged = 0x4 }

Signals

void appearanceChanged ()
void messageOverridesChanged ()
void contactListAppearanceChanged ()

Public Member Functions

 ~AppearanceSettings ()
ItemString * emoticonThemeItem ()
ItemBool * useEmoticonsItem ()
ItemBool * emoticonsRequireSpaceItem ()
ItemColor * highlightForegroundColorItem ()
ItemColor * highlightBackgroundColorItem ()
ItemBool * chatBgOverrideItem ()
ItemBool * chatFgOverrideItem ()
ItemBool * chatRtfOverrideItem ()
ItemColor * chatTextColorItem ()
ItemColor * chatBackgroundColorItem ()
ItemColor * chatLinkColorItem ()
ItemFont * chatFontItem ()
ItemColor * idleContactColorItem ()
ItemBool * greyIdleMetaContactsItem ()
ItemStringList * toolTipContentsItem ()
ItemEnum * contactListDisplayModeItem ()
ItemEnum * contactListIconModeItem ()
ItemBool * contactListTreeViewItem ()
ItemBool * contactListIndentContactItem ()
ItemBool * contactListHideVerticalScrollBarItem ()
ItemBool * groupContactByGroupItem ()
ItemBool * contactListUseCustomFontItem ()
ItemFont * contactListNormalFontItem ()
ItemFont * contactListSmallFontItem ()
ItemColor * groupNameColorItem ()
ItemBool * contactListAnimateChangeItem ()
ItemBool * contactListFadingItem ()
ItemBool * contactListFoldingItem ()
ItemBool * contactListAutoHideItem ()
ItemBool * contactListAutoHideVScrollItem ()
ItemUInt * contactListAutoHideTimeoutItem ()
ItemBool * showOfflineUsersItem ()
ItemBool * showEmptyGroupsItem ()

Static Public Member Functions

static AppearanceSettings * self ()
static void setEmoticonTheme (const QString &v)
static QString emoticonTheme ()
static void setUseEmoticons (bool v)
static bool useEmoticons ()
static void setEmoticonsRequireSpace (bool v)
static bool emoticonsRequireSpace ()
static void setHighlightForegroundColor (const QColor &v)
static QColor highlightForegroundColor ()
static void setHighlightBackgroundColor (const QColor &v)
static QColor highlightBackgroundColor ()
static void setChatBgOverride (bool v)
static bool chatBgOverride ()
static void setChatFgOverride (bool v)
static bool chatFgOverride ()
static void setChatRtfOverride (bool v)
static bool chatRtfOverride ()
static void setChatTextColor (const QColor &v)
static QColor chatTextColor ()
static void setChatBackgroundColor (const QColor &v)
static QColor chatBackgroundColor ()
static void setChatLinkColor (const QColor &v)
static QColor chatLinkColor ()
static void setChatFont (const QFont &v)
static QFont chatFont ()
static void setIdleContactColor (const QColor &v)
static QColor idleContactColor ()
static void setGreyIdleMetaContacts (bool v)
static bool greyIdleMetaContacts ()
static void setToolTipContents (const QStringList &v)
static QStringList toolTipContents ()
static void setContactListDisplayMode (int v)
static int contactListDisplayMode ()
static void setContactListIconMode (int v)
static int contactListIconMode ()
static void setContactListTreeView (bool v)
static bool contactListTreeView ()
static void setContactListIndentContact (bool v)
static bool contactListIndentContact ()
static void setContactListHideVerticalScrollBar (bool v)
static bool contactListHideVerticalScrollBar ()
static void setGroupContactByGroup (bool v)
static bool groupContactByGroup ()
static void setContactListUseCustomFont (bool v)
static bool contactListUseCustomFont ()
static void setContactListNormalFont (const QFont &v)
static QFont contactListNormalFont ()
static void setContactListSmallFont (const QFont &v)
static QFont contactListSmallFont ()
static void setGroupNameColor (const QColor &v)
static QColor groupNameColor ()
static void setContactListAnimateChange (bool v)
static bool contactListAnimateChange ()
static void setContactListFading (bool v)
static bool contactListFading ()
static void setContactListFolding (bool v)
static bool contactListFolding ()
static void setContactListAutoHide (bool v)
static bool contactListAutoHide ()
static void setContactListAutoHideVScroll (bool v)
static bool contactListAutoHideVScroll ()
static void setContactListAutoHideTimeout (uint v)
static uint contactListAutoHideTimeout ()
static void setShowOfflineUsers (bool v)
static bool showOfflineUsers ()
static void setShowEmptyGroups (bool v)
static bool showEmptyGroups ()

Protected Member Functions

 AppearanceSettings ()
virtual void usrWriteConfig ()

Protected Attributes

QString mEmoticonTheme
bool mUseEmoticons
bool mEmoticonsRequireSpace
QColor mHighlightForegroundColor
QColor mHighlightBackgroundColor
bool mChatBgOverride
bool mChatFgOverride
bool mChatRtfOverride
QColor mChatTextColor
QColor mChatBackgroundColor
QColor mChatLinkColor
QFont mChatFont
QColor mIdleContactColor
bool mGreyIdleMetaContacts
QStringList mToolTipContents
int mContactListDisplayMode
int mContactListIconMode
bool mContactListTreeView
bool mContactListIndentContact
bool mContactListHideVerticalScrollBar
bool mGroupContactByGroup
bool mContactListUseCustomFont
QFont mContactListNormalFont
QFont mContactListSmallFont
QColor mGroupNameColor
bool mContactListAnimateChange
bool mContactListFading
bool mContactListFolding
bool mContactListAutoHide
bool mContactListAutoHideVScroll
uint mContactListAutoHideTimeout
bool mShowOfflineUsers
bool mShowEmptyGroups

Friends

class AppearanceSettingsHelper

Classes

class  EnumContactListDisplayMode
class  EnumContactListIconMode

Member Enumeration Documentation

anonymous enum

Enumerator:
signalAppearanceChanged 
signalMessageOverridesChanged 
signalContactListAppearanceChanged 

Definition at line 31 of file kopeteappearancesettings.h.


Constructor & Destructor Documentation

AppearanceSettings::~AppearanceSettings (  ) 

Definition at line 150 of file kopeteappearancesettings.cpp.

AppearanceSettings::AppearanceSettings (  )  [protected]

Definition at line 31 of file kopeteappearancesettings.cpp.


Member Function Documentation

AppearanceSettings * AppearanceSettings::self (  )  [static]

Definition at line 21 of file kopeteappearancesettings.cpp.

static void Kopete::AppearanceSettings::setEmoticonTheme ( const QString &  v  )  [inline, static]

Set Current emoticon theme.

Definition at line 44 of file kopeteappearancesettings.h.

static QString Kopete::AppearanceSettings::emoticonTheme (  )  [inline, static]

Get Current emoticon theme.

Definition at line 57 of file kopeteappearancesettings.h.

ItemString* Kopete::AppearanceSettings::emoticonThemeItem (  )  [inline]

Get Item object corresponding to emoticonTheme().

Definition at line 65 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setUseEmoticons ( bool  v  )  [inline, static]

Set Enable emoticon support in Kopete.

Definition at line 74 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::useEmoticons (  )  [inline, static]

Get Enable emoticon support in Kopete.

Definition at line 87 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::useEmoticonsItem (  )  [inline]

Get Item object corresponding to useEmoticons().

Definition at line 95 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setEmoticonsRequireSpace ( bool  v  )  [inline, static]

Set Use strict mode in emoticon parsing.

Definition at line 104 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::emoticonsRequireSpace (  )  [inline, static]

Get Use strict mode in emoticon parsing.

Definition at line 117 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::emoticonsRequireSpaceItem (  )  [inline]

Get Item object corresponding to emoticonsRequireSpace().

Definition at line 125 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setHighlightForegroundColor ( const QColor &  v  )  [inline, static]

Set Text color used when hightlighting.

Definition at line 134 of file kopeteappearancesettings.h.

static QColor Kopete::AppearanceSettings::highlightForegroundColor (  )  [inline, static]

Get Text color used when hightlighting.

Definition at line 146 of file kopeteappearancesettings.h.

ItemColor* Kopete::AppearanceSettings::highlightForegroundColorItem (  )  [inline]

Get Item object corresponding to highlightForegroundColor().

Definition at line 154 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setHighlightBackgroundColor ( const QColor &  v  )  [inline, static]

Set Background color used when hightlighting.

Definition at line 163 of file kopeteappearancesettings.h.

static QColor Kopete::AppearanceSettings::highlightBackgroundColor (  )  [inline, static]

Get Background color used when hightlighting.

Definition at line 175 of file kopeteappearancesettings.h.

ItemColor* Kopete::AppearanceSettings::highlightBackgroundColorItem (  )  [inline]

Get Item object corresponding to highlightBackgroundColor().

Definition at line 183 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setChatBgOverride ( bool  v  )  [inline, static]

Set Disable custom text color set by users.

Definition at line 192 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::chatBgOverride (  )  [inline, static]

Get Disable custom text color set by users.

Definition at line 204 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::chatBgOverrideItem (  )  [inline]

Get Item object corresponding to chatBgOverride().

Definition at line 212 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setChatFgOverride ( bool  v  )  [inline, static]

Set Disable custom background color set by users.

Definition at line 221 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::chatFgOverride (  )  [inline, static]

Get Disable custom background color set by users.

Definition at line 233 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::chatFgOverrideItem (  )  [inline]

Get Item object corresponding to chatFgOverride().

Definition at line 241 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setChatRtfOverride ( bool  v  )  [inline, static]

Set Disable rich text set by users.

Definition at line 250 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::chatRtfOverride (  )  [inline, static]

Get Disable rich text set by users.

Definition at line 262 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::chatRtfOverrideItem (  )  [inline]

Get Item object corresponding to chatRtfOverride().

Definition at line 270 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setChatTextColor ( const QColor &  v  )  [inline, static]

Set Chat text color.

Definition at line 279 of file kopeteappearancesettings.h.

static QColor Kopete::AppearanceSettings::chatTextColor (  )  [inline, static]

Get Chat text color.

Definition at line 291 of file kopeteappearancesettings.h.

ItemColor* Kopete::AppearanceSettings::chatTextColorItem (  )  [inline]

Get Item object corresponding to chatTextColor().

Definition at line 299 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setChatBackgroundColor ( const QColor &  v  )  [inline, static]

Set Chat background color.

Definition at line 308 of file kopeteappearancesettings.h.

static QColor Kopete::AppearanceSettings::chatBackgroundColor (  )  [inline, static]

Get Chat background color.

Definition at line 320 of file kopeteappearancesettings.h.

ItemColor* Kopete::AppearanceSettings::chatBackgroundColorItem (  )  [inline]

Get Item object corresponding to chatBackgroundColor().

Definition at line 328 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setChatLinkColor ( const QColor &  v  )  [inline, static]

Set Chat link color.

Definition at line 337 of file kopeteappearancesettings.h.

static QColor Kopete::AppearanceSettings::chatLinkColor (  )  [inline, static]

Get Chat link color.

Definition at line 349 of file kopeteappearancesettings.h.

ItemColor* Kopete::AppearanceSettings::chatLinkColorItem (  )  [inline]

Get Item object corresponding to chatLinkColor().

Definition at line 357 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setChatFont ( const QFont &  v  )  [inline, static]

Set Chat font.

Definition at line 366 of file kopeteappearancesettings.h.

static QFont Kopete::AppearanceSettings::chatFont (  )  [inline, static]

Get Chat font.

Definition at line 378 of file kopeteappearancesettings.h.

ItemFont* Kopete::AppearanceSettings::chatFontItem (  )  [inline]

Get Item object corresponding to chatFont().

Definition at line 386 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setIdleContactColor ( const QColor &  v  )  [inline, static]

Set Color used to identity idle contacts.

Definition at line 395 of file kopeteappearancesettings.h.

static QColor Kopete::AppearanceSettings::idleContactColor (  )  [inline, static]

Get Color used to identity idle contacts.

Definition at line 407 of file kopeteappearancesettings.h.

ItemColor* Kopete::AppearanceSettings::idleContactColorItem (  )  [inline]

Get Item object corresponding to idleContactColor().

Definition at line 415 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setGreyIdleMetaContacts ( bool  v  )  [inline, static]

Set Display a different color for idle contact.

Definition at line 424 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::greyIdleMetaContacts (  )  [inline, static]

Get Display a different color for idle contact.

Definition at line 436 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::greyIdleMetaContactsItem (  )  [inline]

Get Item object corresponding to greyIdleMetaContacts().

Definition at line 444 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setToolTipContents ( const QStringList &  v  )  [inline, static]

Set Contact properties that contact tooltip will show.

Definition at line 453 of file kopeteappearancesettings.h.

static QStringList Kopete::AppearanceSettings::toolTipContents (  )  [inline, static]

Get Contact properties that contact tooltip will show.

Definition at line 463 of file kopeteappearancesettings.h.

ItemStringList* Kopete::AppearanceSettings::toolTipContentsItem (  )  [inline]

Get Item object corresponding to toolTipContents().

Definition at line 471 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListDisplayMode ( int  v  )  [inline, static]

Set Contact list display mode.

Definition at line 480 of file kopeteappearancesettings.h.

static int Kopete::AppearanceSettings::contactListDisplayMode (  )  [inline, static]

Get Contact list display mode.

Definition at line 492 of file kopeteappearancesettings.h.

ItemEnum* Kopete::AppearanceSettings::contactListDisplayModeItem (  )  [inline]

Get Item object corresponding to contactListDisplayMode().

Definition at line 500 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListIconMode ( int  v  )  [inline, static]

Set Contact list icon display mode.

Either the protocol icon or the contact photo.

Definition at line 509 of file kopeteappearancesettings.h.

static int Kopete::AppearanceSettings::contactListIconMode (  )  [inline, static]

Get Contact list icon display mode.

Either the protocol icon or the contact photo.

Definition at line 521 of file kopeteappearancesettings.h.

ItemEnum* Kopete::AppearanceSettings::contactListIconModeItem (  )  [inline]

Get Item object corresponding to contactListIconMode().

Definition at line 529 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListTreeView ( bool  v  )  [inline, static]

Set Show contact list as a tree view.

Definition at line 538 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::contactListTreeView (  )  [inline, static]

Get Show contact list as a tree view.

Definition at line 550 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::contactListTreeViewItem (  )  [inline]

Get Item object corresponding to contactListTreeView().

Definition at line 558 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListIndentContact ( bool  v  )  [inline, static]

Set Indent contacts if you don't show tree lines.

Definition at line 567 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::contactListIndentContact (  )  [inline, static]

Get Indent contacts if you don't show tree lines.

Definition at line 579 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::contactListIndentContactItem (  )  [inline]

Get Item object corresponding to contactListIndentContact().

Definition at line 587 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListHideVerticalScrollBar ( bool  v  )  [inline, static]

Set Hide the vertical scroll bar.

Definition at line 596 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::contactListHideVerticalScrollBar (  )  [inline, static]

Get Hide the vertical scroll bar.

Definition at line 608 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::contactListHideVerticalScrollBarItem (  )  [inline]

Get Item object corresponding to contactListHideVerticalScrollBar().

Definition at line 616 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setGroupContactByGroup ( bool  v  )  [inline, static]

Set Group contacts by group.

Definition at line 625 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::groupContactByGroup (  )  [inline, static]

Get Group contacts by group.

Definition at line 637 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::groupContactByGroupItem (  )  [inline]

Get Item object corresponding to groupContactByGroup().

Definition at line 645 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListUseCustomFont ( bool  v  )  [inline, static]

Set Use custom fonts for contact list.

Definition at line 654 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::contactListUseCustomFont (  )  [inline, static]

Get Use custom fonts for contact list.

Definition at line 666 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::contactListUseCustomFontItem (  )  [inline]

Get Item object corresponding to contactListUseCustomFont().

Definition at line 674 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListNormalFont ( const QFont &  v  )  [inline, static]

Set Normal font for contact list.

Definition at line 683 of file kopeteappearancesettings.h.

static QFont Kopete::AppearanceSettings::contactListNormalFont (  )  [inline, static]

Get Normal font for contact list.

Definition at line 695 of file kopeteappearancesettings.h.

ItemFont* Kopete::AppearanceSettings::contactListNormalFontItem (  )  [inline]

Get Item object corresponding to contactListNormalFont().

Definition at line 703 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListSmallFont ( const QFont &  v  )  [inline, static]

Set Small font for contact list (for status message).

Definition at line 712 of file kopeteappearancesettings.h.

static QFont Kopete::AppearanceSettings::contactListSmallFont (  )  [inline, static]

Get Small font for contact list (for status message).

Definition at line 724 of file kopeteappearancesettings.h.

ItemFont* Kopete::AppearanceSettings::contactListSmallFontItem (  )  [inline]

Get Item object corresponding to contactListSmallFont().

Definition at line 732 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setGroupNameColor ( const QColor &  v  )  [inline, static]

Set Color for group name.

Definition at line 741 of file kopeteappearancesettings.h.

static QColor Kopete::AppearanceSettings::groupNameColor (  )  [inline, static]

Get Color for group name.

Definition at line 753 of file kopeteappearancesettings.h.

ItemColor* Kopete::AppearanceSettings::groupNameColorItem (  )  [inline]

Get Item object corresponding to groupNameColor().

Definition at line 761 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListAnimateChange ( bool  v  )  [inline, static]

Set Animate contact list on contactlist changes.

Definition at line 770 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::contactListAnimateChange (  )  [inline, static]

Get Animate contact list on contactlist changes.

Definition at line 782 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::contactListAnimateChangeItem (  )  [inline]

Get Item object corresponding to contactListAnimateChange().

Definition at line 790 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListFading ( bool  v  )  [inline, static]

Set Fade-in/Fade-out on contact status change.

Definition at line 799 of file kopeteappearancesettings.h.

static bool Kopete::AppearanceSettings::contactListFading (  )  [inline, static]

Get Fade-in/Fade-out on contact status change.

Definition at line 811 of file kopeteappearancesettings.h.

ItemBool* Kopete::AppearanceSettings::contactListFadingItem (  )  [inline]