HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_PluginHotkeyDefinitions.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_PluginHotkeyDefinitions_h
10 #define HOM_PluginHotkeyDefinitions_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 //#include "HOM_EnumValue.h"
15 //#include "HOM_Defines.h"
16 
17 #include <string>
18 #include <vector>
19 
20 SWIGOUT(%rename(PluginHotkeyDefinitions) HOM_PluginHotkeyDefinitions;)
21 SWIGOUT(%feature("notabstract") HOM_PluginHotkeyDefinitions;)
22 
24 {
25 public:
26 #ifdef SWIG
27 %extend
28 {
30  {
32  }
33 }
34 #else
36  { HOM_CONSTRUCT_OBJECT(this) }
37 #endif
38 
40  { HOM_DESTRUCT_OBJECT(this) }
41 
42  virtual std::string __repr__() = 0;
43 
44 
45  virtual void addCommandCategory(
46  std::string const& symbol,
47  std::string const& label,
48  std::string const& description) = 0;
49  virtual void addCommand(
50  std::string const& symbol,
51  std::string const& label,
52  std::string const& description) = 0;
53  virtual void addContext(
54  std::string const& symbol,
55  std::string const& label,
56  std::string const& description) = 0;
57  virtual void addDefaultBinding(
58  std::string const& context,
59  std::string const& command,
60  const std::vector<std::string> &assignments
61  = std::vector<std::string>()) = 0;
62 
63  virtual bool containsCommandCategory(std::string const& symbol) = 0;
64  virtual bool containsCommand(std::string const& symbol) = 0;
65  virtual bool containsContext(std::string const& symbol) = 0;
66  virtual bool containsDefaultBinding(
67  std::string const& context,
68  std::string const& command) = 0;
69 };
70 
71 #endif // HOM_PluginHotkeyDefinitions_h
72 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
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:352
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()
virtual HOM_PluginHotkeyDefinitions * newPluginHotkeyDefinitions()=0