goat3d
diff goatview/src/scenemodel.h @ 88:7941e89798e5
selections
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 15 May 2014 06:52:01 +0300 |
parents | 6d04caf510ab |
children |
line diff
1.1 --- a/goatview/src/scenemodel.h Wed May 14 18:28:38 2014 +0300 1.2 +++ b/goatview/src/scenemodel.h Thu May 15 06:52:01 2014 +0300 1.3 @@ -2,11 +2,13 @@ 1.4 #define SCENEMODEL_H_ 1.5 1.6 #include <map> 1.7 +#include <set> 1.8 #include <QtCore/QAbstractItemModel> 1.9 #include "goat3d.h" 1.10 1.11 struct SceneNodeData { 1.12 bool visible; 1.13 + bool selected; 1.14 }; 1.15 1.16 class SceneModel : public QAbstractItemModel { 1.17 @@ -15,6 +17,7 @@ 1.18 1.19 goat3d *scn; 1.20 std::map<goat3d_node*, SceneNodeData> node_data; 1.21 + std::set<goat3d_node*> selected; 1.22 1.23 public: 1.24 SceneModel(); 1.25 @@ -34,6 +37,8 @@ 1.26 bool hasChildren(const QModelIndex &parent) const; 1.27 QModelIndex index(int row, int column, const QModelIndex &parent) const; 1.28 QModelIndex parent(const QModelIndex &index) const; 1.29 + 1.30 + void selchange(const QModelIndexList &selidx); 1.31 }; 1.32 1.33 #endif // SCENEMODEL_H_