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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • settings
  • kgametheme
kgametheme.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2007 Mauricio Piacentini <mauricio@tabuleiro.com>
3  Copyright (C) 2007 Matt Williams <matt@milliams.com>
4 
5  This library 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 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KGAMETHEME_H
21 #define KGAMETHEME_H
22 
23 
24 #include <QtCore/QString>
25 
26 class KGameThemePrivate;
27 class QPixmap;
28 
42 class KGameTheme
43 {
44 public:
45  KGameTheme(const QString &themeGroup = QLatin1String("KGameTheme"));
46  virtual ~KGameTheme();
47 
52  virtual bool loadDefault();
63  virtual bool load(const QString &file);
65  QString path() const;
67  QString fileName() const;
69  virtual QString graphics() const;
71  QString property(const QString &key) const;
73  QPixmap preview() const;
83  virtual QString themeProperty(const QString &key) const;
84 
85 private:
86  friend class KGameThemePrivate;
87  KGameThemePrivate *const d;
88 };
89 
90 #endif
KGameTheme::KGameTheme
KGameTheme(const QString &themeGroup=QLatin1String("KGameTheme"))
Definition: kgametheme.cpp:47
KGameTheme::KGameThemePrivate
friend class KGameThemePrivate
Definition: kgametheme.h:86
KGameTheme::path
QString path() const
Definition: kgametheme.cpp:139
KGameTheme::themeProperty
virtual QString themeProperty(const QString &key) const
Possible keys:
Definition: kgametheme.cpp:175
KGameTheme
Class for loading theme files.
Definition: kgametheme.h:42
KGameTheme::graphics
virtual QString graphics() const
Definition: kgametheme.cpp:157
KGameTheme::~KGameTheme
virtual ~KGameTheme()
Definition: kgametheme.cpp:54
KGameTheme::fileName
QString fileName() const
Definition: kgametheme.cpp:148
QString
QPixmap
KGameTheme::load
virtual bool load(const QString &file)
Load a specific theme file.
Definition: kgametheme.cpp:67
QLatin1String
KGameTheme::preview
QPixmap preview() const
Definition: kgametheme.cpp:166
KGameTheme::loadDefault
virtual bool loadDefault()
Load the default theme file.
Definition: kgametheme.cpp:59
KGameTheme::property
QString property(const QString &key) const
Definition: kgametheme.cpp:128
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

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

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