aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/QLPreviewPanel.h116
-rw-r--r--Source/TableContent.h94
-rw-r--r--Source/TableContent.m1
-rw-r--r--Source/TableDocument.m1
-rw-r--r--sequel-pro.xcodeproj/project.pbxproj10
5 files changed, 128 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"
diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj
index fb9142f5..831aa666 100644
--- a/sequel-pro.xcodeproj/project.pbxproj
+++ b/sequel-pro.xcodeproj/project.pbxproj
@@ -210,6 +210,7 @@
1703EF3E0F0B0742005BBE7E /* sequel-pro_logo.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "sequel-pro_logo.jpg"; sourceTree = "<group>"; };
1703EF3F0F0B0742005BBE7E /* syntax.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = syntax.html; sourceTree = "<group>"; };
1703EF400F0B0742005BBE7E /* tables.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = tables.html; sourceTree = "<group>"; };
+ 17128B8A0FE6E0210035DD75 /* QLPreviewPanel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QLPreviewPanel.h; sourceTree = "<group>"; };
172A650F0F7BED7A001E861A /* SPConsoleMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPConsoleMessage.h; sourceTree = "<group>"; };
172A65100F7BED7A001E861A /* SPConsoleMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPConsoleMessage.m; sourceTree = "<group>"; };
1740FAB90FC4372F00CF3699 /* SPDatabaseData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPDatabaseData.h; sourceTree = "<group>"; };
@@ -502,6 +503,14 @@
path = topics;
sourceTree = "<group>";
};
+ 17128B890FE6DFFA0035DD75 /* QuickLook */ = {
+ isa = PBXGroup;
+ children = (
+ 17128B8A0FE6E0210035DD75 /* QLPreviewPanel.h */,
+ );
+ name = QuickLook;
+ sourceTree = "<group>";
+ };
1740F8350FC3069700CF3699 /* Templates */ = {
isa = PBXGroup;
children = (
@@ -640,6 +649,7 @@
isa = PBXGroup;
children = (
296DC8A40F90914B002A3258 /* MGTemplateEngine */,
+ 17128B890FE6DFFA0035DD75 /* QuickLook */,
17E6416F0EF01F4C001BC333 /* Keychain */,
17E641700EF01F52001BC333 /* MCPKit */,
58FEF15E0F23D60A00518E8E /* Parsing */,