From dc52874be8ee2b471502809380354249b251b58a Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 22 Nov 2007 05:57:45 +0000 Subject: - removed xscrollcommand and yscrollcommand from supported options since currently they use generated names, i.e. canvas_id, etc. Perhaps it's possible to support user override of these, but it probably would not be simple - renamed "inlets" functions to "iolets" since they handle outlets too - fixed bug in save logic that made the options get appended everytime it was saved: I needed to binbuf_clear() first. - created tkwidgets_restore_options() and implemented it in [text]. It turned out to be quite easy since Tk's "canvas configure" can take the whole slew of options all at once. svn path=/trunk/externals/tkwidgets/; revision=9024 --- shared/tkwidgets.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shared/tkwidgets.h') diff --git a/shared/tkwidgets.h b/shared/tkwidgets.h index 999e2ac..171b3c7 100644 --- a/shared/tkwidgets.h +++ b/shared/tkwidgets.h @@ -71,6 +71,8 @@ void tkwidgets_setcallbackname(void *x, char *widget_name); /* handle options */ void tkwidgets_store_options(t_symbol *receive_name, t_symbol *tcl_namespace, t_symbol *widget_id, int argc, char **argv); +void tkwidgets_restore_options(t_symbol *receive_name, t_symbol *tcl_namespace, + t_symbol *widget_id, t_binbuf *options_binbuf); void tkwidgets_query_options(t_symbol *receive_name, t_symbol *widget_id, int argc, char** argv); @@ -89,11 +91,11 @@ t_symbol* tkwidgets_gen_all_tag(t_object *x); // TODO perhaps I should try to use glist_drawiofor() from g_text.c -void tkwidgets_draw_inlets(t_object *x, t_glist *glist, t_symbol *canvas_id, +void tkwidgets_draw_iolets(t_object *x, t_glist *glist, t_symbol *canvas_id, t_symbol *iolets_tag, t_symbol *all_tag, int width, int height, int total_inlets, int total_outlets); -void tkwidgets_erase_inlets(t_symbol* canvas_id, t_symbol* iolets_tag); +void tkwidgets_erase_iolets(t_symbol* canvas_id, t_symbol* iolets_tag); void tkwidgets_draw_handle(); // TODO draw resize handle when selected in editmode void tkwidgets_draw_resize_window(); // TODO draw the resize window while resizing -- cgit v1.2.1