Mercurial > hg > svcore
diff base/CommandHistory.h @ 44:701404725897
* Use commands for add/delete pane in main window
* Add compound command collection to command history (for add pane, import file
etc)
* Add hide/show pane and hidden pane list to PaneStack
* Various other fixes
author | Chris Cannam |
---|---|
date | Mon, 13 Mar 2006 17:55:19 +0000 |
parents | 2fb933f88604 |
children | 5364a9d338a2 |
line wrap: on
line diff
--- a/base/CommandHistory.h Fri Mar 10 12:28:22 2006 +0000 +++ b/base/CommandHistory.h Mon Mar 13 17:55:19 2006 +0000 @@ -28,6 +28,7 @@ #include <map> class Command; +class MacroCommand; class QAction; class QMenu; class QToolBar; @@ -70,6 +71,12 @@ /// Set the maximum number of items in the redo history. void setRedoLimit(int limit); + /// Start recording commands to batch up into a single compound command. + void startCompoundOperation(QString name, bool execute); + + /// Finish recording commands and store the compound command. + void endCompoundOperation(); + public slots: /** * Checkpoint function that should be called when the document is @@ -143,6 +150,10 @@ int m_redoLimit; int m_savedAt; + MacroCommand *m_currentMacro; + bool m_executeMacro; + void addToMacro(Command *command); + void updateActions(); void clipCommands();