9 #ifndef __HOM_MenuParmTemplate_h__
10 #define __HOM_MenuParmTemplate_h__
28 const std::vector<std::string> &menu_items,
29 const std::vector<std::string> &menu_labels =
30 std::vector<std::string>(),
31 int64 default_value = 0,
32 const std::vector<std::string> &icon_names =
33 std::vector<std::string>(),
37 const char *disable_when = NULL,
38 bool is_hidden =
false,
39 bool is_label_hidden =
false,
40 bool join_with_next =
false,
41 const char *
help = NULL,
42 const char *script_callback = NULL,
44 HOM_scriptLanguage::Hscript,
45 const std::map<std::string, std::string> &tags =
47 const std::map<HOM_EnumValue *, std::string> &conditionals =
51 HOM_scriptLanguage::Hscript,
52 bool store_default_value_as_string=
false,
53 bool menu_use_token =
false,
54 bool is_button_strip =
false,
55 bool strip_uses_icons =
false
59 name, label, menu_items, menu_labels, default_value, icon_names,
60 item_generator_script, item_generator_script_language,
61 menu_type, menu_use_token, disable_when, is_hidden, is_label_hidden,
62 join_with_next,
help, script_callback, script_callback_language,
63 tags, conditionals, default_expression,
64 default_expression_language, store_default_value_as_string,
65 is_button_strip, strip_uses_icons
85 virtual int64 defaultValue() = 0;
87 virtual void setDefaultValue(
int64 default_value) = 0;
89 virtual void setDefaultExpression(
92 virtual void setDefaultExpressionLanguage(
95 virtual std::vector<std::string> menuItems() = 0;
96 virtual void setMenuItems(
const std::vector<std::string> &menu_items) = 0;
98 virtual std::vector<std::string> menuLabels() = 0;
99 virtual void setMenuLabels(
const std::vector<std::string> &menu_labels) = 0;
101 virtual std::vector<std::string> iconNames() = 0;
102 virtual void setIconNames(
const std::vector<std::string> &icon_names) = 0;
105 virtual void setItemGeneratorScript(
const char *item_generator_script) = 0;
108 virtual void setItemGeneratorScriptLanguage(
HOM_EnumValue &language) = 0;
113 virtual bool menuUseToken() = 0;
114 virtual void setMenuUseToken(
bool menuusetoken) = 0;
116 virtual bool isButtonStrip()
const = 0;
117 virtual bool isIconStrip()
const = 0;
118 virtual bool isMenu()
const = 0;
119 virtual void setAsButtonStrip() = 0;
120 virtual void setAsIconStrip() = 0;
121 virtual void setAsMenu() = 0;
#define HOM_DESTRUCT_OBJECT(pointer)
GLuint GLsizei const GLchar * label
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
#define HOM_CONSTRUCT_OBJECT(pointer)
GLuint const GLchar * name
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual HOM_MenuParmTemplate * newMenuParmTemplate(const char *name, const char *label, const std::vector< std::string > &menu_items, const std::vector< std::string > &menu_labels, int64 default_value, const std::vector< std::string > &icon_names, const std::string &item_generator_script, HOM_EnumValue *item_generator_script_language, HOM_EnumValue &menu_type, bool menu_use_token, const char *disable_when, bool is_hidden, bool is_label_hidden, bool join_with_next, const char *help, 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::string &default_expression, const HOM_EnumValue &default_expression_language, bool store_default_value_as_string, bool is_button_strip, bool strip_uses_icons)=0
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString