aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-05-08 20:02:00 +0000
committerBibiko <bibiko@eva.mpg.de>2009-05-08 20:02:00 +0000
commit81a6a013c7bb5798c95ad0871308ce1768965283 (patch)
tree426e5bc46900decbece08705d24965213dc9937e /Source/CMTextView.h
parenteb5e79a58bd3a4765bc045d58a09173747aa8a56 (diff)
downloadsequelpro-81a6a013c7bb5798c95ad0871308ce1768965283.tar.gz
sequelpro-81a6a013c7bb5798c95ad0871308ce1768965283.tar.bz2
sequelpro-81a6a013c7bb5798c95ad0871308ce1768965283.zip
• added drag 'n' drop functionality to CMTextView to allow to drag a file path onto the Custom Query editor in order to insert the file content
- ⌘ + drag inserts the file name - if file's content size > 1MB it asks for confirmation - it tries to auto-detect the file's encoding (stable for UTF8/16/32, Latin1, MacRoman) - it tries to insert only plain text files (by using of the UNIX 'file -I' command) - error messages etc. are written to the console.log + NSBeep
Diffstat (limited to 'Source/CMTextView.h')
-rw-r--r--Source/CMTextView.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CMTextView.h b/Source/CMTextView.h
index a133d825..3ffa5c19 100644
--- a/Source/CMTextView.h
+++ b/Source/CMTextView.h
@@ -71,5 +71,7 @@
- (unsigned int) getLineNumberForCharacterIndex:(unsigned int)anIndex;
- (void) autoHelp;
- (void) doSyntaxHighlighting;
+- (void) insertFileContentOfFile:(NSString *)aPath;
+- (unsigned int)characterIndexOfPoint:(NSPoint)aPoint;
@end