aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.h
diff options
context:
space:
mode:
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;