aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-arg.h
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-02-22 18:09:07 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-02-22 18:09:07 +0800
commit7c6897ee95e4346e991185c014bcfce003809fd8 (patch)
treeb34cb809263e9641c3311168c43b8977812e91be /filter/filter-arg.h
parent6b21505b40126e00636603c705b771e5c857beef (diff)
downloadgsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar
gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.gz
gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.bz2
gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.lz
gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.xz
gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.tar.zst
gsoc2013-evolution-7c6897ee95e4346e991185c014bcfce003809fd8.zip
New utility functions for working with the internal rule format.
2000-02-22 NotZed <NotZed@HelixCode.com> * filter-xml.c (filter_clone_optionrule): (filter_clone_optionrule_free): (filter_optionrule_new_from_rule): New utility functions for working with the internal rule format. * filter-arg.[ch]: Added new callbacks for editing a single value, and a new editor which shows all items in a list, and allows you to edit them via the single-edit method. This needs some cleanup for some unused/unusable virtual methods (edit_values, write_html?). * Makefile: Add the druid for build. * filter-druid.c: A 'druid' widget for editing a single filter rule. svn path=/trunk/; revision=1901
Diffstat (limited to 'filter/filter-arg.h')
-rw-r--r--filter/filter-arg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/filter/filter-arg.h b/filter/filter-arg.h
index 95e7d1caea..bf9448a17a 100644
--- a/filter/filter-arg.h
+++ b/filter/filter-arg.h
@@ -44,11 +44,16 @@ struct _FilterArg {
struct _FilterArgClass {
GtkObjectClass parent_class;
+ /* make a copy of yourself */
+ struct _FilterArg * (*clone)(FilterArg *arg);
+
/* virtual methods */
void (*write_html)(FilterArg *arg, GtkHTML *html, GtkHTMLStreamHandle *stream);
void (*write_text)(FilterArg *arg, GString *string);
void (*free_value)(FilterArg *arg, void *v);
+
void (*edit_values)(FilterArg *arg);
+ int (*edit_value)(FilterArg *arg, int index);
void (*values_add_xml)(FilterArg *arg, xmlNodePtr node);
xmlNodePtr (*values_get_xml)(FilterArg *arg);
@@ -61,9 +66,11 @@ struct _FilterArgClass {
guint filter_arg_get_type (void);
FilterArg *filter_arg_new (char *name);
+FilterArg *filter_arg_clone(FilterArg *arg);
void filter_arg_value_add(FilterArg *a, void *v);
void filter_arg_edit_values(FilterArg *arg);
+int filter_arg_edit_value(FilterArg *arg, int index);
xmlNodePtr filter_arg_values_get_xml(FilterArg *arg);
void filter_arg_values_add_xml(FilterArg *arg, xmlNodePtr node);
@@ -72,3 +79,4 @@ void *filter_arg_get_value(FilterArg *arg, int index);
char *filter_arg_get_value_as_string(FilterArg *arg, int index);
#endif /* ! _FILTER_ARG_H */
+