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

klettres

  • sources
  • kde-4.14
  • kdeedu
  • klettres
  • src
kltheme.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) Copyright (C) 2007 Pino Toscano <pino@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  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18  ***************************************************************************/
19 
20 #ifndef KLTHEME_H
21 #define KLTHEME_H
22 #include <QSize>
23 #include <QColor>
24 #include <QRect>
25 
26 class KLTheme
27 {
28 public:
29  KLTheme();
30  virtual ~KLTheme();
31 
32 
33  virtual QString name() const = 0;
34  virtual QString uiName() const = 0;
35  virtual QString svgFileName() const = 0;
37  virtual QColor letterColor() const = 0;
39  virtual QColor backgroundInputColor() const = 0;
41  virtual QColor letterInputColor() const = 0;
42  virtual QRect wordRect(const QSize& windowsize) const = 0;
43  virtual QRect inputRect(const QSize& windowsize) const = 0;
44 };
45 
46 class KLThemeFactory
47 {
48 public:
49  static KLThemeFactory* instance();
50  ~KLThemeFactory();
51 
52  KLTheme* buildTheme(int id) const;
53  QStringList themeList() const;
54 
55 private:
56  KLThemeFactory();
57 };
58 
59 #endif
KLTheme::letterInputColor
virtual QColor letterInputColor() const =0
returns the color for the letter in the LineEdit box
KLTheme::inputRect
virtual QRect inputRect(const QSize &windowsize) const =0
KLThemeFactory
Definition: kltheme.h:46
KLTheme::uiName
virtual QString uiName() const =0
QRect
KLThemeFactory::~KLThemeFactory
~KLThemeFactory()
Definition: kltheme.cpp:244
KLTheme::name
virtual QString name() const =0
KLTheme::backgroundInputColor
virtual QColor backgroundInputColor() const =0
returns the color for the background of the LineEdit box
KLTheme::letterColor
virtual QColor letterColor() const =0
returns the color for displaying the letter/syllable
QString
QColor
KLThemeFactory::themeList
QStringList themeList() const
Definition: kltheme.cpp:269
QStringList
QSize
KLThemeFactory::instance
static KLThemeFactory * instance()
Definition: kltheme.cpp:234
KLTheme::wordRect
virtual QRect wordRect(const QSize &windowsize) const =0
KLThemeFactory::buildTheme
KLTheme * buildTheme(int id) const
Definition: kltheme.cpp:248
KLTheme::~KLTheme
virtual ~KLTheme()
Definition: kltheme.cpp:29
KLTheme
Definition: kltheme.h:26
KLTheme::KLTheme
KLTheme()
Definition: kltheme.cpp:25
KLTheme::svgFileName
virtual QString svgFileName() const =0
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

klettres

Skip menu "klettres"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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