HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  const std::map<HOM_EnumValue *, std::string> &tab_conditionals =
42  {
43  return HOM().newFolderParmTemplate(
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);
47  }
48 };
49 #else
51  { HOM_CONSTRUCT_OBJECT(this) }
52 
54  : HOM_ParmTemplate(parm_template)
55  { HOM_CONSTRUCT_OBJECT(this) }
56 #endif
57 
59  { HOM_DESTRUCT_OBJECT(this) }
60 
61  // Let swig think we're overriding __repr__ for this class so it doesn't
62  // provide its own __repr__.
63  SWIGOUT(virtual std::string __repr__();)
64 
65  // This method is deprecated in favour of folderType().
67  { return folderType(); }
68 
69  virtual HOM_EnumValue &folderType() = 0;
70  virtual void setFolderType(HOM_EnumValue &folder_type) = 0;
71 
72  virtual bool isActualFolder() = 0;
73 
74  virtual int defaultValue() = 0;
75  virtual void setDefaultValue(int default_value) = 0;
76 
77  virtual std::map<HOM_EnumValue *, std::string> tabConditionals() = 0;
78  virtual void setTabConditional(const HOM_EnumValue &cond_type,
79  const char *conditional) = 0;
80 
81  virtual bool endsTabGroup() = 0;
82  virtual void setEndsTabGroup(bool on) = 0;
83 
84  virtual std::vector<HOM_ElemPtr<HOM_ParmTemplate> > parmTemplates() = 0;
85  virtual void setParmTemplates(
86  const std::vector<HOM_ParmTemplate *> &parm_templates) = 0;
87  virtual void addParmTemplate(HOM_ParmTemplate &parm_template) = 0;
88 };
89 
90 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLuint const GLchar * name
Definition: glcorearb.h:786
HOM_FolderParmTemplate(const HOM_FolderParmTemplate &parm_template)
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:1312
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()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:1311