#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>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. | |
|
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.
|
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.
|
static |
Maps a height that is given as number of rows of cards to the actual height, given in pixels.
| rows | Rows of cards |