opencue-cuegui 1.13.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. cuegui/AbstractDialog.py +86 -0
  2. cuegui/AbstractDockWidget.py +71 -0
  3. cuegui/AbstractGraphWidget.py +126 -0
  4. cuegui/AbstractTreeWidget.py +581 -0
  5. cuegui/AbstractWidgetItem.py +104 -0
  6. cuegui/Action.py +106 -0
  7. cuegui/App.py +80 -0
  8. cuegui/Comments.py +448 -0
  9. cuegui/ConfirmationDialog.py +80 -0
  10. cuegui/Constants.py +255 -0
  11. cuegui/CreateShowDialog.py +209 -0
  12. cuegui/CreatorDialog.py +109 -0
  13. cuegui/CueJobMonitorTree.py +923 -0
  14. cuegui/CueStateBarWidget.py +203 -0
  15. cuegui/Cuedepend.py +420 -0
  16. cuegui/DarkPalette.py +141 -0
  17. cuegui/DependDialog.py +59 -0
  18. cuegui/DependMonitorTree.py +105 -0
  19. cuegui/DependWizard.py +825 -0
  20. cuegui/EmailDialog.py +243 -0
  21. cuegui/Exception.py +35 -0
  22. cuegui/FilterDialog.py +880 -0
  23. cuegui/FrameMonitor.py +511 -0
  24. cuegui/FrameMonitorTree.py +970 -0
  25. cuegui/FrameRangeSelection.py +403 -0
  26. cuegui/GarbageCollector.py +57 -0
  27. cuegui/GroupDialog.py +270 -0
  28. cuegui/HostMonitor.py +564 -0
  29. cuegui/HostMonitorTree.py +379 -0
  30. cuegui/ItemDelegate.py +483 -0
  31. cuegui/JobMonitorGraph.py +152 -0
  32. cuegui/JobMonitorTree.py +1077 -0
  33. cuegui/LayerDialog.py +539 -0
  34. cuegui/LayerMonitorTree.py +344 -0
  35. cuegui/Layout.py +62 -0
  36. cuegui/LimitSelectionWidget.py +66 -0
  37. cuegui/LimitsWidget.py +162 -0
  38. cuegui/LocalBooking.py +457 -0
  39. cuegui/Logger.py +45 -0
  40. cuegui/Main.py +150 -0
  41. cuegui/MainWindow.py +630 -0
  42. cuegui/MenuActions.py +2367 -0
  43. cuegui/MiscDialog.py +65 -0
  44. cuegui/Plugins.py +383 -0
  45. cuegui/PreviewWidget.py +205 -0
  46. cuegui/ProcChildren.py +175 -0
  47. cuegui/ProcMonitor.py +222 -0
  48. cuegui/ProcMonitorTree.py +197 -0
  49. cuegui/ProgressDialog.py +220 -0
  50. cuegui/Redirect.py +912 -0
  51. cuegui/RequestCoresDialog.py +362 -0
  52. cuegui/ServiceDialog.py +369 -0
  53. cuegui/ShowDialog.py +178 -0
  54. cuegui/ShowsWidget.py +119 -0
  55. cuegui/SplashWindow.py +120 -0
  56. cuegui/Style.py +73 -0
  57. cuegui/SubscribeToJobDialog.py +142 -0
  58. cuegui/SubscriptionGraphWidget.py +249 -0
  59. cuegui/SubscriptionsWidget.py +257 -0
  60. cuegui/TagsWidget.py +141 -0
  61. cuegui/TasksDialog.py +258 -0
  62. cuegui/TextEditDialog.py +70 -0
  63. cuegui/ThreadPool.py +231 -0
  64. cuegui/UnbookDialog.py +459 -0
  65. cuegui/Utils.py +933 -0
  66. cuegui/__init__.py +21 -0
  67. cuegui/__main__.py +41 -0
  68. cuegui/config/cuecommander.ini +19 -0
  69. cuegui/config/cuegui.yaml +180 -0
  70. cuegui/config/cuetopia.ini +11 -0
  71. cuegui/config/darkpalette.qss +97 -0
  72. cuegui/config/gvimrc +51 -0
  73. cuegui/config/rqlog.vim +25 -0
  74. cuegui/cueguiplugin/.cueguipluginrc.yaml +39 -0
  75. cuegui/cueguiplugin/README.md +163 -0
  76. cuegui/cueguiplugin/__init__.py +65 -0
  77. cuegui/cueguiplugin/cueprogbar/__init__.py +13 -0
  78. cuegui/cueguiplugin/cueprogbar/__main__.py +41 -0
  79. cuegui/cueguiplugin/cueprogbar/config.yaml +23 -0
  80. cuegui/cueguiplugin/cueprogbar/darkmojo.py +107 -0
  81. cuegui/cueguiplugin/cueprogbar/images/cueprogbar_icon.png +0 -0
  82. cuegui/cueguiplugin/cueprogbar/main.py +347 -0
  83. cuegui/cueguiplugin/cueprogbar/plugin.py +77 -0
  84. cuegui/cueguiplugin/loader.py +129 -0
  85. cuegui/eta.py +309 -0
  86. cuegui/images/__init__.py +16 -0
  87. cuegui/images/add.png +0 -0
  88. cuegui/images/apps/blender.png +0 -0
  89. cuegui/images/apps/ffmpeg.png +0 -0
  90. cuegui/images/apps/gaffer.png +0 -0
  91. cuegui/images/apps/krita.png +0 -0
  92. cuegui/images/apps/natron.png +0 -0
  93. cuegui/images/apps/oiio.png +0 -0
  94. cuegui/images/apps/placeholder.png +0 -0
  95. cuegui/images/apps/postprocess.png +0 -0
  96. cuegui/images/apps/rm.png +0 -0
  97. cuegui/images/apps/shell.png +0 -0
  98. cuegui/images/apps/terminal.png +0 -0
  99. cuegui/images/bluecurve/__init__.py +16 -0
  100. cuegui/images/bluecurve/icons.qrc +33 -0
  101. cuegui/images/bluecurve/icons_rcc.py +0 -0
  102. cuegui/images/build.sh +8 -0
  103. cuegui/images/crystal/__init__.py +16 -0
  104. cuegui/images/crystal/app.png +0 -0
  105. cuegui/images/crystal/column_popdown.png +0 -0
  106. cuegui/images/crystal/comment.png +0 -0
  107. cuegui/images/crystal/configure.png +0 -0
  108. cuegui/images/crystal/copylogpath.png +0 -0
  109. cuegui/images/crystal/down.png +0 -0
  110. cuegui/images/crystal/eat.png +0 -0
  111. cuegui/images/crystal/eatandmarkdone.png +0 -0
  112. cuegui/images/crystal/edit.png +0 -0
  113. cuegui/images/crystal/eject.png +0 -0
  114. cuegui/images/crystal/filters.png +0 -0
  115. cuegui/images/crystal/group.png +0 -0
  116. cuegui/images/crystal/icons.qrc +33 -0
  117. cuegui/images/crystal/icons_rcc.py +1914 -0
  118. cuegui/images/crystal/job.png +0 -0
  119. cuegui/images/crystal/kill.png +0 -0
  120. cuegui/images/crystal/lock.png +0 -0
  121. cuegui/images/crystal/log.png +0 -0
  122. cuegui/images/crystal/loglast.png +0 -0
  123. cuegui/images/crystal/mail.png +0 -0
  124. cuegui/images/crystal/markdone.png +0 -0
  125. cuegui/images/crystal/pause.png +0 -0
  126. cuegui/images/crystal/reload.png +0 -0
  127. cuegui/images/crystal/retry.png +0 -0
  128. cuegui/images/crystal/show.png +0 -0
  129. cuegui/images/crystal/unbookkill.png +0 -0
  130. cuegui/images/crystal/unpause.png +0 -0
  131. cuegui/images/crystal/up.png +0 -0
  132. cuegui/images/crystal/view.png +0 -0
  133. cuegui/images/crystal/viewoutput.png +0 -0
  134. cuegui/images/crystal/warning.png +0 -0
  135. cuegui/images/crystal/window.png +0 -0
  136. cuegui/images/icons.qrc +33 -0
  137. cuegui/images/icons_rcc.py +14387 -0
  138. cuegui/images/splash.01.png +0 -0
  139. cuegui/images/windowIcon.png +0 -0
  140. cuegui/nodegraph/__init__.py +21 -0
  141. cuegui/nodegraph/nodes/__init__.py +19 -0
  142. cuegui/nodegraph/nodes/base.py +79 -0
  143. cuegui/nodegraph/nodes/layer.py +97 -0
  144. cuegui/nodegraph/widgets/__init__.py +0 -0
  145. cuegui/nodegraph/widgets/nodeWidgets.py +112 -0
  146. cuegui/plugins/AllocationsPlugin.py +195 -0
  147. cuegui/plugins/AttributesPlugin.py +455 -0
  148. cuegui/plugins/LimitsPlugin.py +49 -0
  149. cuegui/plugins/LogViewPlugin.py +1043 -0
  150. cuegui/plugins/LokiViewPlugin.py +164 -0
  151. cuegui/plugins/MonitorCuePlugin.py +401 -0
  152. cuegui/plugins/MonitorHostsPlugin.py +67 -0
  153. cuegui/plugins/MonitorJobDetailsPlugin.py +140 -0
  154. cuegui/plugins/MonitorJobGraphPlugin.py +103 -0
  155. cuegui/plugins/MonitorJobsPlugin.py +460 -0
  156. cuegui/plugins/RedirectPlugin.py +39 -0
  157. cuegui/plugins/ServicePlugin.py +42 -0
  158. cuegui/plugins/ShowsPlugin.py +61 -0
  159. cuegui/plugins/StuckFramePlugin.py +1833 -0
  160. cuegui/plugins/SubscriptionsGraphPlugin.py +49 -0
  161. cuegui/plugins/SubscriptionsPlugin.py +63 -0
  162. cuegui/plugins/__init__.py +0 -0
  163. opencue_cuegui-1.13.6.dist-info/METADATA +25 -0
  164. opencue_cuegui-1.13.6.dist-info/RECORD +166 -0
  165. opencue_cuegui-1.13.6.dist-info/WHEEL +4 -0
  166. opencue_cuegui-1.13.6.dist-info/entry_points.txt +4 -0
