diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-04 17:40:56 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-04 17:40:56 +0000 |
commit | 9683c9df3cb0b1128429f42f108d4e03ca4550f1 (patch) | |
tree | e1ed970699a4d71e7dce31247ef45cc7c17e0810 /Source/CustomQuery.h | |
parent | e00013ffbf5fb252a11fc6e2c68a1af0b9886317 (diff) | |
download | sequelpro-9683c9df3cb0b1128429f42f108d4e03ca4550f1.tar.gz sequelpro-9683c9df3cb0b1128429f42f108d4e03ca4550f1.tar.bz2 sequelpro-9683c9df3cb0b1128429f42f108d4e03ca4550f1.zip |
• improved behavior while closing a document window
- if not connected close it without any checks
- if an Untitled document contains stored query favorites - What should be done? - up to now it saves them to the global prefs
• header in query favorites list keep visible while filtering
• code cleaning
Diffstat (limited to 'Source/CustomQuery.h')
-rw-r--r-- | Source/CustomQuery.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/Source/CustomQuery.h b/Source/CustomQuery.h index 9d1559e6..a9d4f670 100644 --- a/Source/CustomQuery.h +++ b/Source/CustomQuery.h @@ -32,6 +32,20 @@ #import "RegexKitLite.h" #define SP_HELP_TOC_SEARCH_STRING @"contents" +#define SP_HELP_SEARCH_IN_MYSQL 0 +#define SP_HELP_SEARCH_IN_PAGE 1 +#define SP_HELP_SEARCH_IN_WEB 2 +#define SP_HELP_GOBACK_BUTTON 0 +#define SP_HELP_SHOW_TOC_BUTTON 1 +#define SP_HELP_GOFORWARD_BUTTON 2 +#define SP_HELP_NOT_AVAILABLE @"__no_help_available" + +#define SP_MYSQL_DEV_SEARCH_URL @"http://search.mysql.com/search?q=%@&site=refman-%@" + +#define SP_SAVE_ALL_FAVORTITE_MENUITEM_TAG 100001 +#define SP_SAVE_SELECTION_FAVORTITE_MENUITEM_TAG 100000 +#define SP_FAVORITE_HEADER_MENUITEM_TAG 200000 + @class SPQueryFavoriteManager; @@ -43,8 +57,15 @@ IBOutlet id queryFavoritesButton; IBOutlet NSMenuItem *queryFavoritesSearchMenuItem; IBOutlet NSMenuItem *queryFavoritesSaveAsMenuItem; + IBOutlet NSMenuItem *queryFavoritesSaveAllMenuItem; IBOutlet id queryFavoritesSearchFieldView; IBOutlet NSSearchField *queryFavoritesSearchField; + + IBOutlet NSWindow *queryFavoritesSheet; + IBOutlet NSButton *saveQueryFavoriteButton; + IBOutlet NSTextField *queryFavoriteNameTextField; + IBOutlet id saveQueryFavoriteGlobal; + IBOutlet id queryHistoryButton; IBOutlet NSMenuItem *queryHistorySearchMenuItem; IBOutlet id queryHistorySearchFieldView; @@ -73,11 +94,6 @@ IBOutlet NSMenuItem *commentCurrentQueryMenuItem; IBOutlet NSMenuItem *commentLineOrSelectionMenuItem; - IBOutlet NSWindow *queryFavoritesSheet; - IBOutlet NSButton *saveQueryFavoriteButton; - IBOutlet NSTextField *queryFavoriteNameTextField; - IBOutlet id saveQueryFavoriteGlobal; - IBOutlet NSWindow *helpWebViewWindow; IBOutlet WebView *helpWebView; IBOutlet NSSearchField *helpSearchField; |