libkdegames
kcarddialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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