• 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
csshelper.cpp
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 2005 Volker Krause <vkrause@kde.org>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  You should have received a copy of the GNU General Public License
10  along with this program; if not, write to the Free Software Foundation,
11  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
12 */
13 
14 #include "csshelper.h"
15 #include "knglobals.h"
16 #include "settings.h"
17 
18 
19 KNode::CSSHelper::CSSHelper( const QPaintDevice *pd ) :
20  MessageViewer::CSSHelperBase( pd )
21 {
22  mForegroundColor = knGlobals.settings()->textColor();
23  mLinkColor = knGlobals.settings()->linkColor();
24  mVisitedLinkColor = knGlobals.settings()->linkColor();
25  mBackgroundColor = knGlobals.settings()->backgroundColor();
26  for ( int i = 0; i < 3; ++i )
27  mQuoteColor[i] = knGlobals.settings()->quoteColor( i );
28 
29  cHtmlWarning = knGlobals.settings()->htmlWarningColor();
30  cPgpOk1H = knGlobals.settings()->signOkKeyOkColor();
31  cPgpOk0H = knGlobals.settings()->signOkKeyBadColor();
32  cPgpWarnH = knGlobals.settings()->signWarnColor();
33  cPgpErrH = knGlobals.settings()->signErrColor();
34 
35  mBodyFont = mPrintFont = knGlobals.settings()->articleFont();
36  mFixedFont = mFixedPrintFont = knGlobals.settings()->articleFixedFont();
37 
38  recalculatePGPColors();
39 }
KNode::CSSHelper::CSSHelper
CSSHelper(const QPaintDevice *pd)
Definition: csshelper.cpp:19
knglobals.h
settings.h
knGlobals
#define knGlobals
Keep compatibility with the old way.
Definition: knglobals.h:28
csshelper.h
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