@@ -0,0 +1,86 @@
1
+ # Copyright Contributors to the OpenCue Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ """Base class for dialog windows."""
17
+
18
+
19
+ from __future__ import division
20
+ from __future__ import print_function
21
+ from __future__ import absolute_import
22
+ from builtins import str
23
+
24
+ from qtpy import QtCore
25
+ from qtpy import QtWidgets
26
+
27
+
28
+ class AbstractDialog(QtWidgets.QDialog):
29
+ """Base class for dialog windows."""
30
+
31
+ def __init__(self, parent=None):
32
+ QtWidgets.QDialog.__init__(self, parent)
33
+
34
+ @staticmethod
35
+ def _newCheckBoxSelectionMatrix(title, allowedOptions, checkedOptions, parent=None):
36
+ return CheckBoxSelectionMatrix(title, allowedOptions, checkedOptions, parent)
37
+
38
+ def _newDialogButtonBox(self, buttons, orientation=QtCore.Qt.Horizontal):
39
+ buttonBox = QtWidgets.QDialogButtonBox(buttons, orientation, self)
40
+ # pylint: disable=no-member
41
+ buttonBox.accepted.connect(self.accept)
42
+ buttonBox.rejected.connect(self.reject)
43
+ # pylint: enable=no-member
44
+ return buttonBox
45
+
46
+ def _addWidgetRow(self, *widgets):
47
+ __hlayout = QtWidgets.QHBoxLayout()
48
+ for widget in widgets:
49
+ __hlayout.addWidget(widget)
50
+ self.layout().addLayout(__hlayout)
51
+
52
+
53
+ class CheckBoxSelectionMatrix(QtWidgets.QWidget):
54
+ """Widget for displaying a matrix of checkboxes."""
55
+
56
+ def __init__(self, title, allowedOptions, checkedOptions, parent=None):
57
+ QtWidgets.QWidget.__init__(self, parent)
58
+ layout = QtWidgets.QVBoxLayout(self)
59
+
60
+ self.__group = QtWidgets.QGroupBox(title, self)
61
+ self.__group_layout = QtWidgets.QGridLayout()
62
+
63
+ self.__checkBoxes = []
64
+ for index, item in enumerate(allowedOptions):
65
+ box = QtWidgets.QCheckBox(item, self.__group)
66
+ box.setChecked(item in checkedOptions)
67
+ self.__checkBoxes.append(box)
68
+ self.__group_layout.addWidget(box, index // 2, index % 2)
69
+
70
+ self.__group.setLayout(self.__group_layout)
71
+ layout.addWidget(self.__group)
72
+ layout.setContentsMargins(0,0,0,0)
73
+ layout.addStretch()
74
+
75
+ def checkedBoxes(self):
76
+ """Gets all checked boxes."""
77
+ return [cb for cb in self.__checkBoxes if cb.isChecked()]
78
+
79
+ def checkedOptions(self):
80
+ """Gets text value of all checked boxes."""
81
+ return [str(cb.text()) for cb in self.__checkBoxes if cb.isChecked()]
82
+
83
+ def checkBoxes(self, names):
84
+ """Sets checked state for checkboxes representing the named values."""
85
+ for box in self.__checkBoxes:
86
+ box.setChecked(str(box.text()) in names)
@@ -0,0 +1,71 @@
1
+ # Copyright Contributors to the OpenCue Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ """Base class for all CueGUI widgets.
17
+
18
+ Extends QDockWidget to provide a standard setup."""
19
+
20
+
21
+ from __future__ import absolute_import
22
+ from __future__ import print_function
23
+ from __future__ import division
24
+
25
+ from qtpy import QtCore
26
+ from qtpy import QtWidgets
27
+
28
+ import cuegui.Plugins
29
+
30
+
31
+ class AbstractDockWidget(cuegui.Plugins.Plugin, QtWidgets.QDockWidget):
32
+ """Base class for all CueGUI widgets.
33
+
34
+ Extends QDockWidget to provide a standard setup."""
35
+
36
+ closed = QtCore.Signal(object)
37
+ enabled = QtCore.Signal()
38
+
39
+ def __init__(self, parent, name, area = QtCore.Qt.LeftDockWidgetArea):
40
+ QtWidgets.QDockWidget.__init__(self, name, parent)
41
+ cuegui.Plugins.Plugin.__init__(self)
42
+
43
+ self.parent = parent
44
+
45
+ self.setAllowedAreas(QtCore.Qt.AllDockWidgetAreas)
46
+ self.setFeatures(
47
+ QtWidgets.QDockWidget.DockWidgetClosable | QtWidgets.QDockWidget.DockWidgetMovable)
48
+ self.setObjectName(name)
49
+ parent.addDockWidget(area, self)
50
+
51
+ # Setup main vertical layout
52
+ self.__layout = QtWidgets.QVBoxLayout()
53
+ self.__layout.setContentsMargins(0, 0, 0, 0)
54
+
55
+ # Required to get layout on DockWidget
56
+ self.setWidget(QtWidgets.QWidget())
57
+ self.widget().setLayout(self.__layout)
58
+
59
+ def closeEvent(self, event):
60
+ """Delete event and emit close signal"""
61
+ del event
62
+ self.closed.emit(self)
63
+
64
+ def showEvent(self, event):
65
+ """Delete event and emit enabled signal"""
66
+ del event
67
+ self.enabled.emit()
68
+
69
+ def layout(self):
70
+ """Returns the layout"""
71
+ return self.__layout
@@ -0,0 +1,126 @@
1
+ # Copyright Contributors to the OpenCue Project
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+
16
+ """Base class for CueGUI graph widgets."""
17
+
18
+ from qtpy import QtCore
19
+ from qtpy import QtWidgets
20
+
21
+ from NodeGraphQtPy import NodeGraph
22
+ from NodeGraphQtPy.errors import NodeRegistrationError
23
+ from cuegui.nodegraph import CueLayerNode
24
+ from cuegui import app
25
+
26
+
27
+ class AbstractGraphWidget(QtWidgets.QWidget):
28
+ """Base class for CueGUI graph widgets"""
29
+
30
+ def __init__(self, parent=None):
31
+ super(AbstractGraphWidget, self).__init__(parent=parent)
32
+ self.graph = NodeGraph()
33
+ self.setupUI()
34
+
35
+ self.timer = QtCore.QTimer(self)
36
+ # pylint: disable=no-member
37
+ self.timer.timeout.connect(self.update)
38
+ self.timer.setInterval(1000 * 20)
39
+
40
+ self.graph.node_selection_changed.connect(self.onNodeSelectionChanged)
41
+ app().quit.connect(self.timer.stop)
42
+
43
+ def setupUI(self):
44
+ """Setup the UI."""
45
+ try:
46
+ self.graph.register_node(CueLayerNode)
47
+ except NodeRegistrationError:
48
+ pass
49
+ self.graph.viewer().installEventFilter(self)
50
+
51
+ layout = QtWidgets.QVBoxLayout(self)
52
+ layout.addWidget(self.graph.viewer())
53
+
54
+ def onNodeSelectionChanged(self):
55
+ """Slot run when a node is selected.
56
+
57
+ Updates the nodes to ensure they're visualising current data.
58
+ Can be used to notify other widgets of object selection.
59
+ """
60
+ self.update()
61
+
62
+ def handleSelectObjects(self, rpcObjects):
63
+ """Select incoming objects in graph.
64
+ """
65
+ received = [o.name() for o in rpcObjects]
66
+ current = [rpcObject.name() for rpcObject in self.selectedObjects()]
67
+ if received == current:
68
+ # prevent recursing
69
+ return
70
+
71
+ for node in self.graph.all_nodes():
72
+ node.set_selected(False)
73
+ for rpcObject in rpcObjects:
74
+ node = self.graph.get_node_by_name(rpcObject.name())
75
+ node.set_selected(True)
76
+
77
+ def selectedObjects(self):
78
+ """Return the selected nodes rpcObjects in the graph.
79
+ :rtype: [opencue.wrappers.layer.Layer]
80
+ :return: List of selected layers
81
+ """
82
+ rpcObjects = [n.rpcObject for n in self.graph.selected_nodes()]
83
+ return rpcObjects
84
+
85
+ def eventFilter(self, target, event):
86
+ """Override eventFilter
87
+
88
+ Centre nodes in graph viewer on 'F' key press.
89
+
90
+ @param target: widget event occurred on
91
+ @type target: QtWidgets.QWidget
92
+ @param event: Qt event
93
+ @type event: QtCore.QEvent
94
+ """
95
+ if hasattr(self, "graph"):
96
+ viewer = self.graph.viewer()
97
+ if target == viewer:
98
+ if event.type() == QtCore.QEvent.KeyPress:
99
+ if event.key() == QtCore.Qt.Key_F:
100
+ self.graph.center_on()
101
+ if event.key() == QtCore.Qt.Key_L:
102
+ self.graph.auto_layout_nodes()
103
+
104
+ return super(AbstractGraphWidget, self).eventFilter(target, event)
105
+
106
+ def clearGraph(self):
107
+ """Clear all nodes from the graph
108
+ """
109
+ for node in self.graph.all_nodes():
110
+ for port in node.output_ports():
111
+ port.unlock()
112
+ for port in node.input_ports():
113
+ port.unlock()
114
+ self.graph.clear_session()
115
+
116
+ def createGraph(self):
117
+ """Create the graph to visualise OpenCue objects
118
+ """
119
+ raise NotImplementedError()
120
+
121
+ def update(self):
122
+ """Update nodes with latest data
123
+
124
+ This is run every 20 seconds by the timer.
125
+ """
126
+ raise NotImplementedError()