diff options
author | sqlprodev <sqlprodev@northofthree.com> | 2011-04-11 20:29:49 +0000 |
---|---|---|
committer | sqlprodev <sqlprodev@northofthree.com> | 2011-04-11 20:29:49 +0000 |
commit | 0ce916eb0583ec6b062786f91bee0133906671ce (patch) | |
tree | 68a5767ded966f4eadf53ba9ce85bcaf6d31b951 /Source/SPTableContent.h | |
parent | 2621e79c75a0119a54c669b263caa82183bd19c8 (diff) | |
download | sequelpro-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/SPTableContent.h')
-rw-r--r-- | Source/SPTableContent.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h index 6c0f2ab7..8ad30614 100644 --- a/Source/SPTableContent.h +++ b/Source/SPTableContent.h @@ -29,11 +29,17 @@ @class SPDatabaseDocument, SPCopyTable, SPTextAndLinkCell, SPHistoryController, SPTableInfo, SPDataStorage, SPTextView, SPFieldEditorController; -@interface SPTableContent : NSObject +@class SPTableData, SPDatabaseDocument, SPTablesList; + +#ifndef SP_REFACTOR +@interface SPTableContent : NSObject +#else +@interface SPTableContent : NSObject <NSTableViewDelegate, NSTableViewDataSource> +#endif { IBOutlet SPDatabaseDocument *tableDocumentInstance; IBOutlet id tablesListInstance; - IBOutlet id tableDataInstance; + IBOutlet SPTableData* tableDataInstance; IBOutlet id tableSourceInstance; IBOutlet SPTableInfo *tableInfoInstance; @@ -92,7 +98,9 @@ NSNumber *sortCol; BOOL isEditingRow, isEditingNewRow, isSavingRow, isDesc, setLimit; BOOL isFiltered, isLimited, isInterruptedLoad, maxNumRowsIsEstimate; +#ifndef SP_REFACTOR /* ivars */ NSUserDefaults *prefs; +#endif NSInteger currentlyEditingRow, maxNumRows; NSMutableDictionary *contentFilters; @@ -241,4 +249,10 @@ - (void)updateFilterTableClause:(id)currentValue; - (NSString*)escapeFilterTableDefaultOperator:(NSString*)anOperator; +#ifdef SP_REFACTOR /* glue */ +- (void)setDatabaseDocument:(SPDatabaseDocument*)doc; +- (void)setTableListInstance:(SPTablesList*)list; +- (void)setConnection:(MCPConnection *)theConnection; +#endif + @end |