aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableSource.h')
-rw-r--r--Source/TableSource.h24
1 files changed, 3 insertions, 21 deletions
diff --git a/Source/TableSource.h b/Source/TableSource.h
index 66149586..9776620e 100644
--- a/Source/TableSource.h
+++ b/Source/TableSource.h
@@ -28,9 +28,8 @@
#import "CMMCPConnection.h"
#import "CMMCPResult.h"
-
-@interface TableSource : NSObject {
-
+@interface TableSource : NSObject
+{
IBOutlet id tablesListInstance;
IBOutlet id tableDataInstance;
@@ -48,15 +47,14 @@
IBOutlet id indexNameField;
IBOutlet id indexedColumnsField;
IBOutlet id chooseKeyButton;
- IBOutlet id tableTypeButton;
IBOutlet id structureGrabber;
+ IBOutlet id editTableButton;
CMMCPConnection *mySQLConnection;
CMMCPResult *tableSourceResult;
CMMCPResult *indexResult;
NSString *selectedTable;
- NSString *tableType;
NSMutableArray *tableFields, *indexes;
NSMutableDictionary *oldRow, *enumFields;
NSDictionary *defaultValues;
@@ -75,7 +73,6 @@
- (IBAction)addIndex:(id)sender;
- (IBAction)removeField:(id)sender;
- (IBAction)removeIndex:(id)sender;
-- (IBAction)typeChanged:(id)sender;
//index sheet methods
- (IBAction)openIndexSheet:(id)sender;
@@ -91,7 +88,6 @@
- (NSArray *)fetchResultAsArray:(CMMCPResult *)theResult;
- (BOOL)saveRowOnDeselect;
- (BOOL)addRowToDB;
-- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(NSString *)contextInfo;
//getter methods
- (NSString *)defaultValueForField:(NSString *)field;
@@ -99,16 +95,6 @@
- (NSDictionary *)enumFields;
- (NSArray *)tableStructureForPrint;
-//tableView datasource methods
-- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
-- (id)tableView:(NSTableView *)aTableView
- objectValueForTableColumn:(NSTableColumn *)aTableColumn
- row:(int)rowIndex;
-- (void)tableView:(NSTableView *)aTableView
- setObjectValue:(id)anObject
- forTableColumn:(NSTableColumn *)aTableColumn
- row:(int)rowIndex;
-
//tableView drag&drop datasource methods
- (BOOL)tableView:(NSTableView *)tv writeRows:(NSArray*)rows toPasteboard:(NSPasteboard*)pboard;
- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id <NSDraggingInfo>)info proposedRow:(int)row
@@ -126,8 +112,4 @@
- (float)splitView:(NSSplitView *)sender constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset;
- (NSRect)splitView:(NSSplitView *)splitView additionalEffectiveRectOfDividerAtIndex:(int)dividerIndex;
-//last but not least
-- (id)init;
-- (void)dealloc;
-
@end