HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_MenuParmTemplate.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_MenuParmTemplate_h__
10 #define __HOM_MenuParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 #include "HOM_EnumModules.h"
15 
16 SWIGOUT(%feature("notabstract") HOM_MenuParmTemplate;)
17 SWIGOUT(%rename(MenuParmTemplate) HOM_MenuParmTemplate;)
18 
20 {
21 public:
22 #ifdef SWIG
23 %extend {
24  %kwargs HOM_MenuParmTemplate;
25  HOM_MenuParmTemplate(
26  const char *name,
27  const char *label,
28  const std::vector<std::string> &menu_items,
29  const std::vector<std::string> &menu_labels =
30  std::vector<std::string>(),
31  int default_value = 0,
32  const std::vector<std::string> &icon_names =
33  std::vector<std::string>(),
34  const std::string &item_generator_script = "",
35  HOM_EnumValue *item_generator_script_language = NULL,
36  HOM_EnumValue &menu_type = HOM_menuType::Normal,
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,
43  HOM_EnumValue &script_callback_language =
44  HOM_scriptLanguage::Hscript,
45  const std::map<std::string, std::string> &tags =
47  const std::map<HOM_EnumValue, std::string> &conditionals =
49  const std::string &default_expression = "",
50  const HOM_EnumValue &default_expression_language =
51  HOM_scriptLanguage::Hscript,
52  bool store_default_value_as_string=false)
53  {
54  return HOM().newMenuParmTemplate(
55  name, label, menu_items, menu_labels, default_value, icon_names,
56  item_generator_script, item_generator_script_language,
57  menu_type, disable_when, is_hidden, is_label_hidden,
58  join_with_next, help, script_callback, script_callback_language,
59  tags, conditionals, default_expression,
60  default_expression_language, store_default_value_as_string);
61  }
62 };
63 #else
65  { HOM_CONSTRUCT_OBJECT(this) }
66 
68  : HOM_ParmTemplate(parm_template)
69  { HOM_CONSTRUCT_OBJECT(this) }
70 #endif
71 
73  { HOM_DESTRUCT_OBJECT(this) }
74 
75  // Let swig think we're overriding __repr__ for this class so it doesn't
76  // provide its own __repr__.
77  SWIGOUT(virtual std::string __repr__();)
78 
79  virtual int defaultValue() = 0;
80  virtual std::string defaultValueAsString() = 0;
81  virtual void setDefaultValue(int default_value) = 0;
82  virtual std::string defaultExpression() = 0;
83  virtual void setDefaultExpression(
84  const std::string &default_expression) = 0;
85  virtual HOM_EnumValue &defaultExpressionLanguage() = 0;
86  virtual void setDefaultExpressionLanguage(
87  const HOM_EnumValue &default_expression_language) = 0;
88 
89  virtual std::vector<std::string> menuItems() = 0;
90  virtual void setMenuItems(const std::vector<std::string> &menu_items) = 0;
91 
92  virtual std::vector<std::string> menuLabels() = 0;
93  virtual void setMenuLabels(const std::vector<std::string> &menu_labels) = 0;
94 
95  virtual std::vector<std::string> iconNames() = 0;
96  virtual void setIconNames(const std::vector<std::string> &icon_names) = 0;
97 
98  virtual std::string itemGeneratorScript() = 0;
99  virtual void setItemGeneratorScript(const char *item_generator_script) = 0;
100 
101  virtual HOM_EnumValue &itemGeneratorScriptLanguage() = 0;
102  virtual void setItemGeneratorScriptLanguage(HOM_EnumValue &language) = 0;
103 
104  virtual HOM_EnumValue &menuType() = 0;
105  virtual void setMenuType(HOM_EnumValue &menu_type) = 0;
106 };
107 
108 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:974
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
HOM_MenuParmTemplate(const HOM_MenuParmTemplate &parm_template)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
GLuint const GLchar * name
Definition: glcorearb.h:785
std::map< HOM_EnumValue, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:980
virtual std::string __repr__()=0
virtual HOM_MenuParmTemplate * newMenuParmTemplate(const char *name, const char *label, const std::vector< std::string > &menu_items, const std::vector< std::string > &menu_labels, int 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, 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)=0
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:979