106 PROPERTY (private, int, index, setIndex, STOCK_WRITE) |
106 PROPERTY (private, int, index, setIndex, STOCK_WRITE) |
107 PROPERTY (private, QString, code, setCode, STOCK_WRITE) |
107 PROPERTY (private, QString, code, setCode, STOCK_WRITE) |
108 |
108 |
109 public: |
109 public: |
110 IMPLEMENT_HISTORY_TYPE (Del) |
110 IMPLEMENT_HISTORY_TYPE (Del) |
111 DelHistory (int idx, LDObjectPtr obj); |
111 DelHistory (int idx, LDObject* obj); |
112 }; |
112 }; |
113 |
113 |
114 // ============================================================================= |
114 // ============================================================================= |
115 // |
115 // |
116 class EditHistory : public AbstractHistoryEntry |
116 class EditHistory : public AbstractHistoryEntry |
136 PROPERTY (private, QString, code, setCode, STOCK_WRITE) |
136 PROPERTY (private, QString, code, setCode, STOCK_WRITE) |
137 |
137 |
138 public: |
138 public: |
139 IMPLEMENT_HISTORY_TYPE (Add) |
139 IMPLEMENT_HISTORY_TYPE (Add) |
140 |
140 |
141 AddHistory (int idx, LDObjectPtr obj) : |
141 AddHistory (int idx, LDObject* obj) : |
142 m_index (idx), |
142 m_index (idx), |
143 m_code (obj->asText()) {} |
143 m_code (obj->asText()) {} |
144 }; |
144 }; |
145 |
145 |
146 // ============================================================================= |
146 // ============================================================================= |