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

parley

Public Types | Public Member Functions | List of all members
KGameThemeSelector Class Reference

#include <KGameThemeSelector>

Inheritance diagram for KGameThemeSelector:
Inheritance graph
[legend]

Public Types

enum  NewStuffState { NewStuffDisableDownload, NewStuffEnableDownload }
 

Public Member Functions

 KGameThemeSelector (QWidget *parent, KConfigSkeleton *config, KGameThemeSelector::NewStuffState knsflags=KGameThemeSelector::NewStuffEnableDownload, const QString &groupName=QLatin1String("KGameTheme"), const QString &directory=QLatin1String("themes"))
 
virtual ~KGameThemeSelector ()
 

Detailed Description

A widget used to select the game's theme.

The most common way to use the theme selector is to add it as page to a KConfigDialog

KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self());
dialog->addPage(new KGameThemeSelector(dialog, Settings::self()), i18n("Theme"), "game_theme");
dialog->show();

This will create a page in your KConfigDialog with the title "Theme" and using the "game_theme" icon. By default, the widget will search in the share/apps/appname/themes directory for .desktop files with a group called "KGameTheme".

Author
Mauricio Piacentini

Definition at line 48 of file kgamethemeselector.h.

Member Enumeration Documentation

enum KGameThemeSelector::NewStuffState
Enumerator
NewStuffDisableDownload 
NewStuffEnableDownload 

Definition at line 52 of file kgamethemeselector.h.

Constructor & Destructor Documentation

KGameThemeSelector::KGameThemeSelector ( QWidget *  parent,
KConfigSkeleton *  config,
KGameThemeSelector::NewStuffState  knsflags = KGameThemeSelector::NewStuffEnableDownload,
const QString &  groupName = QLatin1String("KGameTheme"),
const QString &  directory = QLatin1String("themes") 
)

Load a specific theme file.

Parameters
groupNamethe title of the config group in the theme .desktop file
directorysubdirectory (of share/apps/appname) to search in
Returns
true if the theme files and properties could be loaded

Definition at line 53 of file kgamethemeselector.cpp.

KGameThemeSelector::~KGameThemeSelector ( )
virtual

Definition at line 61 of file kgamethemeselector.cpp.


The documentation for this class was generated from the following files:
  • kgamethemeselector.h
  • kgamethemeselector.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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