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