author | harlekin <harlekin> | 2003-04-25 09:02:41 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-25 09:02:41 (UTC) |
commit | bddc2d168776bf7674f9b938f8889051fb9fa7a8 (patch) (side-by-side diff) | |
tree | 5b03d071f18e30e1b023c7bbd07c49346e1ef428 /noncore/games/solitaire/canvascardgame.h | |
parent | 25ab69ab9964a8de1c05f9ff659a4b8a820eb201 (diff) | |
download | opie-bddc2d168776bf7674f9b938f8889051fb9fa7a8.zip opie-bddc2d168776bf7674f9b938f8889051fb9fa7a8.tar.gz opie-bddc2d168776bf7674f9b938f8889051fb9fa7a8.tar.bz2 |
added patch for freecell mode by radofan, closes bug 736, i hope it helps
Diffstat (limited to 'noncore/games/solitaire/canvascardgame.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/solitaire/canvascardgame.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/games/solitaire/canvascardgame.h b/noncore/games/solitaire/canvascardgame.h index 0dfb85e..d159de6 100644 --- a/noncore/games/solitaire/canvascardgame.h +++ b/noncore/games/solitaire/canvascardgame.h @@ -57,40 +57,41 @@ public: return new CanvasCard( v, s, f, canvas() ); } virtual void readConfig( Config& cfg ) { Q_UNUSED( cfg ); } virtual void writeConfig( Config& cfg ) { Q_UNUSED( cfg ); } virtual void gameWon(); virtual bool haveWeWon() { return FALSE; } virtual bool mousePressCard(Card *card, QPoint p) { Q_UNUSED(card); Q_UNUSED(p); return FALSE; } virtual void mouseReleaseCard(Card *card, QPoint p) { Q_UNUSED(card); Q_UNUSED(p); } void cancelMoving() { moving = NULL; } void toggleSnap() { snapOn = (snapOn == TRUE) ? FALSE : TRUE; } void toggleCardsDrawn() { numberToDraw = (numberToDraw == 1) ? 3 : 1; } int cardsDrawn() { return numberToDraw; } void setNumberToDraw(int numToDraw) { this->numberToDraw = numToDraw; } void readPile( Config& cfg, CardPile *pile, QString name, int& highestZ ); protected: void contentsMousePressEvent(QMouseEvent *e); void contentsMouseReleaseEvent(QMouseEvent *e); void contentsMouseMoveEvent(QMouseEvent *e); + virtual void checkUnusable() { } //added for freecell protected: // Mouse event state variables bool moved; CanvasCard *moving; CanvasCardPile *alphaCardPile; int cardXOff, cardYOff; private: bool snapOn; int numberToDraw; }; #endif |