• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkdegames

kcarddialog.h

Go to the documentation of this file.
00001 /*
00002     This file is part of the KDE games library
00003     Copyright 2008 Andreas Pakulat <apaku@gmx.de>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 #ifndef __KCARDDIALOG_H_
00020 #define __KCARDDIALOG_H_
00021 
00022 #include <QtGui/QWidget>
00023 #include <kdialog.h>
00024 #include <kconfig.h>
00025 
00026 #include <libkdegames_export.h>
00027 
00028 class QListWidgetItem;
00029 class KCardWidgetPrivate;
00030 class KCardWidget;
00031 
00055 class KDEGAMES_EXPORT KCardDialog : public KDialog
00056 {
00057   Q_OBJECT
00058 public:
00059   KCardDialog(KCardWidget* widget);
00060 };
00061 
00086 class KDEGAMES_EXPORT KCardWidget : public QWidget
00087 {
00088   Q_OBJECT
00089 
00090 public:
00091 
00097    KCardWidget (QWidget* parent = NULL);
00098 
00103    void readSettings(const KConfigGroup& group);
00104 
00108    ~KCardWidget();
00109 
00114    void saveSettings(KConfigGroup& group) const;
00115 
00120    void setBackName(const QString& name);
00121 
00126    QString backName() const;
00127 
00132    bool isLocked() const;
00133 
00138    bool isFixedSizeAllowed() const;
00139 
00144    void setFrontName(const QString& name);
00145 
00150    QString frontName() const;
00151 
00152 public Q_SLOTS:
00158    void setFixedSizeAllowed(bool fixedSizeAllowed);
00159 
00166    void setLocked(bool locked);
00167 
00168 protected:
00169     void insertCardIcons();
00170 
00174     void insertDeckIcons();
00175 
00179     void setupGUI();
00180 
00181 protected Q_SLOTS:
00185     void updateFront();
00186 
00192     void updateBack();
00193 
00194 private:
00198    KCardWidgetPrivate* const d;
00199 };
00200 
00201 #endif

libkdegames

Skip menu "libkdegames"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • kblackbox
  • kgoldrunner
  • kmahjongg
  • ksquares
  • libkdegames
  •   highscore
  •   kgame
  •   kggzgames
  •   kggzmod
  •   kggznet
  • libkmahjongg
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal