• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames

KGameThemeSelector Class Reference

#include <kgamethemeselector.h>

Inheritance diagram for KGameThemeSelector:

Inheritance graph
[legend]

List of all members.


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 45 of file kgamethemeselector.h.


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 ()

Member Enumeration Documentation

enum KGameThemeSelector::NewStuffState

Enumerator:
NewStuffDisableDownload 
NewStuffEnableDownload 

Definition at line 49 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:
groupName the title of the config group in the theme .desktop file
directory subdirectory (of share/apps/appname) to search in
Returns:
true if the theme files and properties could be loaded

Definition at line 50 of file kgamethemeselector.cpp.

KGameThemeSelector::~KGameThemeSelector (  )  [virtual]

Definition at line 58 of file kgamethemeselector.cpp.


The documentation for this class was generated from the following files:
  • kgamethemeselector.h
  • kgamethemeselector.cpp

libkdegames

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

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal