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()
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.
obsobs.AttachObserver(self)
49 ost.scene.AttachObserver(self.
obsobs)
50 app.scene_win.qobject.ActiveNodesChanged.connect(self.
ActiveNodesChangedActiveNodesChanged)
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)
82 self.
layoutlayout=QtWidgets.QHBoxLayout()
83 self.
layoutlayout.setContentsMargins(0,0,0,0)
84 self.
layoutlayout.setSpacing(0)
85 self.setLayout(self.
layoutlayout)
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_mywidget_.minimumWidth(),
97 self.resize(self.
mywidget_mywidget_.minimumWidth(),
101 self.setHidden(
not self.isHidden())
104 self.
visiblevisible.emit(
False)
105 QtWidgets.QDialog.hideEvent(self,event)
109 QtWidgets.QDialog.showEvent(self,event)
String DLLEXPORT_OST_BASE GetSharedDataPath()