summaryrefslogtreecommitdiff
path: root/noncore/games/kcheckers/field.h
Side-by-side diff
Diffstat (limited to 'noncore/games/kcheckers/field.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kcheckers/field.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/noncore/games/kcheckers/field.h b/noncore/games/kcheckers/field.h
index d929e49..297d94e 100644
--- a/noncore/games/kcheckers/field.h
+++ b/noncore/games/kcheckers/field.h
@@ -12,14 +12,31 @@ class Field:public QWidget
Q_OBJECT
public:
Field(QWidget*,int);
- void draw(QImage*);
+
+ void setFrame(QImage*);
+ void setPicture(QImage*);
+ void setPattern(QImage*);
+ void setLabel(const QString &);
+
signals:
void click(int);
+
protected:
void paintEvent(QPaintEvent*);
void mousePressEvent(QMouseEvent*);
+
private:
+ void draw();
+
int number;
+
+ // pixmap = pattern + label + picture + frame;
+
+ QImage* frame;
+ QImage* picture;
+ QImage* pattern;
+ QString label;
+
QPixmap *pixmap;
};