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

granatier

  • sources
  • kde-4.14
  • kdegames
  • granatier
  • src
  • config
arenaselector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Mathias Kraus <k.hias@gmx.de>
3  Copyright (C) 2006 Mauricio Piacentini <mauricio@tabuleiro.com>
4  Copyright (C) 2007 Matt Williams <matt@milliams.com>
5 
6  This library is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef ARENASELECTOR_H
22 #define ARENASELECTOR_H
23 
24 #include <QtGui/QWidget>
25 
26 class KConfigSkeleton;
27 class ArenaSelectorPrivate;
28 
46 class ArenaSelector : public QWidget
47 {
48 Q_OBJECT
49 public:
51  enum Option {
52  DefaultBehavior = 0,
55  EnableNewStuffDownload = 1 << 0
56  };
57  Q_DECLARE_FLAGS(Options, Option)
58 
59 
68  ArenaSelector(QWidget* parent, KConfigSkeleton* aconfig, QStringList* randomArenaModeArenaList, Options options = DefaultBehavior, const QString& groupName = QLatin1String("Arena"), const QString& directory = QLatin1String("arenas"));
69  virtual ~ArenaSelector();
70 
71 protected:
76  void resizeEvent(QResizeEvent* p_event);
77 
82  void showEvent(QShowEvent* p_event);
83 
84 private:
85  class Private;
86  Private* const d;
87 
88  Q_DISABLE_COPY(ArenaSelector)
89 
90  Q_PRIVATE_SLOT(d, void _k_updatePreview(QListWidgetItem* currentItem = NULL))
91  Q_PRIVATE_SLOT(d, void _k_updateArenaList(const QString&))
92  Q_PRIVATE_SLOT(d, void _k_openKNewStuffDialog())
93  Q_PRIVATE_SLOT(d, void _k_importArenasDialog())
94  Q_PRIVATE_SLOT(d, void _k_setRandomArenaMode(bool randomModeEnabled))
95  Q_PRIVATE_SLOT(d, void _k_updateRandomArenaModeArenaList(QListWidgetItem* item))
96 };
97 
98 #endif
QResizeEvent
QWidget
ArenaSelector::EnableNewStuffDownload
Enable downloading of additional themes with KNewStuff3.
Definition: arenaselector.h:55
ArenaSelector::DefaultBehavior
Definition: arenaselector.h:52
QListWidgetItem
KConfigSkeleton
ArenaSelector::Option
Option
Flags which control the behavior of ArenaSelector.
Definition: arenaselector.h:51
ArenaSelector::resizeEvent
void resizeEvent(QResizeEvent *p_event)
Resizes the items when the view is resized.
Definition: arenaselector.cpp:91
QShowEvent
Arena
This class represents the Arena of the game.
Definition: arena.h:36
QString
QStringList
ArenaSelector::showEvent
void showEvent(QShowEvent *p_event)
Resizes the items when the view is showed.
Definition: arenaselector.cpp:96
QLatin1String
ArenaSelector
A widget used to select the game's arena.
Definition: arenaselector.h:46
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:10 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