diff options
author | Harish Krishnaswamy <kharish@novell.com> | 2006-06-30 17:46:32 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2006-06-30 17:46:32 +0800 |
commit | a1d6678af2c9f8a075d9d7832c2a6da981afe216 (patch) | |
tree | 9004c48377a85caf85ce21a5f91df6f18bd3ca7c /widgets/misc/e-filter-bar.h | |
parent | efd7b846b86bafc3efc361a316b9fd204a75ac89 (diff) | |
download | gsoc2013-evolution-a1d6678af2c9f8a075d9d7832c2a6da981afe216.tar gsoc2013-evolution-a1d6678af2c9f8a075d9d7832c2a6da981afe216.tar.gz gsoc2013-evolution-a1d6678af2c9f8a075d9d7832c2a6da981afe216.tar.bz2 gsoc2013-evolution-a1d6678af2c9f8a075d9d7832c2a6da981afe216.tar.lz gsoc2013-evolution-a1d6678af2c9f8a075d9d7832c2a6da981afe216.tar.xz gsoc2013-evolution-a1d6678af2c9f8a075d9d7832c2a6da981afe216.tar.zst gsoc2013-evolution-a1d6678af2c9f8a075d9d7832c2a6da981afe216.zip |
Enhanced search functionality. patch submitted by Johnny Jacob Reviewed
2006-06-30 Harish Krishnaswamy <kharish@novell.com>
Enhanced search functionality. patch submitted by Johnny Jacob
Reviewed and committed by Harish.
svn path=/trunk/; revision=32207
Diffstat (limited to 'widgets/misc/e-filter-bar.h')
-rw-r--r-- | widgets/misc/e-filter-bar.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/widgets/misc/e-filter-bar.h b/widgets/misc/e-filter-bar.h index 4b85a36d79..2b1ff53416 100644 --- a/widgets/misc/e-filter-bar.h +++ b/widgets/misc/e-filter-bar.h @@ -21,6 +21,7 @@ #define __E_FILTER_BAR_H__ #include <gtk/gtk.h> +#include <camel/camel-vee-folder.h> #include "e-search-bar.h" @@ -55,14 +56,13 @@ typedef void (*EFilterBarConfigRule)(EFilterBar *, FilterRule *rule, int id, con struct _EFilterBar { ESearchBar parent; - int menu_base, option_base; GPtrArray *menu_rules, *option_rules; ESearchBarItem *default_items; GtkWidget *save_dialog; /* current save dialogue (so we dont pop up multiple ones) */ - + FilterRule *current_query; /* as it says */ int setquery; /* true when we're setting a query directly to advanced, so dont popup the dialog */ @@ -72,6 +72,10 @@ struct _EFilterBar { EFilterBarConfigRule config; void *config_data; + + CamelVeeFolder *all_account_search_vf; + CamelVeeFolder *account_search_vf; + }; struct _EFilterBarClass @@ -87,12 +91,20 @@ enum { /* preset option options */ E_FILTERBAR_ADVANCED_ID = -5, + E_FILTERBAR_CURRENT_MESSAGE_ID = -6, + E_FILTERBAR_CURRENT_FOLDER_ID = -7, + E_FILTERBAR_CURRENT_ACCOUNT_ID = -8, + E_FILTERBAR_ALL_ACCOUNTS_ID = -9, }; -#define E_FILTERBAR_SAVE { N_("_Save Search..."), E_FILTERBAR_SAVE_ID, NULL } -#define E_FILTERBAR_EDIT { N_("_Edit Saved Searches..."), E_FILTERBAR_EDIT_ID, NULL } -#define E_FILTERBAR_ADVANCED { N_("_Advanced Search..."), E_FILTERBAR_ADVANCED_ID, NULL } -#define E_FILTERBAR_SEPARATOR { NULL, 0, NULL } +#define E_FILTERBAR_SAVE { N_("_Save Search..."), E_FILTERBAR_SAVE_ID, 0 } +#define E_FILTERBAR_EDIT { N_("_Edit Saved Searches..."), E_FILTERBAR_EDIT_ID, 0 } +#define E_FILTERBAR_ADVANCED { N_("_Advanced Search..."), E_FILTERBAR_ADVANCED_ID, 0 } +#define E_FILTERBAR_ALL_ACCOUNTS { N_("All Accounts"), E_FILTERBAR_ALL_ACCOUNTS_ID, ESB_ITEMTYPE_RADIO } +#define E_FILTERBAR_CURRENT_ACCOUNT { N_("Current Account"), E_FILTERBAR_CURRENT_ACCOUNT_ID, ESB_ITEMTYPE_RADIO } +#define E_FILTERBAR_CURRENT_FOLDER { N_("Current Folder"), E_FILTERBAR_CURRENT_FOLDER_ID, ESB_ITEMTYPE_RADIO } +#define E_FILTERBAR_CURRENT_MESSAGE { N_("Current Message"), E_FILTERBAR_CURRENT_MESSAGE_ID, ESB_ITEMTYPE_RADIO } +#define E_FILTERBAR_SEPARATOR { NULL, 0, NULL, 0 } #ifdef JUST_FOR_TRANSLATORS const char * strings[] = { |