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

granatier

Public Types | Public Member Functions | Protected Member Functions | List of all members
ArenaSelector Class Reference

#include <ArenaSelector>

Inheritance diagram for ArenaSelector:
Inheritance graph
[legend]

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

KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self());
dialog->addPage(new ArenaSelector(dialog, Settings::self()), i18n("Arena"), "game_arena");
dialog->show();

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".

Author
Mauricio Piacentini

Definition at line 46 of file arenaselector.h.

Member Enumeration Documentation

enum ArenaSelector::Option

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
parentthe parent widget
configthe KConfigSceleton
knsflagsthe hot new stuff flags
groupNamethe title of the config group in the arena .desktop file
directorysubdirectory (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.

ArenaSelector::~ArenaSelector ( )
virtual

Definition at line 86 of file arenaselector.cpp.

Member Function Documentation

void ArenaSelector::resizeEvent ( QResizeEvent *  p_event)
protected

Resizes the items when the view is resized.

Parameters
p_eventthe resize event

Definition at line 91 of file arenaselector.cpp.

void ArenaSelector::showEvent ( QShowEvent *  p_event)
protected

Resizes the items when the view is showed.

Parameters
p_eventthe resize event

Definition at line 96 of file arenaselector.cpp.


The documentation for this class was generated from the following files:
  • arenaselector.h
  • arenaselector.cpp
This file is part of the KDE documentation.
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.

granatier

Skip menu "granatier"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

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