9 #ifndef __HOM_FolderParmTemplate_h__
10 #define __HOM_FolderParmTemplate_h__
24 HOM_FolderParmTemplate(
27 const std::vector<HOM_ParmTemplate *> &parm_templates =
28 std::vector<HOM_ParmTemplate *>(),
30 int default_value = 0,
31 bool is_hidden =
false,
32 bool ends_tab_group =
false,
33 const char *script_callback = NULL,
35 HOM_scriptLanguage::Hscript,
36 const std::map<std::string, std::string> &tags =
38 const std::map<HOM_EnumValue *, std::string> &conditionals =
40 const std::map<HOM_EnumValue *, std::string> &tab_conditionals =
44 name, label, parm_templates, folder_type, default_value, is_hidden,
45 ends_tab_group, script_callback, script_callback_language, tags,
46 conditionals, tab_conditionals);
67 {
return folderType(); }
72 virtual bool isActualFolder() = 0;
74 virtual int defaultValue() = 0;
75 virtual void setDefaultValue(
int default_value) = 0;
77 virtual std::map<HOM_EnumValue *, std::string> tabConditionals() = 0;
78 virtual void setTabConditional(
const HOM_EnumValue &cond_type,
79 const char *conditional) = 0;
81 virtual bool endsTabGroup() = 0;
82 virtual void setEndsTabGroup(
bool on) = 0;
84 virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > parmTemplates() = 0;
85 virtual void setParmTemplates(
86 const std::vector<HOM_ParmTemplate *> &parm_templates) = 0;
~HOM_FolderParmTemplate() override
#define HOM_DESTRUCT_OBJECT(pointer)
GLuint GLsizei const GLchar * label
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
#define HOM_CONSTRUCT_OBJECT(pointer)
GLuint const GLchar * name
HOM_FolderParmTemplate(const HOM_FolderParmTemplate &parm_template)
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
virtual HOM_FolderParmTemplate * newFolderParmTemplate(const char *name, const char *label, const std::vector< HOM_ParmTemplate * > &parm_templates, HOM_EnumValue &folder_type, int default_value, bool is_hidden, bool ends_tab_group, const char *script_callback, HOM_EnumValue &script_callback_language, const std::map< std::string, std::string > &tags, const std::map< HOM_EnumValue *, std::string > &conditionals, const std::map< HOM_EnumValue *, std::string > &tab_conditionals)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()
HOM_EnumValue & folderStyle()
std::map< std::string, std::string > HOM_StdMapStringString