src/editHistory.h

changeset 944
1a6f1997fcbe
parent 844
11587d419d2f
child 945
c310073e4f22
equal deleted inserted replaced
943:af81220741d9 944:1a6f1997fcbe
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 // =============================================================================

mercurial