arenasceneelement.h
Go to the documentation of this file.
00001 #ifndef ARENASCENEELEMENT_H
00002 #define ARENASCENEELEMENT_H
00003 
00004 #include <QGraphicsScene>
00005 #include <QGraphicsPixmapItem>
00006 
00007 class ArenaElement;
00008 
00009 class ArenaSceneElement : public QObject, public QGraphicsPixmapItem
00010 {
00011     Q_OBJECT
00012 
00013 public:
00014     explicit ArenaSceneElement(ArenaElement *element);
00015 
00016     bool isEditorSample() { return m_isEditorSample; }
00017     void setIsEditorSample(bool isEditorSample);
00018 
00019     QPointF gridOffset();
00020 
00021     ArenaElement* element() const { return m_element; }
00022 
00023 public slots:
00024     void slotPosChanged(ArenaElement *element, QPoint pos);
00025     void slotRotationChanged(ArenaElement *element, int rotation);
00026 
00027 private:
00028     void mousePressEvent(QGraphicsSceneMouseEvent *event);
00029 
00030     bool m_isEditorSample;
00031     ArenaElement *m_element;
00032 };
00033 
00034 #endif // ARENASCENEELEMENT_H


hector_nist_arena_designer
Author(s): Stefan Kohlbrecher , Johannes Simon
autogenerated on Wed Oct 4 2017 03:29:29