comparison widgets/CommandHistory.h @ 502:73a58a4dfebd

* Add vestigial Activity Log
author Chris Cannam
date Tue, 24 Feb 2009 14:01:42 +0000
parents e1a9e478b7f2
children 05d614f6e46d
comparison
equal deleted inserted replaced
501:08e1ccfe289c 502:73a58a4dfebd
179 * Emitted when the undo/redo stack has reached the same state at 179 * Emitted when the undo/redo stack has reached the same state at
180 * which the documentSaved slot was last called. 180 * which the documentSaved slot was last called.
181 */ 181 */
182 void documentRestored(); 182 void documentRestored();
183 183
184 /**
185 * Emitted when some activity happened (for activity logging).
186 */
187 void activity(QString);
188
184 protected: 189 protected:
185 CommandHistory(); 190 CommandHistory();
186 static CommandHistory *m_instance; 191 static CommandHistory *m_instance;
187 192
188 QAction *m_undoAction; 193 QAction *m_undoAction;
206 MacroCommand *m_currentCompound; 211 MacroCommand *m_currentCompound;
207 bool m_executeCompound; 212 bool m_executeCompound;
208 void addToCompound(Command *command, bool execute); 213 void addToCompound(Command *command, bool execute);
209 214
210 MacroCommand *m_currentBundle; 215 MacroCommand *m_currentBundle;
216 bool m_bundling;
211 QString m_currentBundleName; 217 QString m_currentBundleName;
212 QTimer *m_bundleTimer; 218 QTimer *m_bundleTimer;
213 int m_bundleTimeout; 219 int m_bundleTimeout;
214 void addToBundle(Command *command, bool execute); 220 void addToBundle(Command *command, bool execute);
215 void closeBundle(); 221 void closeBundle();