aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-04-01 22:59:05 +0000
committerrowanbeentje <rowan@beent.je>2009-04-01 22:59:05 +0000
commit8fd7a25952b3d5317a22e14c83af06b56c32710a (patch)
tree215711b1c3be6b90011ff38c7fa658f7c2e3ae3c /Source/CMTextView.h
parentac70439744db350206de86e14209fd84e750bb64 (diff)
downloadsequelpro-8fd7a25952b3d5317a22e14c83af06b56c32710a.tar.gz
sequelpro-8fd7a25952b3d5317a22e14c83af06b56c32710a.tar.bz2
sequelpro-8fd7a25952b3d5317a22e14c83af06b56c32710a.zip
- Add autopairing support to CMTextView - many thanks to Hans-Jörg Bibiko for the original patch (see http://code.google.com/p/sequel-pro/issues/detail?id=208 for full details). Applied with slight amendments.
- Further changes to make CMTextView more standalone and reusable - autopairing and autoindenting can now be enabled/disabled and checked. - Autopairing and autoindenting moved to app preferences.
Diffstat (limited to 'Source/CMTextView.h')
-rw-r--r--Source/CMTextView.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/CMTextView.h b/Source/CMTextView.h
index e70c6ea4..761e1189 100644
--- a/Source/CMTextView.h
+++ b/Source/CMTextView.h
@@ -2,7 +2,7 @@
// CMTextView.h
// sequel-pro
//
-// Created by Carsten BlŸm.
+// Created by Carsten Blüm.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -24,9 +24,21 @@
#import <Cocoa/Cocoa.h>
@interface CMTextView : NSTextView {
+ BOOL autoindentEnabled;
+ BOOL autopairEnabled;
+ BOOL autoindentIgnoresEnter;
}
--(NSArray *)completionsForPartialWordRange:(NSRange)charRange indexOfSelectedItem:(int *)index;
--(NSArray *)keywords;
+- (BOOL) isNextCharMarkedBy:(id)attribute;
+- (BOOL) areAdjacentCharsLinked;
+- (BOOL) wrapSelectionWithPrefix:(NSString *)prefix suffix:(NSString *)suffix;
+- (NSArray *)completionsForPartialWordRange:(NSRange)charRange indexOfSelectedItem:(int *)index;
+- (NSArray *)keywords;
+- (void)setAutoindent:(BOOL)enableAutoindent;
+- (BOOL)autoindent;
+- (void)setAutoindentIgnoresEnter:(BOOL)enableAutoindentIgnoresEnter;
+- (BOOL)autoindentIgnoresEnter;
+- (void)setAutopair:(BOOL)enableAutopair;
+- (BOOL)autopair;
@end