aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.h
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2011-04-11 20:29:49 +0000
committersqlprodev <sqlprodev@northofthree.com>2011-04-11 20:29:49 +0000
commit0ce916eb0583ec6b062786f91bee0133906671ce (patch)
tree68a5767ded966f4eadf53ba9ce85bcaf6d31b951 /Source/SPCopyTable.h
parent2621e79c75a0119a54c669b263caa82183bd19c8 (diff)
downloadsequelpro-0ce916eb0583ec6b062786f91bee0133906671ce.tar.gz
sequelpro-0ce916eb0583ec6b062786f91bee0133906671ce.tar.bz2
sequelpro-0ce916eb0583ec6b062786f91bee0133906671ce.zip
initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate UI code from functional code
Diffstat (limited to 'Source/SPCopyTable.h')
-rw-r--r--Source/SPCopyTable.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/SPCopyTable.h b/Source/SPCopyTable.h
index 4723dbc9..b7b5f77d 100644
--- a/Source/SPCopyTable.h
+++ b/Source/SPCopyTable.h
@@ -28,6 +28,7 @@
#define SP_MAX_CELL_WIDTH 400
@class SPDataStorage;
+@class SPTableContent;
/*!
@class copyTable
@@ -39,13 +40,15 @@
*/
@interface SPCopyTable : SPTableView
{
- id tableInstance; // the table content view instance
+ SPTableContent* tableInstance; // the table content view instance
id mySQLConnection; // current MySQL connection
NSArray* columnDefinitions; // array of NSDictionary containing info about columns
NSString* selectedTable; // the name of the current selected table
SPDataStorage* tableStorage; // the underlying storage array holding the table data
+#ifndef SP_REFACTOR /* ivars */
NSUserDefaults *prefs;
+#endif
NSRange fieldEditorSelectedRange;
NSString *copyBlobFileDirectory;
@@ -84,6 +87,7 @@
*/
- (NSUInteger)draggingSourceOperationMaskForLocal:(BOOL)isLocal;
+#ifndef SP_REFACTOR /* method decls */
/*!
@method rowsAsTabStringWithHeaders:onlySelectedRows:
@abstract getter of the selected rows or all of the table for copy
@@ -105,6 +109,7 @@
@result The above described string, or nil if nothing selected
*/
- (NSString *)rowsAsCsvStringWithHeaders:(BOOL)withHeaders onlySelectedRows:(BOOL)onlySelected blobHandling:(NSInteger)withBlobHandling;
+#endif
/*
* Generate a string in form of INSERT INTO <table> VALUES () of
@@ -172,6 +177,8 @@
- (void)selectTableRows:(NSArray*)rowIndices;
+- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command;
+
@end
extern NSInteger MENU_EDIT_COPY;