HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_qt.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_qt_h__
10 #define __HOM_qt_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Module.h"
15 
16 class HOM_FloatingPanel;
17 class HOM_Node;
18 
19 SWIGOUT(%rename(qt) HOM_qt;)
21 {
22 public:
23  virtual ~HOM_qt()
24  {}
25 
26  virtual std::string __repr__() = 0;
27 
28  virtual void* _mainWindow() = 0;
29  virtual void* _floatingPanelWindow(HOM_FloatingPanel *panel) = 0;
30 
31  virtual void* _createWindow() = 0;
32  virtual void* _createDialog() = 0;
33  virtual void* _createMenu() = 0;
34  virtual void* _createIcon(const char* icon_name, int width, int height) = 0;
35 
36  virtual void* _createParmDialog(HOM_Node *hom_node, bool showTitleBar) = 0;
37  virtual void _setParmDialogNode(void *widget, HOM_Node *hom_node) = 0;
38  virtual HOM_Node* _parmDialogNode(void *widget) = 0;
39 
40  virtual std::vector<std::string> _getParmDialogValueNames(void *widget) = 0;
41  virtual std::string _getParmDialogValue(void *widget,const char *name) = 0;
42  virtual bool _setParmDialogValue(void *widget,const char *name, const char* value) = 0;
43  virtual bool _pressParmDialogButton(void *widget,const char *name) = 0;
44 
45  virtual std::vector<HOM_ElemPtr<HOM_ParmTuple> > _getParmDialogVisibleParms(void *widget) = 0;
46 
47  virtual void* _getColor(const char* color_name) = 0;
48  virtual void* _getCursor(const char *cursor_name) = 0;
49  virtual void* _getBrush(const char* color_name) = 0;
50 
51  virtual std::string styleSheet(const char *file_path=nullptr) = 0;
52 
53  virtual std::map<std::string, int> _qtKeyToUIKey(int qtKey,
54  int qtKeymodifiers) = 0;
55  virtual std::string _qtKeyToString(int qtKey,
56  int qtKeymodifiers,
57  std::string qtkeystring) = 0;
58 
59  virtual double inchesToPixels(double inches) = 0;
60  virtual double pixelsToInches(double pixels) = 0;
61 
62  virtual void skipClosingMenusForCurrentButtonPress() = 0;
63 
64  virtual bool _launchRenderGalleryBackgroundRender(
65  const char *delegate,
66  const char *usd_filepath,
67  const char *rendersettings_prim,
68  const char *override_camera,
69  int override_res_x, int override_res_y,
70  const char *lopnet_path, int item_id
71  ) = 0;
72 
73  virtual void _renderGalleryBackgroundRenderMouseClick(
74  int x, int y, const char *lopnet_path, int item_id
75  ) = 0;
76 
77  virtual void _stopRenderGalleryBackgroundRender(
78  const char *lopnet_path, int item_id
79  ) = 0;
80 
81  // Supported mime-types for drag-and-drop.
82  virtual std::string _channelPathMimeType() = 0;
83  virtual std::string _chopTrackPathMimeType() = 0;
84  virtual std::string _galleryEntryNameMimeType() = 0;
85  virtual std::string _itemPathMimeType() = 0;
86  virtual std::string _nodeFlagPathMimeType() = 0;
87  virtual std::string _nodePathMimeType() = 0;
88  virtual std::string _orboltNodeTypeNameMimeType() = 0;
89  virtual std::string _paneTabNameMimeType() = 0;
90  virtual std::string _parmPathMimeType() = 0;
91  virtual std::string _persistentHandleNameMimeType() = 0;
92  virtual std::string _primitivePathMimeType() = 0;
93  virtual std::string _shelfNameMimeType() = 0;
94  virtual std::string _shelfToolNameMimeType() = 0;
95  virtual std::string _takeNameMimeType() = 0;
96  virtual std::string _usdPrimitivePathMimeType() = 0;
97  virtual std::string _usdPrimitivePythonMimeType() = 0;
98  virtual std::string _usdPropertyPathMimeType() = 0;
99  virtual std::string _usdPropertyPythonMimeType() = 0;
100  virtual std::string _assetGalleryEntryMimeType() = 0;
101 
102  virtual int _galleryNameRole() = 0;
103  virtual int _galleryThumbRole() = 0;
104  virtual int _galleryCreationDateRole() = 0;
105  virtual int _galleryStarRole() = 0;
106  virtual int _galleryDiffMarkerRole() = 0;
107  virtual int _galleryColorRole() = 0;
108  virtual int _galleryTagsRole() = 0;
109  virtual int _galleryThumbValidRole() = 0;
110  virtual int _galleryMetadataRole() = 0;
111  virtual int _gallerySnapshotFileRole() = 0;
112  virtual int _gallerySnapshotRole() = 0;
113  virtual int _galleryRenderingRole() = 0;
114 };
115 
116 #endif
virtual ~HOM_qt()
Definition: HOM_qt.h:23
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:353
GLuint const GLchar * name
Definition: glcorearb.h:785
GLint GLenum GLint x
Definition: glcorearb.h:408
Definition: HOM_qt.h:20
#define HOM_API
Definition: HOM_API.h:13
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
GLint GLsizei width
Definition: glcorearb.h:102
GLint GLsizei GLsizei height
Definition: glcorearb.h:102
GLsizei const GLfloat * value
Definition: glcorearb.h:823
GLint GLint GLsizei GLint GLenum GLenum const void * pixels
Definition: glcorearb.h:107
GLint y
Definition: glcorearb.h:102