HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_PythonPanel.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_PythonPanel_h__
10 #define __HOM_PythonPanel_h__
11 
12 #include "HOM_PathBasedPaneTab.h"
13 
15 
16 SWIGOUT(%rename(PythonPanel) HOM_PythonPanel;)
17 
19 {
20 public:
22  { HOM_CONSTRUCT_OBJECT(this) }
24  : HOM_PaneTab(pane), HOM_PathBasedPaneTab(pane)
25  { HOM_CONSTRUCT_OBJECT(this) }
26  ~HOM_PythonPanel() override
27  { HOM_DESTRUCT_OBJECT(this) }
28 
29  SWIGOUT(%newobject activeInterface;)
30  virtual HOM_PythonPanelInterface* activeInterface() = 0;
31  virtual void setActiveInterface(HOM_PythonPanelInterface *interface) = 0;
32  virtual void reloadActiveInterface() = 0;
33  virtual void showToolbar(bool show) = 0;
34  virtual bool isToolbarShown() = 0;
35  virtual void expandToolbar(bool expand) = 0;
36  virtual bool isToolbarExpanded() = 0;
37 
38  virtual std::string label() = 0;
39  virtual void setLabel(const char* label) = 0;
40 
41  virtual std::string activeInterfaceScriptErrors() = 0;
42 
43  // Let swig know we're overriding __repr__ for this class so it doesn't
44  // provide its own __repr__.
45  SWIGOUT(virtual std::string __repr__() = 0;)
46 
47  SWIGOUT(%ignore _opaqueActiveInterfaceRootWidget;)
48  virtual void * _opaqueActiveInterfaceRootWidget() = 0;
49 
50 
51 #ifdef SWIG
52 %extend
53 {
54  // Return the active interface's root widget.
55  virtual InterpreterObject activeInterfaceRootWidget()
56  {
57  return HOMincRef((InterpreterObject)self->_opaqueActiveInterfaceRootWidget());
58  }
59 }
60 #endif
61 
62 };
63 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
HOM_PythonPanel(const HOM_PythonPanel &pane)
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1209
~HOM_PythonPanel() override
GLuint GLsizei GLsizei GLchar * label
Definition: glew.h:8986
GLsizei const GLchar *const * string
Definition: glew.h:1844
virtual void setLabel(const char *label)=0