Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-25 16:56:25 +0000
committerStijn Buys <ingar@osirion.org>2012-02-25 16:56:25 +0000
commite10c0a7602c612993e6b99348bab507b7def0881 (patch)
tree2d863e946024fc3560221bedcddb149b253b4918 /src/entitywidget.h
parent01f671303b75f3e4c683e3ff47b7ee120f0cda12 (diff)
Add entity manipulator widget, added support for editing entity angles.
Diffstat (limited to 'src/entitywidget.h')
-rw-r--r--src/entitywidget.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/entitywidget.h b/src/entitywidget.h
index 1bdfb93..2eb1a42 100644
--- a/src/entitywidget.h
+++ b/src/entitywidget.h
@@ -34,6 +34,10 @@ public:
return &entitywidget_entityproperties;
}
+ inline const bool selected() const {
+ return is_selected;
+ }
+
signals:
/**
* @brief this signal is emitted if the entity is clicked with the left mouse button
@@ -41,9 +45,19 @@ signals:
void clicked(EntityWidget *entity);
/**
+ * @brief this signal is emitted when the entity is first dragged
+ * */
+ void dragStart();
+
+ /**
+ * @brief this signal is emitted when the entity stops being dragged
+ * */
+ void dragStop();
+
+ /**
* @brief this signal is emitted if the entity is dragged
* */
- void dragged(EntityWidget *entity, int x, int y);
+ void dragMove(EntityWidget *entity, int x, int y);
public slots: