src/history.h

changeset 402
ec95fc95e5f3
parent 367
3745caa5d87d
child 409
8da2563c645a
equal deleted inserted replaced
401:89a9235b47d3 402:ec95fc95e5f3
35 PROPERTY (long, pos, setPos) 35 PROPERTY (long, pos, setPos)
36 PROPERTY (LDOpenFile*, file, setFile) 36 PROPERTY (LDOpenFile*, file, setFile)
37 READ_PROPERTY (bool, opened, setOpened) 37 READ_PROPERTY (bool, opened, setOpened)
38 38
39 public: 39 public:
40 typedef vector<AbstractHistoryEntry*> list; 40 typedef List<AbstractHistoryEntry*> list;
41 41
42 enum Type { 42 enum Type {
43 Del, 43 Del,
44 Edit, 44 Edit,
45 Add, 45 Add,
67 return m_changesets[pos]; 67 return m_changesets[pos];
68 } 68 }
69 69
70 private: 70 private:
71 list m_currentArchive; 71 list m_currentArchive;
72 vector<list> m_changesets; 72 List<list> m_changesets;
73 }; 73 };
74 74
75 // ============================================================================= 75 // =============================================================================
76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
77 // ============================================================================= 77 // =============================================================================
147 // ============================================================================= 147 // =============================================================================
148 class MoveHistory : public AbstractHistoryEntry { 148 class MoveHistory : public AbstractHistoryEntry {
149 public: 149 public:
150 IMPLEMENT_HISTORY_TYPE (Move) 150 IMPLEMENT_HISTORY_TYPE (Move)
151 151
152 vector<ulong> indices; 152 List<ulong> indices;
153 vertex dest; 153 vertex dest;
154 154
155 MoveHistory (vector<ulong> indices, vertex dest) : 155 MoveHistory (List<ulong> indices, vertex dest) :
156 indices (indices), dest (dest) {} 156 indices (indices), dest (dest) {}
157 }; 157 };
158 158
159 class SwapHistory : public AbstractHistoryEntry 159 class SwapHistory : public AbstractHistoryEntry
160 { 160 {

mercurial