diff options
author | stuconnolly <stuart02@gmail.com> | 2009-03-02 23:51:06 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-03-02 23:51:06 +0000 |
commit | edd1d6f093a5d6d3301a8f8cade43b051bd69083 (patch) | |
tree | 771c716cf18a63aad8563a8c118674efbe330ff9 /Source/CustomQuery.m | |
parent | 0c76ebee65bdbb8a7319baf54743b0f68483d143 (diff) | |
download | sequelpro-edd1d6f093a5d6d3301a8f8cade43b051bd69083.tar.gz sequelpro-edd1d6f093a5d6d3301a8f8cade43b051bd69083.tar.bz2 sequelpro-edd1d6f093a5d6d3301a8f8cade43b051bd69083.zip |
- Re-design the custom query favourties editor and get rid of the nasty plus/minus buttons. Also add some interface element validation.
- Tidy up CustomQuery.h by getting rid of the definition of all datasource and delegate method signatures which don't need to be declared.
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 7936e962..04b4b9f8 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -723,8 +723,20 @@ traps enter key and return NO; } +/* + * Updates various interface elements based on the current table view selection. + */ +- (void)tableViewSelectionDidChange:(NSNotification *)notification +{ + if ([notification object] == queryFavoritesView) { + + // Enable/disable buttons + [removeQueryFavoriteButton setEnabled:([queryFavoritesView numberOfSelectedRows] == 1)]; + [copyQueryFavoriteButton setEnabled:([queryFavoritesView numberOfSelectedRows] == 1)]; + } +} -//last but not least +// Last but not least - (id)init; { self = [super init]; @@ -740,5 +752,4 @@ traps enter key and [super dealloc]; } - @end |