aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-08-14 10:08:31 +0000
committerBibiko <bibiko@eva.mpg.de>2009-08-14 10:08:31 +0000
commit1fdf6898c1750fc0af72d9919cf370855f6a5bf2 (patch)
tree5df8cf5736a6311d712bbd29c844eec87a27b9f2 /Source/SPFieldEditorController.h
parentf0985197a759c5e6dcc1d60b71f2652f701da805 (diff)
downloadsequelpro-1fdf6898c1750fc0af72d9919cf370855f6a5bf2.tar.gz
sequelpro-1fdf6898c1750fc0af72d9919cf370855f6a5bf2.tar.bz2
sequelpro-1fdf6898c1750fc0af72d9919cf370855f6a5bf2.zip
• added to the SPFieldEditorController's text editor view its own undoManager which runs in the same modal run loop
- RETURN or a ' ' forms a undo group - undo groups will be formed after 5 run loops (to form longer block while writing quickly) Note: Has to be tested and fine-tuned if necessary
Diffstat (limited to 'Source/SPFieldEditorController.h')
-rw-r--r--Source/SPFieldEditorController.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPFieldEditorController.h b/Source/SPFieldEditorController.h
index a330108e..e5fbb0e3 100644
--- a/Source/SPFieldEditorController.h
+++ b/Source/SPFieldEditorController.h
@@ -51,10 +51,13 @@
int counter;
unsigned long long maxTextLength;
BOOL editTextViewWasChanged;
+ BOOL allowUndo;
NSUserDefaults *prefs;
int editSheetReturnCode;
+
+ NSUndoManager *esUndoManager;
}
- (IBAction)closeEditSheet:(id)sender;