mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-29 01:53:54 -07:00
event handling
This commit is contained in:
parent
e796af2b89
commit
77015c9ebf
34 changed files with 891 additions and 855 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <QPushButton>
|
||||
|
||||
class Player;
|
||||
class GameCommand;
|
||||
|
||||
class PhaseButton : public QPushButton {
|
||||
Q_OBJECT
|
||||
|
|
@ -34,15 +35,16 @@ private:
|
|||
public:
|
||||
PhasesToolbar(QWidget *parent = 0);
|
||||
void retranslateUi();
|
||||
int phaseCount() const { return buttonList.size(); }
|
||||
public slots:
|
||||
void setActivePhase(int phase);
|
||||
private slots:
|
||||
void phaseButtonClicked();
|
||||
void actNextTurn();
|
||||
void actUntapAll();
|
||||
void actDrawCard();
|
||||
signals:
|
||||
void signalSetPhase(int phase);
|
||||
void signalNextTurn();
|
||||
void signalUntapAll();
|
||||
void signalDrawCard();
|
||||
void sendGameCommand(GameCommand *command);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue