Mercurial > hg > svcore
comparison base/CommandHistory.h @ 46:5364a9d338a2
* Add Insert Instant function in main window
* Ensure selections and window geometry are saved in session file
* Add wait cursor on session file save
* Various improvements to display of texts in pane (clearer readability)
* Use commands for setting properties on layers and panes
(still need to batch up multiple sets on the same property)
* Fix failure of spectrogram to refresh when initial part became visible
* Some fixes & paint optimisations in View &c
* Make curve mode for time value layers work properly when resolution == 1
* Some vague improvements for time value layer vertical scale
author | Chris Cannam |
---|---|
date | Thu, 16 Mar 2006 18:46:00 +0000 |
parents | 701404725897 |
children | bac8b14ab355 |
comparison
equal
deleted
inserted
replaced
45:b11edc8b8ea0 | 46:5364a9d338a2 |
---|---|
58 void registerToolbar(QToolBar *toolbar); | 58 void registerToolbar(QToolBar *toolbar); |
59 | 59 |
60 void addCommand(Command *command, bool execute = true); | 60 void addCommand(Command *command, bool execute = true); |
61 | 61 |
62 /// Return the maximum number of items in the undo history. | 62 /// Return the maximum number of items in the undo history. |
63 int undoLimit() { return m_undoLimit; } | 63 int getUndoLimit() const { return m_undoLimit; } |
64 | 64 |
65 /// Set the maximum number of items in the undo history. | 65 /// Set the maximum number of items in the undo history. |
66 void setUndoLimit(int limit); | 66 void setUndoLimit(int limit); |
67 | 67 |
68 /// Return the maximum number of items in the redo history. | 68 /// Return the maximum number of items in the redo history. |
69 int redoLimit() { return m_redoLimit; } | 69 int getRedoLimit() const { return m_redoLimit; } |
70 | 70 |
71 /// Set the maximum number of items in the redo history. | 71 /// Set the maximum number of items in the redo history. |
72 void setRedoLimit(int limit); | 72 void setRedoLimit(int limit); |
73 | 73 |
74 /// Return the maximum number of items visible in undo and redo menus. | |
75 int getMenuLimit() const { return m_menuLimit; } | |
76 | |
77 /// Set the maximum number of items in the menus. | |
78 void setMenuLimit(int limit); | |
79 | |
74 /// Start recording commands to batch up into a single compound command. | 80 /// Start recording commands to batch up into a single compound command. |
75 void startCompoundOperation(QString name, bool execute); | 81 void startCompoundOperation(QString name, bool execute); |
76 | 82 |
77 /// Finish recording commands and store the compound command. | 83 /// Finish recording commands and store the compound command. |
78 void endCompoundOperation(); | 84 void endCompoundOperation(); |
146 CommandStack m_undoStack; | 152 CommandStack m_undoStack; |
147 CommandStack m_redoStack; | 153 CommandStack m_redoStack; |
148 | 154 |
149 int m_undoLimit; | 155 int m_undoLimit; |
150 int m_redoLimit; | 156 int m_redoLimit; |
157 int m_menuLimit; | |
151 int m_savedAt; | 158 int m_savedAt; |
152 | 159 |
153 MacroCommand *m_currentMacro; | 160 MacroCommand *m_currentMacro; |
154 bool m_executeMacro; | 161 bool m_executeMacro; |
155 void addToMacro(Command *command); | 162 void addToMacro(Command *command); |