26 from PyQt4
import QtCore, QtGui
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)
51 QtCore.QObject.connect(app.scene_win.qobject,QtCore.SIGNAL(
"ActiveNodesChanged()"),
54 self.setMinimumSize(250,215)
62 ToolBarOptionsWidget.Update(self)
66 ToolBarOptionsWidget.Update(self)
70 ToolBarOptionsWidget.Update(self)
74 ToolBarOptionsWidget.Update(self)
78 QtGui.QDialog.__init__(self, parent)
79 self.setWindowTitle(
"Inspector Gadget")
80 self.setAttribute(QtCore.Qt.WA_MacSmallSize)
82 self.layout.setMargin(0)
83 self.layout.setSpacing(0)
84 self.setLayout(self.
layout)
87 size_pol = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
88 QtGui.QSizePolicy.Expanding)
89 self.setSizePolicy(size_pol)
93 if(hasattr(self,
"mywidget_")):
94 self.setMinimumSize(self.mywidget_.minimumWidth(),
95 self.mywidget_.minimumHeight())
96 self.resize(self.mywidget_.minimumWidth(),
97 self.mywidget_.minimumHeight())
100 self.setHidden(
not self.isHidden())
103 self.emit(QtCore.SIGNAL(
"visible"),
False)
104 QtGui.QDialog.hideEvent(self,event)
107 self.emit(QtCore.SIGNAL(
"visible"),
True)
108 QtGui.QDialog.showEvent(self,event)
String DLLEXPORT_OST_BASE GetSharedDataPath()