Blender V5.0
interface_template_cache_file.cc File Reference
#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)
uiListTypeUI_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)

Function Documentation

◆ cache_file_layer_item()

void cache_file_layer_item ( uiList * ,
const bContext * ,
uiLayout * layout,
PointerRNA * ,
PointerRNA * itemptr,
int ,
PointerRNA * ,
const char * ,
int ,
int  )
static

◆ UI_UL_cache_file_layers()

uiListType * UI_UL_cache_file_layers ( )

◆ uiTemplateCacheFile()

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().

◆ uiTemplateCacheFileLayers()

void uiTemplateCacheFileLayers ( uiLayout * layout,
const bContext * C,
PointerRNA * fileptr )

◆ uiTemplateCacheFilePointer()

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().

◆ uiTemplateCacheFileTimeSettings()

void uiTemplateCacheFileTimeSettings ( uiLayout * layout,
PointerRNA * fileptr )

◆ uiTemplateCacheFileVelocity()

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().