granatier
#include <ArenaSelector>

Public Types | |
| enum | Option { DefaultBehavior = 0, EnableNewStuffDownload = 1 << 0 } |
Public Member Functions | |
| ArenaSelector (QWidget *parent, KConfigSkeleton *aconfig, QStringList *randomArenaModeArenaList, Options options=DefaultBehavior, const QString &groupName=QLatin1String("Arena"), const QString &directory=QLatin1String("arenas")) | |
| virtual | ~ArenaSelector () |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *p_event) |
| void | showEvent (QShowEvent *p_event) |
Detailed Description
A widget used to select the game's arena.
The most common way to use the arena selector is to add it as page to a KConfigDialog
This will create a page in your KConfigDialog with the title "Arena" and using the "game_arena" icon. By default, the widget will search in the share/apps/appname/arenas directory for .desktop files with a group called "Arena".
Definition at line 46 of file arenaselector.h.
Member Enumeration Documentation
Flags which control the behavior of ArenaSelector.
| Enumerator | |
|---|---|
| DefaultBehavior | |
| EnableNewStuffDownload |
Enable downloading of additional themes with KNewStuff3. This requires a KNS3 config file to be installed for this app. |
Definition at line 51 of file arenaselector.h.
Constructor & Destructor Documentation
| ArenaSelector::ArenaSelector | ( | QWidget * | parent, |
| KConfigSkeleton * | aconfig, | ||
| QStringList * | randomArenaModeArenaList, | ||
| Options | options = DefaultBehavior, |
||
| const QString & | groupName = QLatin1String("Arena"), |
||
| const QString & | directory = QLatin1String("arenas") |
||
| ) |
Load a specific arena file.
- Parameters
-
parent the parent widget config the KConfigSceleton knsflags the hot new stuff flags groupName the title of the config group in the arena .desktop file directory subdirectory (of share/apps/appname) to search in
- Returns
- true if the arena files and properties could be loaded
Definition at line 77 of file arenaselector.cpp.
|
virtual |
Definition at line 86 of file arenaselector.cpp.
Member Function Documentation
|
protected |
Resizes the items when the view is resized.
- Parameters
-
p_event the resize event
Definition at line 91 of file arenaselector.cpp.
|
protected |
Resizes the items when the view is showed.
- Parameters
-
p_event the resize event
Definition at line 96 of file arenaselector.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference