#include <view_zone_widget.h>
A QGraphicsWidget that holds a ZoneViewZone.
Some zone views allow sorting. This widget will display the sort options when relevant, and forward the values of the options to the ZoneViewZone.
◆ ZoneViewWidget()
| ZoneViewWidget::ZoneViewWidget |
( |
Player * | _player, |
|
|
CardZoneLogic * | _origZone, |
|
|
int | numberCards = 0, |
|
|
bool | _revealZone = false, |
|
|
bool | _writeableRevealZone = false, |
|
|
const QList< const ServerInfo_Card * > & | cardList = QList<const ServerInfo_Card *>(), |
|
|
bool | _isReversed = false ) |
- Parameters
-
| _player | the player the cards were revealed to. |
| _origZone | the zone the cards were revealed from. |
| numberCards | num of cards to reveal from the zone. Ex: scry the top 3 cards. Pass in a negative number to reveal the entire zone. -1 specifically will give the option to shuffle the zone upon closing the window. |
| _revealZone | if false, the cards will be face down. |
| _writeableRevealZone | whether the player can interact with the revealed cards. |
◆ closeEvent()
| void ZoneViewWidget::closeEvent |
( |
QCloseEvent * | event | ) |
|
|
overrideprotected |
◆ closePressed
◆ expandWindow
| void ZoneViewWidget::expandWindow |
( |
| ) |
|
|
privateslot |
Expands/shrinks the window, depending on the current height as well as the configured initial and expanded max heights.
◆ getPlayer()
| Player * ZoneViewWidget::getPlayer |
( |
| ) |
const |
|
inline |
◆ getZone()
◆ handleScrollBarChange
| void ZoneViewWidget::handleScrollBarChange |
( |
int | value | ) |
|
|
privateslot |
◆ initStyleOption()
| void ZoneViewWidget::initStyleOption |
( |
QStyleOption * | option | ) |
const |
|
overrideprotected |
◆ mouseDoubleClickEvent()
| void ZoneViewWidget::mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * | event | ) |
|
|
overrideprotected |
◆ moveEvent
| void ZoneViewWidget::moveEvent |
( |
QGraphicsSceneMoveEvent * | | ) |
|
|
overrideprivateslot |
◆ processGroupBy
| void ZoneViewWidget::processGroupBy |
( |
int | value | ) |
|
|
privateslot |
◆ processSetPileView
◆ processSortBy
| void ZoneViewWidget::processSortBy |
( |
int | value | ) |
|
|
privateslot |
◆ resizeEvent
| void ZoneViewWidget::resizeEvent |
( |
QGraphicsSceneResizeEvent * | event | ) |
|
|
overrideprivateslot |
◆ resizeScrollbar()
| void ZoneViewWidget::resizeScrollbar |
( |
qreal | newZoneHeight | ) |
|
|
private |
◆ resizeToZoneContents
| void ZoneViewWidget::resizeToZoneContents |
( |
bool | forceInitialHeight = false | ) |
|
|
privateslot |
◆ retranslateUi()
| void ZoneViewWidget::retranslateUi |
( |
| ) |
|
◆ zoneDeleted
| void ZoneViewWidget::zoneDeleted |
( |
| ) |
|
|
privateslot |
◆ canBeShuffled
| bool ZoneViewWidget::canBeShuffled |
|
private |
◆ closeButton
| QPushButton* ZoneViewWidget::closeButton |
|
private |
◆ extraHeight
| int ZoneViewWidget::extraHeight |
|
private |
◆ groupBySelector
| QComboBox ZoneViewWidget::groupBySelector |
|
private |
◆ pileViewCheckBox
| QCheckBox ZoneViewWidget::pileViewCheckBox |
|
private |
◆ player
| Player* ZoneViewWidget::player |
|
private |
◆ scrollBar
| QScrollBar* ZoneViewWidget::scrollBar |
|
private |
◆ scrollBarProxy
◆ searchEdit
| QLineEdit ZoneViewWidget::searchEdit |
|
private |
◆ shuffleCheckBox
| QCheckBox ZoneViewWidget::shuffleCheckBox |
|
private |
◆ sortBySelector
| QComboBox ZoneViewWidget::sortBySelector |
|
private |
◆ zone
◆ zoneContainer
| QGraphicsWidget* ZoneViewWidget::zoneContainer |
|
private |
The documentation for this class was generated from the following files: