Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PhasesToolbar Class Reference

#include <phases_toolbar.h>

Inheritance diagram for PhasesToolbar:
[legend]
Collaboration diagram for PhasesToolbar:
[legend]

Public Slots

void setActivePhase (int phase)
void triggerPhaseAction (int phase)

Signals

void sendGameCommand (const ::google::protobuf::Message &command, int playerId)

Public Member Functions

 PhasesToolbar (QGraphicsItem *parent=nullptr)
QRectF boundingRect () const override
void retranslateUi ()
void setHeight (double _height)
double getWidth () const
int phaseCount () const
QString getLongPhaseName (int phase) const

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *) override

Private Slots

void phaseButtonClicked ()
void actNextTurn ()
void actUntapAll ()
void actDrawCard ()

Private Member Functions

void rearrangeButtons ()

Private Attributes

QList< PhaseButton * > buttonList
PhaseButtonnextTurnButton
double width
double height
double ySpacing
double symbolSize

Static Private Attributes

static const int buttonCount = 12
static const int spaceCount = 6
static const double marginSize = 3

Constructor & Destructor Documentation

◆ PhasesToolbar()

PhasesToolbar::PhasesToolbar ( QGraphicsItem * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ actDrawCard

void PhasesToolbar::actDrawCard ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actNextTurn

void PhasesToolbar::actNextTurn ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actUntapAll

void PhasesToolbar::actUntapAll ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ boundingRect()

QRectF PhasesToolbar::boundingRect ( ) const
nodiscardoverride
Here is the caller graph for this function:

◆ getLongPhaseName()

QString PhasesToolbar::getLongPhaseName ( int phase) const
nodiscard
Here is the caller graph for this function:

◆ getWidth()

double PhasesToolbar::getWidth ( ) const
inlinenodiscard

◆ paint()

void PhasesToolbar::paint ( QPainter * painter,
const QStyleOptionGraphicsItem * ,
QWidget *  )
overrideprotected
Here is the call graph for this function:

◆ phaseButtonClicked

void PhasesToolbar::phaseButtonClicked ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ phaseCount()

int PhasesToolbar::phaseCount ( ) const
inlinenodiscard

◆ rearrangeButtons()

void PhasesToolbar::rearrangeButtons ( )
private
Here is the caller graph for this function:

◆ retranslateUi()

void PhasesToolbar::retranslateUi ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendGameCommand

void PhasesToolbar::sendGameCommand ( const ::google::protobuf::Message & command,
int playerId )
signal
Here is the caller graph for this function:

◆ setActivePhase

void PhasesToolbar::setActivePhase ( int phase)
slot

◆ setHeight()

void PhasesToolbar::setHeight ( double _height)
Here is the call graph for this function:

◆ triggerPhaseAction

void PhasesToolbar::triggerPhaseAction ( int phase)
slot

Member Data Documentation

◆ buttonCount

const int PhasesToolbar::buttonCount = 12
staticprivate

◆ buttonList

QList<PhaseButton *> PhasesToolbar::buttonList
private

◆ height

double PhasesToolbar::height
private

◆ marginSize

const double PhasesToolbar::marginSize = 3
staticprivate

◆ nextTurnButton

PhaseButton* PhasesToolbar::nextTurnButton
private

◆ spaceCount

const int PhasesToolbar::spaceCount = 6
staticprivate

◆ symbolSize

double PhasesToolbar::symbolSize
private

◆ width

double PhasesToolbar::width
private

◆ ySpacing

double PhasesToolbar::ySpacing
private

The documentation for this class was generated from the following files: