aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPEditSheetTextView.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-15 21:16:37 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-15 21:16:37 +0000
commitf0b12b052c2bfe5cdb197f9adb31f8b7136ada66 (patch)
tree89c2aa6a5a291c39de265e3abc96ac8d86e73113 /Source/SPEditSheetTextView.h
parent95f796e8c75aeb13f4e1190d9ec08feecc35aba6 (diff)
downloadsequelpro-f0b12b052c2bfe5cdb197f9adb31f8b7136ada66.tar.gz
sequelpro-f0b12b052c2bfe5cdb197f9adb31f8b7136ada66.tar.bz2
sequelpro-f0b12b052c2bfe5cdb197f9adb31f8b7136ada66.zip
• subclassed the editSheet textView
- added drag&drop feature of file content or path resp. - added feature to in/decrease font size via ⌘+/- or two-finger zoom gesture
Diffstat (limited to 'Source/SPEditSheetTextView.h')
-rw-r--r--Source/SPEditSheetTextView.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/Source/SPEditSheetTextView.h b/Source/SPEditSheetTextView.h
new file mode 100644
index 00000000..c333fd30
--- /dev/null
+++ b/Source/SPEditSheetTextView.h
@@ -0,0 +1,37 @@
+//
+// $Id: SPTextViewAdditions.m 866 2009-06-15 16:05:54Z bibiko $
+//
+// SPEditSheetTextView.h
+// sequel-pro
+//
+// Created by Hans-Jörg Bibiko on June 15, 2009
+//
+// 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
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// More info at <http://code.google.com/p/sequel-pro/>
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface SPEditSheetTextView : NSTextView
+{
+
+}
+
+- (unsigned int)characterIndexOfPoint:(NSPoint)aPoint;
+- (void)insertFileContentOfFile:(NSString *)aPath;
+
+
+@end