class Ui_hcmgis_medialaxis_form(object):
    def setupUi(self, hcmgis_medialaxis_form):
        hcmgis_medialaxis_form.setObjectName("hcmgis_medialaxis_form")
        hcmgis_medialaxis_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_medialaxis_form.setEnabled(True)
        hcmgis_medialaxis_form.resize(479, 343)
        hcmgis_medialaxis_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_medialaxis_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.LblStatus = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.gridLayout.addWidget(self.LblStatus, 10, 0, 1, 2)
        self.label = QtWidgets.QLabel(hcmgis_medialaxis_form)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        font.setKerning(False)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 6, 0, 1, 2)
        self.LblInput = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput.setObjectName("LblInput")
        self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 2)
        self.LblInput_2 = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput_2.setObjectName("LblInput_2")
        self.gridLayout.addWidget(self.LblInput_2, 4, 0, 1, 2)
        self.LblInput_3 = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput_3.setObjectName("LblInput_3")
        self.gridLayout.addWidget(self.LblInput_3, 2, 0, 1, 2)
        self.LblOutput = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblOutput.setObjectName("LblOutput")
        self.gridLayout.addWidget(self.LblOutput, 7, 0, 1, 2)
        self.status = QtWidgets.QProgressBar(hcmgis_medialaxis_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.gridLayout.addWidget(self.status, 11, 0, 1, 2)
        self.CboField = QgsFieldComboBox(hcmgis_medialaxis_form)
        self.CboField.setObjectName("CboField")
        self.gridLayout.addWidget(self.CboField, 3, 0, 1, 2)
        self.CboInput = QgsMapLayerComboBox(hcmgis_medialaxis_form)
        self.CboInput.setObjectName("CboInput")
        self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 2)
        self.output_file_name = QgsFileWidget(hcmgis_medialaxis_form)
        self.output_file_name.setObjectName("output_file_name")
        self.gridLayout.addWidget(self.output_file_name, 8, 0, 1, 1)
        self.spinBox = QgsDoubleSpinBox(hcmgis_medialaxis_form)
        self.spinBox.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.spinBox.setDecimals(1)
        self.spinBox.setMinimum(0.1)
        self.spinBox.setMaximum(10.0)
        self.spinBox.setSingleStep(0.1)
        self.spinBox.setProperty("value", 0.5)
        self.spinBox.setObjectName("spinBox")
        self.gridLayout.addWidget(self.spinBox, 5, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_medialaxis_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_medialaxis_form)
        self.BtnApplyClose.accepted.connect(hcmgis_medialaxis_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_medialaxis_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_medialaxis_form)

    def retranslateUi(self, hcmgis_medialaxis_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_medialaxis_form.setWindowTitle(
            _translate("hcmgis_medialaxis_form", "Skeleton/Medial Axis"))
        self.label.setText(
            _translate("hcmgis_medialaxis_form",
                       "(Notice: Output should be refined after running)"))
        self.LblInput.setText(
            _translate("hcmgis_medialaxis_form",
                       "Input Polygon (1..100 selected features limit!)"))
        self.LblInput_2.setText(
            _translate("hcmgis_medialaxis_form", "Density (m)"))
        self.LblInput_3.setText(
            _translate("hcmgis_medialaxis_form", "Unique field"))
        self.LblOutput.setText(_translate("hcmgis_medialaxis_form", "Output"))
Exemple #2
0
class Ui_hcmgis_centerline_form(object):
    def setupUi(self, hcmgis_centerline_form):
        hcmgis_centerline_form.setObjectName("hcmgis_centerline_form")
        hcmgis_centerline_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_centerline_form.setEnabled(True)
        hcmgis_centerline_form.resize(467, 394)
        hcmgis_centerline_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_centerline_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.spinBox = QgsDoubleSpinBox(hcmgis_centerline_form)
        self.spinBox.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.spinBox.setDecimals(1)
        self.spinBox.setMinimum(0.1)
        self.spinBox.setMaximum(10.0)
        self.spinBox.setSingleStep(0.1)
        self.spinBox.setProperty("value", 0.5)
        self.spinBox.setObjectName("spinBox")
        self.gridLayout.addWidget(self.spinBox, 3, 0, 1, 2)
        self.lblsurround = QtWidgets.QLabel(hcmgis_centerline_form)
        self.lblsurround.setObjectName("lblsurround")
        self.gridLayout.addWidget(self.lblsurround, 5, 0, 1, 2)
        self.output_file_name = QgsFileWidget(hcmgis_centerline_form)
        self.output_file_name.setObjectName("output_file_name")
        self.gridLayout.addWidget(self.output_file_name, 9, 0, 1, 2)
        self.LblInput = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblInput.setObjectName("LblInput")
        self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 2)
        self.chksurround = QtWidgets.QCheckBox(hcmgis_centerline_form)
        self.chksurround.setChecked(False)
        self.chksurround.setObjectName("chksurround")
        self.gridLayout.addWidget(self.chksurround, 4, 0, 1, 2)
        self.status = QtWidgets.QProgressBar(hcmgis_centerline_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.gridLayout.addWidget(self.status, 11, 0, 1, 2)
        self.CboInput = QgsMapLayerComboBox(hcmgis_centerline_form)
        self.CboInput.setObjectName("CboInput")
        self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 2)
        self.LblOutput = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblOutput.setObjectName("LblOutput")
        self.gridLayout.addWidget(self.LblOutput, 8, 0, 1, 2)
        self.label = QtWidgets.QLabel(hcmgis_centerline_form)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        font.setKerning(False)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 7, 0, 1, 2)
        self.LblStatus = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.gridLayout.addWidget(self.LblStatus, 10, 0, 1, 2)
        self.LblInput_2 = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblInput_2.setObjectName("LblInput_2")
        self.gridLayout.addWidget(self.LblInput_2, 2, 0, 1, 2)
        self.distance = QgsDoubleSpinBox(hcmgis_centerline_form)
        self.distance.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.distance.setDecimals(1)
        self.distance.setMinimum(0.1)
        self.distance.setSingleStep(0.1)
        self.distance.setProperty("value", 1.0)
        self.distance.setObjectName("distance")
        self.gridLayout.addWidget(self.distance, 6, 0, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_centerline_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_centerline_form)
        self.BtnApplyClose.accepted.connect(hcmgis_centerline_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_centerline_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_centerline_form)

    def retranslateUi(self, hcmgis_centerline_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_centerline_form.setWindowTitle(
            _translate("hcmgis_centerline_form",
                       "Centerline in the gaps between polygons"))
        self.lblsurround.setText(
            _translate("hcmgis_centerline_form",
                       "Distance to the bounding box of polygon (m)"))
        self.LblInput.setText(
            _translate("hcmgis_centerline_form",
                       "Input Polygon (Ex: Block of Buildings)"))
        self.chksurround.setText(
            _translate("hcmgis_centerline_form",
                       "Also create line surrounding the polygon"))
        self.LblOutput.setText(_translate("hcmgis_centerline_form", "Output"))
        self.label.setText(
            _translate("hcmgis_centerline_form",
                       "(Notice: Output should be refined after running)"))
        self.LblInput_2.setText(
            _translate("hcmgis_centerline_form", "Density (m)"))
class Ui_QgsComposerItemWidgetBase(object):
    def setupUi(self, QgsComposerItemWidgetBase):
        QgsComposerItemWidgetBase.setObjectName(
            _fromUtf8("QgsComposerItemWidgetBase"))
        QgsComposerItemWidgetBase.resize(290, 847)
        self.verticalLayout_2 = QtGui.QVBoxLayout(QgsComposerItemWidgetBase)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.mGeneralOptionsGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mGeneralOptionsGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mGeneralOptionsGroupBox.setProperty("syncGroup",
                                                 _fromUtf8("composeritem"))
        self.mGeneralOptionsGroupBox.setProperty("collapsed", True)
        self.mGeneralOptionsGroupBox.setObjectName(
            _fromUtf8("mGeneralOptionsGroupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.mGeneralOptionsGroupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.mWidthLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mWidthLabel.setObjectName(_fromUtf8("mWidthLabel"))
        self.gridLayout_3.addWidget(self.mWidthLabel, 3, 0, 1, 1)
        self.mXLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mXLabel.setObjectName(_fromUtf8("mXLabel"))
        self.gridLayout_3.addWidget(self.mXLabel, 1, 0, 1, 1)
        self.mHeightLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mHeightLabel.setObjectName(_fromUtf8("mHeightLabel"))
        self.gridLayout_3.addWidget(self.mHeightLabel, 4, 0, 1, 1)
        self.mYLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mYLabel.setObjectName(_fromUtf8("mYLabel"))
        self.gridLayout_3.addWidget(self.mYLabel, 2, 0, 1, 1)
        self.mPageLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mPageLabel.setObjectName(_fromUtf8("mPageLabel"))
        self.gridLayout_3.addWidget(self.mPageLabel, 0, 0, 1, 1)
        self.mXPositionDDBtn = QgsDataDefinedButton(
            self.mGeneralOptionsGroupBox)
        self.mXPositionDDBtn.setObjectName(_fromUtf8("mXPositionDDBtn"))
        self.gridLayout_3.addWidget(self.mXPositionDDBtn, 1, 3, 1, 1)
        self.mYPositionDDBtn = QgsDataDefinedButton(
            self.mGeneralOptionsGroupBox)
        self.mYPositionDDBtn.setObjectName(_fromUtf8("mYPositionDDBtn"))
        self.gridLayout_3.addWidget(self.mYPositionDDBtn, 2, 3, 1, 1)
        self.mWidthDDBtn = QgsDataDefinedButton(self.mGeneralOptionsGroupBox)
        self.mWidthDDBtn.setObjectName(_fromUtf8("mWidthDDBtn"))
        self.gridLayout_3.addWidget(self.mWidthDDBtn, 3, 3, 1, 1)
        self.mHeightDDBtn = QgsDataDefinedButton(self.mGeneralOptionsGroupBox)
        self.mHeightDDBtn.setObjectName(_fromUtf8("mHeightDDBtn"))
        self.gridLayout_3.addWidget(self.mHeightDDBtn, 4, 3, 1, 1)
        self.mPageSpinBox = QgsSpinBox(self.mGeneralOptionsGroupBox)
        self.mPageSpinBox.setMinimum(1)
        self.mPageSpinBox.setProperty("showClearButton", False)
        self.mPageSpinBox.setObjectName(_fromUtf8("mPageSpinBox"))
        self.gridLayout_3.addWidget(self.mPageSpinBox, 0, 1, 1, 3)
        self.mWidthSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mWidthSpin.setDecimals(3)
        self.mWidthSpin.setMaximum(9999999.0)
        self.mWidthSpin.setProperty("showClearButton", False)
        self.mWidthSpin.setObjectName(_fromUtf8("mWidthSpin"))
        self.gridLayout_3.addWidget(self.mWidthSpin, 3, 1, 1, 2)
        self.mHeightSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mHeightSpin.setDecimals(3)
        self.mHeightSpin.setMaximum(9999999.0)
        self.mHeightSpin.setProperty("showClearButton", False)
        self.mHeightSpin.setObjectName(_fromUtf8("mHeightSpin"))
        self.gridLayout_3.addWidget(self.mHeightSpin, 4, 1, 1, 2)
        self.mYPosSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mYPosSpin.setDecimals(3)
        self.mYPosSpin.setMinimum(-9999999.0)
        self.mYPosSpin.setMaximum(9999999.0)
        self.mYPosSpin.setProperty("showClearButton", False)
        self.mYPosSpin.setObjectName(_fromUtf8("mYPosSpin"))
        self.gridLayout_3.addWidget(self.mYPosSpin, 2, 1, 1, 2)
        self.mXPosSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mXPosSpin.setDecimals(3)
        self.mXPosSpin.setMinimum(-9999999.0)
        self.mXPosSpin.setMaximum(9999999.0)
        self.mXPosSpin.setProperty("showClearButton", False)
        self.mXPosSpin.setObjectName(_fromUtf8("mXPosSpin"))
        self.gridLayout_3.addWidget(self.mXPosSpin, 1, 1, 1, 2)
        self.gridLayout_3.setColumnStretch(1, 1)
        self.gridLayout_3.setColumnStretch(2, 1)
        self.gridLayout_3.setColumnStretch(3, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.label_2 = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.label_2.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_7.addWidget(self.label_2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mUpperMiddleCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mUpperMiddleCheckBox.setText(_fromUtf8(""))
        self.mUpperMiddleCheckBox.setObjectName(
            _fromUtf8("mUpperMiddleCheckBox"))
        self.gridLayout.addWidget(self.mUpperMiddleCheckBox, 0, 1, 1, 1)
        self.mMiddleRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleRightCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleRightCheckBox.setText(_fromUtf8(""))
        self.mMiddleRightCheckBox.setObjectName(
            _fromUtf8("mMiddleRightCheckBox"))
        self.gridLayout.addWidget(self.mMiddleRightCheckBox, 1, 2, 1, 1)
        self.mMiddleCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleCheckBox.setText(_fromUtf8(""))
        self.mMiddleCheckBox.setObjectName(_fromUtf8("mMiddleCheckBox"))
        self.gridLayout.addWidget(self.mMiddleCheckBox, 1, 1, 1, 1)
        self.mUpperRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperRightCheckBox.setSizePolicy(sizePolicy)
        self.mUpperRightCheckBox.setText(_fromUtf8(""))
        self.mUpperRightCheckBox.setObjectName(
            _fromUtf8("mUpperRightCheckBox"))
        self.gridLayout.addWidget(self.mUpperRightCheckBox, 0, 2, 1, 1)
        self.mLowerMiddleCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mLowerMiddleCheckBox.setText(_fromUtf8(""))
        self.mLowerMiddleCheckBox.setObjectName(
            _fromUtf8("mLowerMiddleCheckBox"))
        self.gridLayout.addWidget(self.mLowerMiddleCheckBox, 2, 1, 1, 1)
        self.mLowerRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerRightCheckBox.setSizePolicy(sizePolicy)
        self.mLowerRightCheckBox.setText(_fromUtf8(""))
        self.mLowerRightCheckBox.setObjectName(
            _fromUtf8("mLowerRightCheckBox"))
        self.gridLayout.addWidget(self.mLowerRightCheckBox, 2, 2, 1, 1)
        self.mUpperLeftCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperLeftCheckBox.setSizePolicy(sizePolicy)
        self.mUpperLeftCheckBox.setText(_fromUtf8(""))
        self.mUpperLeftCheckBox.setObjectName(_fromUtf8("mUpperLeftCheckBox"))
        self.gridLayout.addWidget(self.mUpperLeftCheckBox, 0, 0, 1, 1)
        self.mLowerLeftCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerLeftCheckBox.setSizePolicy(sizePolicy)
        self.mLowerLeftCheckBox.setText(_fromUtf8(""))
        self.mLowerLeftCheckBox.setObjectName(_fromUtf8("mLowerLeftCheckBox"))
        self.gridLayout.addWidget(self.mLowerLeftCheckBox, 2, 0, 1, 1)
        self.mMiddleLeftCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleLeftCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleLeftCheckBox.setText(_fromUtf8(""))
        self.mMiddleLeftCheckBox.setObjectName(
            _fromUtf8("mMiddleLeftCheckBox"))
        self.gridLayout.addWidget(self.mMiddleLeftCheckBox, 1, 0, 1, 1)
        self.horizontalLayout_7.addLayout(self.gridLayout)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.verticalLayout_2.addWidget(self.mGeneralOptionsGroupBox)
        self.mTransformsGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mTransformsGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mTransformsGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mTransformsGroupBox.setProperty("collapsed", True)
        self.mTransformsGroupBox.setObjectName(
            _fromUtf8("mTransformsGroupBox"))
        self.gridLayout_5 = QtGui.QGridLayout(self.mTransformsGroupBox)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label = QtGui.QLabel(self.mTransformsGroupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_5.addWidget(self.label, 0, 0, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.mItemRotationSpinBox = QgsDoubleSpinBox(self.mTransformsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mItemRotationSpinBox.sizePolicy().hasHeightForWidth())
        self.mItemRotationSpinBox.setSizePolicy(sizePolicy)
        self.mItemRotationSpinBox.setMaximum(360.0)
        self.mItemRotationSpinBox.setObjectName(
            _fromUtf8("mItemRotationSpinBox"))
        self.horizontalLayout_4.addWidget(self.mItemRotationSpinBox)
        self.mItemRotationDDBtn = QgsDataDefinedButton(
            self.mTransformsGroupBox)
        self.mItemRotationDDBtn.setObjectName(_fromUtf8("mItemRotationDDBtn"))
        self.horizontalLayout_4.addWidget(self.mItemRotationDDBtn)
        self.gridLayout_5.addLayout(self.horizontalLayout_4, 0, 1, 1, 1)
        self.gridLayout_5.setColumnStretch(1, 1)
        self.verticalLayout_2.addWidget(self.mTransformsGroupBox)
        self.mFrameGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mFrameGroupBox.setCheckable(True)
        self.mFrameGroupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.mFrameGroupBox.setProperty("collapsed", True)
        self.mFrameGroupBox.setObjectName(_fromUtf8("mFrameGroupBox"))
        self.gridLayout_6 = QtGui.QGridLayout(self.mFrameGroupBox)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.label_3 = QtGui.QLabel(self.mFrameGroupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.mFrameColorButton = QgsColorButtonV2(self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mFrameColorButton.sizePolicy().hasHeightForWidth())
        self.mFrameColorButton.setSizePolicy(sizePolicy)
        self.mFrameColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mFrameColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mFrameColorButton.setText(_fromUtf8(""))
        self.mFrameColorButton.setObjectName(_fromUtf8("mFrameColorButton"))
        self.horizontalLayout_6.addWidget(self.mFrameColorButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.gridLayout_6.addLayout(self.horizontalLayout_6, 0, 1, 1, 1)
        self.mOutlineWidthLabel = QtGui.QLabel(self.mFrameGroupBox)
        self.mOutlineWidthLabel.setWordWrap(True)
        self.mOutlineWidthLabel.setObjectName(_fromUtf8("mOutlineWidthLabel"))
        self.gridLayout_6.addWidget(self.mOutlineWidthLabel, 1, 0, 1, 1)
        self.mOutlineWidthSpinBox = QgsDoubleSpinBox(self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mOutlineWidthSpinBox.sizePolicy().hasHeightForWidth())
        self.mOutlineWidthSpinBox.setSizePolicy(sizePolicy)
        self.mOutlineWidthSpinBox.setSingleStep(0.1)
        self.mOutlineWidthSpinBox.setProperty("showClearButton", False)
        self.mOutlineWidthSpinBox.setObjectName(
            _fromUtf8("mOutlineWidthSpinBox"))
        self.gridLayout_6.addWidget(self.mOutlineWidthSpinBox, 1, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.mFrameGroupBox)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_6.addWidget(self.label_8, 2, 0, 1, 1)
        self.mFrameJoinStyleCombo = QgsPenJoinStyleComboBox(
            self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mFrameJoinStyleCombo.sizePolicy().hasHeightForWidth())
        self.mFrameJoinStyleCombo.setSizePolicy(sizePolicy)
        self.mFrameJoinStyleCombo.setObjectName(
            _fromUtf8("mFrameJoinStyleCombo"))
        self.gridLayout_6.addWidget(self.mFrameJoinStyleCombo, 2, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.mFrameGroupBox)
        self.mBackgroundGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mBackgroundGroupBox.setCheckable(True)
        self.mBackgroundGroupBox.setChecked(True)
        self.mBackgroundGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mBackgroundGroupBox.setProperty("collapsed", True)
        self.mBackgroundGroupBox.setObjectName(
            _fromUtf8("mBackgroundGroupBox"))
        self.gridLayout_7 = QtGui.QGridLayout(self.mBackgroundGroupBox)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.label_4 = QtGui.QLabel(self.mBackgroundGroupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_7.addWidget(self.label_4, 0, 0, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.mBackgroundColorButton = QgsColorButtonV2(
            self.mBackgroundGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mBackgroundColorButton.sizePolicy().hasHeightForWidth())
        self.mBackgroundColorButton.setSizePolicy(sizePolicy)
        self.mBackgroundColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mBackgroundColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mBackgroundColorButton.setText(_fromUtf8(""))
        self.mBackgroundColorButton.setObjectName(
            _fromUtf8("mBackgroundColorButton"))
        self.horizontalLayout_5.addWidget(self.mBackgroundColorButton)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.gridLayout_7.addLayout(self.horizontalLayout_5, 0, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.mBackgroundGroupBox)
        self.groupBox = QgsCollapsibleGroupBoxBasic(QgsComposerItemWidgetBase)
        self.groupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.groupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.groupBox.setProperty("collapsed", True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.mItemIdLabel = QtGui.QLabel(self.groupBox)
        self.mItemIdLabel.setObjectName(_fromUtf8("mItemIdLabel"))
        self.gridLayout_8.addWidget(self.mItemIdLabel, 0, 0, 1, 1)
        self.mItemIdLineEdit = QtGui.QLineEdit(self.groupBox)
        self.mItemIdLineEdit.setObjectName(_fromUtf8("mItemIdLineEdit"))
        self.gridLayout_8.addWidget(self.mItemIdLineEdit, 0, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupRendering = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.groupRendering.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.groupRendering.setProperty("collapsed", True)
        self.groupRendering.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.groupRendering.setObjectName(_fromUtf8("groupRendering"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupRendering)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.labelBlendMode = QtGui.QLabel(self.groupRendering)
        self.labelBlendMode.setObjectName(_fromUtf8("labelBlendMode"))
        self.gridLayout_4.addWidget(self.labelBlendMode, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.mBlendModeCombo = QgsBlendModeComboBox(self.groupRendering)
        self.mBlendModeCombo.setObjectName(_fromUtf8("mBlendModeCombo"))
        self.horizontalLayout_3.addWidget(self.mBlendModeCombo)
        self.mBlendModeDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mBlendModeDDBtn.setObjectName(_fromUtf8("mBlendModeDDBtn"))
        self.horizontalLayout_3.addWidget(self.mBlendModeDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout_3, 0, 1, 1, 1)
        self.labelTransparency = QtGui.QLabel(self.groupRendering)
        self.labelTransparency.setObjectName(_fromUtf8("labelTransparency"))
        self.gridLayout_4.addWidget(self.labelTransparency, 1, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.mTransparencySlider = QtGui.QSlider(self.groupRendering)
        self.mTransparencySlider.setMaximum(100)
        self.mTransparencySlider.setOrientation(QtCore.Qt.Horizontal)
        self.mTransparencySlider.setObjectName(
            _fromUtf8("mTransparencySlider"))
        self.horizontalLayout_2.addWidget(self.mTransparencySlider)
        self.mTransparencySpnBx = QgsSpinBox(self.groupRendering)
        self.mTransparencySpnBx.setMinimumSize(QtCore.QSize(80, 25))
        self.mTransparencySpnBx.setMaximum(100)
        self.mTransparencySpnBx.setObjectName(_fromUtf8("mTransparencySpnBx"))
        self.horizontalLayout_2.addWidget(self.mTransparencySpnBx)
        self.mTransparencyDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mTransparencyDDBtn.setObjectName(_fromUtf8("mTransparencyDDBtn"))
        self.horizontalLayout_2.addWidget(self.mTransparencyDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mExcludeFromPrintsCheckBox = QtGui.QCheckBox(self.groupRendering)
        self.mExcludeFromPrintsCheckBox.setObjectName(
            _fromUtf8("mExcludeFromPrintsCheckBox"))
        self.horizontalLayout.addWidget(self.mExcludeFromPrintsCheckBox)
        self.mExcludePrintsDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mExcludePrintsDDBtn.setObjectName(
            _fromUtf8("mExcludePrintsDDBtn"))
        self.horizontalLayout.addWidget(self.mExcludePrintsDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout, 2, 0, 1, 2)
        self.verticalLayout_2.addWidget(self.groupRendering)
        self.groupBox_3 = QgsCollapsibleGroupBox(QgsComposerItemWidgetBase)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.mVariableEditor = QgsVariableEditorWidget(self.groupBox_3)
        self.mVariableEditor.setMinimumSize(QtCore.QSize(0, 200))
        self.mVariableEditor.setObjectName(_fromUtf8("mVariableEditor"))
        self.verticalLayout_4.addWidget(self.mVariableEditor)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.MinimumExpanding)
        self.verticalLayout_2.addItem(spacerItem3)
        self.mOutlineWidthLabel.setBuddy(self.mOutlineWidthSpinBox)

        self.retranslateUi(QgsComposerItemWidgetBase)
        QtCore.QMetaObject.connectSlotsByName(QgsComposerItemWidgetBase)
        QgsComposerItemWidgetBase.setTabOrder(self.mGeneralOptionsGroupBox,
                                              self.mPageSpinBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mPageSpinBox,
                                              self.mXPosSpin)
        QgsComposerItemWidgetBase.setTabOrder(self.mXPosSpin,
                                              self.mXPositionDDBtn)
        QgsComposerItemWidgetBase.setTabOrder(self.mXPositionDDBtn,
                                              self.mYPosSpin)
        QgsComposerItemWidgetBase.setTabOrder(self.mYPosSpin,
                                              self.mYPositionDDBtn)
        QgsComposerItemWidgetBase.setTabOrder(self.mYPositionDDBtn,
                                              self.mWidthSpin)
        QgsComposerItemWidgetBase.setTabOrder(self.mWidthSpin,
                                              self.mWidthDDBtn)
        QgsComposerItemWidgetBase.setTabOrder(self.mWidthDDBtn,
                                              self.mHeightSpin)
        QgsComposerItemWidgetBase.setTabOrder(self.mHeightSpin,
                                              self.mHeightDDBtn)
        QgsComposerItemWidgetBase.setTabOrder(self.mHeightDDBtn,
                                              self.mUpperLeftCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mUpperLeftCheckBox,
                                              self.mUpperMiddleCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mUpperMiddleCheckBox,
                                              self.mUpperRightCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mUpperRightCheckBox,
                                              self.mMiddleLeftCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mMiddleLeftCheckBox,
                                              self.mMiddleCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mMiddleCheckBox,
                                              self.mMiddleRightCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mMiddleRightCheckBox,
                                              self.mLowerLeftCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mLowerLeftCheckBox,
                                              self.mLowerMiddleCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mLowerMiddleCheckBox,
                                              self.mLowerRightCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mLowerRightCheckBox,
                                              self.mTransformsGroupBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mTransformsGroupBox,
                                              self.mItemRotationSpinBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mItemRotationSpinBox,
                                              self.mItemRotationDDBtn)
        QgsComposerItemWidgetBase.setTabOrder(self.mItemRotationDDBtn,
                                              self.mFrameGroupBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mFrameGroupBox,
                                              self.mFrameColorButton)
        QgsComposerItemWidgetBase.setTabOrder(self.mFrameColorButton,
                                              self.mOutlineWidthSpinBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mOutlineWidthSpinBox,
                                              self.mFrameJoinStyleCombo)
        QgsComposerItemWidgetBase.setTabOrder(self.mFrameJoinStyleCombo,
                                              self.mBackgroundGroupBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mBackgroundGroupBox,
                                              self.mBackgroundColorButton)
        QgsComposerItemWidgetBase.setTabOrder(self.mBackgroundColorButton,
                                              self.groupBox)
        QgsComposerItemWidgetBase.setTabOrder(self.groupBox,
                                              self.mItemIdLineEdit)
        QgsComposerItemWidgetBase.setTabOrder(self.mItemIdLineEdit,
                                              self.groupRendering)
        QgsComposerItemWidgetBase.setTabOrder(self.groupRendering,
                                              self.mBlendModeCombo)
        QgsComposerItemWidgetBase.setTabOrder(self.mBlendModeCombo,
                                              self.mBlendModeDDBtn)
        QgsComposerItemWidgetBase.setTabOrder(self.mBlendModeDDBtn,
                                              self.mTransparencySlider)
        QgsComposerItemWidgetBase.setTabOrder(self.mTransparencySlider,
                                              self.mTransparencySpnBx)
        QgsComposerItemWidgetBase.setTabOrder(self.mTransparencySpnBx,
                                              self.mTransparencyDDBtn)
        QgsComposerItemWidgetBase.setTabOrder(self.mTransparencyDDBtn,
                                              self.mExcludeFromPrintsCheckBox)
        QgsComposerItemWidgetBase.setTabOrder(self.mExcludeFromPrintsCheckBox,
                                              self.mExcludePrintsDDBtn)

    def retranslateUi(self, QgsComposerItemWidgetBase):
        QgsComposerItemWidgetBase.setWindowTitle(
            _translate("QgsComposerItemWidgetBase", "Global Options", None))
        self.mGeneralOptionsGroupBox.setTitle(
            _translate("QgsComposerItemWidgetBase", "Position and size", None))
        self.mWidthLabel.setText(
            _translate("QgsComposerItemWidgetBase", "Width", None))
        self.mXLabel.setText(_translate("QgsComposerItemWidgetBase", "X",
                                        None))
        self.mHeightLabel.setText(
            _translate("QgsComposerItemWidgetBase", "Height", None))
        self.mYLabel.setText(_translate("QgsComposerItemWidgetBase", "Y",
                                        None))
        self.mPageLabel.setText(
            _translate("QgsComposerItemWidgetBase", "Page", None))
        self.mXPositionDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.mYPositionDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.mWidthDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.mHeightDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.mWidthSpin.setSuffix(
            _translate("QgsComposerItemWidgetBase", " mm", None))
        self.mHeightSpin.setSuffix(
            _translate("QgsComposerItemWidgetBase", " mm", None))
        self.mYPosSpin.setSuffix(
            _translate("QgsComposerItemWidgetBase", " mm", None))
        self.mXPosSpin.setSuffix(
            _translate("QgsComposerItemWidgetBase", " mm", None))
        self.label_2.setText(
            _translate("QgsComposerItemWidgetBase", "Reference point", None))
        self.mTransformsGroupBox.setTitle(
            _translate("QgsComposerItemWidgetBase", "Rotation", None))
        self.label.setText(
            _translate("QgsComposerItemWidgetBase", "Rotation", None))
        self.mItemRotationSpinBox.setSuffix(
            _translate("QgsComposerItemWidgetBase", " °", None))
        self.mItemRotationDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.mFrameGroupBox.setTitle(
            _translate("QgsComposerItemWidgetBase", "Frame", None))
        self.label_3.setText(
            _translate("QgsComposerItemWidgetBase", "Frame color", None))
        self.mOutlineWidthLabel.setText(
            _translate("QgsComposerItemWidgetBase", "Thickness", None))
        self.mOutlineWidthSpinBox.setSuffix(
            _translate("QgsComposerItemWidgetBase", " mm", None))
        self.label_8.setText(
            _translate("QgsComposerItemWidgetBase", "Join style", None))
        self.mBackgroundGroupBox.setTitle(
            _translate("QgsComposerItemWidgetBase", "Background", None))
        self.label_4.setText(
            _translate("QgsComposerItemWidgetBase", "Background color", None))
        self.groupBox.setTitle(
            _translate("QgsComposerItemWidgetBase", "Item ID", None))
        self.mItemIdLabel.setText(
            _translate("QgsComposerItemWidgetBase", "Id", None))
        self.groupRendering.setTitle(
            _translate("QgsComposerItemWidgetBase", "Rendering", None))
        self.labelBlendMode.setText(
            _translate("QgsComposerItemWidgetBase", "Blending mode", None))
        self.mBlendModeDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.labelTransparency.setText(
            _translate("QgsComposerItemWidgetBase", "Transparency", None))
        self.mTransparencyDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.mExcludeFromPrintsCheckBox.setText(
            _translate("QgsComposerItemWidgetBase",
                       "Exclude item from exports", None))
        self.mExcludePrintsDDBtn.setText(
            _translate("QgsComposerItemWidgetBase", "...", None))
        self.groupBox_3.setTitle(
            _translate("QgsComposerItemWidgetBase", "Variables", None))
Exemple #4
0
class Ui_QgsMapfileExportDialogBase(object):
    def setupUi(self, QgsMapfileExportDialogBase):
        QgsMapfileExportDialogBase.setObjectName(
            _fromUtf8("QgsMapfileExportDialogBase"))
        QgsMapfileExportDialogBase.resize(687, 460)
        QgsMapfileExportDialogBase.setMinimumSize(QtCore.QSize(686, 460))
        QgsMapfileExportDialogBase.setMaximumSize(QtCore.QSize(687, 460))
        self.tabWidget = QtGui.QTabWidget(QgsMapfileExportDialogBase)
        self.tabWidget.setGeometry(QtCore.QRect(170, 9, 501, 401))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab0 = QtGui.QWidget()
        self.tab0.setObjectName(_fromUtf8("tab0"))
        self.lblMapFilePath = QtGui.QLabel(self.tab0)
        self.lblMapFilePath.setGeometry(QtCore.QRect(10, 10, 361, 20))
        self.lblMapFilePath.setObjectName(_fromUtf8("lblMapFilePath"))
        self.txtMapFilePath = QtGui.QLineEdit(self.tab0)
        self.txtMapFilePath.setGeometry(QtCore.QRect(10, 30, 431, 20))
        self.txtMapFilePath.setText(_fromUtf8(""))
        self.txtMapFilePath.setObjectName(_fromUtf8("txtMapFilePath"))
        self.btnChooseFile = QtGui.QToolButton(self.tab0)
        self.btnChooseFile.setGeometry(QtCore.QRect(450, 30, 25, 19))
        self.btnChooseFile.setObjectName(_fromUtf8("btnChooseFile"))
        self.check_include = QtGui.QCheckBox(self.tab0)
        self.check_include.setGeometry(QtCore.QRect(10, 50, 201, 17))
        self.check_include.setChecked(True)
        self.check_include.setObjectName(_fromUtf8("check_include"))
        self.groupShapePath = QtGui.QGroupBox(self.tab0)
        self.groupShapePath.setEnabled(False)
        self.groupShapePath.setGeometry(QtCore.QRect(10, 80, 471, 81))
        self.groupShapePath.setFlat(False)
        self.groupShapePath.setObjectName(_fromUtf8("groupShapePath"))
        self.label_4 = QtGui.QLabel(self.groupShapePath)
        self.label_4.setGeometry(QtCore.QRect(20, 60, 351, 16))
        font = QtGui.QFont()
        font.setItalic(True)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.label_5 = QtGui.QLabel(self.groupShapePath)
        self.label_5.setGeometry(QtCore.QRect(10, 10, 381, 20))
        self.label_5.setText(_fromUtf8(""))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.btnShapePath = QtGui.QToolButton(self.groupShapePath)
        self.btnShapePath.setGeometry(QtCore.QRect(440, 30, 25, 19))
        self.btnShapePath.setObjectName(_fromUtf8("btnShapePath"))
        self.txtShapePath = QtGui.QLineEdit(self.groupShapePath)
        self.txtShapePath.setGeometry(QtCore.QRect(10, 30, 421, 20))
        self.txtShapePath.setText(_fromUtf8(""))
        self.txtShapePath.setObjectName(_fromUtf8("txtShapePath"))
        self.groupIconsetPath = QtGui.QGroupBox(self.tab0)
        self.groupIconsetPath.setEnabled(False)
        self.groupIconsetPath.setGeometry(QtCore.QRect(10, 310, 471, 61))
        self.groupIconsetPath.setObjectName(_fromUtf8("groupIconsetPath"))
        self.txtIconsetPath = QtGui.QLineEdit(self.groupIconsetPath)
        self.txtIconsetPath.setGeometry(QtCore.QRect(10, 30, 421, 20))
        self.txtIconsetPath.setText(_fromUtf8(""))
        self.txtIconsetPath.setObjectName(_fromUtf8("txtIconsetPath"))
        self.btnIconsetPath = QtGui.QToolButton(self.groupIconsetPath)
        self.btnIconsetPath.setGeometry(QtCore.QRect(440, 30, 25, 19))
        self.btnIconsetPath.setObjectName(_fromUtf8("btnIconsetPath"))
        self.groupSymbolsetPath = QtGui.QGroupBox(self.tab0)
        self.groupSymbolsetPath.setEnabled(False)
        self.groupSymbolsetPath.setGeometry(QtCore.QRect(10, 170, 471, 61))
        self.groupSymbolsetPath.setObjectName(_fromUtf8("groupSymbolsetPath"))
        self.txtSymbolsetPath = QtGui.QLineEdit(self.groupSymbolsetPath)
        self.txtSymbolsetPath.setGeometry(QtCore.QRect(10, 30, 421, 20))
        self.txtSymbolsetPath.setText(_fromUtf8(""))
        self.txtSymbolsetPath.setObjectName(_fromUtf8("txtSymbolsetPath"))
        self.btnSymbolsetPath = QtGui.QToolButton(self.groupSymbolsetPath)
        self.btnSymbolsetPath.setGeometry(QtCore.QRect(440, 30, 25, 19))
        self.btnSymbolsetPath.setObjectName(_fromUtf8("btnSymbolsetPath"))
        self.groupFontsetPath = QtGui.QGroupBox(self.tab0)
        self.groupFontsetPath.setEnabled(False)
        self.groupFontsetPath.setGeometry(QtCore.QRect(10, 240, 471, 61))
        self.groupFontsetPath.setObjectName(_fromUtf8("groupFontsetPath"))
        self.txtFontsetPath = QtGui.QLineEdit(self.groupFontsetPath)
        self.txtFontsetPath.setGeometry(QtCore.QRect(10, 30, 421, 20))
        self.txtFontsetPath.setText(_fromUtf8(""))
        self.txtFontsetPath.setObjectName(_fromUtf8("txtFontsetPath"))
        self.btnFontsetPath = QtGui.QToolButton(self.groupFontsetPath)
        self.btnFontsetPath.setGeometry(QtCore.QRect(440, 30, 25, 19))
        self.btnFontsetPath.setObjectName(_fromUtf8("btnFontsetPath"))
        self.tabWidget.addTab(self.tab0, _fromUtf8(""))
        self.tab1 = QtGui.QWidget()
        self.tab1.setObjectName(_fromUtf8("tab1"))
        self.txt_mapfile_general = QtGui.QPlainTextEdit(self.tab1)
        self.txt_mapfile_general.setGeometry(QtCore.QRect(10, 10, 471, 331))
        self.txt_mapfile_general.setObjectName(
            _fromUtf8("txt_mapfile_general"))
        self.tabWidget.addTab(self.tab1, _fromUtf8(""))
        self.tab2 = QtGui.QWidget()
        self.tab2.setObjectName(_fromUtf8("tab2"))
        self.cb_layers = QtGui.QComboBox(self.tab2)
        self.cb_layers.setGeometry(QtCore.QRect(170, 20, 301, 22))
        self.cb_layers.setObjectName(_fromUtf8("cb_layers"))
        self.label = QtGui.QLabel(self.tab2)
        self.label.setGeometry(QtCore.QRect(20, 20, 131, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(self.tab2)
        self.label_2.setGeometry(QtCore.QRect(20, 80, 46, 13))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(self.tab2)
        self.label_3.setGeometry(QtCore.QRect(20, 110, 46, 13))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.title_ = QtGui.QLineEdit(self.tab2)
        self.title_.setGeometry(QtCore.QRect(170, 80, 301, 20))
        self.title_.setObjectName(_fromUtf8("title_"))
        self.category_ = QtGui.QLineEdit(self.tab2)
        self.category_.setGeometry(QtCore.QRect(170, 110, 301, 20))
        self.category_.setObjectName(_fromUtf8("category_"))
        self.result_fields = QtGui.QLineEdit(self.tab2)
        self.result_fields.setEnabled(False)
        self.result_fields.setGeometry(QtCore.QRect(30, 240, 441, 20))
        self.result_fields.setObjectName(_fromUtf8("result_fields"))
        self.visible_ = QtGui.QCheckBox(self.tab2)
        self.visible_.setGeometry(QtCore.QRect(20, 50, 70, 17))
        self.visible_.setChecked(True)
        self.visible_.setObjectName(_fromUtf8("visible_"))
        self.querylable_ = QtGui.QGroupBox(self.tab2)
        self.querylable_.setGeometry(QtCore.QRect(20, 150, 461, 56))
        self.querylable_.setCheckable(True)
        self.querylable_.setObjectName(_fromUtf8("querylable_"))
        self.tolerance_ = QgsDoubleSpinBox(self.querylable_)
        self.tolerance_.setGeometry(QtCore.QRect(308, 23, 141, 23))
        self.tolerance_.setDecimals(4)
        self.tolerance_.setSingleStep(0.001)
        self.tolerance_.setProperty("value", 0.001)
        self.tolerance_.setObjectName(_fromUtf8("tolerance_"))
        self.label_7 = QtGui.QLabel(self.querylable_)
        self.label_7.setGeometry(QtCore.QRect(30, 20, 91, 16))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.tolerance_unit = QtGui.QComboBox(self.querylable_)
        self.tolerance_unit.setGeometry(QtCore.QRect(147, 24, 141, 20))
        self.tolerance_unit.setObjectName(_fromUtf8("tolerance_unit"))
        self.label_8 = QtGui.QLabel(self.tab2)
        self.label_8.setEnabled(False)
        self.label_8.setGeometry(QtCore.QRect(30, 220, 151, 16))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.result_headers = QtGui.QLineEdit(self.tab2)
        self.result_headers.setEnabled(False)
        self.result_headers.setGeometry(QtCore.QRect(30, 290, 441, 20))
        self.result_headers.setObjectName(_fromUtf8("result_headers"))
        self.label_9 = QtGui.QLabel(self.tab2)
        self.label_9.setEnabled(False)
        self.label_9.setGeometry(QtCore.QRect(30, 270, 161, 16))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.result_hyperlink = QtGui.QLineEdit(self.tab2)
        self.result_hyperlink.setEnabled(False)
        self.result_hyperlink.setGeometry(QtCore.QRect(30, 340, 441, 20))
        self.result_hyperlink.setObjectName(_fromUtf8("result_hyperlink"))
        self.label_10 = QtGui.QLabel(self.tab2)
        self.label_10.setEnabled(False)
        self.label_10.setGeometry(QtCore.QRect(30, 320, 161, 16))
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.tabWidget.addTab(self.tab2, _fromUtf8(""))
        self.tab3 = QtGui.QWidget()
        self.tab3.setObjectName(_fromUtf8("tab3"))
        self.listWidget = QtGui.QListWidget(self.tab3)
        self.listWidget.setGeometry(QtCore.QRect(30, 30, 161, 271))
        self.listWidget.setObjectName(_fromUtf8("listWidget"))
        item = QtGui.QListWidgetItem()
        self.listWidget.addItem(item)
        self.listWidget_2 = QtGui.QListWidget(self.tab3)
        self.listWidget_2.setGeometry(QtCore.QRect(310, 30, 161, 271))
        self.listWidget_2.setObjectName(_fromUtf8("listWidget_2"))
        self.pushButton = QtGui.QPushButton(self.tab3)
        self.pushButton.setGeometry(QtCore.QRect(210, 110, 75, 23))
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.tabWidget.addTab(self.tab3, _fromUtf8(""))
        self.groupBox = QtGui.QGroupBox(QgsMapfileExportDialogBase)
        self.groupBox.setGeometry(QtCore.QRect(-1, -10, 161, 511))
        self.groupBox.setStyleSheet(
            _fromUtf8("background-color: rgb(76, 76, 76);"))
        self.groupBox.setTitle(_fromUtf8(""))
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.tableWidget = QtGui.QTableWidget(self.groupBox)
        self.tableWidget.setGeometry(QtCore.QRect(0, 10, 161, 141))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.tableWidget.setFont(font)
        self.tableWidget.setStyleSheet(
            _fromUtf8("color: rgb(227, 227, 227);\n"
                      "background-color: rgb(76, 76, 76);\n"
                      "selection-background-color: rgb(207, 207, 207);\n"
                      "selection-color: rgb(50, 50, 50);\n"
                      ""))
        self.tableWidget.setFrameShape(QtGui.QFrame.Box)
        self.tableWidget.setLineWidth(0)
        self.tableWidget.setAutoScroll(False)
        self.tableWidget.setEditTriggers(
            QtGui.QAbstractItemView.NoEditTriggers)
        self.tableWidget.setSelectionMode(
            QtGui.QAbstractItemView.SingleSelection)
        self.tableWidget.setShowGrid(False)
        self.tableWidget.setGridStyle(QtCore.Qt.NoPen)
        self.tableWidget.setRowCount(4)
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setColumnCount(1)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(1, 0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(2, 0, item)
        item = QtGui.QTableWidgetItem()
        self.tableWidget.setItem(3, 0, item)
        self.tableWidget.horizontalHeader().setVisible(False)
        self.tableWidget.horizontalHeader().setStretchLastSection(True)
        self.tableWidget.verticalHeader().setVisible(False)
        self.tableWidget.verticalHeader().setDefaultSectionSize(34)
        self.tableWidget.verticalHeader().setMinimumSectionSize(34)
        self.tableWidget.verticalHeader().setStretchLastSection(True)
        self.button_box = QtGui.QDialogButtonBox(QgsMapfileExportDialogBase)
        self.button_box.setGeometry(QtCore.QRect(440, 420, 231, 32))
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                           | QtGui.QDialogButtonBox.Ok)
        self.button_box.setObjectName(_fromUtf8("button_box"))
        self.lblMapFilePath.setBuddy(self.txtMapFilePath)
        self.label_5.setBuddy(QgsMapfileExportDialogBase.txtMapfilePath)

        self.retranslateUi(QgsMapfileExportDialogBase)
        self.tabWidget.setCurrentIndex(3)
        QtCore.QObject.connect(self.button_box,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               QgsMapfileExportDialogBase.accept)
        QtCore.QObject.connect(self.button_box,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               QgsMapfileExportDialogBase.reject)
        QtCore.QObject.connect(
            self.tableWidget, QtCore.SIGNAL(_fromUtf8("cellClicked(int,int)")),
            self.tabWidget.setCurrentIndex)
        QtCore.QMetaObject.connectSlotsByName(QgsMapfileExportDialogBase)

    def retranslateUi(self, QgsMapfileExportDialogBase):
        QgsMapfileExportDialogBase.setWindowTitle(
            _translate("QgsMapfileExportDialogBase",
                       "Exportar capa de un archivo Mapfile", None))
        self.lblMapFilePath.setText(
            _translate(
                "QgsMapfileExportDialogBase",
                "Archivo mapfile con definición de una o varias capas (*.map, *.lay)",
                None))
        self.txtMapFilePath.setToolTip(
            _translate(
                "QgsMapfileExportDialogBase",
                "Nombre del archivo MAPFILE con definición de al menos un LAYER",
                None))
        self.btnChooseFile.setText(
            _translate("QgsMapfileExportDialogBase", "...", None))
        self.check_include.setText(
            _translate("QgsMapfileExportDialogBase",
                       "Archivo contiene directiva INCLUDE", None))
        self.groupShapePath.setTitle(
            _translate(
                "QgsMapfileExportDialogBase",
                "Carpeta que contiene archivos shapefiles, imágenes raster, etc (SHAPEPATH)",
                None))
        self.label_4.setText(
            _translate(
                "QgsMapfileExportDialogBase",
                "(Requerido si las capas tienen configurado DATA con rutas relativas)",
                None))
        self.btnShapePath.setText(
            _translate("QgsMapfileExportDialogBase", "...", None))
        self.txtShapePath.setToolTip(
            _translate(
                "QgsMapfileExportDialogBase",
                "Nombre de la ruta a la carpeta que se alojan archivos shapefiles, etc. (SHAPEPATH)",
                None))
        self.groupIconsetPath.setTitle(
            _translate("QgsMapfileExportDialogBase",
                       "Carpeta que contine iconos, svg, png, etc (ICONSET)",
                       None))
        self.txtIconsetPath.setToolTip(
            _translate(
                "QgsMapfileExportDialogBase",
                "Especificar el directorio donde se guardan los iconos (Opcional)",
                None))
        self.btnIconsetPath.setText(
            _translate("QgsMapfileExportDialogBase", "...", None))
        self.groupSymbolsetPath.setTitle(
            _translate(
                "QgsMapfileExportDialogBase",
                "Ruta al archivo con definición de símbolos (SYMBOLSET)",
                None))
        self.txtSymbolsetPath.setToolTip(
            _translate(
                "QgsMapfileExportDialogBase",
                "Especificar la ruta al archivo SYMBOLSET (No se recomienda que se encuentre dentro del mapfile) (Requerido)",
                None))
        self.btnSymbolsetPath.setText(
            _translate("QgsMapfileExportDialogBase", "...", None))
        self.groupFontsetPath.setTitle(
            _translate("QgsMapfileExportDialogBase",
                       "Ruta al archivo con fuentes (FONTSET)", None))
        self.txtFontsetPath.setToolTip(
            _translate(
                "QgsMapfileExportDialogBase",
                "Especificar la ruta al archivo FONTSET (requerido para etiquetas y marcadores por fuentes)",
                None))
        self.btnFontsetPath.setText(
            _translate("QgsMapfileExportDialogBase", "...", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab0),
            _translate("QgsMapfileExportDialogBase", "General", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab1),
            _translate("QgsMapfileExportDialogBase",
                       "Previsualización General", None))
        self.label.setText(
            _translate("QgsMapfileExportDialogBase", "Propiedades de la capa:",
                       None))
        self.label_2.setText(
            _translate("QgsMapfileExportDialogBase", "Título:", None))
        self.label_3.setText(
            _translate("QgsMapfileExportDialogBase", "Categoría", None))
        self.visible_.setText(
            _translate("QgsMapfileExportDialogBase", "Visible", None))
        self.querylable_.setTitle(
            _translate("QgsMapfileExportDialogBase", "Consultable", None))
        self.label_7.setText(
            _translate("QgsMapfileExportDialogBase", "Tolerancia", None))
        self.label_8.setText(
            _translate("QgsMapfileExportDialogBase",
                       "Campos a mostrar en consultas", None))
        self.label_9.setText(
            _translate("QgsMapfileExportDialogBase",
                       "Títulos de los campos a mostrar", None))
        self.label_10.setText(
            _translate("QgsMapfileExportDialogBase", "Campo con enlace", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab2),
            _translate("QgsMapfileExportDialogBase", "Capas", None))
        __sortingEnabled = self.listWidget.isSortingEnabled()
        self.listWidget.setSortingEnabled(False)
        item = self.listWidget.item(0)
        item.setText(_translate("QgsMapfileExportDialogBase", "New Item",
                                None))
        self.listWidget.setSortingEnabled(__sortingEnabled)
        self.pushButton.setText(
            _translate("QgsMapfileExportDialogBase", ">>", None))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab3),
            _translate("QgsMapfileExportDialogBase", "Previsualización Capa",
                       None))
        item = self.tableWidget.verticalHeaderItem(0)
        item.setText(_translate("QgsMapfileExportDialogBase", "0", None))
        item = self.tableWidget.verticalHeaderItem(1)
        item.setText(_translate("QgsMapfileExportDialogBase", "1", None))
        item = self.tableWidget.verticalHeaderItem(2)
        item.setText(_translate("QgsMapfileExportDialogBase", "2", None))
        item = self.tableWidget.verticalHeaderItem(3)
        item.setText(_translate("QgsMapfileExportDialogBase", "3", None))
        item = self.tableWidget.horizontalHeaderItem(0)
        item.setText(_translate("QgsMapfileExportDialogBase", "menu", None))
        __sortingEnabled = self.tableWidget.isSortingEnabled()
        self.tableWidget.setSortingEnabled(False)
        item = self.tableWidget.item(0, 0)
        item.setText(_translate("QgsMapfileExportDialogBase", "General", None))
        item = self.tableWidget.item(1, 0)
        item.setText(
            _translate("QgsMapfileExportDialogBase",
                       "Previsualización General", None))
        item = self.tableWidget.item(2, 0)
        item.setText(_translate("QgsMapfileExportDialogBase", "Capas", None))
        item = self.tableWidget.item(3, 0)
        item.setText(
            _translate("QgsMapfileExportDialogBase", "Previsualización Capa",
                       None))
        self.tableWidget.setSortingEnabled(__sortingEnabled)