Update of /cvsroot/pure-data/externals/miXed/toxy
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23748/toxy
Modified Files:
Makefile.objects build_counter toxy-shared.include widget.c
Added Files:
notes.txt
Log Message:
cyclone alpha52 and toxy alpha15 (see notes.txt for cyclone, toxy and shared)
--- NEW FILE: notes.txt ---
TODO for toxy
DONE for toxy
alpha15
* fixes for megawidgets
. setting sub-item bindings in ::toxy::subwidget
(to be called explicitly from type initializer)
. handling widget's state through virtual events
. getting implicit geometry (needed for Frame widgets)
. automatically rebinding focus for Canvas widgets
alpha14
* 'redefine' message to widget
* version control, using package provide (both in tcl and parsed from pd)
* "> master" section removed: master initializer defined directly
by proc ::toxy::master
* better kb: chords (shift-click), latch (control-click), dragging
alpha13
* @new and @free handlers, defined in #@ new and #@ free sections,
invoked by widget object creation and destruction
* optional sections #@ ini (aka #@ vis) appended to initializer (which still
defines in default section too -- old .wid files do not need updating)
* .#args parameter of message handlers, replaced (during scriptlet
evaluation) by all arguments of an invoking message
Index: build_counter
===================================================================
RCS file: /cvsroot/pure-data/externals/miXed/toxy/build_counter,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** build_counter 21 Dec 2004 11:32:13 -0000 1.12
--- build_counter 27 Jan 2005 14:42:55 -0000 1.13
***************
*** 1,7 ****
#define TOXY_VERSION "0.1"
#define TOXY_RELEASE "alpha"
! #define TOXY_BUILD 14
#if 0
! TOXY_SNAPSHOT = 0.1-alpha14
#endif
--- 1,7 ----
#define TOXY_VERSION "0.1"
#define TOXY_RELEASE "alpha"
! #define TOXY_BUILD 15
#if 0
! TOXY_SNAPSHOT = 0.1-alpha15
#endif
Index: widget.c
===================================================================
RCS file: /cvsroot/pure-data/externals/miXed/toxy/widget.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** widget.c 11 Jan 2005 10:33:23 -0000 1.13
--- widget.c 27 Jan 2005 14:42:55 -0000 1.14
***************
*** 1,3 ****
! /* Copyright (c) 2003-2004 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
--- 1,3 ----
! /* Copyright (c) 2003-2005 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
***************
*** 22,26 ****
#ifdef KRZYSZCZ
! #define WIDGET_DEBUG
//#define TOW_DEBUG
//#define WIDGET_PROFILE
--- 22,26 ----
#ifdef KRZYSZCZ
! //#define WIDGET_DEBUG
//#define TOW_DEBUG
//#define WIDGET_PROFILE
***************
*** 78,82 ****
int x_height;
t_symbol *x_background;
! int x_hasstate;
int x_disabled;
int x_selected;
--- 78,82 ----
int x_height;
t_symbol *x_background;
! int x_hasstate; /* no longer used, LATER rethink */
int x_disabled;
int x_selected;
***************
*** 294,299 ****
t_text *t = (t_text *)z;
#if 0
! post("displace %d %d (%d %d -> %d %d)",
! dx, dy, t->te_xpix, t->te_ypix, t->te_xpix + dx, t->te_ypix + dy);
#endif
t->te_xpix += dx;
--- 294,300 ----
t_text *t = (t_text *)z;
#if 0
! loudbug_post("displace %d %d (%d %d -> %d %d)",
! dx, dy, t->te_xpix, t->te_ypix,
! t->te_xpix + dx, t->te_ypix + dy);
#endif
t->te_xpix += dx;
***************
*** 312,317 ****
if (flag)
{
! sys_vgui("%s config -bg blue %s\n", mypathname,
! (x->x_hasstate ? "-state disabled" : ""));
x->x_selected = 1;
}
--- 313,318 ----
if (flag)
{
! sys_vgui("%s config -bg blue\n", mypathname);
! sys_vgui("event generate %s <<disable>>\n", mypathname);
x->x_selected = 1;
}
***************
*** 322,328 ****
(x->x_background ? x->x_background->s_name : "gray"));
else
! sys_vgui("%s config -bg %s %s\n", mypathname,
! (x->x_background ? x->x_background->s_name : "gray"),
! (x->x_hasstate ? "-state normal" : ""));
x->x_selected = 0;
}
--- 323,329 ----
(x->x_background ? x->x_background->s_name : "gray"));
else
! sys_vgui("%s config -bg %s \n", mypathname,
! (x->x_background ? x->x_background->s_name : "gray"));
! sys_vgui("event generate %s <<enable>>\n", mypathname);
x->x_selected = 0;
}
***************
*** 343,347 ****
int sz;
char *dp = scriptlet_getcontents(x->x_transient, &sz);
! post("vis: \"%s\"", dp);
#endif
if (doit)
--- 344,348 ----
int sz;
char *dp = scriptlet_getcontents(x->x_transient, &sz);
! loudbug_post("vis: \"%s\"", dp);
#endif
if (doit)
***************
*** 899,904 ****
{
char *mypathname = widget_getmypathname(x, x->x_glist)->s_name;
! if (x->x_hasstate)
! sys_vgui("%s config -state normal\n", mypathname);
}
x->x_disabled = 0;
--- 900,904 ----
{
char *mypathname = widget_getmypathname(x, x->x_glist)->s_name;
! sys_vgui("event generate %s <<enable>>\n", mypathname);
}
x->x_disabled = 0;
***************
*** 910,915 ****
{
char *mypathname = widget_getmypathname(x, x->x_glist)->s_name;
! if (x->x_hasstate)
! sys_vgui("%s config -state disabled\n", mypathname);
}
x->x_disabled = 1;
--- 910,914 ----
{
char *mypathname = widget_getmypathname(x, x->x_glist)->s_name;
! sys_vgui("event generate %s <<disable>>\n", mypathname);
}
x->x_disabled = 1;
Index: Makefile.objects
===================================================================
RCS file: /cvsroot/pure-data/externals/miXed/toxy/Makefile.objects,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Makefile.objects 19 Feb 2004 22:23:18 -0000 1.3
--- Makefile.objects 27 Jan 2005 14:42:54 -0000 1.4
***************
*** 3,6 ****
--- 3,7 ----
common/loud.o \
common/grow.o \
+ common/os.o \
hammer/file.o \
hammer/gui.o \
***************
*** 13,16 ****
--- 14,18 ----
common/loud.o \
common/grow.o \
+ common/os.o \
hammer/file.o \
common/props.o \
***************
*** 37,40 ****
--- 39,43 ----
common/grow.o \
common/dict.o \
+ common/os.o \
hammer/file.o \
common/props.o \
Index: toxy-shared.include
===================================================================
RCS file: /cvsroot/pure-data/externals/miXed/toxy/toxy-shared.include,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** toxy-shared.include 19 Feb 2004 22:23:18 -0000 1.3
--- toxy-shared.include 27 Jan 2005 14:42:55 -0000 1.4
***************
*** 6,9 ****
--- 6,11 ----
shared/common/dict.c
shared/common/dict.h
+ shared/common/os.c
+ shared/common/os.h
shared/hammer/file.c
shared/hammer/file.h