This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/include
Ton Roosendaal 513ae61f2b First commit of a new toolbox system.
Aim was to find a simple & easy system, script alike, to add and configure
a toolbox system, so that others can experiment, but also of course Python.

Summary:
- spacebar calls it up. SHIFT+A still does old toolbox
- hold left or rightmouse for 0.4 second, and it pops up as well
  this is experimental! Can be tweaked with Userdef var "ThresA"
- it is a little bit complete for Object mode only. Needs still work
  at information desing/structure level
- the code works like an engine, interpreting structs like this:

static TBitem addmenu_curve[]= {
{	0, "Bezier Curve", 	0, NULL},
{	0, "Bezier Circle", 1, NULL},
{	0, "NURBS Curve", 	2, NULL},
{	0, "NURBS Circle", 	3, NULL},
{	0, "Path", 			4, NULL},
{  -1, "", 			0, do_info_add_curvemenu}};

- first value is ICON code,
- then name
- return value
- pointer to optional child

last row has -1 to indicate its the last...
plus a callback to event function.

I also built an old toolbox style callback for this:

static TBitem tb_object_select[]= {
{	0, "Border Select|B", 	'b', NULL},
{	0, "(De)select All|A", 	'a', NULL},
{	0, "Linked...|Shift L", 	'L', NULL},
{	0, "Grouped...|Shift G", 	'G', NULL},
{  -1, "", 			0, tb_do_hotkey}};

here the return values are put back as hotkeys in mainqueue.

A mainloop can do all context switching, and build menus on the fly.
Meaning, it also allows other designs such as radials...
2003-10-25 00:08:12 +00:00
..
2003-09-20 20:58:14 +00:00
2003-10-10 17:29:01 +00:00
2003-03-24 01:46:05 +00:00
2003-03-24 01:46:05 +00:00
2003-10-10 17:29:01 +00:00
2003-07-17 14:19:55 +00:00
2003-10-19 20:52:34 +00:00
2003-10-20 02:19:48 +00:00
2003-10-04 20:35:50 +00:00
2003-10-16 00:17:24 +00:00
2003-03-24 01:46:05 +00:00
2003-10-04 20:35:50 +00:00
2003-03-24 01:46:05 +00:00
2003-03-24 01:46:05 +00:00
2003-03-24 01:46:05 +00:00
2003-03-24 01:46:05 +00:00
2003-07-17 14:19:55 +00:00