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

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
settings.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2005 by Volker Krause <vkrause@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  You should have received a copy of the GNU General Public License
9  along with this program; if not, write to the Free Software Foundation,
10  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
11 */
12 
13 #ifndef KNODE_SETTINGS_H
14 #define KNODE_SETTINGS_H
15 
16 #include "configuration/settings_container_interface.h"
17 #include "knode_export.h"
18 #include "settings_base.h"
19 // TODO: remove as soon as XHeader is in it's own file
20 #include "knconfig.h"
21 
22 namespace KPIMIdentities {
23  class Identity;
24 }
25 
26 
27 namespace KNode {
28 
34 class KNODE_EXPORT Settings : public SettingsBase, public SettingsContainerInterface
35 {
36  public:
38  Settings();
39 
41  QColor backgroundColor() { return effectiveColor( backgroundColorItem() ); }
43  QColor alternateBackgroundColor() { return effectiveColor( alternateBackgroundColorItem() ); }
45  QColor textColor() { return effectiveColor( textColorItem() ); }
49  QColor quoteColor( int depth ) { return effectiveColor( quoteColorItem( depth ) ); }
51  QColor linkColor() { return effectiveColor( linkColorItem() ); }
53  QColor unreadThreadColor() { return effectiveColor( unreadThreadColorItem() ); }
55  QColor readThreadColor() { return effectiveColor( readThreadColorItem() ); }
57  QColor unreadArticleColor() { return effectiveColor( unreadArticleColorItem() ); }
59  QColor readArticleColor() { return effectiveColor( readArticleColorItem() ); }
61  QColor signOkKeyOkColor() { return effectiveColor( signOkKeyOkColorItem() ); }
63  QColor signOkKeyBadColor() { return effectiveColor( signOkKeyBadColorItem() ); }
65  QColor signWarnColor() { return effectiveColor( signWarnColorItem() ); }
67  QColor signErrColor() { return effectiveColor( signErrColorItem() ); }
69  QColor htmlWarningColor() { return effectiveColor( htmlWarningColorItem() ); }
70 
72  QFont articleFont() { return effectiveFont( articleFontItem() ); }
74  QFont articleFixedFont() { return effectiveFont( articleFixedFontItem() ); }
76  QFont composerFont() { return effectiveFont( composerFontItem() ); }
78  QFont groupListFont() { return effectiveFont( groupListFontItem() ); }
80  QFont articleListFont() { return effectiveFont( articleListFontItem() ); }
81 
83  QList<XHeader> xHeaders() const { return mXHeaders; }
87  void setXHeaders( const QList<XHeader> &list ) { mXHeaders = list; }
88 
92  virtual const KPIMIdentities::Identity & identity() const;
96  virtual void setIdentity( const KPIMIdentities::Identity &identity );
97 
102  virtual void writeConfig()
103  { SettingsBase::writeConfig(); }
104 
105  protected:
107  virtual void usrReadConfig();
109  virtual void usrWriteConfig();
113  QColor effectiveColor( KConfigSkeleton::ItemColor *item ) const;
117  QFont effectiveFont( KConfigSkeleton::ItemFont *item ) const;
118 
119  private:
121  QList<XHeader> mXHeaders;
122 };
123 
124 }
125 
126 #endif
settings_base.h
KNode::Settings
Application settings.
Definition: settings.h:34
KNode::Settings::linkColor
QColor linkColor()
Returns the effective link color.
Definition: settings.h:51
KNode::Settings::signWarnColor
QColor signWarnColor()
Returns the effective color for unchecked signatures.
Definition: settings.h:65
KNode::Settings::backgroundColor
QColor backgroundColor()
Returns the effective background color.
Definition: settings.h:41
KNode::Settings::articleFixedFont
QFont articleFixedFont()
Returns the effective article fixed font.
Definition: settings.h:74
KNode::Settings::groupListFont
QFont groupListFont()
Returns the effective folder tree font.
Definition: settings.h:78
KNode::Settings::readArticleColor
QColor readArticleColor()
Returns the effective color for read articles.
Definition: settings.h:59
KNode::Settings::signOkKeyOkColor
QColor signOkKeyOkColor()
Returns the effective color for valid signatures with a trusted key.
Definition: settings.h:61
KNode::Settings::htmlWarningColor
QColor htmlWarningColor()
Returns the effective color for HTML warnings.
Definition: settings.h:69
KNode::Settings::readThreadColor
QColor readThreadColor()
Returns the effective color for read threads.
Definition: settings.h:55
KNode::Settings::quoteColor
QColor quoteColor(int depth)
Returns the effective quoting color.
Definition: settings.h:49
knode_export.h
KNode::SettingsContainerInterface
Interface for object (global settings, account and group) that contains common settings (like identit...
Definition: settings_container_interface.h:40
KNode::Settings::signOkKeyBadColor
QColor signOkKeyBadColor()
Returns the effective color for valid signatures with a untrusted key.
Definition: settings.h:63
KNode::Settings::unreadThreadColor
QColor unreadThreadColor()
Returns the effective color for unread threads.
Definition: settings.h:53
KNode::Settings::composerFont
QFont composerFont()
Returns the effective composer font.
Definition: settings.h:76
KNode::SettingsBase
Definition: settings_base.h:18
KNode::Settings::articleFont
QFont articleFont()
Returns the effective article font.
Definition: settings.h:72
settings_container_interface.h
KNode::Settings::signErrColor
QColor signErrColor()
Returns the effective color for bad signatures.
Definition: settings.h:67
KNode::Settings::alternateBackgroundColor
QColor alternateBackgroundColor()
Returns the effective alternate background color.
Definition: settings.h:43
KNode::Settings::textColor
QColor textColor()
Returns the effective text color.
Definition: settings.h:45
KNode::Settings::writeConfig
virtual void writeConfig()
Reimplemented to hide writeConfig() from SettingsContainerInterface and delegate call to SettingsBase...
Definition: settings.h:102
KNode::Settings::articleListFont
QFont articleListFont()
Returns the effective article list font.
Definition: settings.h:80
KNode::Settings::setXHeaders
void setXHeaders(const QList< XHeader > &list)
Sets the list of additional headers added to created articles.
Definition: settings.h:87
KNODE_EXPORT
#define KNODE_EXPORT
Definition: knode_export.h:35
KNode::Settings::xHeaders
QList< XHeader > xHeaders() const
Returns a list of additional headers added to created articles.
Definition: settings.h:83
KNode::Settings::unreadArticleColor
QColor unreadArticleColor()
Returns the effective color for unread articles.
Definition: settings.h:57
knconfig.h
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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