diff options
author | abhibeckert <abhi@abhibeckert.com> | 2008-04-20 11:09:57 +0000 |
---|---|---|
committer | abhibeckert <abhi@abhibeckert.com> | 2008-04-20 11:09:57 +0000 |
commit | 0261432e0704f5afe4067e7288d7845c6c8bb82f (patch) | |
tree | 4ee93fa9779fa84d13fbf977996937a44b37bae4 /TableDocument.h | |
parent | 385af2eacdcceb9160d787539380d921919f3d99 (diff) | |
download | sequelpro-0261432e0704f5afe4067e7288d7845c6c8bb82f.tar.gz sequelpro-0261432e0704f5afe4067e7288d7845c6c8bb82f.tar.bz2 sequelpro-0261432e0704f5afe4067e7288d7845c6c8bb82f.zip |
refactor encoding system
refactor menu validation
move database action buttons into a new "Database" menu
pretty up the table select view and it's action buttons
Diffstat (limited to 'TableDocument.h')
-rw-r--r-- | TableDocument.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/TableDocument.h b/TableDocument.h index 64081d92..f0d1ba19 100644 --- a/TableDocument.h +++ b/TableDocument.h @@ -63,7 +63,6 @@ IBOutlet id consoleTextView; IBOutlet id variablesTableView; IBOutlet id createTableSyntaxView; - IBOutlet id chooseEncodingButton; IBOutlet id chooseTableOperationButton; IBOutlet NSTabView *tableTabView; @@ -75,6 +74,10 @@ NSString *selectedFavorite; NSString *mySQLVersion; NSUserDefaults *prefs; + + NSMenu *selectEncodingMenu; + BOOL _supportsEncoding; + NSString *_encoding; } //start sheet @@ -114,9 +117,11 @@ //encoding methods - (void)setEncoding:(NSString *)encoding; - (void)detectEncoding; -- (NSString *)getSelectedEncoding; - (IBAction)chooseEncoding:(id)sender; - (BOOL)supportsEncoding; +- (void)updateEncodingMenuWithSelectedEncoding:(NSString *)encoding; +- (NSString *)encodingNameFromMySQLEncoding:(NSString *)mysqlEncoding; +- (NSString *)mysqlEncodingFromDisplayEncoding:(NSString *)encodingName; //other methods - (NSString *)host; @@ -141,9 +146,12 @@ - (void)tunnelStatusChanged:(NSNotification *)notification; //menu methods +- (BOOL)validateMenuItem:(NSMenuItem *)anItem; - (IBAction)import:(id)sender; +- (IBAction)importCSV:(id)sender; - (IBAction)export:(id)sender; -- (BOOL)validateMenuItem:(NSMenuItem *)anItem; +- (IBAction)exportTable:(id)sender; +- (IBAction)exportMultipleTables:(id)sender; - (IBAction)viewStructure:(id)sender; - (IBAction)viewContent:(id)sender; - (IBAction)viewQuery:(id)sender; |