From 10333bd1d39460efb2e71930f43342e6b5840c9a Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 15 Oct 2003 19:23:54 +0000 Subject: - removed all #include "interface.h" from files. this is a local/internal include only (use BIF_interface.h instead) - split up interface.c in two files: NEW: interface_panel.c - removed the temporal text files WARN: FIX AUTOMAKE AND MSVC! --- source/blender/include/BIF_interface.h | 97 ++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) (limited to 'source/blender/include/BIF_interface.h') diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h index 1b91d6a6c31..3d85a56ce43 100644 --- a/source/blender/include/BIF_interface.h +++ b/source/blender/include/BIF_interface.h @@ -37,6 +37,103 @@ struct ID; struct ListBase; struct ScrArea; +/* uiBlock->dt */ +#define UI_EMBOSSX 0 /* Rounded embossed button */ +#define UI_EMBOSSW 1 /* Flat bordered button */ +#define UI_EMBOSSN 2 /* No border */ +#define UI_EMBOSSF 3 /* Square embossed button */ +#define UI_EMBOSSM 4 /* Colored Border */ +#define UI_EMBOSSP 5 /* Borderless coloured button */ +#define UI_EMBOSSA 6 /* same as EMBOSSX but with arrows to simulate */ +#define UI_EMBOSSTABL 7 +#define UI_EMBOSSTABM 8 +#define UI_EMBOSSTABR 9 +#define UI_EMBOSST 10 +#define UI_EMBOSSMB 11 /* emboss menu button */ + +/* uiBlock->direction */ +#define UI_TOP 0 +#define UI_DOWN 1 +#define UI_LEFT 2 +#define UI_RIGHT 3 + +/* uiBlock->autofill */ +#define UI_BLOCK_COLLUMNS 1 +#define UI_BLOCK_ROWS 2 + +/* return from uiDoBlock */ +#define UI_CONT 0 +#define UI_NOTHING 1 +#define UI_RETURN_CANCEL 2 +#define UI_RETURN_OK 4 +#define UI_RETURN_OUT 8 +#define UI_RETURN 14 +#define UI_EXIT_LOOP 16 + +/* uiBlock->flag (controls) */ +#define UI_BLOCK_LOOP 1 +#define UI_BLOCK_REDRAW 2 +#define UI_BLOCK_RET_1 4 +#define UI_BLOCK_BUSY 8 +#define UI_BLOCK_NUMSELECT 16 +#define UI_BLOCK_ENTER_OK 32 + +/* block->font, for now: bold = medium+1 */ +#define UI_HELV 0 +#define UI_HELVB 1 + +/* panel style */ +#define UI_PNL_TRANSP 0 +#define UI_PNL_SOLID 1 + + +/* definitions for icons (and their alignment) in buttons */ +/* warning the first 4 flags are internal */ +#define UI_TEXT_LEFT 16 +#define UI_ICON_LEFT 32 +#define UI_ICON_RIGHT 64 + + +/* Button types */ +#define CHA 32 +#define SHO 64 +#define INT 96 +#define FLO 128 +#define FUN 192 +#define BIT 256 + +#define BUTPOIN (128+64+32) + +#define BUT (1<<9) +#define ROW (2<<9) +#define TOG (3<<9) +#define SLI (4<<9) +#define NUM (5<<9) +#define TEX (6<<9) +#define TOG3 (7<<9) +#define TOGR (8<<9) +#define TOGN (9<<9) +#define LABEL (10<<9) +#define MENU (11<<9) +#define ICONROW (12<<9) +#define ICONTOG (13<<9) +#define NUMSLI (14<<9) +#define COL (15<<9) +#define IDPOIN (16<<9) +#define HSVSLI (17<<9) +#define SCROLL (18<<9) +#define BLOCK (19<<9) +#define BUTM (20<<9) +#define SEPR (21<<9) +#define LINK (22<<9) +#define INLINK (23<<9) +#define KEYEVT (24<<9) +#define ICONTEXTROW (25<<9) + +#define BUTTYPE (31<<9) + + + typedef struct uiBut uiBut; typedef struct uiBlock uiBlock; -- cgit v1.2.3