HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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_PaneTab.h"
13 
15 
16 SWIGOUT(%rename(PythonPanel) HOM_PythonPanel;)
17 
18 class HOM_API HOM_PythonPanel : virtual public HOM_PaneTab
19 {
20 public:
22  { HOM_CONSTRUCT_OBJECT(this) }
24  : HOM_PaneTab(pane)
25  { HOM_CONSTRUCT_OBJECT(this) }
26  virtual ~HOM_PythonPanel()
27  { HOM_DESTRUCT_OBJECT(this) }
28 
29  virtual HOM_PythonPanelInterface* activeInterface() = 0;
30  virtual void setActiveInterface(HOM_PythonPanelInterface *interface) = 0;
31  virtual void showToolbar(bool show) = 0;
32  virtual bool isToolbarShown() = 0;
33  virtual void expandToolbar(bool expand) = 0;
34  virtual bool isToolbarExpanded() = 0;
35 
36  virtual void setLabel(const char* label) = 0;
37 
38  // Let swig know we're overriding __repr__ for this class so it doesn't
39  // provide its own __repr__.
40  SWIGOUT(virtual std::string __repr__() = 0;)
41 
42  SWIGOUT(%ignore _setOpaqueActiveInterfaceRootWidget;)
43  virtual void _setOpaqueActiveInterfaceRootWidget(void *root_widget) = 0;
44  SWIGOUT(%ignore _opaqueActiveInterfaceRootWidget;)
45  virtual void * _opaqueActiveInterfaceRootWidget() = 0;
46 
47 
48 #ifdef SWIG
49 %extend
50 {
51  // Stash the active interface's root widget.
52  // This method is intended to be called internally by FUSE_PythonPanel.
53  // It is not meant to be exposed to the user.
54  virtual void __setActiveInterfaceRootWidget__(InterpreterObject root_widget)
55  {
56  self->_setOpaqueActiveInterfaceRootWidget(root_widget);
57  }
58 
59  // Return the active interface's root widget.
60  virtual InterpreterObject activeInterfaceRootWidget()
61  {
62  return HOMincRef((InterpreterObject)self->_opaqueActiveInterfaceRootWidget());
63  }
64 }
65 #endif
66 
67 };
68 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:981
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
virtual ~HOM_PythonPanel()
HOM_PythonPanel(const HOM_PythonPanel &pane)
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:980
virtual std::string __repr__()=0
virtual void setLabel(const char *label)=0