#include "../ui_main.h"
#include "../ui_parse.h"
#include "ui_node_abstractnode.h"
#include "ui_node_option.h"
#include "../../client.h"
Go to the source code of this file.
Defines | |
#define | EXTRADATA_TYPE optionExtraData_t |
#define | EXTRADATA(node) UI_EXTRADATA(node, EXTRADATA_TYPE) |
#define | EXTRADATACONST(node) UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
Functions | |
int | UI_OptionUpdateCache (uiNode_t *option) |
update option cache about child, according to collapse and visible status | |
static void | UI_OptionDoLayout (uiNode_t *node) |
static void | UI_OptionPropertyChanged (uiNode_t *node, const value_t *property) |
void | UI_RegisterOptionNode (uiBehaviour_t *behaviour) |
Variables | |
const uiBehaviour_t * | ui_optionBehaviour = NULL |
static const value_t * | propertyCollapsed |
static const value_t | properties [] |
valid properties for options (used by selectbox, tab, optonlist and optiontree) |
Definition in file ui_node_option.c.
#define EXTRADATA | ( | node | ) | UI_EXTRADATA(node, EXTRADATA_TYPE) |
Definition at line 38 of file ui_node_option.c.
#define EXTRADATA_TYPE optionExtraData_t |
Definition at line 37 of file ui_node_option.c.
#define EXTRADATACONST | ( | node | ) | UI_EXTRADATACONST(node, EXTRADATA_TYPE) |
Definition at line 39 of file ui_node_option.c.
static void UI_OptionDoLayout | ( | uiNode_t * | node | ) | [static] |
Definition at line 74 of file ui_node_option.c.
References uiNode_s::behaviour, count, EXTRADATA, uiNode_s::firstChild, uiNode_s::invalidated, uiNode_s::invis, uiNode_s::next, qfalse, and UI_Validate().
Referenced by UI_RegisterOptionNode().
Definition at line 92 of file ui_node_option.c.
References uiBehaviour_s::propertyChanged, uiBehaviour_s::super, and UI_Invalidate().
Referenced by UI_RegisterOptionNode().
int UI_OptionUpdateCache | ( | uiNode_t * | option | ) |
update option cache about child, according to collapse and visible status
Definition at line 49 of file ui_node_option.c.
References uiNode_s::behaviour, count, uiNode_s::firstChild, uiNode_s::invis, uiNode_s::next, OPTIONEXTRADATA, and UI_OptionUpdateCache().
Referenced by UI_OptionTreeNodeUpdateCache(), and UI_OptionUpdateCache().
void UI_RegisterOptionNode | ( | uiBehaviour_t * | behaviour | ) |
Definition at line 125 of file ui_node_option.c.
References uiBehaviour_s::doLayout, EXTRADATA_TYPE, uiBehaviour_s::extraDataSize, uiBehaviour_s::name, uiBehaviour_s::properties, uiBehaviour_s::propertyChanged, UI_GetPropertyFromBehaviour(), UI_OptionDoLayout(), and UI_OptionPropertyChanged().
const value_t properties[] [static] |
{ {"label", V_STRING, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, label), 0}, {"value", V_STRING, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, value), 0}, {"collapsed", V_BOOL, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, collapsed), MEMBER_SIZEOF(EXTRADATA_TYPE, collapsed)}, {"icon", V_UI_ICONREF, UI_EXTRADATA_OFFSETOF(EXTRADATA_TYPE, icon), MEMBER_SIZEOF(EXTRADATA_TYPE, icon)}, {NULL, V_NULL, 0, 0}, }
valid properties for options (used by selectbox, tab, optonlist and optiontree)
Definition at line 102 of file ui_node_option.c.
const value_t* propertyCollapsed [static] |
Definition at line 41 of file ui_node_option.c.
const uiBehaviour_t* ui_optionBehaviour = NULL |
Allow to check if a node is an option without string check
Definition at line 35 of file ui_node_option.c.
Referenced by UI_AbstractOptionDoLayout(), UI_AbstractOptionGetFirstOption(), UI_FindOptionAtIndex(), UI_FindOptionByValue(), UI_InitOption(), UI_InitOptionIteratorAtIndex(), UI_OptionTreeNodeGetFirstOption(), UI_TabNodeDraw(), UI_TabNodeInit(), and UI_TabNodeTabAtPosition().