From 7c6897ee95e4346e991185c014bcfce003809fd8 Mon Sep 17 00:00:00 2001 From: NotZed Date: Tue, 22 Feb 2000 10:09:07 +0000 Subject: New utility functions for working with the internal rule format. 2000-02-22 NotZed * 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 --- filter/filter-arg.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'filter/filter-arg.h') 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 */ + -- cgit v1.2.3