aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructure.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-06-14 14:26:25 +0000
committerstuconnolly <stuart02@gmail.com>2010-06-14 14:26:25 +0000
commitf2e7ed60ebafc4ff0e2f1155116153f0d9e79d2e (patch)
tree380ed2fe0cf951af865645a6d52e548687e9a1f1 /Source/SPTableStructure.h
parentad0073ffa67dcdd7d891c7e55614ab706cce4809 (diff)
downloadsequelpro-f2e7ed60ebafc4ff0e2f1155116153f0d9e79d2e.tar.gz
sequelpro-f2e7ed60ebafc4ff0e2f1155116153f0d9e79d2e.tar.bz2
sequelpro-f2e7ed60ebafc4ff0e2f1155116153f0d9e79d2e.zip
Split the management of a table's indexes (adding and removing) to its own controller and XIB in preparation for the UI redesign.
Diffstat (limited to 'Source/SPTableStructure.h')
-rw-r--r--Source/SPTableStructure.h21
1 files changed, 7 insertions, 14 deletions
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;