]> git.cworth.org Git - vogl/blob - src/vogleditor/vogleditor_statetreequeryitem.h
Initial vogl checkin
[vogl] / src / vogleditor / vogleditor_statetreequeryitem.h
1 #ifndef VOGLEDITOR_STATETREEQUERYITEM_H
2 #define VOGLEDITOR_STATETREEQUERYITEM_H
3
4 #include "vogleditor_statetreeitem.h"
5
6 class vogl_query_state;
7
8 class vogleditor_stateTreeQueryItem: public vogleditor_stateTreeItem
9 {
10 public:
11     vogleditor_stateTreeQueryItem(QString name, GLuint64 handle, vogleditor_stateTreeItem* parent, const vogl_query_state* pState);
12     virtual ~vogleditor_stateTreeQueryItem()
13     {
14         m_pState = NULL;
15         m_pDiffBaseState = NULL;
16     }
17
18     void set_diff_base_state(const vogl_query_state* pBaseState);
19
20     GLuint64 get_handle() const { return m_handle; }
21
22     virtual bool hasChanged() const;
23
24 private:
25     GLuint64 m_handle;
26     const vogl_query_state* m_pState;
27     const vogl_query_state* m_pDiffBaseState;
28 };
29
30 #endif // VOGLEDITOR_STATETREEQUERYITEM_H