|
Blender V5.0
|
#include "BLI_listbase.h"#include "BLI_string_ref.hh"#include "BLI_string_utf8.h"#include "BKE_context.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BLT_translation.hh"#include "DNA_cachefile_types.h"#include "DNA_space_types.h"#include "DEG_depsgraph_query.hh"#include "RE_engine.h"#include "RNA_access.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"Go to the source code of this file.
Functions | |
| void | uiTemplateCacheFileVelocity (uiLayout *layout, PointerRNA *fileptr) |
| void | uiTemplateCacheFileTimeSettings (uiLayout *layout, PointerRNA *fileptr) |
| static void | cache_file_layer_item (uiList *, const bContext *, uiLayout *layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int) |
| uiListType * | UI_UL_cache_file_layers () |
| void | uiTemplateCacheFileLayers (uiLayout *layout, const bContext *C, PointerRNA *fileptr) |
| bool | uiTemplateCacheFilePointer (PointerRNA *ptr, const StringRefNull propname, PointerRNA *r_file_ptr) |
| void | uiTemplateCacheFile (uiLayout *layout, const bContext *C, PointerRNA *ptr, const StringRefNull propname) |
|
static |
Definition at line 74 of file interface_template_cache_file.cc.
References uiLayout::prop(), uiLayout::row(), and UI_ITEM_R_NO_BG.
Referenced by UI_UL_cache_file_layers().
| uiListType * UI_UL_cache_file_layers | ( | ) |
Definition at line 90 of file interface_template_cache_file.cc.
References cache_file_layer_item(), uiListType::draw_item, uiListType::idname, MEM_callocN(), and STRNCPY_UTF8.
Referenced by ED_uilisttypes_ui().
| void uiTemplateCacheFile | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Draw the main CacheFile properties and operators (file path, scale, etc.), that is those which do not have their own dedicated template functions.
Definition at line 165 of file interface_template_cache_file.cc.
References BCONTEXT_CONSTRAINT, C, uiLayout::context_ptr_set(), CTX_wm_space_properties(), PointerRNA::data, IFACE_, SpaceProperties::mainb, uiLayout::op(), uiLayout::prop(), ptr, uiLayout::row(), UI_ITEM_NONE, uiTemplateCacheFilePointer(), uiTemplateID(), and uiLayout::use_property_split_set().
Referenced by panel_draw().
| void uiTemplateCacheFileLayers | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | fileptr ) |
Draw the override layers related properties of the CacheFile.
Definition at line 100 of file interface_template_cache_file.cc.
References BLI_listbase_count(), C, col, uiLayout::column(), uiLayout::context_ptr_set(), PointerRNA::data, CacheFile::layers, RNA_pointer_is_null(), uiLayout::row(), UI_TEMPLATE_LIST_FLAG_NONE, UILST_LAYOUT_DEFAULT, and uiTemplateList().
Referenced by override_layers_panel_draw().
| bool uiTemplateCacheFilePointer | ( | PointerRNA * | ptr, |
| blender::StringRefNull | propname, | ||
| PointerRNA * | r_file_ptr ) |
Lookup the CacheFile PointerRNA of the given pointer and return it in the output parameter. Returns true if ptr has a RNACacheFile, false otherwise. If false, the output parameter is not initialized.
Definition at line 139 of file interface_template_cache_file.cc.
References blender::StringRefNull::c_str(), printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by override_layers_panel_draw(), time_panel_draw(), uiTemplateCacheFile(), and velocity_panel_draw().
| void uiTemplateCacheFileTimeSettings | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the time related properties of the CacheFile.
Definition at line 46 of file interface_template_cache_file.cc.
References uiLayout::active_set(), uiLayout::context_ptr_set(), uiLayout::decorator(), IFACE_, uiLayout::prop(), RNA_boolean_get(), RNA_pointer_is_null(), uiLayout::row(), UI_ITEM_NONE, and uiLayout::use_property_decorate_set().
Referenced by time_panel_draw().
| void uiTemplateCacheFileVelocity | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the velocity related properties of the CacheFile.
Definition at line 33 of file interface_template_cache_file.cc.
References uiLayout::context_ptr_set(), uiLayout::prop(), RNA_pointer_is_null(), and UI_ITEM_NONE.
Referenced by velocity_panel_draw().