From bdf196ac60472fa7eccbd094ee1b5a505f550f4d Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 2 Apr 2015 23:33:38 +0200 Subject: Remove a hack to support QuickLook on 10.5 We don't need that anymore since 10.5 support is gone. Sequel Pro now explicitly links Quartz and doesn't try to guess QuickLook support at runtime. --- Source/SPFieldEditorController.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Source/SPFieldEditorController.h') diff --git a/Source/SPFieldEditorController.h b/Source/SPFieldEditorController.h index b56c6d1c..fbf04c49 100644 --- a/Source/SPFieldEditorController.h +++ b/Source/SPFieldEditorController.h @@ -28,6 +28,21 @@ // // More info at +#ifndef SP_CODA + +#import // QuickLookUI + +//This is an informal protocol +@protocol _QLPreviewPanelController + +- (BOOL)acceptsPreviewPanelControl:(QLPreviewPanel *)panel; +- (void)beginPreviewPanelControl:(QLPreviewPanel *)panel; +- (void)endPreviewPanelControl:(QLPreviewPanel *)panel; + +@end + +#endif + @class SPWindow; /** @@ -38,7 +53,11 @@ * This class offers a sheet for editing different kind of data such as text, blobs (including images) as * editSheet and bit fields as bitSheet. */ -@interface SPFieldEditorController : NSWindowController +@interface SPFieldEditorController : NSWindowController { IBOutlet id editSheetProgressBar; IBOutlet id editSheetSegmentControl; -- cgit v1.2.3 From 9aa296a3e93b0b98a1018ba4d7aa8920d85b2a81 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 2 Apr 2015 23:34:45 +0200 Subject: Converted some setters to equivalent @propertys --- Source/SPFieldEditorController.h | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'Source/SPFieldEditorController.h') diff --git a/Source/SPFieldEditorController.h b/Source/SPFieldEditorController.h index fbf04c49..ec36c9d2 100644 --- a/Source/SPFieldEditorController.h +++ b/Source/SPFieldEditorController.h @@ -195,6 +195,31 @@ @property(readwrite, retain) NSDictionary *editedFieldInfo; +//don't blame me for nonatomic,assign. That's how the previous setters worked :) + +/** + * The maximum text length of the underlying table field for input validation. + */ +@property(nonatomic,assign) unsigned long long textMaxLength; + +/** + * The field type of the underlying table field for input validation. + * The field type will be used for dispatching which sheet will be shown. + * If type == BIT the bitSheet will be used otherwise the editSheet. + */ +@property(nonatomic,assign) NSString *fieldType; + +/** + * The field encoding of the underlying table field for displaying it to the user. + */ +@property(nonatomic,assign) NSString *fieldEncoding; + +/** + * Whether underlying table field allows NULL for several validations. + * If allowNULL is YES NULL value is allowed for the underlying table field. + */ +@property(nonatomic,assign) BOOL allowNULL; + - (IBAction)closeEditSheet:(id)sender; - (IBAction)openEditSheet:(id)sender; - (void)openPanelDidEnd:(NSOpenPanel *)panel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo; @@ -215,11 +240,6 @@ isObjectBlob:(BOOL)isFieldBlob isEditable:(BOOL)isEditable withWindow:(NSWindow *)theWindow sender:(id)sender contextInfo:(NSDictionary*)theContextInfo; -- (void)setTextMaxLength:(NSUInteger)length; -- (void)setFieldType:(NSString*)aType; -- (void)setFieldEncoding:(NSString*)aEncoding; -- (void)setAllowNULL:(BOOL)allowNULL; - - (void)processPasteImageData; - (void)processUpdatedImageData:(NSData *)data; -- cgit v1.2.3