diff -r 8d6af951b611 -r 7d26db0be944 src/history.h --- a/src/history.h Fri Aug 02 15:57:03 2013 +0300 +++ b/src/history.h Fri Aug 02 16:33:30 2013 +0300 @@ -47,16 +47,16 @@ Swap, }; - History (); - void undo (); - void redo (); - void clear (); - void updateActions () const; + History(); + void undo(); + void redo(); + void clear(); + void updateActions() const; - void open (); - void close (); + void open(); + void close(); void add (AbstractHistoryEntry* entry); - long size () const { return m_changesets.size (); } + long size() const { return m_changesets.size(); } History& operator<< (AbstractHistoryEntry* entry) { add (entry); @@ -79,10 +79,10 @@ PROPERTY (History*, parent, setParent) public: - virtual void undo () const {} - virtual void redo () const {} - virtual ~AbstractHistoryEntry () {} - virtual History::Type getType () const { return (History::Type) 0; } + virtual void undo() const {} + virtual void redo() const {} + virtual ~AbstractHistoryEntry() {} + virtual History::Type getType() const { return (History::Type) 0; } }; // ============================================================================= @@ -103,7 +103,9 @@ IMPLEMENT_HISTORY_TYPE (Del) DelHistory (ulong idx, LDObject* obj, Type type = Other) : - m_index (idx), m_code (obj->raw ()), m_type (type) {} + m_index (idx), + m_code (obj->raw()), + m_type (type) {} }; // ============================================================================= @@ -118,7 +120,9 @@ IMPLEMENT_HISTORY_TYPE (Edit) EditHistory (ulong idx, str oldCode, str newCode) : - m_index (idx), m_oldCode (oldCode), m_newCode (newCode) {} + m_index (idx), + m_oldCode (oldCode), + m_newCode (newCode) {} }; // ============================================================================= @@ -139,7 +143,9 @@ IMPLEMENT_HISTORY_TYPE (Add) AddHistory (ulong idx, LDObject* obj, Type type = Other) : - m_index (idx), m_code (obj->raw ()), m_type (type) {} + m_index (idx), + m_code (obj->raw()), + m_type (type) {} }; // ============================================================================= @@ -153,16 +159,18 @@ vertex dest; MoveHistory (List indices, vertex dest) : - indices (indices), dest (dest) {} + indices (indices), + dest (dest) {} }; -class SwapHistory : public AbstractHistoryEntry -{ +class SwapHistory : public AbstractHistoryEntry { public: - IMPLEMENT_HISTORY_TYPE( Swap ) + IMPLEMENT_HISTORY_TYPE (Swap) ulong a, b; - SwapHistory( ulong a, ulong b ) : a( a ), b( b ) {} + SwapHistory (ulong a, ulong b) : + a (a), + b (b) {} }; #endif // HISTORY_H \ No newline at end of file