diff options
author | stuconnolly <stuart02@gmail.com> | 2009-08-18 16:05:42 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-08-18 16:05:42 +0000 |
commit | 1685f5628ceefbe4651ba5608484ab0d683b041f (patch) | |
tree | 107d4f423fc5a1531675197e32814afd30a4bc7e /Source/TableSource.h | |
parent | 59cbcc38ab2b4ec3b4a69ab4e6896a1b7c118dae (diff) | |
download | sequelpro-1685f5628ceefbe4651ba5608484ab0d683b041f.tar.gz sequelpro-1685f5628ceefbe4651ba5608484ab0d683b041f.tar.bz2 sequelpro-1685f5628ceefbe4651ba5608484ab0d683b041f.zip |
- The add, rename and copy table sheets should not block the main thread (part of issue #357).
- Improve the consistency of destructive confirmation dialogs by making the remove field and index dialogs default button 'Cancel' with a key equivalent of return.
- Disable the remove field button when the currently selected table only has one field, removing the need for the extra check (and subsequent dialog) when the user attempts to remove a field.
Diffstat (limited to 'Source/TableSource.h')
-rw-r--r-- | Source/TableSource.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/Source/TableSource.h b/Source/TableSource.h index 539216aa..4d10a5c9 100644 --- a/Source/TableSource.h +++ b/Source/TableSource.h @@ -61,53 +61,36 @@ NSUserDefaults *prefs; } -//table methods +// Table methods - (void)loadTable:(NSString *)aTable; - (IBAction)reloadTable:(id)sender; -//edit methods +// Edit methods - (IBAction)addField:(id)sender; - (IBAction)copyField:(id)sender; - (IBAction)addIndex:(id)sender; - (IBAction)removeField:(id)sender; - (IBAction)removeIndex:(id)sender; -//index sheet methods +// Index sheet methods - (IBAction)openIndexSheet:(id)sender; - (IBAction)closeIndexSheet:(id)sender; - (IBAction)chooseIndexType:(id)sender; - (void)closeAlertSheet; -//key sheet methods +// Key sheet methods - (IBAction)closeKeySheet:(id)sender; -//additional methods +// Additional methods - (void)setConnection:(MCPConnection *)theConnection; - (NSArray *)fetchResultAsArray:(MCPResult *)theResult; - (BOOL)saveRowOnDeselect; - (BOOL)addRowToDB; -//getter methods +// Getter methods - (NSString *)defaultValueForField:(NSString *)field; - (NSArray *)fieldNames; - (NSDictionary *)enumFields; - (NSArray *)tableStructureForPrint; -//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 - proposedDropOperation:(NSTableViewDropOperation)operation; -- (BOOL)tableView:(NSTableView*)tv acceptDrop:(id <NSDraggingInfo>)info row:(int)row dropOperation:(NSTableViewDropOperation)operation; - -//tableView delegate methods -- (void)tableViewSelectionDidChange:(NSNotification *)aNotification; -- (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)command; -- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex; - -//slitView delegate methods -- (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview; -- (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset; -- (float)splitView:(NSSplitView *)sender constrainMinCoordinate:(float)proposedMin ofSubviewAt:(int)offset; -- (NSRect)splitView:(NSSplitView *)splitView additionalEffectiveRectOfDividerAtIndex:(int)dividerIndex; - @end |