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

kopete/kopete

  • sources
  • kde-4.12
  • kdenetwork
  • kopete
  • kopete
  • chatwindow
kopetechatwindowsettings.h
Go to the documentation of this file.
1 // This file is generated by kconfig_compiler from kopetechatwindowsettings.kcfg.
2 // All changes you do to this file will be lost.
3 #ifndef KOPETECHATWINDOWSETTINGS_H
4 #define KOPETECHATWINDOWSETTINGS_H
5 
6 #include <kopete_export.h>
7 
8 #include <kconfigskeleton.h>
9 #include <kdebug.h>
10 
11 #include <kglobalsettings.h>
12 #include <kcolorscheme.h>
13 class KOPETECHATWINDOW_SHARED_EXPORT KopeteChatWindowSettings : public KConfigSkeleton
14 {
15  Q_OBJECT
16  public:
17 
18  enum {
19  signalChatwindowAppearanceChanged = 0x1,
20  signalMessageOverridesChanged = 0x2,
21  signalStyleChanged = 0x4,
22  signalStyleVariantChanged = 0x8
23  };
24 
25  static KopeteChatWindowSettings *self();
26  ~KopeteChatWindowSettings();
27 
31  static
32  void setStyleName( const QString & v )
33  {
34  if (!self()->isImmutable( QString::fromLatin1( "styleName" ) )) {
35  self()->mStyleName = v;
36  self()->mSettingsChanged |= signalStyleChanged;
37  }
38  }
39 
43  static
44  QString styleName()
45  {
46  return self()->mStyleName;
47  }
48 
52  ItemString *styleNameItem()
53  {
54  return mStyleNameItem;
55  }
56 
60  static
61  void setStyleVariant( const QString & v )
62  {
63  if (!self()->isImmutable( QString::fromLatin1( "styleVariant" ) ))
64  self()->mStyleVariant = v;
65  }
66 
70  static
71  QString styleVariant()
72  {
73  return self()->mStyleVariant;
74  }
75 
79  ItemString *styleVariantItem()
80  {
81  return mStyleVariantItem;
82  }
83 
87  static
88  void setGroupConsecutiveMessages( bool v )
89  {
90  if (!self()->isImmutable( QString::fromLatin1( "groupConsecutiveMessages" ) ))
91  self()->mGroupConsecutiveMessages = v;
92  }
93 
97  static
98  bool groupConsecutiveMessages()
99  {
100  return self()->mGroupConsecutiveMessages;
101  }
102 
106  ItemBool *groupConsecutiveMessagesItem()
107  {
108  return mGroupConsecutiveMessagesItem;
109  }
110 
114  static
115  void setUseCompact( bool v )
116  {
117  if (!self()->isImmutable( QString::fromLatin1( "useCompact" ) ))
118  self()->mUseCompact = v;
119  }
120 
124  static
125  bool useCompact()
126  {
127  return self()->mUseCompact;
128  }
129 
133  ItemBool *useCompactItem()
134  {
135  return mUseCompactItem;
136  }
137 
141  static
142  void setHighlightForegroundColor( const QColor & v )
143  {
144  if (!self()->isImmutable( QString::fromLatin1( "highlightForegroundColor" ) )) {
145  self()->mHighlightForegroundColor = v;
146  self()->mSettingsChanged |= signalChatwindowAppearanceChanged;
147  }
148  }
149 
153  static
154  QColor highlightForegroundColor()
155  {
156  return self()->mHighlightForegroundColor;
157  }
158 
162  ItemColor *highlightForegroundColorItem()
163  {
164  return mHighlightForegroundColorItem;
165  }
166 
170  static
171  void setHighlightBackgroundColor( const QColor & v )
172  {
173  if (!self()->isImmutable( QString::fromLatin1( "highlightBackgroundColor" ) )) {
174  self()->mHighlightBackgroundColor = v;
175  self()->mSettingsChanged |= signalChatwindowAppearanceChanged;
176  }
177  }
178 
182  static
183  QColor highlightBackgroundColor()
184  {
185  return self()->mHighlightBackgroundColor;
186  }
187 
191  ItemColor *highlightBackgroundColorItem()
192  {
193  return mHighlightBackgroundColorItem;
194  }
195 
199  static
200  void setChatFmtOverride( bool v )
201  {
202  if (!self()->isImmutable( QString::fromLatin1( "chatFmtOverride" ) )) {
203  self()->mChatFmtOverride = v;
204  self()->mSettingsChanged |= signalMessageOverridesChanged;
205  }
206  }
207 
211  static
212  bool chatFmtOverride()
213  {
214  return self()->mChatFmtOverride;
215  }
216 
220  ItemBool *chatFmtOverrideItem()
221  {
222  return mChatFmtOverrideItem;
223  }
224 
228  static
229  void setChatTextColor( const QColor & v )
230  {
231  if (!self()->isImmutable( QString::fromLatin1( "chatTextColor" ) )) {
232  self()->mChatTextColor = v;
233  self()->mSettingsChanged |= signalChatwindowAppearanceChanged;
234  }
235  }
236 
240  static
241  QColor chatTextColor()
242  {
243  return self()->mChatTextColor;
244  }
245 
249  ItemColor *chatTextColorItem()
250  {
251  return mChatTextColorItem;
252  }
253 
257  static
258  void setChatBackgroundColor( const QColor & v )
259  {
260  if (!self()->isImmutable( QString::fromLatin1( "chatBackgroundColor" ) )) {
261  self()->mChatBackgroundColor = v;
262  self()->mSettingsChanged |= signalChatwindowAppearanceChanged;
263  }
264  }
265 
269  static
270  QColor chatBackgroundColor()
271  {
272  return self()->mChatBackgroundColor;
273  }
274 
278  ItemColor *chatBackgroundColorItem()
279  {
280  return mChatBackgroundColorItem;
281  }
282 
286  static
287  void setChatLinkColor( const QColor & v )
288  {
289  if (!self()->isImmutable( QString::fromLatin1( "chatLinkColor" ) )) {
290  self()->mChatLinkColor = v;
291  self()->mSettingsChanged |= signalChatwindowAppearanceChanged;
292  }
293  }
294 
298  static
299  QColor chatLinkColor()
300  {
301  return self()->mChatLinkColor;
302  }
303 
307  ItemColor *chatLinkColorItem()
308  {
309  return mChatLinkColorItem;
310  }
311 
315  static
316  void setChatFont( const QFont & v )
317  {
318  if (!self()->isImmutable( QString::fromLatin1( "chatFont" ) )) {
319  self()->mChatFont = v;
320  self()->mSettingsChanged |= signalChatwindowAppearanceChanged;
321  }
322  }
323 
327  static
328  QFont chatFont()
329  {
330  return self()->mChatFont;
331  }
332 
336  ItemFont *chatFontItem()
337  {
338  return mChatFontItem;
339  }
340 
341 
342  Q_SIGNALS:
346  void chatwindowAppearanceChanged();
347 
351  void messageOverridesChanged();
352 
356  void styleChanged(const QString & styleName);
357 
361  void styleVariantChanged(const QString & styleVariant);
362 
363  protected:
364  KopeteChatWindowSettings();
365  friend class KopeteChatWindowSettingsHelper;
366 
367  virtual void usrWriteConfig();
368 
369  // Appearance
370  QString mStyleName;
371  QString mStyleVariant;
372  bool mGroupConsecutiveMessages;
373  bool mUseCompact;
374  QColor mHighlightForegroundColor;
375  QColor mHighlightBackgroundColor;
376  bool mChatFmtOverride;
377  QColor mChatTextColor;
378  QColor mChatBackgroundColor;
379  QColor mChatLinkColor;
380  QFont mChatFont;
381 
382  private:
383  ItemString *mStyleNameItem;
384  ItemString *mStyleVariantItem;
385  ItemBool *mGroupConsecutiveMessagesItem;
386  ItemBool *mUseCompactItem;
387  ItemColor *mHighlightForegroundColorItem;
388  ItemColor *mHighlightBackgroundColorItem;
389  ItemBool *mChatFmtOverrideItem;
390  ItemColor *mChatTextColorItem;
391  ItemColor *mChatBackgroundColorItem;
392  ItemColor *mChatLinkColorItem;
393  ItemFont *mChatFontItem;
394  uint mSettingsChanged;
395 };
396 
397 #endif
398 
KopeteChatWindowSettings::styleNameItem
ItemString * styleNameItem()
Get Item object corresponding to styleName()
Definition: kopetechatwindowsettings.h:52
KopeteChatWindowSettings::mChatTextColor
QColor mChatTextColor
Definition: kopetechatwindowsettings.h:377
KopeteChatWindowSettings::setStyleVariant
static void setStyleVariant(const QString &v)
Set Relative path to a CSS variant for the current style.
Definition: kopetechatwindowsettings.h:61
KopeteChatWindowSettings::chatTextColorItem
ItemColor * chatTextColorItem()
Get Item object corresponding to chatTextColor()
Definition: kopetechatwindowsettings.h:249
KopeteChatWindowSettings::setChatTextColor
static void setChatTextColor(const QColor &v)
Set Chat text color.
Definition: kopetechatwindowsettings.h:229
KopeteChatWindowSettings::setHighlightForegroundColor
static void setHighlightForegroundColor(const QColor &v)
Set Text color used when highlighting.
Definition: kopetechatwindowsettings.h:142
KopeteChatWindowSettings::highlightBackgroundColorItem
ItemColor * highlightBackgroundColorItem()
Get Item object corresponding to highlightBackgroundColor()
Definition: kopetechatwindowsettings.h:191
KopeteChatWindowSettings::useCompact
static bool useCompact()
Get Use a compact variant of the chat style for chatrooms.
Definition: kopetechatwindowsettings.h:125
KopeteChatWindowSettings::highlightForegroundColorItem
ItemColor * highlightForegroundColorItem()
Get Item object corresponding to highlightForegroundColor()
Definition: kopetechatwindowsettings.h:162
KopeteChatWindowSettings::setUseCompact
static void setUseCompact(bool v)
Set Use a compact variant of the chat style for chatrooms.
Definition: kopetechatwindowsettings.h:115
KopeteChatWindowSettings
Definition: kopetechatwindowsettings.h:13
KopeteChatWindowSettings::setStyleName
static void setStyleName(const QString &v)
Set Name of a Adium/Kopete chat window style.
Definition: kopetechatwindowsettings.h:32
KopeteChatWindowSettings::useCompactItem
ItemBool * useCompactItem()
Get Item object corresponding to useCompact()
Definition: kopetechatwindowsettings.h:133
KConfigSkeleton
KopeteChatWindowSettings::chatFontItem
ItemFont * chatFontItem()
Get Item object corresponding to chatFont()
Definition: kopetechatwindowsettings.h:336
KopeteChatWindowSettings::mChatBackgroundColor
QColor mChatBackgroundColor
Definition: kopetechatwindowsettings.h:378
KopeteChatWindowSettings::mStyleVariant
QString mStyleVariant
Definition: kopetechatwindowsettings.h:371
KopeteChatWindowSettings::chatTextColor
static QColor chatTextColor()
Get Chat text color.
Definition: kopetechatwindowsettings.h:241
KopeteChatWindowSettings::highlightForegroundColor
static QColor highlightForegroundColor()
Get Text color used when highlighting.
Definition: kopetechatwindowsettings.h:154
KopeteChatWindowSettings::styleVariantItem
ItemString * styleVariantItem()
Get Item object corresponding to styleVariant()
Definition: kopetechatwindowsettings.h:79
KopeteChatWindowSettings::chatFmtOverrideItem
ItemBool * chatFmtOverrideItem()
Get Item object corresponding to chatFmtOverride()
Definition: kopetechatwindowsettings.h:220
KopeteChatWindowSettings::chatFont
static QFont chatFont()
Get Chat font.
Definition: kopetechatwindowsettings.h:328
KopeteChatWindowSettings::setChatBackgroundColor
static void setChatBackgroundColor(const QColor &v)
Set Chat background color.
Definition: kopetechatwindowsettings.h:258
KopeteChatWindowSettings::chatFmtOverride
static bool chatFmtOverride()
Get Disable custom formatting set by users.
Definition: kopetechatwindowsettings.h:212
KopeteChatWindowSettings::setChatLinkColor
static void setChatLinkColor(const QColor &v)
Set Chat link color.
Definition: kopetechatwindowsettings.h:287
KopeteChatWindowSettings::mHighlightBackgroundColor
QColor mHighlightBackgroundColor
Definition: kopetechatwindowsettings.h:375
KopeteChatWindowSettings::setChatFont
static void setChatFont(const QFont &v)
Set Chat font.
Definition: kopetechatwindowsettings.h:316
KopeteChatWindowSettings::groupConsecutiveMessagesItem
ItemBool * groupConsecutiveMessagesItem()
Get Item object corresponding to groupConsecutiveMessages()
Definition: kopetechatwindowsettings.h:106
KopeteChatWindowSettings::chatBackgroundColor
static QColor chatBackgroundColor()
Get Chat background color.
Definition: kopetechatwindowsettings.h:270
KopeteChatWindowSettings::mUseCompact
bool mUseCompact
Definition: kopetechatwindowsettings.h:373
KopeteChatWindowSettings::styleVariant
static QString styleVariant()
Get Relative path to a CSS variant for the current style.
Definition: kopetechatwindowsettings.h:71
KopeteChatWindowSettings::highlightBackgroundColor
static QColor highlightBackgroundColor()
Get Background color used when highlighting.
Definition: kopetechatwindowsettings.h:183
KopeteChatWindowSettings::styleName
static QString styleName()
Get Name of a Adium/Kopete chat window style.
Definition: kopetechatwindowsettings.h:44
KopeteChatWindowSettings::setGroupConsecutiveMessages
static void setGroupConsecutiveMessages(bool v)
Set Group consecutive messages from the same user as one block.
Definition: kopetechatwindowsettings.h:88
KopeteChatWindowSettings::chatLinkColor
static QColor chatLinkColor()
Get Chat link color.
Definition: kopetechatwindowsettings.h:299
KopeteChatWindowSettings::mChatFmtOverride
bool mChatFmtOverride
Definition: kopetechatwindowsettings.h:376
KopeteChatWindowSettings::mGroupConsecutiveMessages
bool mGroupConsecutiveMessages
Definition: kopetechatwindowsettings.h:372
KopeteChatWindowSettings::mChatFont
QFont mChatFont
Definition: kopetechatwindowsettings.h:380
KopeteChatWindowSettings::chatBackgroundColorItem
ItemColor * chatBackgroundColorItem()
Get Item object corresponding to chatBackgroundColor()
Definition: kopetechatwindowsettings.h:278
KopeteChatWindowSettings::setHighlightBackgroundColor
static void setHighlightBackgroundColor(const QColor &v)
Set Background color used when highlighting.
Definition: kopetechatwindowsettings.h:171
KopeteChatWindowSettings::setChatFmtOverride
static void setChatFmtOverride(bool v)
Set Disable custom formatting set by users.
Definition: kopetechatwindowsettings.h:200
KopeteChatWindowSettings::mStyleName
QString mStyleName
Definition: kopetechatwindowsettings.h:370
KopeteChatWindowSettings::chatLinkColorItem
ItemColor * chatLinkColorItem()
Get Item object corresponding to chatLinkColor()
Definition: kopetechatwindowsettings.h:307
KopeteChatWindowSettings::mHighlightForegroundColor
QColor mHighlightForegroundColor
Definition: kopetechatwindowsettings.h:374
KopeteChatWindowSettings::mChatLinkColor
QColor mChatLinkColor
Definition: kopetechatwindowsettings.h:379
KopeteChatWindowSettings::groupConsecutiveMessages
static bool groupConsecutiveMessages()
Get Group consecutive messages from the same user as one block.
Definition: kopetechatwindowsettings.h:98
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal