def initGui(self): self.explorerWidget = None self.progressMaximum = 0 self.isProgressVisible = False self.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea) self.dockWidgetContents = QtGui.QWidget() self.setWindowTitle('OpenGeo explorer') self.splitter = QtGui.QSplitter() self.splitter.setOrientation(Qt.Vertical) self.subwidget = QtGui.QWidget() self.explorerWidget = ExplorerWidget(self, self.singletab) self.toolbar = QtGui.QToolBar() self.toolbar.setToolButtonStyle(Qt.ToolButtonIconOnly) self.toolbar.setVisible(self.singletab) self.setToolbarActions([]) self.splitter.addWidget(self.explorerWidget) self.log = QtGui.QTextEdit() self.description = QtGui.QWidget() self.descriptionLayout = QtGui.QVBoxLayout() self.descriptionLayout.setSpacing(2) self.descriptionLayout.setMargin(0) self.description.setLayout(self.descriptionLayout) self.splitter.addWidget(self.description) self.setDescriptionWidget() showDescription = QSettings().value( "/OpenGeo/Settings/General/ShowDescription", True, bool) self.description.setVisible(showDescription) self.progress = None self.layout = QtGui.QVBoxLayout() self.layout.setSpacing(2) self.layout.setMargin(0) self.layout.addWidget(self.toolbar) self.layout.addWidget(self.splitter) self.dockWidgetContents.setLayout(self.layout) self.setWidget(self.dockWidgetContents) self.topLevelChanged.connect(self.dockStateChanged)