From f2e7ed60ebafc4ff0e2f1155116153f0d9e79d2e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 14 Jun 2010 14:26:25 +0000 Subject: Split the management of a table's indexes (adding and removing) to its own controller and XIB in preparation for the UI redesign. --- Source/SPTableStructure.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'Source/SPTableStructure.h') diff --git a/Source/SPTableStructure.h b/Source/SPTableStructure.h index f43a5257..5c50ec85 100644 --- a/Source/SPTableStructure.h +++ b/Source/SPTableStructure.h @@ -33,34 +33,31 @@ IBOutlet id tableDocumentInstance; IBOutlet id tableInfoInstance; IBOutlet id extendedTableInfoInstance; + IBOutlet id indexesController; - IBOutlet id indexSheet; IBOutlet id keySheet; IBOutlet id resetAutoIncrementSheet; IBOutlet id resetAutoIncrementValue; IBOutlet id resetAutoIncrementLine; IBOutlet id tableSourceView; - IBOutlet id indexView; IBOutlet id addFieldButton; IBOutlet id copyFieldButton; IBOutlet id removeFieldButton; IBOutlet id reloadFieldsButton; - IBOutlet id addIndexButton; - IBOutlet id removeIndexButton; - IBOutlet id reloadIndexesButton; - IBOutlet id indexTypeField; - IBOutlet id indexNameField; - IBOutlet id indexedColumnsField; IBOutlet id chooseKeyButton; IBOutlet id structureGrabber; IBOutlet id editTableButton; - + IBOutlet id addIndexButton; + IBOutlet id removeIndexButton; + IBOutlet id refreshIndexesButton; + IBOutlet id indexesTableView; + MCPConnection *mySQLConnection; MCPResult *tableSourceResult; MCPResult *indexResult; NSString *selectedTable; - NSMutableArray *tableFields, *indexes; + NSMutableArray *tableFields; NSMutableDictionary *oldRow, *enumFields; NSDictionary *defaultValues; BOOL isEditingRow, isEditingNewRow, isSavingRow, alertSheetOpened; @@ -77,14 +74,10 @@ - (IBAction)addField:(id)sender; - (IBAction)copyField:(id)sender; - (IBAction)removeField:(id)sender; -- (IBAction)removeIndex:(id)sender; - (IBAction)resetAutoIncrement:(id)sender; // Index sheet methods -- (IBAction)openIndexSheet:(id)sender; - (IBAction)closeSheet:(id)sender; -- (IBAction)chooseIndexType:(id)sender; -- (void)closeAlertSheet; // Key sheet methods - (IBAction)closeKeySheet:(id)sender; -- cgit v1.2.3