* 1/3 Add .clang-format file and travis compilation check * 2/3 Run clang-format * 3/3 Fix compilation problems due to include reordering * 3bis/3 AfterControlStatement: false
27 lines
617 B
C++
27 lines
617 B
C++
#ifndef SELECTZONE_H
|
|
#define SELECTZONE_H
|
|
|
|
#include "cardzone.h"
|
|
|
|
class SelectZone : public CardZone
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
QPointF selectionOrigin;
|
|
|
|
protected:
|
|
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
|
|
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
|
|
|
|
public:
|
|
SelectZone(Player *_player,
|
|
const QString &_name,
|
|
bool _hasCardAttr,
|
|
bool _isShufflable,
|
|
bool _contentsKnown,
|
|
QGraphicsItem *parent = 0,
|
|
bool isView = false);
|
|
};
|
|
|
|
#endif
|