UI/Nodes: templates to edit nodes from the properties editor using a tree view,
to be used by cycles. For testing there's a panel in the node editor if you set debug to 777, didn't enable it because I'm not sure it's very useful there.
This commit is contained in:
@@ -66,6 +66,9 @@ struct uiWidgetColors;
|
||||
struct Tex;
|
||||
struct MTex;
|
||||
struct ImBuf;
|
||||
struct bNodeTree;
|
||||
struct bNode;
|
||||
struct bNodeSocket;
|
||||
|
||||
typedef struct uiBut uiBut;
|
||||
typedef struct uiBlock uiBlock;
|
||||
@@ -74,6 +77,10 @@ typedef struct uiLayout uiLayout;
|
||||
|
||||
/* Defines */
|
||||
|
||||
/* names */
|
||||
#define UI_MAX_DRAW_STR 400
|
||||
#define UI_MAX_NAME_STR 128
|
||||
|
||||
/* uiBlock->dt */
|
||||
#define UI_EMBOSS 0 /* use widget style for drawing */
|
||||
#define UI_EMBOSSN 1 /* Nothing, only icon and/or text */
|
||||
@@ -128,11 +135,11 @@ typedef struct uiLayout uiLayout;
|
||||
#define UI_ICON_LEFT 128
|
||||
#define UI_ICON_SUBMENU 256
|
||||
#define UI_ICON_PREVIEW 512
|
||||
/* control for button type block */
|
||||
#define UI_MAKE_TOP 1024
|
||||
#define UI_MAKE_DOWN 2048
|
||||
#define UI_MAKE_LEFT 4096
|
||||
#define UI_MAKE_RIGHT 8192
|
||||
|
||||
#define UI_TEXT_RIGHT 1024
|
||||
#define UI_BUT_NODE_LINK 2048
|
||||
#define UI_BUT_NODE_ACTIVE 4096
|
||||
#define UI_FLAG_UNUSED 8192
|
||||
|
||||
/* button align flag, for drawing groups together */
|
||||
#define UI_BUT_ALIGN (UI_BUT_ALIGN_TOP|UI_BUT_ALIGN_LEFT|UI_BUT_ALIGN_RIGHT|UI_BUT_ALIGN_DOWN)
|
||||
@@ -749,6 +756,8 @@ void uiTemplateReportsBanner(uiLayout *layout, struct bContext *C);
|
||||
void uiTemplateKeymapItemProperties(uiLayout *layout, struct PointerRNA *ptr);
|
||||
|
||||
void uiTemplateList(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, struct PointerRNA *activeptr, const char *activeprop, const char *prop_list, int rows, int maxrows, int type);
|
||||
void uiTemplateNodeLink(uiLayout *layout, struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *input);
|
||||
void uiTemplateNodeView(uiLayout *layout, struct bContext *C, struct bNodeTree *ntree, struct bNode *node, struct bNodeSocket *input);
|
||||
|
||||
void uiTemplateMovieClip(struct uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, int compact);
|
||||
void uiTemplateTrack(struct uiLayout *layout, struct PointerRNA *ptr, const char *propname);
|
||||
|
||||
Reference in New Issue
Block a user