mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
* Sort *every* file into a doxygen group. Took 7 hours 9 minutes Took 18 seconds Took 2 minutes * Lint some ingroup definitions. Took 10 minutes Took 2 seconds * Just include the groups in the Doxyfile in this commit. Took 3 minutes * Update some group comments so they link! Took 14 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
37 lines
743 B
C++
37 lines
743 B
C++
/**
|
|
* @file game_view.h
|
|
* @ingroup GameGraphics
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef GAMEVIEW_H
|
|
#define GAMEVIEW_H
|
|
|
|
#include <QGraphicsView>
|
|
|
|
class GameScene;
|
|
class QRubberBand;
|
|
|
|
class GameView : public QGraphicsView
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QAction *aCloseMostRecentZoneView;
|
|
QRubberBand *rubberBand;
|
|
QPointF selectionOrigin;
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
private slots:
|
|
void startRubberBand(const QPointF &selectionOrigin);
|
|
void resizeRubberBand(const QPointF &cursorPoint);
|
|
void stopRubberBand();
|
|
void refreshShortcuts();
|
|
public slots:
|
|
void updateSceneRect(const QRectF &rect);
|
|
|
|
public:
|
|
explicit GameView(GameScene *scene, QWidget *parent = nullptr);
|
|
};
|
|
|
|
#endif
|