Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
GameView Class Reference

#include <game_view.h>

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

Public Slots

void updateSceneRect (const QRectF &rect)

Public Member Functions

 GameView (GameScene *scene, QWidget *parent=nullptr)

Protected Member Functions

void resizeEvent (QResizeEvent *event) override

Private Slots

void startRubberBand (const QPointF &selectionOrigin)
void resizeRubberBand (const QPointF &cursorPoint, int selectedCount)
void stopRubberBand ()
void refreshShortcuts ()
void updateTotalSelectionCount (const QSize &viewSize=QSize())
void setFocusDisabled (bool disabled)

Private Member Functions

QSize rebuildTallyLabels (const QList< TallyRow > &entries)
void clearTallyLabels ()

Private Attributes

QAction * aCloseMostRecentZoneView
QRubberBand * rubberBand
QLabel * dragCountLabel
QLabel * totalCountLabel
QWidget * tallyContainer
QGridLayout * tallyLayout
QPointF selectionOrigin
QRect previousBandRect
 Last rubber-band rect for targeted repaint.
QList< TallyRowcachedTallyRows
 Cached entries to avoid redundant rebuilds.

Constructor & Destructor Documentation

◆ GameView()

GameView::GameView ( GameScene * scene,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ clearTallyLabels()

void GameView::clearTallyLabels ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebuildTallyLabels()

QSize GameView::rebuildTallyLabels ( const QList< TallyRow > & entries)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshShortcuts

void GameView::refreshShortcuts ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resizeEvent()

void GameView::resizeEvent ( QResizeEvent * event)
overrideprotected
Here is the call graph for this function:

◆ resizeRubberBand

void GameView::resizeRubberBand ( const QPointF & cursorPoint,
int selectedCount )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFocusDisabled

void GameView::setFocusDisabled ( bool disabled)
privateslot

Disabling focus on the game view will allow chat to maintain the autofocusing behavior of pre 2.10.3, at the cost of disabling the zone view search bar.

Here is the caller graph for this function:

◆ startRubberBand

void GameView::startRubberBand ( const QPointF & selectionOrigin)
privateslot
Here is the caller graph for this function:

◆ stopRubberBand

void GameView::stopRubberBand ( )
privateslot
Here is the caller graph for this function:

◆ updateSceneRect

void GameView::updateSceneRect ( const QRectF & rect)
slot
Here is the caller graph for this function:

◆ updateTotalSelectionCount

void GameView::updateTotalSelectionCount ( const QSize & viewSize = QSize())
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ aCloseMostRecentZoneView

QAction* GameView::aCloseMostRecentZoneView
private

◆ cachedTallyRows

QList<TallyRow> GameView::cachedTallyRows
private

Cached entries to avoid redundant rebuilds.

◆ dragCountLabel

QLabel* GameView::dragCountLabel
private

◆ previousBandRect

QRect GameView::previousBandRect
private

Last rubber-band rect for targeted repaint.

◆ rubberBand

QRubberBand* GameView::rubberBand
private

◆ selectionOrigin

QPointF GameView::selectionOrigin
private

◆ tallyContainer

QWidget* GameView::tallyContainer
private

◆ tallyLayout

QGridLayout* GameView::tallyLayout
private

◆ totalCountLabel

QLabel* GameView::totalCountLabel
private

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