diff 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
line wrap: on
line diff
--- a/base/CommandHistory.h	Wed Mar 15 18:11:23 2006 +0000
+++ b/base/CommandHistory.h	Thu Mar 16 18:46:00 2006 +0000
@@ -60,17 +60,23 @@
     void addCommand(Command *command, bool execute = true);
     
     /// Return the maximum number of items in the undo history.
-    int undoLimit() { return m_undoLimit; }
+    int getUndoLimit() const { return m_undoLimit; }
 
     /// Set the maximum number of items in the undo history.
     void setUndoLimit(int limit);
 
     /// Return the maximum number of items in the redo history.
-    int redoLimit() { return m_redoLimit; }
+    int getRedoLimit() const { return m_redoLimit; }
 
     /// Set the maximum number of items in the redo history.
     void setRedoLimit(int limit);
     
+    /// Return the maximum number of items visible in undo and redo menus.
+    int getMenuLimit() const { return m_menuLimit; }
+
+    /// Set the maximum number of items in the menus.
+    void setMenuLimit(int limit);
+
     /// Start recording commands to batch up into a single compound command.
     void startCompoundOperation(QString name, bool execute);
 
@@ -148,6 +154,7 @@
 
     int m_undoLimit;
     int m_redoLimit;
+    int m_menuLimit;
     int m_savedAt;
 
     MacroCommand *m_currentMacro;