aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-09-25 14:09:27 +0000
committerBibiko <bibiko@eva.mpg.de>2009-09-25 14:09:27 +0000
commitd14a032b6d2ea3c75f46b977e62afc958ae29db2 (patch)
tree259fd47c45ebaf3dba987bebf6ebab1d1c71a3b0 /Source/SPFieldEditorController.h
parentfce952cc656576c8f8cb6ec06785fdeab495066d (diff)
downloadsequelpro-d14a032b6d2ea3c75f46b977e62afc958ae29db2.tar.gz
sequelpro-d14a032b6d2ea3c75f46b977e62afc958ae29db2.tar.bz2
sequelpro-d14a032b6d2ea3c75f46b977e62afc958ae29db2.zip
• re-enabled field editor's QuickLook for 10.6
- This is up to now a kind of a 'hack' since SP will be compiled against SDK10.5 but if SP runs on 10.6 it'll use code from a 10.6 framework. - Under 10.6 full screen mode is available and QL does run in its own run loop ie now it's non-modal - Changed the way of removing temp files; now all files will be deleted while closing the sheet to fix issues if the user double-click at the QL item and the called app was too slow - this ended up in getting the message 'File not found' - Changed default container extension for images since 'pict' isn't support under 64bit 10.6; now SP makes usage of 'icns' • outsourced QuickLook types (show as pull down menu) to SP's preference plist. (up to now only 'power users' can change that type list via a Property List editor) • enhanced the caching behaviour of the sheet editor in terms of triggering a refresh if the text content was changed (this fixes the issue that it could happen that binary data were interpreted as text data)
Diffstat (limited to 'Source/SPFieldEditorController.h')
-rw-r--r--Source/SPFieldEditorController.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/Source/SPFieldEditorController.h b/Source/SPFieldEditorController.h
index 97edd4b3..56b7a2bd 100644
--- a/Source/SPFieldEditorController.h
+++ b/Source/SPFieldEditorController.h
@@ -25,7 +25,8 @@
#import <Cocoa/Cocoa.h>
@interface SPFieldEditorController : NSWindowController
-{
+{
+
IBOutlet id editSheetProgressBar;
IBOutlet id editSheetSegmentControl;
IBOutlet id editSheetQuickLookButton;
@@ -40,7 +41,7 @@
IBOutlet id editSheetOkButton;
IBOutlet id editSheetOpenButton;
IBOutlet id editSheetFieldName;
-
+
id sheetEditData;
BOOL editSheetWillBeInitialized;
BOOL isBlob;
@@ -48,19 +49,21 @@
NSStringEncoding encoding;
NSString *stringValue;
NSString *tmpFileName;
-
+ NSString *tmpDirPath;
+
int counter;
unsigned long long maxTextLength;
BOOL editTextViewWasChanged;
BOOL allowUndo;
BOOL wasCutPaste;
BOOL selectionChanged;
-
+
NSUserDefaults *prefs;
-
+
int editSheetReturnCode;
-
+
NSUndoManager *esUndoManager;
+
}
- (IBAction)closeEditSheet:(id)sender;
@@ -81,7 +84,6 @@
- (void)processUpdatedImageData:(NSData *)data;
- (void)invokeQuickLookOfType:(NSString *)type treatAsText:(BOOL)isText;
-- (void)removeQuickLooksTempFile:(NSString*)aPath;
- (BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector;
- (void)textViewDidChangeSelection:(NSNotification *)notification;