Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
view_zone_widget.cpp File Reference
#include "view_zone_widget.h"
#include "../../client/settings/cache_settings.h"
#include "../../filters/syntax_help.h"
#include "../../interface/pixel_map_generator.h"
#include "../board/card_item.h"
#include "../game_scene.h"
#include "../player/player.h"
#include "../player/player_actions.h"
#include "view_zone.h"
#include <QCheckBox>
#include <QGraphicsLinearLayout>
#include <QGraphicsProxyWidget>
#include <QGraphicsSceneMouseEvent>
#include <QLabel>
#include <QPainter>
#include <QScrollBar>
#include <QStyleOption>
#include <libcockatrice/protocol/pb/command_shuffle.pb.h>
Include dependency graph for view_zone_widget.cpp:

Functions

static qreal rowsToHeight (int rows)
static qreal calcMaxInitialHeight ()
static qreal determineNewZoneHeight (qreal oldZoneHeight)
 Handles edge cases in determining the next default zone height. We want the height to snap when the number of rows changes, but not if the player has already expanded the window.

Function Documentation

◆ calcMaxInitialHeight()

qreal calcMaxInitialHeight ( )
static

Calculates the max initial height from the settings. The max initial height setting is given as number of rows, so we need to map it to a height.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ determineNewZoneHeight()

qreal determineNewZoneHeight ( qreal oldZoneHeight)
static

Handles edge cases in determining the next default zone height. We want the height to snap when the number of rows changes, but not if the player has already expanded the window.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowsToHeight()

qreal rowsToHeight ( int rows)
static

Maps a height that is given as number of rows of cards to the actual height, given in pixels.

Parameters
rowsRows of cards
Returns
The height in pixels
Here is the caller graph for this function: