src/history.h

changeset 497
c51941e590b6
parent 493
16766ac1bbd9
child 498
791c831c8020
equal deleted inserted replaced
496:d6cbf21af8fb 497:c51941e590b6
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*> list; 40 typedef List<AbstractHistoryEntry*> Changeset;
41 41
42 enum Type 42 enum Type
43 { Del, 43 { Del,
44 Edit, 44 Edit,
45 Add, 45 Add,
64 inline History& operator<< (AbstractHistoryEntry* entry) 64 inline History& operator<< (AbstractHistoryEntry* entry)
65 { add (entry); 65 { add (entry);
66 return *this; 66 return *this;
67 } 67 }
68 68
69 inline const list& changeset (long pos) const 69 inline const Changeset& changeset (long pos) const
70 { return m_changesets[pos]; 70 { return m_changesets[pos];
71 } 71 }
72 72
73 private: 73 private:
74 list m_currentArchive; 74 Changeset m_currentArchive;
75 List<list> m_changesets; 75 List<Changeset> m_changesets;
76 }; 76 };
77 77
78 // ============================================================================= 78 // =============================================================================
79 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 79 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
80 // ============================================================================= 80 // =============================================================================

mercurial