diff options
author | stuconnolly <stuart02@gmail.com> | 2009-05-18 16:04:41 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-05-18 16:04:41 +0000 |
commit | 99fa7b664865bb7a55d18576593a585034638dcf (patch) | |
tree | ba55978b7f82a664654283518337990239c13966 /Source | |
parent | 4a8c5c304ab0ae142072246d7c886074bfcaa907 (diff) | |
download | sequelpro-99fa7b664865bb7a55d18576593a585034638dcf.tar.gz sequelpro-99fa7b664865bb7a55d18576593a585034638dcf.tar.bz2 sequelpro-99fa7b664865bb7a55d18576593a585034638dcf.zip |
Rename TableRelations.[hm] to SPTableRelations.[hm] so we it was created by the SP team.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableRelations.h (renamed from Source/TableRelations.h) | 28 | ||||
-rw-r--r-- | Source/SPTableRelations.m (renamed from Source/TableRelations.m) | 28 |
2 files changed, 24 insertions, 32 deletions
diff --git a/Source/TableRelations.h b/Source/SPTableRelations.h index c593dc6d..d7006d0f 100644 --- a/Source/TableRelations.h +++ b/Source/SPTableRelations.h @@ -1,5 +1,5 @@ // -// TableRelations.h +// SPTableRelations.h // sequel-pro // // Created by J Knight on 13/05/09. @@ -27,8 +27,8 @@ @class CMMCPConnection, CMMCPResult, CMCopyTable; -@interface TableRelations : NSObject { - +@interface SPTableRelations : NSObject +{ IBOutlet id tableDocumentInstance; IBOutlet id tablesListInstance; IBOutlet id tableList; @@ -55,34 +55,14 @@ - (void)setConnection:(CMMCPConnection *)theConnection; -//edit methods +// IB action methods - (IBAction)addRow:(id)sender; - (IBAction)removeRow:(id)sender; - (IBAction)closeRelationSheet:(id)sender; - (IBAction)addRelation:(id)sender; - (IBAction)chooseRefTable:(id)sender; - - (IBAction)refresh:(id)sender; - (void)tableChanged:(NSNotification *)notification; -//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 delegate methods -- (void)tableView:(NSTableView*)tableView didClickTableColumn:(NSTableColumn *)tableColumn; -- (void)tableViewSelectionDidChange:(NSNotification *)aNotification; -- (void)tableViewSelectionIsChanging:(NSNotification *)aNotification; -- (void)tableViewColumnDidResize:(NSNotification *)aNotification; -- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex; -- (BOOL)tableView:(NSTableView *)tableView writeRows:(NSArray*)rows toPasteboard:(NSPasteboard*)pboard; -- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command; - @end diff --git a/Source/TableRelations.m b/Source/SPTableRelations.m index daff2e52..62ca6582 100644 --- a/Source/TableRelations.m +++ b/Source/SPTableRelations.m @@ -1,5 +1,5 @@ // -// TableRelations.h +// SPTableRelations.h // sequel-pro // // Created by J Knight on 13/05/09. @@ -22,14 +22,14 @@ // More info at <http://code.google.com/p/sequel-pro/> // -#import "TableRelations.h" +#import "SPTableRelations.h" #import "TableDocument.h" #import "TablesList.h" #import "CMMCPConnection.h" #import "CMMCPResult.h" #import "SPTableData.h" -@implementation TableRelations +@implementation SPTableRelations /* * init @@ -74,6 +74,9 @@ mySQLConnection = theConnection; } +#pragma mark - +#pragma mark IB action methods + /* * closeRelationSheet * happens if the user hits cancel @@ -292,7 +295,9 @@ } } -//tableView datasource methods +#pragma mark - +#pragma mark Tableview datasource methods + - (int)numberOfRowsInTableView:(NSTableView *)aTableView { return [relData count]; @@ -301,7 +306,6 @@ - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { - //NSNumber *theIdentifier = [aTableColumn identifier]; NSDictionary *theRow = [relData objectAtIndex:rowIndex]; return [theRow objectForKey:[aTableColumn identifier]]; } @@ -314,11 +318,14 @@ } -//tableView delegate methods +#pragma mark - +#pragma mark Tableview delegate methods + - (void)tableView:(NSTableView*)tableView didClickTableColumn:(NSTableColumn *)tableColumn { } + - (void)tableViewSelectionDidChange:(NSNotification *)aNotification { if ( [relationsView numberOfSelectedRows] ) { @@ -327,25 +334,30 @@ [removeButton setEnabled:NO]; } } + - (void)tableViewSelectionIsChanging:(NSNotification *)aNotification { } + - (void)tableViewColumnDidResize:(NSNotification *)aNotification { } + - (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { return NO; } + - (BOOL)tableView:(NSTableView *)tableView writeRows:(NSArray*)rows toPasteboard:(NSPasteboard*)pboard { - return FALSE; + return NO; } + - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command { - return FALSE; + return NO; } @end |