src/history.h

changeset 504
6a1fa662bfc1
parent 498
791c831c8020
child 538
2f85d4d286e5
equal deleted inserted replaced
503:bebe09014dd6 504:6a1fa662bfc1
35 { PROPERTY (long, pos, setPos) 35 { PROPERTY (long, pos, setPos)
36 PROPERTY (LDFile*, file, setFile) 36 PROPERTY (LDFile*, file, setFile)
37 READ_PROPERTY (bool, opened, setOpened) 37 READ_PROPERTY (bool, opened, setOpened)
38 38
39 public: 39 public:
40 typedef List<AbstractHistoryEntry*> Changeset; 40 typedef QList<AbstractHistoryEntry*> Changeset;
41 41
42 enum Type 42 enum Type
43 { Del, 43 { Del,
44 Edit, 44 Edit,
45 Add, 45 Add,
70 { return m_changesets[pos]; 70 { return m_changesets[pos];
71 } 71 }
72 72
73 private: 73 private:
74 Changeset m_currentArchive; 74 Changeset m_currentArchive;
75 List<Changeset> m_changesets; 75 QList<Changeset> m_changesets;
76 }; 76 };
77 77
78 // ============================================================================= 78 // =============================================================================
79 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 79 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
80 // ============================================================================= 80 // =============================================================================
158 // ============================================================================= 158 // =============================================================================
159 class MoveHistory : public AbstractHistoryEntry 159 class MoveHistory : public AbstractHistoryEntry
160 { public: 160 { public:
161 IMPLEMENT_HISTORY_TYPE (Move) 161 IMPLEMENT_HISTORY_TYPE (Move)
162 162
163 List<int> indices; 163 QList<int> indices;
164 vertex dest; 164 vertex dest;
165 165
166 MoveHistory (List<int> indices, vertex dest) : 166 MoveHistory (QList<int> indices, vertex dest) :
167 indices (indices), 167 indices (indices),
168 dest (dest) {} 168 dest (dest) {}
169 }; 169 };
170 170
171 class SwapHistory : public AbstractHistoryEntry 171 class SwapHistory : public AbstractHistoryEntry

mercurial