• Skip to content
  • Skip to link menu
KDE 4.2 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 contactListAppearanceChanged ()
void messageOverridesChanged ()

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

 AppearanceSettings ()
virtual void usrWriteConfig ()

Protected Attributes

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

Classes

class  EnumContactListDisplayMode
class  EnumContactListIconMode
class  EnumContactListResizeAnchor

Member Enumeration Documentation

anonymous enum

Enumerator:
signalAppearanceChanged 
signalMessageOverridesChanged 
signalContactListAppearanceChanged 

Definition at line 36 of file kopeteappearancesettings.h.


Constructor & Destructor Documentation

AppearanceSettings::~AppearanceSettings (  ) 

Definition at line 162 of file kopeteappearancesettings.cpp.

AppearanceSettings::AppearanceSettings (  )  [protected]

Definition at line 31 of file kopeteappearancesettings.cpp.


Member Function Documentation

void Kopete::AppearanceSettings::appearanceChanged (  )  [signal]

Emited when the font and colors settings has changed.

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

Get Chat background color.

Definition at line 265 of file kopeteappearancesettings.h.

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

Get Item object corresponding to chatBackgroundColor().

Definition at line 273 of file kopeteappearancesettings.h.

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

Get Disable custom text color set by users.

Definition at line 149 of file kopeteappearancesettings.h.

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

Get Item object corresponding to chatBgOverride().

Definition at line 157 of file kopeteappearancesettings.h.

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

Get Disable custom background color set by users.

Definition at line 178 of file kopeteappearancesettings.h.

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

Get Item object corresponding to chatFgOverride().

Definition at line 186 of file kopeteappearancesettings.h.

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

Get Chat font.

Definition at line 323 of file kopeteappearancesettings.h.

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

Get Item object corresponding to chatFont().

Definition at line 331 of file kopeteappearancesettings.h.

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

Get Chat link color.

Definition at line 294 of file kopeteappearancesettings.h.

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

Get Item object corresponding to chatLinkColor().

Definition at line 302 of file kopeteappearancesettings.h.

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

Get Disable rich text set by users.

Definition at line 207 of file kopeteappearancesettings.h.

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

Get Item object corresponding to chatRtfOverride().

Definition at line 215 of file kopeteappearancesettings.h.

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

Get Chat text color.

Definition at line 236 of file kopeteappearancesettings.h.

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

Get Item object corresponding to chatTextColor().

Definition at line 244 of file kopeteappearancesettings.h.

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

Get Animate contact list on contactlist changes.

Definition at line 785 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListAnimateChange().

Definition at line 793 of file kopeteappearancesettings.h.

void Kopete::AppearanceSettings::contactListAppearanceChanged (  )  [signal]

Emited when the contact list appearance has changed.

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

Get Auto-hide contact list after a while.

Definition at line 872 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListAutoHide().

Definition at line 880 of file kopeteappearancesettings.h.

static uint Kopete::AppearanceSettings::contactListAutoHideTimeout (  )  [inline, static]

Get Auto-hide timeout.

Definition at line 930 of file kopeteappearancesettings.h.

ItemUInt* Kopete::AppearanceSettings::contactListAutoHideTimeoutItem (  )  [inline]

Get Item object corresponding to contactListAutoHideTimeout().

Definition at line 938 of file kopeteappearancesettings.h.

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

Get Auto-hide vertical scrollbar in contact list after a while.

Definition at line 901 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListAutoHideVScroll().

Definition at line 909 of file kopeteappearancesettings.h.

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

Get Automatically resize the main window.

Definition at line 640 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListAutoResize().

Definition at line 648 of file kopeteappearancesettings.h.

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

Get Contact list display mode.

Definition at line 437 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListDisplayMode().

Definition at line 445 of file kopeteappearancesettings.h.

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

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

Definition at line 814 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListFading().

Definition at line 822 of file kopeteappearancesettings.h.

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

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

Definition at line 843 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListFolding().

Definition at line 851 of file kopeteappearancesettings.h.

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

Get Hide the vertical scroll bar.

Definition at line 553 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListHideVerticalScrollBar().

Definition at line 561 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 466 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListIconMode().

Definition at line 474 of file kopeteappearancesettings.h.

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

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

Definition at line 524 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListIndentContact().

