aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.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/SPTableStructure.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/SPTableStructure.h')
-rw-r--r--Source/SPTableStructure.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/Source/SPTableStructure.h b/Source/SPTableStructure.h
index a08ddd15..02313094 100644
--- a/Source/SPTableStructure.h
+++ b/Source/SPTableStructure.h
@@ -25,17 +25,19 @@
#import <MCPKit/MCPKit.h>
-@class SPDatabaseDocument, SPTableFieldValidation;
+@class SPDatabaseDocument, SPTableFieldValidation, SPTableData, SPDatabaseData, SPTablesList, SPIndexesController;
@interface SPTableStructure : NSObject
{
- IBOutlet id tablesListInstance;
- IBOutlet id tableDataInstance;
- IBOutlet SPDatabaseDocument *tableDocumentInstance;
+ IBOutlet SPTablesList* tablesListInstance;
+ IBOutlet SPTableData* tableDataInstance;
+ IBOutlet SPDatabaseDocument* tableDocumentInstance;
+#ifndef SP_REFACTOR /* ivars */
IBOutlet id tableInfoInstance;
IBOutlet id extendedTableInfoInstance;
- IBOutlet id indexesController;
- IBOutlet id databaseDataInstance;
+#endif
+ IBOutlet SPIndexesController* indexesController;
+ IBOutlet SPDatabaseData* databaseDataInstance;
IBOutlet id keySheet;
IBOutlet id resetAutoIncrementSheet;
@@ -70,7 +72,9 @@
NSMutableDictionary *oldRow, *enumFields;
NSDictionary *defaultValues;
NSInteger currentlyEditingRow;
+#ifndef SP_REFACTOR /* ivars */
NSUserDefaults *prefs;
+#endif
NSArray *collations;
NSArray *typeSuggestions;
NSArray *extraFieldSuggestions;
@@ -85,6 +89,13 @@
- (IBAction)reloadTable:(id)sender;
- (void)setTableDetails:(NSDictionary *)tableDetails;
+#ifdef SP_REFACTOR /* method decls */
+- (void)setDatabaseDocument:(SPDatabaseDocument*)doc;
+- (void)setTableListInstance:(SPTablesList*)list;
+- (void)setTableDataInstance:(SPTableData*)data;
+#endif
+- (void)showErrorSheetWith:(NSDictionary *)errorDictionary;
+
// Edit methods
- (IBAction)addField:(id)sender;
- (IBAction)copyField:(id)sender;