HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_FolderParmTemplate.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_FolderParmTemplate_h__
10 #define __HOM_FolderParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_FolderParmTemplate;)
16 SWIGOUT(%rename(FolderParmTemplate) HOM_FolderParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
23  %kwargs HOM_FolderParmTemplate;
24  HOM_FolderParmTemplate(
25  const char *name,
26  const char *label,
27  const std::vector<HOM_ParmTemplate *> &parm_templates =
28  std::vector<HOM_ParmTemplate *>(),
29  HOM_EnumValue &folder_type = HOM_folderType::Tabs,
30  int default_value = 0,
31  bool is_hidden = false,
32  bool ends_tab_group = false,
33  const char *script_callback = NULL,
34  HOM_EnumValue &script_callback_language =
35  HOM_scriptLanguage::Hscript,
36  const std::map<std::string, std::string> &tags =
38  const std::map<HOM_EnumValue, std::string> &conditionals =
40  {
41  return HOM().newFolderParmTemplate(
42  name, label, parm_templates, folder_type, default_value, is_hidden,
43  ends_tab_group, script_callback, script_callback_language, tags,
44  conditionals);
45  }
46 };
47 #else
49  { HOM_CONSTRUCT_OBJECT(this) }
50 
52  : HOM_ParmTemplate(parm_template)
53  { HOM_CONSTRUCT_OBJECT(this) }
54 #endif
55 
57  { HOM_DESTRUCT_OBJECT(this) }
58 
59  // Let swig think we're overriding __repr__ for this class so it doesn't
60  // provide its own __repr__.
61  SWIGOUT(virtual std::string __repr__();)
62 
63  // This method is deprecated in favour of folderType().
65  { return folderType(); }
66 
67  virtual HOM_EnumValue &folderType() = 0;
68  virtual void setFolderType(HOM_EnumValue &folder_type) = 0;
69 
70  virtual bool isActualFolder() = 0;
71 
72  virtual int defaultValue() = 0;
73  virtual void setDefaultValue(int default_value) = 0;
74 
75  virtual bool endsTabGroup() = 0;
76  virtual void setEndsTabGroup(bool on) = 0;
77 
78  virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > parmTemplates() = 0;
79  virtual void setParmTemplates(
80  const std::vector<HOM_ParmTemplate *> &parm_templates) = 0;
81  virtual void addParmTemplate(HOM_ParmTemplate &parm_template) = 0;
82 };
83 
84 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:983
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#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:982
GLuint const GLchar * name
Definition: glcorearb.h:785
HOM_FolderParmTemplate(const HOM_FolderParmTemplate &parm_template)
std::map< HOM_EnumValue, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:989
HOM_API HOM_Module & HOM()
std::string __repr__()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:988
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)=0