KGameThemeSelector Class Reference

#include <kgamethemeselector.h>

Collaboration diagram for KGameThemeSelector:

Collaboration graph
[legend]

List of all members.

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"))
 Load a specific theme file.
virtual ~KGameThemeSelector ()

Classes

class  KGameThemeSelectorPrivate


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.


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.

References KGameThemeSelector::KGameThemeSelectorPrivate::groupName, KGameThemeSelector::KGameThemeSelectorPrivate::lookupDirectory, and KGameThemeSelector::KGameThemeSelectorPrivate::setupData().

Here is the call graph for this function:

KGameThemeSelector::~KGameThemeSelector (  )  [virtual]

Definition at line 58 of file kgamethemeselector.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 08:03:23 2008 for Libkdegames by  doxygen 1.5.3