diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-08-18 13:55:36 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-08-18 13:55:36 +0000 |
commit | 8c1128f6710c6738cc969a11f05bef89c8722c63 (patch) | |
tree | 5fb72744befe5940571dc8da41e2568b33f5f675 /Source/SPPreferenceController.h | |
parent | cb3f168082f921bdfd65eecec7d21eaf4e8bd79e (diff) | |
download | sequelpro-8c1128f6710c6738cc969a11f05bef89c8722c63.tar.gz sequelpro-8c1128f6710c6738cc969a11f05bef89c8722c63.tar.bz2 sequelpro-8c1128f6710c6738cc969a11f05bef89c8722c63.zip |
• added Query Editor color theme manager to the Editor Pref
- themes can be saved/loaded in/from ~/Library/Application Support/Sequel Pro/Themes by using the gear menu items in the Editor Pref
- rearrange the GUI
- Edit Theme List follows soon
Diffstat (limited to 'Source/SPPreferenceController.h')
-rw-r--r-- | Source/SPPreferenceController.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/SPPreferenceController.h b/Source/SPPreferenceController.h index 428bfd6d..8dae6077 100644 --- a/Source/SPPreferenceController.h +++ b/Source/SPPreferenceController.h @@ -59,9 +59,17 @@ IBOutlet NSTextField *favoriteHostTextFieldSSH; IBOutlet NSMenuItem *favoritesSortByMenuItem; + IBOutlet NSWindow *enterNameWindow; + IBOutlet NSTextField *enterNameLabel; + IBOutlet NSTextField *enterNameInputField; + IBOutlet NSTextField *colorThemeName; + IBOutlet NSTextField *colorThemeNameLabel; + IBOutlet id themeNameSaveButton; + IBOutlet id tableCell; IBOutlet NSTableView *colorSettingTableView; + IBOutlet NSMenu *themeSelectionMenu; NSArray *editorColors; NSArray *editorNameForColors; NSUInteger colorRow; @@ -92,6 +100,8 @@ BOOL reverseFavoritesSort; SPFavoritesSortItem previousSortItem, currentSortItem; + + NSString *themePath; } - (void)applyRevisionChanges; @@ -109,6 +119,9 @@ - (IBAction)makeSelectedFavoriteDefault:(id)sender; - (IBAction)exportColorScheme:(id)sender; - (IBAction)importColorScheme:(id)sender; +- (IBAction)saveColorScheme:(id)sender; +- (IBAction)loadColorScheme:(id)sender; +- (IBAction)closePanelSheet:(id)sender; // Toolbar item IBAction methods @@ -126,5 +139,11 @@ - (void)changeFont:(id)sender; - (IBAction)favoriteTypeDidChange:(id)sender; - (void)updateFavoritePasswordsFromField:(NSControl *)passwordControl; +- (void)updateColorSchemeSelectionMenu; +- (void)saveColorThemeAtPath:(NSString*)path; +- (BOOL)loadColorSchemeFromFile:(NSString*)filename; +- (BOOL)checkForUnsavedTheme; +- (void)updateDisplayColorThemeName; +- (NSArray *)getAvailableThemes; @end |