-
-enum {
- TBN_NEW, TBN_OPEN, TBN_SAVE, TBN_SEP1,
- TBN_SEL, TBN_MOVE, TBN_ROT, TBN_SCALE, TBN_SEP2,
- TBN_ADD, TBN_RM, TBN_SEP3,
- TBN_UNION, TBN_ISECT, TBN_DIFF, TBN_SEP4,
- TBN_MTL, TBN_REND, TBN_REND_AREA, TBN_VIEWREND, TBN_SEP5, TBN_CFG,
-
- NUM_TOOL_BUTTONS
-};
-static const char *tbn_icon_name[] = {
- "new", "open", "save", 0,
- "sel", "move", "rot", "scale", 0,
- "add", "remove", 0,
- "union", "isect", "diff", 0,
- "mtl", "rend", "rend-area", "viewrend", 0, "cfg"
-};
-static int tbn_icon_pos[][2] = {
- {0,0}, {16,0}, {32,0}, {-1,-1},
- {48,0}, {64,0}, {80,0}, {96,0}, {-1,-1},
- {112,0}, {112,16}, {-1,-1},
- {0,16}, {16,16}, {32,16}, {-1,-1},
- {48,16}, {64,16}, {64, 32}, {80,16}, {-1,-1}, {96,16}
-};
-static int tbn_istool[] = {
- 0, 0, 0, 0,
- 1, 1, 1, 1, 0,
- 0, 0, 0,
- 1, 1, 1, 0,
- 0, 0, 1, 0, 0, 0
-};
-static rtk_icon *tbn_icons[NUM_TOOL_BUTTONS];
-static rtk_widget *tbn_buttons[NUM_TOOL_BUTTONS];
-
-#define TOOLBAR_HEIGHT 26
-
-enum {
- TOOL_SEL, TOOL_MOVE, TOOL_ROT, TOOL_SCALE,
- TOOL_UNION, TOOL_ISECT, TOOL_DIFF, TOOL_REND_AREA,
- NUM_TOOLS
-};
-static rtk_widget *tools[NUM_TOOLS];