class Ui_ComboEditWidget(object): def setupUi(self, ComboEditWidget): ComboEditWidget.setObjectName("ComboEditWidget") ComboEditWidget.resize(259, 52) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( ComboEditWidget.sizePolicy().hasHeightForWidth()) ComboEditWidget.setSizePolicy(sizePolicy) ComboEditWidget.setMinimumSize(QtCore.QSize(50, 0)) self.formLayout = QtWidgets.QFormLayout(ComboEditWidget) self.formLayout.setContentsMargins(0, 2, 0, 2) self.formLayout.setObjectName("formLayout") self.gridLayout_1 = QtWidgets.QGridLayout() self.gridLayout_1.setObjectName("gridLayout_1") self.comboBox = QtWidgets.QComboBox(ComboEditWidget) self.comboBox.setMinimumSize(QtCore.QSize(125, 0)) self.comboBox.setObjectName("comboBox") self.gridLayout_1.addWidget(self.comboBox, 0, 2, 1, 1) self.checkBox = QtWidgets.QCheckBox(ComboEditWidget) self.checkBox.setObjectName("checkBox") self.gridLayout_1.addWidget(self.checkBox, 0, 4, 1, 1) self.toolButton = QtWidgets.QToolButton(ComboEditWidget) self.toolButton.setObjectName("toolButton") self.gridLayout_1.addWidget(self.toolButton, 0, 5, 1, 1) self.formLayout.setLayout(0, QtWidgets.QFormLayout.FieldRole, self.gridLayout_1) self.label_1 = QtWidgets.QLabel(ComboEditWidget) self.label_1.setMinimumSize(QtCore.QSize(50, 0)) self.label_1.setObjectName("label_1") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_1) self.expression = QgsFieldExpressionWidget(ComboEditWidget) self.expression.setMinimumSize(QtCore.QSize(20, 20)) self.expression.setObjectName("expression") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.expression) self.label_2 = QtWidgets.QLabel(ComboEditWidget) self.label_2.setMinimumSize(QtCore.QSize(50, 0)) self.label_2.setText("") self.label_2.setObjectName("label_2") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_2) self.retranslateUi(ComboEditWidget) QtCore.QMetaObject.connectSlotsByName(ComboEditWidget) def retranslateUi(self, ComboEditWidget): _translate = QtCore.QCoreApplication.translate ComboEditWidget.setWindowTitle(_translate("ComboEditWidget", "Form")) self.toolButton.setText(_translate("ComboEditWidget", "..."))
class Ui_VectorPropertiesWidget(object): def setupUi(self, VectorPropertiesWidget): VectorPropertiesWidget.setObjectName("VectorPropertiesWidget") VectorPropertiesWidget.resize(340, 410) self.verticalLayout_2 = QtWidgets.QVBoxLayout(VectorPropertiesWidget) self.verticalLayout_2.setObjectName("verticalLayout_2") self.formLayout_4 = QtWidgets.QFormLayout() self.formLayout_4.setFieldGrowthPolicy( QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_4.setContentsMargins(12, -1, 10, -1) self.formLayout_4.setObjectName("formLayout_4") self.label_ObjectType = QtWidgets.QLabel(VectorPropertiesWidget) self.label_ObjectType.setMinimumSize(QtCore.QSize(60, 0)) self.label_ObjectType.setObjectName("label_ObjectType") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_ObjectType) self.comboBox_ObjectType = QtWidgets.QComboBox(VectorPropertiesWidget) self.comboBox_ObjectType.setObjectName("comboBox_ObjectType") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_ObjectType) self.verticalLayout_2.addLayout(self.formLayout_4) self.groupBox_zCoordinate = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_zCoordinate.setObjectName("groupBox_zCoordinate") self.verticalLayout_6 = QtWidgets.QVBoxLayout( self.groupBox_zCoordinate) self.verticalLayout_6.setContentsMargins(9, 3, 9, 3) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(self.groupBox_zCoordinate) self.label_2.setMinimumSize(QtCore.QSize(60, 0)) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.radioButton_zValue = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_zValue.setObjectName("radioButton_zValue") self.buttonGroup_altitude = QtWidgets.QButtonGroup( VectorPropertiesWidget) self.buttonGroup_altitude.setObjectName("buttonGroup_altitude") self.buttonGroup_altitude.addButton(self.radioButton_zValue) self.horizontalLayout_2.addWidget(self.radioButton_zValue) self.radioButton_mValue = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_mValue.setObjectName("radioButton_mValue") self.buttonGroup_altitude.addButton(self.radioButton_mValue) self.horizontalLayout_2.addWidget(self.radioButton_mValue) self.radioButton_Expression = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_Expression.setChecked(True) self.radioButton_Expression.setObjectName("radioButton_Expression") self.buttonGroup_altitude.addButton(self.radioButton_Expression) self.horizontalLayout_2.addWidget(self.radioButton_Expression) self.verticalLayout_6.addLayout(self.horizontalLayout_2) self.formLayout = QtWidgets.QFormLayout() self.formLayout.setContentsMargins(10, -1, -1, -1) self.formLayout.setObjectName("formLayout") self.label_zExpression = QtWidgets.QLabel(self.groupBox_zCoordinate) self.label_zExpression.setMinimumSize(QtCore.QSize(60, 0)) self.label_zExpression.setObjectName("label_zExpression") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_zExpression) self.fieldExpressionWidget_altitude = QgsFieldExpressionWidget( self.groupBox_zCoordinate) self.fieldExpressionWidget_altitude.setMinimumSize(QtCore.QSize(0, 20)) self.fieldExpressionWidget_altitude.setObjectName( "fieldExpressionWidget_altitude") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.fieldExpressionWidget_altitude) self.verticalLayout_6.addLayout(self.formLayout) self.formLayout_2 = QtWidgets.QFormLayout() self.formLayout_2.setObjectName("formLayout_2") self.label_3 = QtWidgets.QLabel(self.groupBox_zCoordinate) self.label_3.setMinimumSize(QtCore.QSize(60, 0)) self.label_3.setObjectName("label_3") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3) self.comboBox_altitudeMode = QtWidgets.QComboBox( self.groupBox_zCoordinate) self.comboBox_altitudeMode.setObjectName("comboBox_altitudeMode") self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_altitudeMode) self.verticalLayout_6.addLayout(self.formLayout_2) self.verticalLayout_2.addWidget(self.groupBox_zCoordinate) self.groupBox_Styles = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_Styles.setMinimumSize(QtCore.QSize(0, 0)) self.groupBox_Styles.setObjectName("groupBox_Styles") self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_Styles) self.gridLayout_8.setContentsMargins(9, 3, 9, 3) self.gridLayout_8.setObjectName("gridLayout_8") self.verticalLayout_Styles = QtWidgets.QVBoxLayout() self.verticalLayout_Styles.setObjectName("verticalLayout_Styles") self.gridLayout_8.addLayout(self.verticalLayout_Styles, 1, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_Styles) self.groupBox_Features = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_Features.setObjectName("groupBox_Features") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_Features) self.verticalLayout_3.setContentsMargins(9, 3, 9, 3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.radioButton_AllFeatures = QtWidgets.QRadioButton( self.groupBox_Features) self.radioButton_AllFeatures.setObjectName("radioButton_AllFeatures") self.verticalLayout_3.addWidget(self.radioButton_AllFeatures) self.radioButton_IntersectingFeatures = QtWidgets.QRadioButton( self.groupBox_Features) self.radioButton_IntersectingFeatures.setChecked(True) self.radioButton_IntersectingFeatures.setObjectName( "radioButton_IntersectingFeatures") self.verticalLayout_3.addWidget(self.radioButton_IntersectingFeatures) self.verticalLayout_Feature = QtWidgets.QVBoxLayout() self.verticalLayout_Feature.setContentsMargins(20, -1, -1, -1) self.verticalLayout_Feature.setObjectName("verticalLayout_Feature") self.checkBox_Clip = QtWidgets.QCheckBox(self.groupBox_Features) self.checkBox_Clip.setChecked(True) self.checkBox_Clip.setObjectName("checkBox_Clip") self.verticalLayout_Feature.addWidget(self.checkBox_Clip) self.verticalLayout_3.addLayout(self.verticalLayout_Feature) self.verticalLayout_2.addWidget(self.groupBox_Features) self.groupBox_Attrs = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_Attrs.setObjectName("groupBox_Attrs") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_Attrs) self.verticalLayout_4.setContentsMargins(9, 3, 9, 3) self.verticalLayout_4.setObjectName("verticalLayout_4") self.checkBox_ExportAttrs = QtWidgets.QCheckBox(self.groupBox_Attrs) self.checkBox_ExportAttrs.setChecked(False) self.checkBox_ExportAttrs.setObjectName("checkBox_ExportAttrs") self.verticalLayout_4.addWidget(self.checkBox_ExportAttrs) self.formLayout_Label = QtWidgets.QFormLayout() self.formLayout_Label.setObjectName("formLayout_Label") self.label = QtWidgets.QLabel(self.groupBox_Attrs) self.label.setEnabled(False) self.label.setMinimumSize(QtCore.QSize(60, 0)) self.label.setObjectName("label") self.formLayout_Label.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.comboBox_Label = QtWidgets.QComboBox(self.groupBox_Attrs) self.comboBox_Label.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.comboBox_Label.sizePolicy().hasHeightForWidth()) self.comboBox_Label.setSizePolicy(sizePolicy) self.comboBox_Label.setMaximumSize(QtCore.QSize(270, 16777215)) self.comboBox_Label.setObjectName("comboBox_Label") self.formLayout_Label.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_Label) self.verticalLayout_4.addLayout(self.formLayout_Label) self.verticalLayout_Label = QtWidgets.QVBoxLayout() self.verticalLayout_Label.setObjectName("verticalLayout_Label") self.verticalLayout_4.addLayout(self.verticalLayout_Label) self.verticalLayout_2.addWidget(self.groupBox_Attrs) self.groupBox_Others = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_Others.setObjectName("groupBox_Others") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_Others) self.verticalLayout.setObjectName("verticalLayout") self.checkBox_Visible = QtWidgets.QCheckBox(self.groupBox_Others) self.checkBox_Visible.setChecked(True) self.checkBox_Visible.setObjectName("checkBox_Visible") self.verticalLayout.addWidget(self.checkBox_Visible) self.verticalLayout_2.addWidget(self.groupBox_Others) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.retranslateUi(VectorPropertiesWidget) self.radioButton_IntersectingFeatures.toggled['bool'].connect( self.checkBox_Clip.setEnabled) QtCore.QMetaObject.connectSlotsByName(VectorPropertiesWidget) VectorPropertiesWidget.setTabOrder(self.comboBox_ObjectType, self.radioButton_zValue) VectorPropertiesWidget.setTabOrder(self.radioButton_zValue, self.radioButton_mValue) VectorPropertiesWidget.setTabOrder(self.radioButton_mValue, self.radioButton_Expression) VectorPropertiesWidget.setTabOrder(self.radioButton_Expression, self.comboBox_altitudeMode) VectorPropertiesWidget.setTabOrder(self.comboBox_altitudeMode, self.radioButton_AllFeatures) VectorPropertiesWidget.setTabOrder( self.radioButton_AllFeatures, self.radioButton_IntersectingFeatures) VectorPropertiesWidget.setTabOrder( self.radioButton_IntersectingFeatures, self.checkBox_Clip) VectorPropertiesWidget.setTabOrder(self.checkBox_Clip, self.checkBox_ExportAttrs) VectorPropertiesWidget.setTabOrder(self.checkBox_ExportAttrs, self.comboBox_Label) def retranslateUi(self, VectorPropertiesWidget): _translate = QtCore.QCoreApplication.translate VectorPropertiesWidget.setWindowTitle( _translate("VectorPropertiesWidget", "Form")) self.label_ObjectType.setText( _translate("VectorPropertiesWidget", "Object type")) self.groupBox_zCoordinate.setTitle( _translate("VectorPropertiesWidget", "&Z coordinate")) self.label_2.setText(_translate("VectorPropertiesWidget", "Altitude")) self.radioButton_zValue.setText( _translate("VectorPropertiesWidget", "Z Value")) self.radioButton_mValue.setText( _translate("VectorPropertiesWidget", "M Value")) self.radioButton_Expression.setText( _translate("VectorPropertiesWidget", "Expression")) self.label_3.setText(_translate("VectorPropertiesWidget", "Mode")) self.groupBox_Styles.setTitle( _translate("VectorPropertiesWidget", "&Style")) self.groupBox_Features.setTitle( _translate("VectorPropertiesWidget", "&Features")) self.radioButton_AllFeatures.setText( _translate("VectorPropertiesWidget", "All features")) self.radioButton_IntersectingFeatures.setText( _translate("VectorPropertiesWidget", "Features that intersect with map canvas extent")) self.checkBox_Clip.setText( _translate("VectorPropertiesWidget", "Clip geometries")) self.groupBox_Attrs.setTitle( _translate("VectorPropertiesWidget", "&Attribute and label")) self.checkBox_ExportAttrs.setText( _translate("VectorPropertiesWidget", "Export attributes")) self.label.setText(_translate("VectorPropertiesWidget", "Label field")) self.groupBox_Others.setTitle( _translate("VectorPropertiesWidget", "Other Options")) self.checkBox_Visible.setText( _translate("VectorPropertiesWidget", "Visible on load"))
class Ui_VectorPropertiesWidget(object): def setupUi(self, VectorPropertiesWidget): VectorPropertiesWidget.setObjectName("VectorPropertiesWidget") VectorPropertiesWidget.resize(354, 481) self.verticalLayout_2 = QtWidgets.QVBoxLayout(VectorPropertiesWidget) self.verticalLayout_2.setObjectName("verticalLayout_2") self.formLayout_4 = QtWidgets.QFormLayout() self.formLayout_4.setFieldGrowthPolicy( QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_4.setContentsMargins(8, -1, 6, -1) self.formLayout_4.setObjectName("formLayout_4") self.label_ObjectType = QtWidgets.QLabel(VectorPropertiesWidget) self.label_ObjectType.setMinimumSize(QtCore.QSize(50, 0)) self.label_ObjectType.setObjectName("label_ObjectType") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_ObjectType) self.comboBox_ObjectType = QtWidgets.QComboBox(VectorPropertiesWidget) self.comboBox_ObjectType.setObjectName("comboBox_ObjectType") self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_ObjectType) self.verticalLayout_2.addLayout(self.formLayout_4) self.label_ObjectTypeMessage = QtWidgets.QLabel(VectorPropertiesWidget) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_ObjectTypeMessage.setFont(font) self.label_ObjectTypeMessage.setStyleSheet("font-weight: bold;") self.label_ObjectTypeMessage.setAlignment(QtCore.Qt.AlignCenter) self.label_ObjectTypeMessage.setWordWrap(True) self.label_ObjectTypeMessage.setObjectName("label_ObjectTypeMessage") self.verticalLayout_2.addWidget(self.label_ObjectTypeMessage) self.groupBox_zCoordinate = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_zCoordinate.setObjectName("groupBox_zCoordinate") self.verticalLayout_6 = QtWidgets.QVBoxLayout( self.groupBox_zCoordinate) self.verticalLayout_6.setContentsMargins(9, 3, 9, 3) self.verticalLayout_6.setObjectName("verticalLayout_6") self.label_2 = QtWidgets.QLabel(self.groupBox_zCoordinate) self.label_2.setObjectName("label_2") self.verticalLayout_6.addWidget(self.label_2) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setContentsMargins(4, -1, -1, -1) self.verticalLayout.setObjectName("verticalLayout") self.radioButton_Absolute = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_Absolute.setChecked(True) self.radioButton_Absolute.setObjectName("radioButton_Absolute") self.buttonGroup_zMode = QtWidgets.QButtonGroup(VectorPropertiesWidget) self.buttonGroup_zMode.setObjectName("buttonGroup_zMode") self.buttonGroup_zMode.addButton(self.radioButton_Absolute) self.verticalLayout.addWidget(self.radioButton_Absolute) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.radioButton_Relative = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_Relative.setObjectName("radioButton_Relative") self.buttonGroup_zMode.addButton(self.radioButton_Relative) self.horizontalLayout.addWidget(self.radioButton_Relative) self.comboBox_zDEMLayer = QtWidgets.QComboBox( self.groupBox_zCoordinate) self.comboBox_zDEMLayer.setObjectName("comboBox_zDEMLayer") self.horizontalLayout.addWidget(self.comboBox_zDEMLayer) self.verticalLayout.addLayout(self.horizontalLayout) self.verticalLayout_6.addLayout(self.verticalLayout) self.label_3 = QtWidgets.QLabel(self.groupBox_zCoordinate) self.label_3.setObjectName("label_3") self.verticalLayout_6.addWidget(self.label_3) self.verticalLayout_5 = QtWidgets.QVBoxLayout() self.verticalLayout_5.setContentsMargins(4, -1, -1, -1) self.verticalLayout_5.setObjectName("verticalLayout_5") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.radioButton_FieldValue = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_FieldValue.setChecked(True) self.radioButton_FieldValue.setObjectName("radioButton_FieldValue") self.buttonGroup_zValue = QtWidgets.QButtonGroup( VectorPropertiesWidget) self.buttonGroup_zValue.setObjectName("buttonGroup_zValue") self.buttonGroup_zValue.addButton(self.radioButton_FieldValue) self.horizontalLayout_2.addWidget(self.radioButton_FieldValue) self.radioButton_zValue = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_zValue.setObjectName("radioButton_zValue") self.buttonGroup_zValue.addButton(self.radioButton_zValue) self.horizontalLayout_2.addWidget(self.radioButton_zValue) self.radioButton_mValue = QtWidgets.QRadioButton( self.groupBox_zCoordinate) self.radioButton_mValue.setObjectName("radioButton_mValue") self.buttonGroup_zValue.addButton(self.radioButton_mValue) self.horizontalLayout_2.addWidget(self.radioButton_mValue) self.verticalLayout_5.addLayout(self.horizontalLayout_2) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_zExpression = QtWidgets.QLabel(self.groupBox_zCoordinate) self.label_zExpression.setMinimumSize(QtCore.QSize(46, 0)) self.label_zExpression.setObjectName("label_zExpression") self.gridLayout.addWidget(self.label_zExpression, 0, 0, 1, 1) self.fieldExpressionWidget_zCoordinate = QgsFieldExpressionWidget( self.groupBox_zCoordinate) self.fieldExpressionWidget_zCoordinate.setMinimumSize( QtCore.QSize(0, 20)) self.fieldExpressionWidget_zCoordinate.setObjectName( "fieldExpressionWidget_zCoordinate") self.gridLayout.addWidget(self.fieldExpressionWidget_zCoordinate, 0, 1, 1, 1) self.gridLayout.setColumnStretch(1, 1) self.verticalLayout_5.addLayout(self.gridLayout) self.verticalLayout_6.addLayout(self.verticalLayout_5) self.verticalLayout_2.addWidget(self.groupBox_zCoordinate) self.groupBox_Styles = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_Styles.setMinimumSize(QtCore.QSize(0, 0)) self.groupBox_Styles.setObjectName("groupBox_Styles") self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_Styles) self.gridLayout_8.setContentsMargins(9, 3, 9, 3) self.gridLayout_8.setObjectName("gridLayout_8") self.verticalLayout_Styles = QtWidgets.QVBoxLayout() self.verticalLayout_Styles.setObjectName("verticalLayout_Styles") self.gridLayout_8.addLayout(self.verticalLayout_Styles, 1, 0, 1, 1) self.verticalLayout_2.addWidget(self.groupBox_Styles) self.groupBox_Features = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_Features.setObjectName("groupBox_Features") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_Features) self.verticalLayout_3.setContentsMargins(9, 3, 9, 3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.radioButton_AllFeatures = QtWidgets.QRadioButton( self.groupBox_Features) self.radioButton_AllFeatures.setObjectName("radioButton_AllFeatures") self.verticalLayout_3.addWidget(self.radioButton_AllFeatures) self.radioButton_IntersectingFeatures = QtWidgets.QRadioButton( self.groupBox_Features) self.radioButton_IntersectingFeatures.setChecked(True) self.radioButton_IntersectingFeatures.setObjectName( "radioButton_IntersectingFeatures") self.verticalLayout_3.addWidget(self.radioButton_IntersectingFeatures) self.verticalLayout_Feature = QtWidgets.QVBoxLayout() self.verticalLayout_Feature.setContentsMargins(20, -1, -1, -1) self.verticalLayout_Feature.setObjectName("verticalLayout_Feature") self.checkBox_Clip = QtWidgets.QCheckBox(self.groupBox_Features) self.checkBox_Clip.setChecked(True) self.checkBox_Clip.setObjectName("checkBox_Clip") self.verticalLayout_Feature.addWidget(self.checkBox_Clip) self.verticalLayout_3.addLayout(self.verticalLayout_Feature) self.verticalLayout_2.addWidget(self.groupBox_Features) self.groupBox_Attrs = QtWidgets.QGroupBox(VectorPropertiesWidget) self.groupBox_Attrs.setObjectName("groupBox_Attrs") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_Attrs) self.verticalLayout_4.setContentsMargins(9, 3, 9, 3) self.verticalLayout_4.setObjectName("verticalLayout_4") self.checkBox_ExportAttrs = QtWidgets.QCheckBox(self.groupBox_Attrs) self.checkBox_ExportAttrs.setChecked(False) self.checkBox_ExportAttrs.setObjectName("checkBox_ExportAttrs") self.verticalLayout_4.addWidget(self.checkBox_ExportAttrs) self.formLayout_Label = QtWidgets.QFormLayout() self.formLayout_Label.setContentsMargins(2, -1, 2, -1) self.formLayout_Label.setObjectName("formLayout_Label") self.label = QtWidgets.QLabel(self.groupBox_Attrs) self.label.setEnabled(False) self.label.setMinimumSize(QtCore.QSize(76, 0)) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.formLayout_Label.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label) self.comboBox_Label = QtWidgets.QComboBox(self.groupBox_Attrs) self.comboBox_Label.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.comboBox_Label.sizePolicy().hasHeightForWidth()) self.comboBox_Label.setSizePolicy(sizePolicy) self.comboBox_Label.setMaximumSize(QtCore.QSize(270, 16777215)) self.comboBox_Label.setObjectName("comboBox_Label") self.formLayout_Label.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_Label) self.verticalLayout_4.addLayout(self.formLayout_Label) self.verticalLayout_Label = QtWidgets.QVBoxLayout() self.verticalLayout_Label.setObjectName("verticalLayout_Label") self.verticalLayout_4.addLayout(self.verticalLayout_Label) self.verticalLayout_2.addWidget(self.groupBox_Attrs) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.retranslateUi(VectorPropertiesWidget) self.radioButton_IntersectingFeatures.toggled['bool'].connect( self.checkBox_Clip.setEnabled) QtCore.QMetaObject.connectSlotsByName(VectorPropertiesWidget) def retranslateUi(self, VectorPropertiesWidget): _translate = QtCore.QCoreApplication.translate VectorPropertiesWidget.setWindowTitle( _translate("VectorPropertiesWidget", "Form")) self.label_ObjectType.setText( _translate("VectorPropertiesWidget", "Object type")) self.label_ObjectTypeMessage.setText( _translate( "VectorPropertiesWidget", "This type is experimental. Some 3D model files fail to be loaded." )) self.groupBox_zCoordinate.setTitle( _translate("VectorPropertiesWidget", "&Z coordinate")) self.label_2.setText(_translate("VectorPropertiesWidget", "Mode")) self.radioButton_Absolute.setText( _translate("VectorPropertiesWidget", "Absolute")) self.radioButton_Relative.setText( _translate("VectorPropertiesWidget", "Relative To DEM")) self.label_3.setText(_translate("VectorPropertiesWidget", "Value")) self.radioButton_FieldValue.setText( _translate("VectorPropertiesWidget", "Value/Expression")) self.radioButton_zValue.setText( _translate("VectorPropertiesWidget", "Z Value")) self.radioButton_mValue.setText( _translate("VectorPropertiesWidget", "M Value")) self.groupBox_Styles.setTitle( _translate("VectorPropertiesWidget", "&Style")) self.groupBox_Features.setTitle( _translate("VectorPropertiesWidget", "&Feature")) self.radioButton_AllFeatures.setText( _translate("VectorPropertiesWidget", "All features")) self.radioButton_IntersectingFeatures.setText( _translate("VectorPropertiesWidget", "Features that intersect with map canvas extent")) self.checkBox_Clip.setText( _translate("VectorPropertiesWidget", "Clip geometries")) self.groupBox_Attrs.setTitle( _translate("VectorPropertiesWidget", "&Attribute and label")) self.checkBox_ExportAttrs.setText( _translate("VectorPropertiesWidget", "Export attributes")) self.label.setText(_translate("VectorPropertiesWidget", "Label field"))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(858, 36) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth()) Form.setSizePolicy(sizePolicy) Form.setMinimumSize(QtCore.QSize(0, 20)) Form.setMaximumSize(QtCore.QSize(900, 50)) Form.setToolTip("") self.gridLayout = QtWidgets.QGridLayout(Form) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.splitter = QtWidgets.QSplitter(Form) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.mMapLayerComboBox = QgsMapLayerComboBox(self.splitter) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mMapLayerComboBox.sizePolicy().hasHeightForWidth()) self.mMapLayerComboBox.setSizePolicy(sizePolicy) self.mMapLayerComboBox.setMinimumSize(QtCore.QSize(0, 20)) self.mMapLayerComboBox.setMaximumSize(QtCore.QSize(16777215, 32)) self.mMapLayerComboBox.setFilters( core.QgsMapLayerProxyModel.HasGeometry | core.QgsMapLayerProxyModel.LineLayer | core.QgsMapLayerProxyModel.NoGeometry | core.QgsMapLayerProxyModel.PluginLayer | core.QgsMapLayerProxyModel.PointLayer | core.QgsMapLayerProxyModel.PolygonLayer | core.QgsMapLayerProxyModel.VectorLayer) self.mMapLayerComboBox.setObjectName("mMapLayerComboBox") self.refreshPushButton = QtWidgets.QPushButton(self.splitter) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.refreshPushButton.sizePolicy().hasHeightForWidth()) self.refreshPushButton.setSizePolicy(sizePolicy) self.refreshPushButton.setMinimumSize(QtCore.QSize(24, 24)) self.refreshPushButton.setMaximumSize(QtCore.QSize(24, 24)) self.refreshPushButton.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/plugins/DsgTools/icons/reload.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.refreshPushButton.setIcon(icon) self.refreshPushButton.setIconSize(QtCore.QSize(16, 16)) self.refreshPushButton.setObjectName("refreshPushButton") self.zoomPercentageSpinBox = QgsDoubleSpinBox(self.splitter) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.zoomPercentageSpinBox.sizePolicy().hasHeightForWidth()) self.zoomPercentageSpinBox.setSizePolicy(sizePolicy) self.zoomPercentageSpinBox.setMinimumSize(QtCore.QSize(0, 20)) self.zoomPercentageSpinBox.setMaximumSize( QtCore.QSize(16777215, 16777215)) self.zoomPercentageSpinBox.setObjectName("zoomPercentageSpinBox") self.mScaleWidget = QgsScaleWidget(self.splitter) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mScaleWidget.sizePolicy().hasHeightForWidth()) self.mScaleWidget.setSizePolicy(sizePolicy) self.mScaleWidget.setMinimumSize(QtCore.QSize(0, 20)) self.mScaleWidget.setMaximumSize(QtCore.QSize(16194919, 32)) self.mScaleWidget.setShowCurrentScaleButton(True) self.mScaleWidget.setObjectName("mScaleWidget") self.idSpinBox = QtWidgets.QSpinBox(self.splitter) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.idSpinBox.sizePolicy().hasHeightForWidth()) self.idSpinBox.setSizePolicy(sizePolicy) self.idSpinBox.setMinimumSize(QtCore.QSize(40, 20)) self.idSpinBox.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.idSpinBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) self.idSpinBox.setSuffix("") self.idSpinBox.setObjectName("idSpinBox") self.backInspectButton = QtWidgets.QPushButton(self.splitter) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.backInspectButton.sizePolicy().hasHeightForWidth()) self.backInspectButton.setSizePolicy(sizePolicy) self.backInspectButton.setMinimumSize(QtCore.QSize(24, 24)) self.backInspectButton.setMaximumSize(QtCore.QSize(24, 24)) self.backInspectButton.setText("") icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(":/plugins/DsgTools/icons/backInspect.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.backInspectButton.setIcon(icon) self.backInspectButton.setIconSize(QtCore.QSize(16, 16)) self.backInspectButton.setObjectName("backInspectButton") self.nextInspectButton = QtWidgets.QPushButton(self.splitter) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.nextInspectButton.sizePolicy().hasHeightForWidth()) self.nextInspectButton.setSizePolicy(sizePolicy) self.nextInspectButton.setMinimumSize(QtCore.QSize(24, 24)) self.nextInspectButton.setMaximumSize(QtCore.QSize(24, 24)) self.nextInspectButton.setText("") icon1 = QtGui.QIcon() icon1.addPixmap( QtGui.QPixmap(":/plugins/DsgTools/icons/nextInspect.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.nextInspectButton.setIcon(icon1) self.nextInspectButton.setIconSize(QtCore.QSize(16, 16)) self.nextInspectButton.setObjectName("nextInspectButton") self.mFieldExpressionWidget = QgsFieldExpressionWidget(self.splitter) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mFieldExpressionWidget.sizePolicy().hasHeightForWidth()) self.mFieldExpressionWidget.setSizePolicy(sizePolicy) self.mFieldExpressionWidget.setMinimumSize(QtCore.QSize(0, 20)) self.mFieldExpressionWidget.setObjectName("mFieldExpressionWidget") self.gridLayout.addWidget(self.splitter, 0, 2, 1, 1) self.inspectPushButton = QtWidgets.QPushButton(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.inspectPushButton.sizePolicy().hasHeightForWidth()) self.inspectPushButton.setSizePolicy(sizePolicy) self.inspectPushButton.setMinimumSize(QtCore.QSize(24, 24)) self.inspectPushButton.setMaximumSize(QtCore.QSize(24, 24)) self.inspectPushButton.setText("") icon2 = QtGui.QIcon() icon2.addPixmap( QtGui.QPixmap(":/plugins/DsgTools/icons/inspectFeatures.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.inspectPushButton.setIcon(icon2) self.inspectPushButton.setIconSize(QtCore.QSize(16, 16)) self.inspectPushButton.setCheckable(True) self.inspectPushButton.setObjectName("inspectPushButton") self.gridLayout.addWidget(self.inspectPushButton, 0, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 1, 1, 1) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Form")) self.idSpinBox.setPrefix(_translate("Form", "ID: ")) self.backInspectButton.setToolTip( _translate( "Form", "<html><head/><body><p>Back inspect</p><p><br/></p></body></html>" )) self.nextInspectButton.setToolTip( _translate("Form", "<html><head/><body><p>Next inspect</p></body></html>")) self.inspectPushButton.setToolTip( _translate("Form", "Inspect Features Tool"))