25 from PyQt5
import QtCore, QtWidgets
26 from .toolbar_options_widget
import ToolBarOptionsWidget
27 from .render_options_widget
import RenderOptionsWidget
28 from .color_options_widget
import ColorOptionsWidget
30 from .map_level_widget
import AdditionalSettingsWidget
31 from .scene_selection_helper
import SelHelper
36 ToolBarOptionsWidget.__init__(self, parent)
37 app=gui.GostyApp.Instance()
39 [InspectorWidget.ICONS_PATH+
"render_icon.png",RenderOptionsWidget(self),
None],
40 [InspectorWidget.ICONS_PATH+
"color_icon.png",ColorOptionsWidget(self),
None],
41 [InspectorWidget.ICONS_PATH+
"preset_icon.png", AdditionalSettingsWidget(self),
"Additional Node Settings"],
42 [InspectorWidget.ICONS_PATH+
"tool_icon.png",app.tool_options_win.qobject,
"Tool Options"]
45 ToolBarOptionsWidget.AddWidget(self,o[0], o[1], o[2])
48 self.obs.AttachObserver(self)
49 ost.scene.AttachObserver(self.
obs)
52 self.setMinimumSize(250,215)
60 ToolBarOptionsWidget.Update(self)
64 ToolBarOptionsWidget.Update(self)
68 ToolBarOptionsWidget.Update(self)
72 ToolBarOptionsWidget.Update(self)
76 visible = QtCore.pyqtSignal(bool, name=
"visible")
79 QtWidgets.QDialog.__init__(self, parent)
80 self.setWindowTitle(
"Inspector Gadget")
81 self.setAttribute(QtCore.Qt.WA_MacSmallSize)
83 self.layout.setContentsMargins(0,0,0,0)
84 self.layout.setSpacing(0)
85 self.setLayout(self.
layout)
88 size_pol = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
89 QtWidgets.QSizePolicy.Expanding)
90 self.setSizePolicy(size_pol)
94 if(hasattr(self,
"mywidget_")):
95 self.setMinimumSize(self.mywidget_.minimumWidth(),
96 self.mywidget_.minimumHeight())
97 self.resize(self.mywidget_.minimumWidth(),
98 self.mywidget_.minimumHeight())
101 self.setHidden(
not self.isHidden())
104 self.visible.emit(
False)
105 QtWidgets.QDialog.hideEvent(self,event)
108 self.visible.emit(
True)
109 QtWidgets.QDialog.showEvent(self,event)
String DLLEXPORT_OST_BASE GetSharedDataPath()