Definition at line 532 of file kopeteappearancesettings.h.

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

Get Normal font for contact list.

Definition at line 698 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListNormalFont().

Definition at line 706 of file kopeteappearancesettings.h.

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

Get Corner at which to anchor main window when auto-resizing.

Definition at line 669 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListResizeAnchor().

Definition at line 677 of file kopeteappearancesettings.h.

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

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

Definition at line 727 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListSmallFont().

Definition at line 735 of file kopeteappearancesettings.h.

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

Get Show contact list as a tree view.

Definition at line 495 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListTreeView().

Definition at line 503 of file kopeteappearancesettings.h.

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

Get Use custom fonts for contact list.

Definition at line 611 of file kopeteappearancesettings.h.

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

Get Item object corresponding to contactListUseCustomFont().

Definition at line 619 of file kopeteappearancesettings.h.

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

Get Display a different color for idle contact.

Definition at line 381 of file kopeteappearancesettings.h.

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

Get Item object corresponding to greyIdleMetaContacts().

Definition at line 389 of file kopeteappearancesettings.h.

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

Get Group contacts by group.

Definition at line 582 of file kopeteappearancesettings.h.

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

Get Item object corresponding to groupContactByGroup().

Definition at line 590 of file kopeteappearancesettings.h.

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

Get Color for group name.

Definition at line 756 of file kopeteappearancesettings.h.

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

Get Item object corresponding to groupNameColor().

Definition at line 764 of file kopeteappearancesettings.h.

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

Get Background color used when hightlighting.

Definition at line 120 of file kopeteappearancesettings.h.

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

Get Item object corresponding to highlightBackgroundColor().

Definition at line 128 of file kopeteappearancesettings.h.

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

Get Text color used when hightlighting.

Definition at line 91 of file kopeteappearancesettings.h.

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

Get Item object corresponding to highlightForegroundColor().

Definition at line 99 of file kopeteappearancesettings.h.

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

Get Color used to identity idle contacts.

Definition at line 352 of file kopeteappearancesettings.h.

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

Get Item object corresponding to idleContactColor().

Definition at line 360 of file kopeteappearancesettings.h.

void Kopete::AppearanceSettings::messageOverridesChanged (  )  [signal]

Emited when the message overrides settings has changed.

AppearanceSettings * AppearanceSettings::self (  )  [static]

Definition at line 21 of file kopeteappearancesettings.cpp.

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

Set Chat background color.

Definition at line 253 of file kopeteappearancesettings.h.

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

Set Disable custom text color set by users.

Definition at line 137 of file kopeteappearancesettings.h.

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

Set Disable custom background color set by users.

Definition at line 166 of file kopeteappearancesettings.h.

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

Set Chat font.

Definition at line 311 of file kopeteappearancesettings.h.

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

Set Chat link color.

Definition at line 282 of file kopeteappearancesettings.h.

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

Set Disable rich text set by users.

Definition at line 195 of file kopeteappearancesettings.h.

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

Set Chat text color.

Definition at line 224 of file kopeteappearancesettings.h.

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

Set Animate contact list on contactlist changes.

Definition at line 773 of file kopeteappearancesettings.h.

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

Set Auto-hide contact list after a while.

Definition at line 860 of file kopeteappearancesettings.h.

static void Kopete::AppearanceSettings::setContactListAutoHideTimeout ( uint  v  )  [inline, static]

Set Auto-hide timeout.

Definition at line 918 of file kopeteappearancesettings.h.

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

Set Auto-hide vertical scrollbar in contact list after a while.

Definition at line 889 of file kopeteappearancesettings.h.

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

Set Automatically resize the main window.

Definition at line 628 of file kopeteappearancesettings.h.

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

Set Contact list display mode.

Definition at line 425 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 802 of file kopeteappearancesettings.h.

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

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

Definition at line 831 of file kopeteappearancesettings.h.

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

Set Hide the vertical scroll bar.

Definition at line 541 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 454 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 512 of file kopeteappearancesettings.h.

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

Set Normal font for contact list.

Definition at line 686 of file kopeteappearancesettings.h.

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

Set Corner at which to anchor main window when auto-resizing.

Definition at line 657 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 715 of file kopeteappearancesettings.h.

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

Set Show contact list as a tree view.

Definition at line 483 of file kopeteappearancesettings.h.