diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-05-08 20:02:00 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-05-08 20:02:00 +0000 |
commit | 81a6a013c7bb5798c95ad0871308ce1768965283 (patch) | |
tree | 426e5bc46900decbece08705d24965213dc9937e /Source/CMTextView.h | |
parent | eb5e79a58bd3a4765bc045d58a09173747aa8a56 (diff) | |
download | sequelpro-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.h | 2 |
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 |