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 |