• 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
playerselectoritem.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Mathias Kraus <k.hias@gmx.de>
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef PLAYERSELECTORITEM_H
19 #define PLAYERSELECTORITEM_H
20 
21 #include <QtGui/QWidget>
22 
23 class PlayerSettings;
24 class QCheckBox;
25 class QLabel;
26 class KLineEdit;
27 class KKeySequenceWidget;
28 
29 class PlayerSelectorItem : public QWidget
30 {
31  Q_OBJECT
32 
33 private:
34  QCheckBox* m_selectCheckBox;
35 
36  KLineEdit* m_playerName;
37  QPixmap* m_playerPreviewPixmap;
38  QPixmap* m_playerPreviewPixmapAlphaChannel;
39 
40  QLabel* m_playerPreviewPixmapLabel;
41  QLabel* m_playerAuthor;
42 
43  KKeySequenceWidget* m_moveLeft;
44  KKeySequenceWidget* m_moveUp;
45  KKeySequenceWidget* m_moveRight;
46  KKeySequenceWidget* m_moveDown;
47  KKeySequenceWidget* m_dropBomb;
48 
49  QLabel* m_labelMoveLeft;
50  QLabel* m_labelMoveUp;
51  QLabel* m_labelMoveRight;
52  QLabel* m_labelMoveDown;
53  QLabel* m_labelDropBomb;
54 
55  QString m_playerId;
56  //don't delete this, it's just a pointer to the real settings
57  PlayerSettings* m_playerSettings;
58 
59 public:
60  PlayerSelectorItem(const QString& playerId, PlayerSettings* playerSettings, QWidget* parent = 0);
61  ~PlayerSelectorItem();
62 
63  void setPlayerPreviewPixmap(const QPixmap& pixmap);
64  void setPlayerAuthor(const QString& name, const QString& mail);
65 
66 private slots:
67  void selectionChanged(bool selectionState);
68  void settingsChanged();
69 
70 };
71 
72 #endif //PLAYERSELECTORITEM_H
73 
PlayerSelectorItem::~PlayerSelectorItem
~PlayerSelectorItem()
Definition: playerselectoritem.cpp:126
QWidget
PlayerSelectorItem::setPlayerAuthor
void setPlayerAuthor(const QString &name, const QString &mail)
Definition: playerselectoritem.cpp:159
PlayerSelectorItem::setPlayerPreviewPixmap
void setPlayerPreviewPixmap(const QPixmap &pixmap)
Definition: playerselectoritem.cpp:149
PlayerSelectorItem
Definition: playerselectoritem.h:29
QObject::name
const char * name() const
QCheckBox
PlayerSelectorItem::PlayerSelectorItem
PlayerSelectorItem(const QString &playerId, PlayerSettings *playerSettings, QWidget *parent=0)
Definition: playerselectoritem.cpp:33
PlayerSettings
Definition: playersettings.h:27
QString
QPixmap
QLabel
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