def setupUi(self, FilterWdg): FilterWdg.setObjectName(_fromUtf8("FilterWdg")) FilterWdg.resize(238, 394) self.verticalLayout = QtGui.QVBoxLayout(FilterWdg) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.groupBox = QtGui.QGroupBox(FilterWdg) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout = QtGui.QGridLayout(self.groupBox) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.magnitudeRangeFilter = DoubleRangeFilter(self.groupBox) self.magnitudeRangeFilter.setObjectName(_fromUtf8("magnitudeRangeFilter")) self.gridLayout.addWidget(self.magnitudeRangeFilter, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox) self.groupBox_2 = QtGui.QGroupBox(FilterWdg) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.depthRangeFilter = RangeFilter(self.groupBox_2) self.depthRangeFilter.setObjectName(_fromUtf8("depthRangeFilter")) self.gridLayout_2.addWidget(self.depthRangeFilter, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox_3 = QtGui.QGroupBox(FilterWdg) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.dateRangeFilter = DateRangeFilter(self.groupBox_3) self.dateRangeFilter.setObjectName(_fromUtf8("dateRangeFilter")) self.gridLayout_3.addWidget(self.dateRangeFilter, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_3) self.groupBox_5 = QtGui.QGroupBox(FilterWdg) self.groupBox_5.setObjectName(_fromUtf8("groupBox_5")) self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_5) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.drawPolygonBtn = QtGui.QToolButton(self.groupBox_5) self.drawPolygonBtn.setCheckable(True) self.drawPolygonBtn.setObjectName(_fromUtf8("drawPolygonBtn")) self.horizontalLayout.addWidget(self.drawPolygonBtn) self.clearPolygonBtn = QtGui.QToolButton(self.groupBox_5) self.clearPolygonBtn.setObjectName(_fromUtf8("clearPolygonBtn")) self.horizontalLayout.addWidget(self.clearPolygonBtn) self.verticalLayout.addWidget(self.groupBox_5) self.line = QtGui.QFrame(FilterWdg) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout.addWidget(self.line) self.groupBox_4 = QtGui.QGroupBox(FilterWdg) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_4) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_4 = QtGui.QLabel(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_4.addWidget(self.label_4, 0, 0, 1, 1) self.plotTypeCombo = QtGui.QComboBox(self.groupBox_4) self.plotTypeCombo.setObjectName(_fromUtf8("plotTypeCombo")) self.gridLayout_4.addWidget(self.plotTypeCombo, 0, 1, 1, 2) self.label = QtGui.QLabel(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_4.addWidget(self.label, 1, 0, 1, 1) self.xAxisCombo = QtGui.QComboBox(self.groupBox_4) self.xAxisCombo.setObjectName(_fromUtf8("xAxisCombo")) self.gridLayout_4.addWidget(self.xAxisCombo, 1, 1, 1, 2) self.label_2 = QtGui.QLabel(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_4.addWidget(self.label_2, 2, 0, 1, 1) self.yAxisCombo = QtGui.QComboBox(self.groupBox_4) self.yAxisCombo.setObjectName(_fromUtf8("yAxisCombo")) self.gridLayout_4.addWidget(self.yAxisCombo, 2, 1, 1, 2) self.label_3 = QtGui.QLabel(self.groupBox_4) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_4.addWidget(self.label_3, 3, 0, 1, 1) self.titleEdit = QtGui.QLineEdit(self.groupBox_4) self.titleEdit.setObjectName(_fromUtf8("titleEdit")) self.gridLayout_4.addWidget(self.titleEdit, 3, 1, 1, 1) self.plotBtn = QtGui.QToolButton(self.groupBox_4) self.plotBtn.setObjectName(_fromUtf8("plotBtn")) self.gridLayout_4.addWidget(self.plotBtn, 3, 2, 1, 1) self.verticalLayout.addWidget(self.groupBox_4) self.retranslateUi(FilterWdg) QtCore.QMetaObject.connectSlotsByName(FilterWdg) FilterWdg.setTabOrder(self.drawPolygonBtn, self.clearPolygonBtn) FilterWdg.setTabOrder(self.clearPolygonBtn, self.plotTypeCombo) FilterWdg.setTabOrder(self.plotTypeCombo, self.xAxisCombo) FilterWdg.setTabOrder(self.xAxisCombo, self.yAxisCombo) FilterWdg.setTabOrder(self.yAxisCombo, self.titleEdit) FilterWdg.setTabOrder(self.titleEdit, self.plotBtn)
def setupUi(self, FilterWdg): FilterWdg.setObjectName(_fromUtf8("FilterWdg")) FilterWdg.resize(238, 394) self.verticalLayout = QtGui.QVBoxLayout(FilterWdg) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.groupBox = QtGui.QGroupBox(FilterWdg) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout = QtGui.QGridLayout(self.groupBox) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.magnitudeRangeFilter = DoubleRangeFilter(self.groupBox) self.magnitudeRangeFilter.setObjectName( _fromUtf8("magnitudeRangeFilter")) self.gridLayout.addWidget(self.magnitudeRangeFilter, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox) self.groupBox_2 = QtGui.QGroupBox(FilterWdg) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.depthRangeFilter = RangeFilter(self.groupBox_2) self.depthRangeFilter.setObjectName(_fromUtf8("depthRangeFilter")) self.gridLayout_2.addWidget(self.depthRangeFilter, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox_3 = QtGui.QGroupBox(FilterWdg) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.dateRangeFilter = DateRangeFilter(self.groupBox_3) self.dateRangeFilter.setObjectName(_fromUtf8("dateRangeFilter")) self.gridLayout_3.addWidget(self.dateRangeFilter, 0, 0, 1, 1) self.verticalLayout.addWidget(self.groupBox_3) self.groupBox_5 = QtGui.QGroupBox(FilterWdg) self.groupBox_5.setObjectName(_fromUtf8("groupBox_5")) self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_5) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.drawPolygonBtn = QtGui.QToolButton(self.groupBox_5) self.drawPolygonBtn.setCheckable(True) self.drawPolygonBtn.setObjectName(_fromUtf8("drawPolygonBtn")) self.horizontalLayout.addWidget(self.drawPolygonBtn) self.clearPolygonBtn = QtGui.QToolButton(self.groupBox_5) self.clearPolygonBtn.setObjectName(_fromUtf8("clearPolygonBtn")) self.horizontalLayout.addWidget(self.clearPolygonBtn) self.verticalLayout.addWidget(self.groupBox_5) self.line = QtGui.QFrame(FilterWdg) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout.addWidget(self.line) self.groupBox_4 = QtGui.QGroupBox(FilterWdg) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_4) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_4 = QtGui.QLabel(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_4.addWidget(self.label_4, 0, 0, 1, 1) self.plotTypeCombo = QtGui.QComboBox(self.groupBox_4) self.plotTypeCombo.setObjectName(_fromUtf8("plotTypeCombo")) self.gridLayout_4.addWidget(self.plotTypeCombo, 0, 1, 1, 2) self.label = QtGui.QLabel(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_4.addWidget(self.label, 1, 0, 1, 1) self.xAxisCombo = QtGui.QComboBox(self.groupBox_4) self.xAxisCombo.setObjectName(_fromUtf8("xAxisCombo")) self.gridLayout_4.addWidget(self.xAxisCombo, 1, 1, 1, 2) self.label_2 = QtGui.QLabel(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_4.addWidget(self.label_2, 2, 0, 1, 1) self.yAxisCombo = QtGui.QComboBox(self.groupBox_4) self.yAxisCombo.setObjectName(_fromUtf8("yAxisCombo")) self.gridLayout_4.addWidget(self.yAxisCombo, 2, 1, 1, 2) self.label_3 = QtGui.QLabel(self.groupBox_4) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_4.addWidget(self.label_3, 3, 0, 1, 1) self.titleEdit = QtGui.QLineEdit(self.groupBox_4) self.titleEdit.setObjectName(_fromUtf8("titleEdit")) self.gridLayout_4.addWidget(self.titleEdit, 3, 1, 1, 1) self.plotBtn = QtGui.QToolButton(self.groupBox_4) self.plotBtn.setObjectName(_fromUtf8("plotBtn")) self.gridLayout_4.addWidget(self.plotBtn, 3, 2, 1, 1) self.verticalLayout.addWidget(self.groupBox_4) self.retranslateUi(FilterWdg) QtCore.QMetaObject.connectSlotsByName(FilterWdg) FilterWdg.setTabOrder(self.drawPolygonBtn, self.clearPolygonBtn) FilterWdg.setTabOrder(self.clearPolygonBtn, self.plotTypeCombo) FilterWdg.setTabOrder(self.plotTypeCombo, self.xAxisCombo) FilterWdg.setTabOrder(self.xAxisCombo, self.yAxisCombo) FilterWdg.setTabOrder(self.yAxisCombo, self.titleEdit) FilterWdg.setTabOrder(self.titleEdit, self.plotBtn)
def setupUi(self, Dock): Dock.setObjectName(_fromUtf8("Dock")) Dock.resize(318, 689) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/inasafe/icon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dock.setWindowIcon(icon) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.verticalLayout = QtGui.QVBoxLayout(self.dockWidgetContents) self.verticalLayout.setContentsMargins(3, 0, 3, 3) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.dbGrb = QtGui.QGroupBox(self.dockWidgetContents) self.dbGrb.setObjectName(_fromUtf8("dbGrb")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.dbGrb) self.verticalLayout_2.setContentsMargins(0, 6, 0, 0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(-1, 10, -1, -1) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.selectDbComboBox = QtGui.QComboBox(self.dbGrb) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.selectDbComboBox.sizePolicy().hasHeightForWidth()) self.selectDbComboBox.setSizePolicy(sizePolicy) self.selectDbComboBox.setObjectName(_fromUtf8("selectDbComboBox")) self.horizontalLayout_3.addWidget(self.selectDbComboBox) self.addDbBtn = QtGui.QToolButton(self.dbGrb) self.addDbBtn.setObjectName(_fromUtf8("addDbBtn")) self.horizontalLayout_3.addWidget(self.addDbBtn) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.verticalLayout.addWidget(self.dbGrb) self.magnitudeGrb = QtGui.QGroupBox(self.dockWidgetContents) self.magnitudeGrb.setObjectName(_fromUtf8("magnitudeGrb")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.magnitudeGrb) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.mag_range = DoubleRangeFilter(self.magnitudeGrb) self.mag_range.setObjectName(_fromUtf8("mag_range")) self.verticalLayout_4.addWidget(self.mag_range) self.verticalLayout.addWidget(self.magnitudeGrb) self.timeGrb = QtGui.QGroupBox(self.dockWidgetContents) self.timeGrb.setObjectName(_fromUtf8("timeGrb")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.timeGrb) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.formLayout = QtGui.QFormLayout() self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label_2 = QtGui.QLabel(self.timeGrb) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2) self.maxDateDe = QtGui.QDateTimeEdit(self.timeGrb) self.maxDateDe.setCalendarPopup(True) self.maxDateDe.setObjectName(_fromUtf8("maxDateDe")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.maxDateDe) self.minDateDe = QtGui.QDateTimeEdit(self.timeGrb) self.minDateDe.setCalendarPopup(True) self.minDateDe.setObjectName(_fromUtf8("minDateDe")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.minDateDe) self.label_3 = QtGui.QLabel(self.timeGrb) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3) self.verticalLayout_3.addLayout(self.formLayout) self.verticalLayout.addWidget(self.timeGrb) self.actionsBtns = QtGui.QVBoxLayout() self.actionsBtns.setContentsMargins(-1, 0, -1, -1) self.actionsBtns.setObjectName(_fromUtf8("actionsBtns")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setContentsMargins(-1, 0, -1, -1) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.drawBtn = QtGui.QPushButton(self.dockWidgetContents) self.drawBtn.setObjectName(_fromUtf8("drawBtn")) self.horizontalLayout.addWidget(self.drawBtn) self.clearBtn = QtGui.QPushButton(self.dockWidgetContents) self.clearBtn.setObjectName(_fromUtf8("clearBtn")) self.horizontalLayout.addWidget(self.clearBtn) self.actionsBtns.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setContentsMargins(-1, 0, -1, -1) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.filterBtn = QtGui.QPushButton(self.dockWidgetContents) self.filterBtn.setEnabled(True) self.filterBtn.setObjectName(_fromUtf8("filterBtn")) self.horizontalLayout_4.addWidget(self.filterBtn) self.downloadBtn = QtGui.QPushButton(self.dockWidgetContents) self.downloadBtn.setEnabled(False) self.downloadBtn.setObjectName(_fromUtf8("downloadBtn")) self.horizontalLayout_4.addWidget(self.downloadBtn) self.actionsBtns.addLayout(self.horizontalLayout_4) self.verticalLayout.addLayout(self.actionsBtns) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) Dock.setWidget(self.dockWidgetContents) self.retranslateUi(Dock) QtCore.QMetaObject.connectSlotsByName(Dock)
def setupUi(self, CatalogueEvents): CatalogueEvents.setObjectName(_fromUtf8("CatalogueEvents")) CatalogueEvents.resize(329, 544) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/inasafe/icon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) CatalogueEvents.setWindowIcon(icon) self.dockWidgetContents = QtGui.QWidget() self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents")) self.gridLayout = QtGui.QGridLayout(self.dockWidgetContents) self.gridLayout.setContentsMargins(3, 0, 3, 3) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.gridLayout.addLayout(self.horizontalLayout, 4, 0, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 6, 0, 1, 1) self.grpQuestion = QtGui.QGroupBox(self.dockWidgetContents) self.grpQuestion.setObjectName(_fromUtf8("grpQuestion")) self.gridLayout_3 = QtGui.QGridLayout(self.grpQuestion) self.gridLayout_3.setContentsMargins(0, 6, 0, 0) self.gridLayout_3.setVerticalSpacing(1) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.date_range = DateRangeFilter(self.grpQuestion) self.date_range.setObjectName(_fromUtf8("date_range")) self.gridLayout_3.addWidget(self.date_range, 9, 0, 1, 1) self.label_8 = QtGui.QLabel(self.grpQuestion) self.label_8.setMargin(10) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_3.addWidget(self.label_8, 6, 0, 1, 1) self.mscalesCombo = MultiCheckComboBox(self.grpQuestion) self.mscalesCombo.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) self.mscalesCombo.setObjectName(_fromUtf8("mscalesCombo")) self.gridLayout_3.addWidget(self.mscalesCombo, 5, 0, 1, 2) self.agenciesCombo = MultiCheckComboBox(self.grpQuestion) self.agenciesCombo.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) self.agenciesCombo.setObjectName(_fromUtf8("agenciesCombo")) self.gridLayout_3.addWidget(self.agenciesCombo, 2, 0, 1, 2) self.label = QtGui.QLabel(self.grpQuestion) self.label.setMargin(10) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_3.addWidget(self.label, 1, 0, 1, 1) self.label_7 = QtGui.QLabel(self.grpQuestion) self.label_7.setMargin(10) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_3.addWidget(self.label_7, 3, 0, 1, 1) self.label_2 = QtGui.QLabel(self.grpQuestion) self.label_2.setMargin(10) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_3.addWidget(self.label_2, 8, 0, 1, 1) self.mag_range = DoubleRangeFilter(self.grpQuestion) self.mag_range.setObjectName(_fromUtf8("mag_range")) self.gridLayout_3.addWidget(self.mag_range, 7, 0, 1, 1) self.gridLayout.addWidget(self.grpQuestion, 0, 0, 1, 1) self.filterButton = QtGui.QPushButton(self.dockWidgetContents) self.filterButton.setObjectName(_fromUtf8("filterButton")) self.gridLayout.addWidget(self.filterButton, 5, 0, 1, 1) CatalogueEvents.setWidget(self.dockWidgetContents) self.label_7.setBuddy(self.mscalesCombo) self.retranslateUi(CatalogueEvents) QtCore.QMetaObject.connectSlotsByName(CatalogueEvents)