aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-12 18:25:08 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-12 18:25:08 +0000
commit65e4e8b589aa102be41b2aed6d019b9951bd3c54 (patch)
treed3a5c28b49dce847ad9993aa7f713711145de592 /Source/TableContent.h
parentf6da47de43fce8af785dfdc4672ebbb18f7ff118 (diff)
downloadsequelpro-65e4e8b589aa102be41b2aed6d019b9951bd3c54.tar.gz
sequelpro-65e4e8b589aa102be41b2aed6d019b9951bd3c54.tar.bz2
sequelpro-65e4e8b589aa102be41b2aed6d019b9951bd3c54.zip
• rewrote editSheet for editing and displaying BLOB or TEXT data completely
• added the possibility to QuickLook the current data by choosing a data format
Diffstat (limited to 'Source/TableContent.h')
-rw-r--r--Source/TableContent.h111
1 files changed, 110 insertions, 1 deletions
diff --git a/Source/TableContent.h b/Source/TableContent.h
index ddae12df..0e5aad67 100644
--- a/Source/TableContent.h
+++ b/Source/TableContent.h
@@ -28,6 +28,97 @@
#import <Cocoa/Cocoa.h>
#import <MCPKit_bundled/MCPKit_bundled.h>
+@interface QLPreviewPanel : NSPanel
+{
+}
+
++ (id)sharedPreviewPanel;
++ (id)_previewPanel;
++ (BOOL)isSharedPreviewPanelLoaded;
+- (id)initWithContentRect:(struct _NSRect)fp8 styleMask:(unsigned int)fp24 backing:(unsigned int)fp28 defer:(BOOL)fp32;
+- (id)initWithCoder:(id)fp8;
+- (void)dealloc;
+- (BOOL)isOpaque;
+- (BOOL)canBecomeKeyWindow;
+- (BOOL)canBecomeMainWindow;
+- (BOOL)shouldIgnorePanelFrameChanges;
+- (BOOL)isOpen;
+- (void)setFrame:(struct _NSRect)fp8 display:(BOOL)fp24 animate:(BOOL)fp28;
+- (id)_subEffectsForWindow:(id)fp8 itemFrame:(struct _NSRect)fp12 transitionWindow:(id *)fp28;
+- (id)_scaleEffectForItemFrame:(struct _NSRect)fp8 transitionWindow:(id *)fp24;
+- (void)_invertCurrentEffect;
+- (struct _NSRect)_currentItemFrame;
+- (void)setAutosizesAndCenters:(BOOL)fp8;
+- (BOOL)autosizesAndCenters;
+- (void)makeKeyAndOrderFront:(id)fp8;
+- (void)makeKeyAndOrderFrontWithEffect:(int)fp8;
+- (void)makeKeyAndGoFullscreenWithEffect:(int)fp8;
+- (void)makeKeyAndOrderFrontWithEffect:(int)fp8 canClose:(BOOL)fp12;
+- (void)_makeKeyAndOrderFrontWithEffect:(int)fp8 canClose:(BOOL)fp12 willOpen:(BOOL)fp16 toFullscreen:(BOOL)fp20;
+- (int)openingEffect;
+- (void)closePanel;
+- (void)close;
+- (void)closeWithEffect:(int)fp8;
+- (void)closeWithEffect:(int)fp8 canReopen:(BOOL)fp12;
+- (void)_closeWithEffect:(int)fp8 canReopen:(BOOL)fp12;
+- (void)windowEffectDidTerminate:(id)fp8;
+- (void)_close:(id)fp8;
+- (void)sendEvent:(id)fp8;
+- (void)selectNextItem;
+- (void)selectPreviousItem;
+- (void)setURLs:(id)fp8 currentIndex:(unsigned int)fp12 preservingDisplayState:(BOOL)fp16;
+- (void)setURLs:(id)fp8 preservingDisplayState:(BOOL)fp12;
+- (void)setURLs:(id)fp8;
+- (id)URLs;
+- (unsigned int)indexOfCurrentURL;
+- (void)setIndexOfCurrentURL:(unsigned int)fp8;
+- (void)setDelegate:(id)fp8;
+- (id)sharedPreviewView;
+- (void)setSharedPreviewView:(id)fp8;
+- (void)setCyclesSelection:(BOOL)fp8;
+- (BOOL)cyclesSelection;
+- (void)setShowsAddToiPhotoButton:(BOOL)fp8;
+- (BOOL)showsAddToiPhotoButton;
+- (void)setShowsiChatTheaterButton:(BOOL)fp8;
+- (BOOL)showsiChatTheaterButton;
+- (void)setShowsFullscreenButton:(BOOL)fp8;
+- (BOOL)showsFullscreenButton;
+- (void)setShowsIndexSheetButton:(BOOL)fp8;
+- (BOOL)showsIndexSheetButton;
+- (void)setAutostarts:(BOOL)fp8;
+- (BOOL)autostarts;
+- (void)setPlaysDuringPanelAnimation:(BOOL)fp8;
+- (BOOL)playsDuringPanelAnimation;
+- (void)setDeferredLoading:(BOOL)fp8;
+- (BOOL)deferredLoading;
+- (void)setEnableDragNDrop:(BOOL)fp8;
+- (BOOL)enableDragNDrop;
+- (void)start:(id)fp8;
+- (void)stop:(id)fp8;
+- (void)setShowsIndexSheet:(BOOL)fp8;
+- (BOOL)showsIndexSheet;
+- (void)setShareWithiChat:(BOOL)fp8;
+- (BOOL)shareWithiChat;
+- (void)setPlaysSlideShow:(BOOL)fp8;
+- (BOOL)playsSlideShow;
+- (void)setIsFullscreen:(BOOL)fp8;
+- (BOOL)isFullscreen;
+- (void)setMandatoryClient:(id)fp8;
+- (id)mandatoryClient;
+- (void)setForcedContentTypeUTI:(id)fp8;
+- (id)forcedContentTypeUTI;
+- (void)setDocumentURLs:(id)fp8;
+- (void)setDocumentURLs:(id)fp8 preservingDisplayState:(BOOL)fp12;
+- (void)setDocumentURLs:(id)fp8 itemFrame:(struct _NSRect)fp12;
+- (void)setURLs:(id)fp8 itemFrame:(struct _NSRect)fp12;
+- (void)setAutoSizeAndCenterOnScreen:(BOOL)fp8;
+- (void)setShowsAddToiPhoto:(BOOL)fp8;
+- (void)setShowsiChatTheater:(BOOL)fp8;
+- (void)setShowsFullscreen:(BOOL)fp8;
+
+@end
+
+
@class CMMCPConnection, CMMCPResult, CMCopyTable;
@interface TableContent : NSObject
@@ -36,13 +127,18 @@
IBOutlet id tablesListInstance;
IBOutlet id tableDataInstance;
+ IBOutlet id editSheetProgressBar;
+
IBOutlet id tableWindow;
IBOutlet CMCopyTable *tableContentView;
IBOutlet id editSheet;
- IBOutlet id editSheetTabView;
+ IBOutlet id editSheetSegmentControl;
+ IBOutlet id editSheetQuickLookButton;
IBOutlet id editImage;
IBOutlet id editTextView;
IBOutlet id hexTextView;
+ IBOutlet id editTextScrollView;
+ IBOutlet id hexTextScrollView;
IBOutlet id fieldField;
IBOutlet id compareField;
IBOutlet id argumentField;
@@ -68,6 +164,8 @@
NSUserDefaults *prefs;
int numRows, currentlyEditingRow, maxNumRowsOfCurrentTable;
bool areShowingAllRows;
+
+ int qlPane;
}
//table methods
@@ -89,6 +187,17 @@
- (IBAction)closeEditSheet:(id)sender;
- (IBAction)openEditSheet:(id)sender;
- (IBAction)saveEditSheet:(id)sender;
+- (IBAction)segmentControllerChanged:(id)sender;
+- (IBAction)quickLookAsMovie:(id)sender;
+- (IBAction)quickLookAsSoundLinear:(id)sender;
+- (IBAction)quickLookAsSoundM4A:(id)sender;
+- (IBAction)quickLookAsSoundMP3:(id)sender;
+- (IBAction)quickLookAsImage:(id)sender;
+- (IBAction)quickLookAsPDF:(id)sender;
+- (IBAction)quickLookAsWordDoc:(id)sender;
+- (IBAction)quickLookAsRTF:(id)sender;
+- (IBAction)quickLookAsHTML:(id)sender;
+- (void)invokeQuickLookOfType:(NSString *)type;
- (void)processUpdatedImageData:(NSData *)data;
- (IBAction)dropImage:(id)sender;
- (void)textDidChange:(NSNotification *)notification;