26 from PyQt5
import QtCore, QtWidgets
27 from toolbar_options_widget
import ToolBarOptionsWidget
28 from render_options_widget
import RenderOptionsWidget
29 from color_options_widget
import ColorOptionsWidget
31 from map_level_widget
import AdditionalSettingsWidget
32 from scene_selection_helper
import SelHelper
37 ToolBarOptionsWidget.__init__(self, parent)
38 app=gui.GostyApp.Instance()
40 [InspectorWidget.ICONS_PATH+
"render_icon.png",RenderOptionsWidget(self),
None],
41 [InspectorWidget.ICONS_PATH+
"color_icon.png",ColorOptionsWidget(self),
None],
42 [InspectorWidget.ICONS_PATH+
"preset_icon.png", AdditionalSettingsWidget(self),
"Additional Node Settings"],
43 [InspectorWidget.ICONS_PATH+
"tool_icon.png",app.tool_options_win.qobject,
"Tool Options"]
46 ToolBarOptionsWidget.AddWidget(self,o[0], o[1], o[2])
49 self.obs.AttachObserver(self)
50 ost.scene.AttachObserver(self.
obs)
53 self.setMinimumSize(250,215)
61 ToolBarOptionsWidget.Update(self)
65 ToolBarOptionsWidget.Update(self)
69 ToolBarOptionsWidget.Update(self)
73 ToolBarOptionsWidget.Update(self)
77 visible = QtCore.pyqtSignal(bool, name=
"visible")
80 QtWidgets.QDialog.__init__(self, parent)
81 self.setWindowTitle(
"Inspector Gadget")
82 self.setAttribute(QtCore.Qt.WA_MacSmallSize)
84 self.layout.setContentsMargins(0,0,0,0)
85 self.layout.setSpacing(0)
86 self.setLayout(self.
layout)
89 size_pol = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
90 QtWidgets.QSizePolicy.Expanding)
91 self.setSizePolicy(size_pol)
95 if(hasattr(self,
"mywidget_")):
96 self.setMinimumSize(self.mywidget_.minimumWidth(),
97 self.mywidget_.minimumHeight())
98 self.resize(self.mywidget_.minimumWidth(),
99 self.mywidget_.minimumHeight())
102 self.setHidden(
not self.isHidden())
105 self.visible.emit(
False)
106 QtWidgets.QDialog.hideEvent(self,event)
109 self.visible.emit(
True)
110 QtWidgets.QDialog.showEvent(self,event)
String DLLEXPORT_OST_BASE GetSharedDataPath()