18 #ifndef _STAIRS_ITEM_HH_
19 #define _STAIRS_ITEM_HH_
32 class StairsInspectorDialog;
51 public:
virtual QVector3D GetSize()
const;
54 public:
virtual QVector3D GetScenePosition()
const;
57 public:
virtual double GetSceneRotation()
const;
61 public:
int GetSteps()
const;
64 private:
virtual void paint(QPainter *_painter,
65 const QStyleOptionGraphicsItem *_option, QWidget *_widget);
68 private:
virtual bool RotateEventFilter(
RotateHandle *_rotateHandle,
72 private:
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *_event);
75 private slots:
void OnApply();
78 private slots:
void OnOpenInspector();
81 private slots:
void OnDeleteItem();
84 public:
void StairsChanged();
87 private:
void StepsChanged();
90 private:
double stairsDepth;
93 private:
double stairsHeight;
96 private:
double stairsWidth;
99 private: QPointF stairsPos;
102 private:
double stairsElevation;
105 private:
int stairsSteps;
2D representation of a staircase.
Definition: StairsItem.hh:39
2D rectangle.
Definition: RectItem.hh:40
Handle for rotating an editor item.
Definition: RotateHandle.hh:33
Dialog for configuring a staircase item.
Definition: StairsInspectorDialog.hh:36
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393
Base class of a items that have building level properties such as the level number and level height...
Definition: BuildingItem.hh:33