Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/entitywidget.h')
-rw-r--r--src/entitywidget.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/entitywidget.h b/src/entitywidget.h
index e284650..05a5502 100644
--- a/src/entitywidget.h
+++ b/src/entitywidget.h
@@ -25,13 +25,18 @@ class EntityWidget : public QWidget
Q_OBJECT
public:
+ enum Selected {SelectNone = 0, SelectHighlight = 1, SelectActive = 2};
+
+ /**
+ * @brief default constructor with parent widget
+ * */
EntityWidget(QWidget *parent = 0);
/**
* @brief copy another EntityWidget
* */
EntityWidget(EntityWidget &entity_widget, QWidget *parent = 0);
-
+
/**
* @brief returns the entity propertie
* */
@@ -39,8 +44,8 @@ public:
return &entitywidget_entityproperties;
}
- inline const bool selected() const {
- return is_selected;
+ inline const Selected selected() const {
+ return entitywidget_selected;
}
/**
@@ -74,7 +79,7 @@ public slots:
/**
* @brief set the selected state
* */
- void set_selected(const bool selected);
+ void set_selected(Selected selected);
protected:
/**
@@ -100,7 +105,7 @@ protected:
private:
EntityProperties entitywidget_entityproperties;
- bool is_selected;
+ Selected entitywidget_selected;
bool is_dragging;
};