#include <view_zone_widget.h>
|
| void | stopWindowDrag () |
| void | startWindowDrag (QGraphicsSceneMouseEvent *event) |
| QRectF | closeButtonRect (QWidget *styleWidget) const |
| QGraphicsView * | findDragView (QWidget *eventWidget) const |
| | Resolves the QGraphicsView to use for drag coordinate mapping.
|
| QPointF | calcDraggedWindowPos (const QPoint &screenPos, const QPointF &scenePos, const QPointF &buttonDownScenePos) const |
| | Calculates the desired widget position while dragging.
|
| void | resizeScrollbar (qreal newZoneHeight) |
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. |
◆ calcDraggedWindowPos()
| QPointF ZoneViewWidget::calcDraggedWindowPos |
( |
const QPoint & | screenPos, |
|
|
const QPointF & | scenePos, |
|
|
const QPointF & | buttonDownScenePos ) const |
|
private |
Calculates the desired widget position while dragging.
- Parameters
-
| screenPos | Global screen coordinates of the current mouse position |
| scenePos | Scene coordinates of the current mouse position |
| buttonDownScenePos | Scene coordinates of the initial mouse press position |
- Returns
- The new widget position in scene coordinates
◆ closeButtonRect()
| QRectF ZoneViewWidget::closeButtonRect |
( |
QWidget * | styleWidget | ) |
const |
|
private |
◆ 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.
◆ findDragView()
| QGraphicsView * ZoneViewWidget::findDragView |
( |
QWidget * | eventWidget | ) |
const |
|
private |
Resolves the QGraphicsView to use for drag coordinate mapping.
- Parameters
-
| eventWidget | QWidget that originated the mouse event |
- Returns
- The resolved QGraphicsView
◆ getPlayer()
| Player * ZoneViewWidget::getPlayer |
( |
| ) |
const |
|
inline |
◆ getZone()
◆ handleScrollBarChange
| void ZoneViewWidget::handleScrollBarChange |
( |
int | value | ) |
|
|
privateslot |
◆ initStyleOption()
| void ZoneViewWidget::initStyleOption |
( |
QStyleOption * | option | ) |
const |
|
overrideprotected |
◆ itemChange()
| QVariant ZoneViewWidget::itemChange |
( |
GraphicsItemChange | change, |
|
|
const QVariant & | value ) |
|
overrideprotected |
◆ mouseDoubleClickEvent()
| void ZoneViewWidget::mouseDoubleClickEvent |
( |
QGraphicsSceneMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
| void ZoneViewWidget::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
| void ZoneViewWidget::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * | event | ) |
|
|
overrideprotected |
◆ 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 |
( |
| ) |
|
◆ startWindowDrag()
| void ZoneViewWidget::startWindowDrag |
( |
QGraphicsSceneMouseEvent * | event | ) |
|
|
private |
◆ stopWindowDrag()
| void ZoneViewWidget::stopWindowDrag |
( |
| ) |
|
|
private |
◆ windowFrameEvent()
| bool ZoneViewWidget::windowFrameEvent |
( |
QEvent * | event | ) |
|
|
overrideprotected |
◆ zoneDeleted
| void ZoneViewWidget::zoneDeleted |
( |
| ) |
|
|
privateslot |
◆ canBeShuffled
| bool ZoneViewWidget::canBeShuffled |
|
private |
◆ draggingWindow
| bool ZoneViewWidget::draggingWindow = false |
|
private |
◆ dragStartItemPos
| QPointF ZoneViewWidget::dragStartItemPos |
|
private |
◆ dragStartScreenPos
| QPoint ZoneViewWidget::dragStartScreenPos |
|
private |
◆ dragView
| QPointer<QGraphicsView> ZoneViewWidget::dragView |
|
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: