diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/QLPreviewPanel.h | 116 | ||||
-rw-r--r-- | Source/TableContent.h | 94 | ||||
-rw-r--r-- | Source/TableContent.m | 1 | ||||
-rw-r--r-- | Source/TableDocument.m | 1 |
4 files changed, 118 insertions, 94 deletions
diff --git a/Source/QLPreviewPanel.h b/Source/QLPreviewPanel.h new file mode 100644 index 00000000..51e85e19 --- /dev/null +++ b/Source/QLPreviewPanel.h @@ -0,0 +1,116 @@ +// +// $Id$ +// +// QLPreviewPanel.h +// sequel-pro +// +// Created by Stuart Connolly (stuconnolly.com) on June 15, 2009 +// Copyright (c) 2009 Stuart Connolly. All rights reserved. +// +// 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> + +// As the QuickLook framework is private we have to make +// these methods public to avoid warnings while compiling +@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 diff --git a/Source/TableContent.h b/Source/TableContent.h index 7ac59148..1c294144 100644 --- a/Source/TableContent.h +++ b/Source/TableContent.h @@ -28,100 +28,6 @@ #import <Cocoa/Cocoa.h> #import <MCPKit_bundled/MCPKit_bundled.h> - -// since the QuickLook framework is private we have to make -// these methods public to avoid warnings while compiling -@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 diff --git a/Source/TableContent.m b/Source/TableContent.m index 6655a53b..bbda4d44 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -38,6 +38,7 @@ #import "SPStringAdditions.h" #import "SPArrayAdditions.h" #import "SPTextViewAdditions.h" +#import "QLPreviewPanel.h" @implementation TableContent diff --git a/Source/TableDocument.m b/Source/TableDocument.m index e9ad5322..e638ffd9 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -47,6 +47,7 @@ #import "SPExtendedTableInfo.h" #import "SPPreferenceController.h" #import "SPPrintAccessory.h" +#import "QLPreviewPanel.h" // Used for printing #import "MGTemplateEngine.h" |