class Ui_NorthArrowDialog(object):
    def setupUi(self, NorthArrowDialog):
        NorthArrowDialog.setObjectName("NorthArrowDialog")
        NorthArrowDialog.resize(281, 101)
        self.verticalLayout = QtWidgets.QVBoxLayout(NorthArrowDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(NorthArrowDialog)
        self.groupBox.setCheckable(True)
        self.groupBox.setChecked(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.colorButton = QgsColorButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.colorButton.sizePolicy().hasHeightForWidth())
        self.colorButton.setSizePolicy(sizePolicy)
        self.colorButton.setObjectName("colorButton")
        self.gridLayout.addWidget(self.colorButton, 0, 1, 1, 1)
        self.verticalLayout.addWidget(self.groupBox)
        self.buttonBox = QtWidgets.QDialogButtonBox(NorthArrowDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(NorthArrowDialog)
        self.buttonBox.accepted.connect(NorthArrowDialog.accept)
        self.buttonBox.rejected.connect(NorthArrowDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(NorthArrowDialog)

    def retranslateUi(self, NorthArrowDialog):
        _translate = QtCore.QCoreApplication.translate
        NorthArrowDialog.setWindowTitle(_translate("NorthArrowDialog", "North Arrow"))
        self.groupBox.setTitle(_translate("NorthArrowDialog", "Enable North Arrow"))
        self.label.setText(_translate("NorthArrowDialog", "Color"))
Example #2
0
class Ui_DEMPropertiesWidget(object):
    def setupUi(self, DEMPropertiesWidget):
        DEMPropertiesWidget.setObjectName("DEMPropertiesWidget")
        DEMPropertiesWidget.resize(335, 533)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(DEMPropertiesWidget)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox_Geometry = QtWidgets.QGroupBox(DEMPropertiesWidget)
        self.groupBox_Geometry.setObjectName("groupBox_Geometry")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_Geometry)
        self.verticalLayout_6.setContentsMargins(-1, 6, -1, 6)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_Resampling = QtWidgets.QHBoxLayout()
        self.horizontalLayout_Resampling.setObjectName(
            "horizontalLayout_Resampling")
        self.label_Resampling = QtWidgets.QLabel(self.groupBox_Geometry)
        self.label_Resampling.setObjectName("label_Resampling")
        self.horizontalLayout_Resampling.addWidget(self.label_Resampling)
        self.horizontalSlider_DEMSize = QtWidgets.QSlider(
            self.groupBox_Geometry)
        self.horizontalSlider_DEMSize.setEnabled(True)
        self.horizontalSlider_DEMSize.setMinimum(1)
        self.horizontalSlider_DEMSize.setMaximum(6)
        self.horizontalSlider_DEMSize.setSingleStep(1)
        self.horizontalSlider_DEMSize.setPageStep(1)
        self.horizontalSlider_DEMSize.setProperty("value", 2)
        self.horizontalSlider_DEMSize.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider_DEMSize.setTickPosition(
            QtWidgets.QSlider.TicksBelow)
        self.horizontalSlider_DEMSize.setTickInterval(1)
        self.horizontalSlider_DEMSize.setObjectName("horizontalSlider_DEMSize")
        self.horizontalLayout_Resampling.addWidget(
            self.horizontalSlider_DEMSize)
        self.label_ResamplingLevel = QtWidgets.QLabel(self.groupBox_Geometry)
        self.label_ResamplingLevel.setMinimumSize(QtCore.QSize(10, 0))
        self.label_ResamplingLevel.setObjectName("label_ResamplingLevel")
        self.horizontalLayout_Resampling.addWidget(self.label_ResamplingLevel)
        self.verticalLayout_6.addLayout(self.horizontalLayout_Resampling)
        self.verticalLayout_Surroundings = QtWidgets.QVBoxLayout()
        self.verticalLayout_Surroundings.setObjectName(
            "verticalLayout_Surroundings")
        self.checkBox_Surroundings = QtWidgets.QCheckBox(
            self.groupBox_Geometry)
        self.checkBox_Surroundings.setObjectName("checkBox_Surroundings")
        self.verticalLayout_Surroundings.addWidget(self.checkBox_Surroundings)
        self.gridLayout_Surroundings = QtWidgets.QGridLayout()
        self.gridLayout_Surroundings.setObjectName("gridLayout_Surroundings")
        self.label_3 = QtWidgets.QLabel(self.groupBox_Geometry)
        self.label_3.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_Surroundings.addWidget(self.label_3, 0, 2, 1, 1)
        self.spinBox_Roughening = QtWidgets.QSpinBox(self.groupBox_Geometry)
        self.spinBox_Roughening.setMinimumSize(QtCore.QSize(70, 0))
        self.spinBox_Roughening.setMaximum(64)
        self.spinBox_Roughening.setProperty("value", 1)
        self.spinBox_Roughening.setObjectName("spinBox_Roughening")
        self.gridLayout_Surroundings.addWidget(self.spinBox_Roughening, 0, 3,
                                               1, 1)
        self.spinBox_Size = QtWidgets.QSpinBox(self.groupBox_Geometry)
        self.spinBox_Size.setMinimumSize(QtCore.QSize(70, 0))
        self.spinBox_Size.setMinimum(3)
        self.spinBox_Size.setMaximum(9)
        self.spinBox_Size.setSingleStep(2)
        self.spinBox_Size.setProperty("value", 3)
        self.spinBox_Size.setObjectName("spinBox_Size")
        self.gridLayout_Surroundings.addWidget(self.spinBox_Size, 0, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox_Geometry)
        self.label_2.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_Surroundings.addWidget(self.label_2, 0, 0, 1, 1)
        self.verticalLayout_Surroundings.addLayout(
            self.gridLayout_Surroundings)
        self.verticalLayout_6.addLayout(self.verticalLayout_Surroundings)
        self.verticalLayout_Clip = QtWidgets.QVBoxLayout()
        self.verticalLayout_Clip.setObjectName("verticalLayout_Clip")
        self.checkBox_Clip = QtWidgets.QCheckBox(self.groupBox_Geometry)
        self.checkBox_Clip.setObjectName("checkBox_Clip")
        self.verticalLayout_Clip.addWidget(self.checkBox_Clip)
        self.comboBox_ClipLayer = QtWidgets.QComboBox(self.groupBox_Geometry)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.comboBox_ClipLayer.sizePolicy().hasHeightForWidth())
        self.comboBox_ClipLayer.setSizePolicy(sizePolicy)
        self.comboBox_ClipLayer.setMaximumSize(QtCore.QSize(220, 16777215))
        self.comboBox_ClipLayer.setObjectName("comboBox_ClipLayer")
        self.verticalLayout_Clip.addWidget(self.comboBox_ClipLayer)
        self.verticalLayout_6.addLayout(self.verticalLayout_Clip)
        self.verticalLayout_2.addWidget(self.groupBox_Geometry)
        self.groupBox_Material = QtWidgets.QGroupBox(DEMPropertiesWidget)
        self.groupBox_Material.setObjectName("groupBox_Material")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_Material)
        self.verticalLayout_4.setContentsMargins(-1, 6, -1, 6)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_5 = QtWidgets.QLabel(self.groupBox_Material)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_4.addWidget(self.label_5)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setSpacing(4)
        self.verticalLayout.setObjectName("verticalLayout")
        self.radioButton_MapCanvas = QtWidgets.QRadioButton(
            self.groupBox_Material)
        self.radioButton_MapCanvas.setChecked(True)
        self.radioButton_MapCanvas.setObjectName("radioButton_MapCanvas")
        self.verticalLayout.addWidget(self.radioButton_MapCanvas)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.radioButton_LayerImage = QtWidgets.QRadioButton(
            self.groupBox_Material)
        self.radioButton_LayerImage.setObjectName("radioButton_LayerImage")
        self.horizontalLayout_5.addWidget(self.radioButton_LayerImage)
        self.label_LayerImage = QtWidgets.QLabel(self.groupBox_Material)
        self.label_LayerImage.setEnabled(False)
        self.label_LayerImage.setText("")
        self.label_LayerImage.setAlignment(QtCore.Qt.AlignRight
                                           | QtCore.Qt.AlignTrailing
                                           | QtCore.Qt.AlignVCenter)
        self.label_LayerImage.setObjectName("label_LayerImage")
        self.horizontalLayout_5.addWidget(self.label_LayerImage)
        self.toolButton_SelectLayer = QtWidgets.QToolButton(
            self.groupBox_Material)
        self.toolButton_SelectLayer.setEnabled(False)
        self.toolButton_SelectLayer.setObjectName("toolButton_SelectLayer")
        self.horizontalLayout_5.addWidget(self.toolButton_SelectLayer)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_ImageFile = QtWidgets.QHBoxLayout()
        self.horizontalLayout_ImageFile.setObjectName(
            "horizontalLayout_ImageFile")
        self.radioButton_ImageFile = QtWidgets.QRadioButton(
            self.groupBox_Material)
        self.radioButton_ImageFile.setEnabled(True)
        self.radioButton_ImageFile.setObjectName("radioButton_ImageFile")
        self.horizontalLayout_ImageFile.addWidget(self.radioButton_ImageFile)
        self.lineEdit_ImageFile = QtWidgets.QLineEdit(self.groupBox_Material)
        self.lineEdit_ImageFile.setEnabled(False)
        self.lineEdit_ImageFile.setObjectName("lineEdit_ImageFile")
        self.horizontalLayout_ImageFile.addWidget(self.lineEdit_ImageFile)
        self.toolButton_ImageFile = QtWidgets.QToolButton(
            self.groupBox_Material)
        self.toolButton_ImageFile.setEnabled(False)
        self.toolButton_ImageFile.setObjectName("toolButton_ImageFile")
        self.horizontalLayout_ImageFile.addWidget(self.toolButton_ImageFile)
        self.verticalLayout.addLayout(self.horizontalLayout_ImageFile)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.radioButton_SolidColor = QtWidgets.QRadioButton(
            self.groupBox_Material)
        self.radioButton_SolidColor.setObjectName("radioButton_SolidColor")
        self.horizontalLayout_7.addWidget(self.radioButton_SolidColor)
        self.colorButton_Color = QgsColorButton(self.groupBox_Material)
        self.colorButton_Color.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.colorButton_Color.sizePolicy().hasHeightForWidth())
        self.colorButton_Color.setSizePolicy(sizePolicy)
        self.colorButton_Color.setObjectName("colorButton_Color")
        self.horizontalLayout_7.addWidget(self.colorButton_Color)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.verticalLayout_4.addLayout(self.verticalLayout)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalSlider_Opacity = QtWidgets.QSlider(
            self.groupBox_Material)
        self.horizontalSlider_Opacity.setMaximum(100)
        self.horizontalSlider_Opacity.setProperty("value", 100)
        self.horizontalSlider_Opacity.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider_Opacity.setObjectName("horizontalSlider_Opacity")
        self.gridLayout.addWidget(self.horizontalSlider_Opacity, 2, 2, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.groupBox_Material)
        self.label_17.setObjectName("label_17")
        self.gridLayout.addWidget(self.label_17, 2, 0, 1, 1)
        self.label_TextureSize = QtWidgets.QLabel(self.groupBox_Material)
        self.label_TextureSize.setObjectName("label_TextureSize")
        self.gridLayout.addWidget(self.label_TextureSize, 0, 0, 1, 1)
        self.spinBox_Opacity = QtWidgets.QSpinBox(self.groupBox_Material)
        self.spinBox_Opacity.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.spinBox_Opacity.sizePolicy().hasHeightForWidth())
        self.spinBox_Opacity.setSizePolicy(sizePolicy)
        self.spinBox_Opacity.setPrefix("")
        self.spinBox_Opacity.setMinimum(0)
        self.spinBox_Opacity.setMaximum(100)
        self.spinBox_Opacity.setSingleStep(1)
        self.spinBox_Opacity.setProperty("value", 100)
        self.spinBox_Opacity.setObjectName("spinBox_Opacity")
        self.gridLayout.addWidget(self.spinBox_Opacity, 2, 3, 1, 1)
        self.comboBox_TextureSize = QtWidgets.QComboBox(self.groupBox_Material)
        self.comboBox_TextureSize.setObjectName("comboBox_TextureSize")
        self.gridLayout.addWidget(self.comboBox_TextureSize, 0, 1, 1, 3)
        self.verticalLayout_4.addLayout(self.gridLayout)
        self.checkBox_TransparentBackground = QtWidgets.QCheckBox(
            self.groupBox_Material)
        self.checkBox_TransparentBackground.setObjectName(
            "checkBox_TransparentBackground")
        self.verticalLayout_4.addWidget(self.checkBox_TransparentBackground)
        self.checkBox_Shading = QtWidgets.QCheckBox(self.groupBox_Material)
        self.checkBox_Shading.setChecked(True)
        self.checkBox_Shading.setObjectName("checkBox_Shading")
        self.verticalLayout_4.addWidget(self.checkBox_Shading)
        self.verticalLayout_2.addWidget(self.groupBox_Material)
        self.groupBox_Others = QtWidgets.QGroupBox(DEMPropertiesWidget)
        self.groupBox_Others.setObjectName("groupBox_Others")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_Others)
        self.verticalLayout_5.setContentsMargins(-1, 6, -1, 6)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.checkBox_Sides = QtWidgets.QCheckBox(self.groupBox_Others)
        self.checkBox_Sides.setChecked(True)
        self.checkBox_Sides.setObjectName("checkBox_Sides")
        self.verticalLayout_5.addWidget(self.checkBox_Sides)
        self.checkBox_Frame = QtWidgets.QCheckBox(self.groupBox_Others)
        self.checkBox_Frame.setObjectName("checkBox_Frame")
        self.verticalLayout_5.addWidget(self.checkBox_Frame)
        self.checkBox_Visible = QtWidgets.QCheckBox(self.groupBox_Others)
        self.checkBox_Visible.setChecked(True)
        self.checkBox_Visible.setObjectName("checkBox_Visible")
        self.verticalLayout_5.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(DEMPropertiesWidget)
        self.checkBox_Clip.toggled['bool'].connect(
            self.comboBox_ClipLayer.setVisible)
        self.radioButton_LayerImage.toggled['bool'].connect(
            self.label_LayerImage.setEnabled)
        self.radioButton_LayerImage.toggled['bool'].connect(
            self.toolButton_SelectLayer.setEnabled)
        self.radioButton_ImageFile.toggled['bool'].connect(
            self.lineEdit_ImageFile.setEnabled)
        self.radioButton_ImageFile.toggled['bool'].connect(
            self.toolButton_ImageFile.setEnabled)
        self.checkBox_Clip.toggled['bool'].connect(
            self.checkBox_Frame.setDisabled)
        self.horizontalSlider_DEMSize.valueChanged['int'].connect(
            self.label_ResamplingLevel.setNum)
        self.horizontalSlider_Opacity.valueChanged['int'].connect(
            self.spinBox_Opacity.setValue)
        self.spinBox_Opacity.valueChanged['int'].connect(
            self.horizontalSlider_Opacity.setValue)
        self.radioButton_SolidColor.toggled['bool'].connect(
            self.colorButton_Color.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(DEMPropertiesWidget)
        DEMPropertiesWidget.setTabOrder(self.horizontalSlider_DEMSize,
                                        self.checkBox_Surroundings)
        DEMPropertiesWidget.setTabOrder(self.checkBox_Surroundings,
                                        self.spinBox_Size)
        DEMPropertiesWidget.setTabOrder(self.spinBox_Size,
                                        self.spinBox_Roughening)
        DEMPropertiesWidget.setTabOrder(self.spinBox_Roughening,
                                        self.checkBox_Clip)
        DEMPropertiesWidget.setTabOrder(self.checkBox_Clip,
                                        self.comboBox_ClipLayer)
        DEMPropertiesWidget.setTabOrder(self.comboBox_ClipLayer,
                                        self.radioButton_MapCanvas)
        DEMPropertiesWidget.setTabOrder(self.radioButton_MapCanvas,
                                        self.radioButton_LayerImage)
        DEMPropertiesWidget.setTabOrder(self.radioButton_LayerImage,
                                        self.toolButton_SelectLayer)
        DEMPropertiesWidget.setTabOrder(self.toolButton_SelectLayer,
                                        self.radioButton_ImageFile)
        DEMPropertiesWidget.setTabOrder(self.radioButton_ImageFile,
                                        self.lineEdit_ImageFile)
        DEMPropertiesWidget.setTabOrder(self.lineEdit_ImageFile,
                                        self.toolButton_ImageFile)
        DEMPropertiesWidget.setTabOrder(self.toolButton_ImageFile,
                                        self.radioButton_SolidColor)
        DEMPropertiesWidget.setTabOrder(self.radioButton_SolidColor,
                                        self.comboBox_TextureSize)
        DEMPropertiesWidget.setTabOrder(self.comboBox_TextureSize,
                                        self.horizontalSlider_Opacity)
        DEMPropertiesWidget.setTabOrder(self.horizontalSlider_Opacity,
                                        self.spinBox_Opacity)
        DEMPropertiesWidget.setTabOrder(self.spinBox_Opacity,
                                        self.checkBox_TransparentBackground)
        DEMPropertiesWidget.setTabOrder(self.checkBox_TransparentBackground,
                                        self.checkBox_Shading)
        DEMPropertiesWidget.setTabOrder(self.checkBox_Shading,
                                        self.checkBox_Sides)
        DEMPropertiesWidget.setTabOrder(self.checkBox_Sides,
                                        self.checkBox_Frame)
        DEMPropertiesWidget.setTabOrder(self.checkBox_Frame,
                                        self.checkBox_Visible)

    def retranslateUi(self, DEMPropertiesWidget):
        _translate = QtCore.QCoreApplication.translate
        DEMPropertiesWidget.setWindowTitle(
            _translate("DEMPropertiesWidget", "Form"))
        self.groupBox_Geometry.setTitle(
            _translate("DEMPropertiesWidget", "&Geometry"))
        self.label_Resampling.setText(
            _translate("DEMPropertiesWidget", "Resampling level"))
        self.label_ResamplingLevel.setText(
            _translate("DEMPropertiesWidget", "2"))
        self.checkBox_Surroundings.setText(
            _translate("DEMPropertiesWidget", "Surroundings"))
        self.label_3.setText(_translate("DEMPropertiesWidget", "Roughening"))
        self.label_2.setText(_translate("DEMPropertiesWidget", "Size"))
        self.checkBox_Clip.setText(
            _translate("DEMPropertiesWidget", "Clip DEM with polygon layer"))
        self.groupBox_Material.setTitle(
            _translate("DEMPropertiesWidget", "&Material"))
        self.label_5.setText(_translate("DEMPropertiesWidget", "Display type"))
        self.radioButton_MapCanvas.setText(
            _translate("DEMPropertiesWidget", "Map canvas image"))
        self.radioButton_LayerImage.setText(
            _translate("DEMPropertiesWidget", "Layer image"))
        self.toolButton_SelectLayer.setText(
            _translate("DEMPropertiesWidget", "Select layer(s)..."))
        self.radioButton_ImageFile.setText(
            _translate("DEMPropertiesWidget", "Image file"))
        self.toolButton_ImageFile.setText(
            _translate("DEMPropertiesWidget", "Browse..."))
        self.radioButton_SolidColor.setText(
            _translate("DEMPropertiesWidget", "Solid color"))
        self.label_17.setText(_translate("DEMPropertiesWidget", "Opacity (%)"))
        self.label_TextureSize.setText(
            _translate("DEMPropertiesWidget", "Resolution"))
        self.checkBox_TransparentBackground.setText(
            _translate("DEMPropertiesWidget", "Transparent background"))
        self.checkBox_Shading.setText(
            _translate("DEMPropertiesWidget", "Enable shading"))
        self.groupBox_Others.setTitle(
            _translate("DEMPropertiesWidget", "&Other Options"))
        self.checkBox_Sides.setText(
            _translate("DEMPropertiesWidget", "Build sides"))
        self.checkBox_Frame.setText(
            _translate("DEMPropertiesWidget", "Build frame"))
        self.checkBox_Visible.setText(
            _translate("DEMPropertiesWidget", "Visible on load"))
class QgsTextAnnotationDialog(QDialog):
    def __init__(self, item):
        QDialog.__init__(self)
        self.gridLayout = QGridLayout(self)
        self.gridLayout.setObjectName(("gridLayout"))
        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(("horizontalLayout"))
        self.mFontComboBox = QFontComboBox(self)
        self.mFontComboBox.setObjectName(("mFontComboBox"))
        self.horizontalLayout.addWidget(self.mFontComboBox)
        spacerItem = QSpacerItem(38, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.mFontSizeSpinBox = QSpinBox(self)
        self.mFontSizeSpinBox.setObjectName(("mFontSizeSpinBox"))
        self.horizontalLayout.addWidget(self.mFontSizeSpinBox)
        self.mBoldPushButton = QPushButton(self)
        self.mBoldPushButton.setMinimumSize(QSize(50, 0))
        self.mBoldPushButton.setCheckable(True)
        self.mBoldPushButton.setObjectName(("mBoldPushButton"))
        self.horizontalLayout.addWidget(self.mBoldPushButton)
        self.mItalicsPushButton = QPushButton(self)
        self.mItalicsPushButton.setMinimumSize(QSize(50, 0))
        self.mItalicsPushButton.setCheckable(True)
        self.mItalicsPushButton.setObjectName(("mItalicsPushButton"))
        self.horizontalLayout.addWidget(self.mItalicsPushButton)
        self.mFontColorButton = QgsColorButton(self)
        self.mFontColorButton.setText((""))
        self.mFontColorButton.setAutoDefault(False)
        self.mFontColorButton.setObjectName(("mFontColorButton"))
        self.horizontalLayout.addWidget(self.mFontColorButton)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.mButtonBox = QDialogButtonBox(self)
        self.mButtonBox.setOrientation(Qt.Horizontal)
        self.mButtonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Ok)
        self.mButtonBox.setObjectName(("mButtonBox"))
        self.gridLayout.addWidget(self.mButtonBox, 3, 0, 1, 1)
        self.mTextEdit = QTextEdit(self)
        self.mTextEdit.setObjectName(("mTextEdit"))
        self.gridLayout.addWidget(self.mTextEdit, 1, 0, 1, 1)
        self.mStackedWidget = QStackedWidget(self)
        self.mStackedWidget.setObjectName(("mStackedWidget"))
        self.page = QWidget()
        self.page.setObjectName(("page"))
        self.mStackedWidget.addWidget(self.page)
        self.page_2 = QWidget()
        self.page_2.setObjectName(("page_2"))
        self.mStackedWidget.addWidget(self.page_2)
        self.gridLayout.addWidget(self.mStackedWidget, 2, 0, 1, 1)
        self.setLayout(self.gridLayout)
        
        self.mStackedWidget.setCurrentIndex(0)
        QObject.connect(self.mButtonBox, SIGNAL(("accepted()")), self.accept)
        QObject.connect(self.mButtonBox, SIGNAL(("rejected()")), self.reject)
        
        self.setTabOrder(self.mFontComboBox, self.mFontSizeSpinBox)
        self.setTabOrder(self.mFontSizeSpinBox, self.mBoldPushButton)
        self.setTabOrder(self.mBoldPushButton, self.mItalicsPushButton)
        self.setTabOrder(self.mItalicsPushButton, self.mFontColorButton)
        self.setTabOrder(self.mFontColorButton, self.mTextEdit)
        self.setTabOrder(self.mTextEdit, self.mButtonBox)
        
        self.setWindowTitle("Annotation text")
        self.mBoldPushButton.setText("B")
        self.mItalicsPushButton.setText("I")
        
        self.mTextDocument = None
        self.mItem = item
        self.mEmbeddedWidget = QgsAnnotationWidget(self, self.mItem )
        self.mEmbeddedWidget.show()
        self.mStackedWidget.addWidget( self.mEmbeddedWidget )
        self.mStackedWidget.setCurrentWidget( self.mEmbeddedWidget )
        if ( self.mItem != None ):
            self.mTextDocument = self.mItem.document()
            self.mTextEdit.setDocument( self.mTextDocument )
        self.mFontColorButton.setColorDialogTitle(  "Select font color"  )
        self.mFontColorButton.setColorDialogOptions( QColorDialog.ShowAlphaChannel )
        self.setCurrentFontPropertiesToGui()
        QObject.connect( self.mButtonBox, SIGNAL("accepted()"), self.applyTextToItem)
#         QObject.connect( self.mFontComboBox, SIGNAL( "currentFontChanged(QFont())"), self.changeCurrentFormat)
        self.mFontComboBox.currentFontChanged.connect(self.changeCurrentFormat)
        QObject.connect( self.mFontSizeSpinBox, SIGNAL( "valueChanged( int )" ), self.changeCurrentFormat ) 
        QObject.connect( self.mBoldPushButton, SIGNAL( "toggled( bool )" ), self.changeCurrentFormat)
        QObject.connect( self.mItalicsPushButton, SIGNAL( "toggled( bool )" ), self.changeCurrentFormat)
        QObject.connect( self.mTextEdit, SIGNAL( "cursorPositionChanged()" ), self.setCurrentFontPropertiesToGui )
        
#         QObject.connect( self.mButtonBox, SIGNAL( "accepted()" ), self.applySettingsToItem)
        deleteButton = QPushButton( "Delete" )
        QObject.connect( deleteButton, SIGNAL( "clicked()" ), self.deleteItem )
        self.mButtonBox.addButton( deleteButton, QDialogButtonBox.RejectRole )
    def applyTextToItem(self):
        if ( self.mItem  != None and self.mTextDocument !=None ):
            if ( self.mEmbeddedWidget != None):
                self.mEmbeddedWidget.apply()
            self.mItem.setDocument( self.mTextDocument )
            self.mItem.update()
    def changeCurrentFormat(self):
        newFont = QFont()
        newFont.setFamily( self.mFontComboBox.currentFont().family() )
        #bold
        if ( self.mBoldPushButton.isChecked() ):
            newFont.setBold( True )
        else:
            newFont.setBold( False )
        #italic
        if ( self.mItalicsPushButton.isChecked() ):
            newFont.setItalic( True )
        else:
            newFont.setItalic( False )
        #size
        newFont.setPointSize( self.mFontSizeSpinBox.value() )
        self.mTextEdit.setCurrentFont( newFont )
        #color
        self.mTextEdit.setTextColor( self.mFontColorButton.color() )
        
    def on_mFontColorButton_colorChanged(self, color ):
        self.changeCurrentFormat()
    def setCurrentFontPropertiesToGui(self):
        self.blockAllSignals( True )
        currentFont = self.mTextEdit.currentFont()
        self.mFontComboBox.setCurrentFont( currentFont )
        self.mFontSizeSpinBox.setValue( currentFont.pointSize() )
        self.mBoldPushButton.setChecked( currentFont.bold() )
        self.mItalicsPushButton.setChecked( currentFont.italic() )
        self.mFontColorButton.setColor( self.mTextEdit.textColor() )
        self.blockAllSignals( False )
        
    def blockAllSignals(self, block ):
        self.mFontComboBox.blockSignals( block )
        self.mFontSizeSpinBox.blockSignals( block )
        self.mBoldPushButton.blockSignals( block )
        self.mItalicsPushButton.blockSignals( block )
        self.mFontColorButton.blockSignals( block )
    
    def deleteItem(self):
        scene = self.mItem.scene()
        if ( scene != None ):
            scene.removeItem( self.mItem )
        self.mItem = None
Example #4
0
class Ui_frmRptTitleBase(object):
    def setupUi(self, frmRptTitleBase):
        frmRptTitleBase.setObjectName(_fromUtf8("frmRptTitleBase"))
        frmRptTitleBase.resize(347, 495)
        self.gridLayout = QtGui.QGridLayout(frmRptTitleBase)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.scrollArea = QtGui.QScrollArea(frmRptTitleBase)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget(self.scrollArea)
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 327, 475))
        self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents"))
        self.verticalLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_10 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.verticalLayout.addWidget(self.label_10)
        self.cboBorder = QtGui.QComboBox(self.scrollAreaWidgetContents)
        self.cboBorder.setObjectName(_fromUtf8("cboBorder"))
        self.cboBorder.addItem(_fromUtf8(""))
        self.cboBorder.addItem(_fromUtf8(""))
        self.cboBorder.addItem(_fromUtf8(""))
        self.cboBorder.addItem(_fromUtf8(""))
        self.cboBorder.addItem(_fromUtf8(""))
        self.cboBorder.addItem(_fromUtf8(""))
        self.verticalLayout.addWidget(self.cboBorder)
        self.label = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.btnTitleColor = QgsColorButton(self.scrollAreaWidgetContents)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnTitleColor.sizePolicy().hasHeightForWidth())
        self.btnTitleColor.setSizePolicy(sizePolicy)
        self.btnTitleColor.setMinimumSize(QtCore.QSize(32, 0))
        self.btnTitleColor.setMaximumSize(QtCore.QSize(1000, 16777215))
        self.btnTitleColor.setText(_fromUtf8(""))
        self.btnTitleColor.setObjectName(_fromUtf8("btnTitleColor"))
        self.verticalLayout.addWidget(self.btnTitleColor)
        self.label_2 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout.addWidget(self.label_2)
        self.btnTitleFont = QtGui.QPushButton(self.scrollAreaWidgetContents)
        self.btnTitleFont.setObjectName(_fromUtf8("btnTitleFont"))
        self.verticalLayout.addWidget(self.btnTitleFont)
        self.label_3 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.txtTitleHeight = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.txtTitleHeight.setObjectName(_fromUtf8("txtTitleHeight"))
        self.verticalLayout.addWidget(self.txtTitleHeight)
        self.label_4 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayout.addWidget(self.label_4)
        self.cboTitleHAlign = QtGui.QComboBox(self.scrollAreaWidgetContents)
        self.cboTitleHAlign.setObjectName(_fromUtf8("cboTitleHAlign"))
        self.cboTitleHAlign.addItem(_fromUtf8(""))
        self.cboTitleHAlign.addItem(_fromUtf8(""))
        self.cboTitleHAlign.addItem(_fromUtf8(""))
        self.verticalLayout.addWidget(self.cboTitleHAlign)
        self.label_5 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout.addWidget(self.label_5)
        self.txtTitleLeft = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.txtTitleLeft.setObjectName(_fromUtf8("txtTitleLeft"))
        self.verticalLayout.addWidget(self.txtTitleLeft)
        self.label_6 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.verticalLayout.addWidget(self.label_6)
        self.txtTitleText = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.txtTitleText.setObjectName(_fromUtf8("txtTitleText"))
        self.verticalLayout.addWidget(self.txtTitleText)
        self.label_7 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout.addWidget(self.label_7)
        self.txtTitleTop = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.txtTitleTop.setObjectName(_fromUtf8("txtTitleTop"))
        self.verticalLayout.addWidget(self.txtTitleTop)
        self.label_8 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.verticalLayout.addWidget(self.label_8)
        self.cboTitleVAlign = QtGui.QComboBox(self.scrollAreaWidgetContents)
        self.cboTitleVAlign.setObjectName(_fromUtf8("cboTitleVAlign"))
        self.cboTitleVAlign.addItem(_fromUtf8(""))
        self.cboTitleVAlign.addItem(_fromUtf8(""))
        self.cboTitleVAlign.addItem(_fromUtf8(""))
        self.verticalLayout.addWidget(self.cboTitleVAlign)
        self.label_9 = QtGui.QLabel(self.scrollAreaWidgetContents)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.verticalLayout.addWidget(self.label_9)
        self.txtTitleWidth = QtGui.QLineEdit(self.scrollAreaWidgetContents)
        self.txtTitleWidth.setObjectName(_fromUtf8("txtTitleWidth"))
        self.verticalLayout.addWidget(self.txtTitleWidth)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout.addWidget(self.scrollArea, 0, 0, 1, 1)

        self.retranslateUi(frmRptTitleBase)
        QtCore.QMetaObject.connectSlotsByName(frmRptTitleBase)

    def retranslateUi(self, frmRptTitleBase):
        frmRptTitleBase.setWindowTitle(QtGui.QApplication.translate("frmRptTitleBase", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setText(QtGui.QApplication.translate("frmRptTitleBase", "Border", None, QtGui.QApplication.UnicodeUTF8))
        self.cboBorder.setItemText(0, QtGui.QApplication.translate("frmRptTitleBase", "None", None, QtGui.QApplication.UnicodeUTF8))
        self.cboBorder.setItemText(1, QtGui.QApplication.translate("frmRptTitleBase", "All", None, QtGui.QApplication.UnicodeUTF8))
        self.cboBorder.setItemText(2, QtGui.QApplication.translate("frmRptTitleBase", "Top", None, QtGui.QApplication.UnicodeUTF8))
        self.cboBorder.setItemText(3, QtGui.QApplication.translate("frmRptTitleBase", "Right", None, QtGui.QApplication.UnicodeUTF8))
        self.cboBorder.setItemText(4, QtGui.QApplication.translate("frmRptTitleBase", "Bottom", None, QtGui.QApplication.UnicodeUTF8))
        self.cboBorder.setItemText(5, QtGui.QApplication.translate("frmRptTitleBase", "Left", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("frmRptTitleBase", "Fore Color", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("frmRptTitleBase", "Font", None, QtGui.QApplication.UnicodeUTF8))
        self.btnTitleFont.setText(QtGui.QApplication.translate("frmRptTitleBase", "Select Font...", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("frmRptTitleBase", "Height (cm)", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("frmRptTitleBase", "Horizontal Alignment", None, QtGui.QApplication.UnicodeUTF8))
        self.cboTitleHAlign.setItemText(0, QtGui.QApplication.translate("frmRptTitleBase", "Left", None, QtGui.QApplication.UnicodeUTF8))
        self.cboTitleHAlign.setItemText(1, QtGui.QApplication.translate("frmRptTitleBase", "Right", None, QtGui.QApplication.UnicodeUTF8))
        self.cboTitleHAlign.setItemText(2, QtGui.QApplication.translate("frmRptTitleBase", "Center", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("frmRptTitleBase", "Left (cm)", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("frmRptTitleBase", "Text", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setText(QtGui.QApplication.translate("frmRptTitleBase", "Top (cm)", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setText(QtGui.QApplication.translate("frmRptTitleBase", "Vertical Alignment", None, QtGui.QApplication.UnicodeUTF8))
        self.cboTitleVAlign.setItemText(0, QtGui.QApplication.translate("frmRptTitleBase", "Top", None, QtGui.QApplication.UnicodeUTF8))
        self.cboTitleVAlign.setItemText(1, QtGui.QApplication.translate("frmRptTitleBase", "Middle", None, QtGui.QApplication.UnicodeUTF8))
        self.cboTitleVAlign.setItemText(2, QtGui.QApplication.translate("frmRptTitleBase", "Bottom", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setText(QtGui.QApplication.translate("frmRptTitleBase", "Width (cm)", None, QtGui.QApplication.UnicodeUTF8))
Example #5
0
class QadWindowColorDialog(QDialog, QObject,
                           qad_windowcolor_ui.Ui_WindowColor_Dialog):
    def __init__(self,
                 plugIn,
                 parent,
                 contextEnum=QadColorContextEnum.NONE,
                 elementEnum=QadColorElementEnum.NONE):
        self.plugIn = plugIn
        self.iface = self.plugIn.iface.mainWindow()

        QDialog.__init__(self, parent)

        self.tempQadVariables = QadVariablesClass()
        QadVariables.copyTo(self.tempQadVariables)
        self.currentVarName = ""
        self.currentContext = contextEnum
        self.currentElement = elementEnum

        self.setupUi(self)

        # Inizializzazione dei colori
        self.init_colors()

        if contextEnum != QadColorContextEnum.NONE:
            # contesti
            index = self.listView_Context.model().index(
                0, 0)  # seleziono il primo elemento della lista
            context = self.contextList[
                contextEnum]  # context = (<contextEnum>, (<contextDescr>, <elementDict>))
            contextDescr = context[0]
            items = self.listView_Context.model().findItems(contextDescr)
            if len(items) > 0:
                item = items[0]
                if item is not None:
                    index = self.listView_Context.model().indexFromItem(item)
                    self.listView_Context.selectionModel().setCurrentIndex(
                        index, QItemSelectionModel.SelectCurrent)

                    if elementEnum != QadColorElementEnum.NONE:
                        # elementi
                        elementDict = context[1]
                        element = elementDict[
                            elementEnum]  # element = (<elementEnum>, (<elementDescr>, <sys var name>))
                        elementDescr = element[0]
                        items = self.listView_Element.model().findItems(
                            elementDescr)
                        if len(items) > 0:
                            item = items[0]
                            if item is not None:
                                index = self.listView_Element.model(
                                ).indexFromItem(item)
                                self.listView_Element.selectionModel(
                                ).setCurrentIndex(
                                    index, QItemSelectionModel.SelectCurrent)

    #============================================================================
    # setupUi
    #============================================================================
    def setupUi(self, Dialog):
        qad_windowcolor_ui.Ui_WindowColor_Dialog.setupUi(self, self)
        # aggiungo il bottone di qgis QgsColorButton chiamato buttonColor
        # che eredita la posizione di Button_ColorDummy (che viene nascosto)
        self.Button_ColorDummy.setHidden(True)
        self.buttonColor = QgsColorButton(self.Button_ColorDummy.parent())
        self.buttonColor.setGeometry(self.Button_ColorDummy.geometry())
        self.buttonColor.setObjectName("buttonColor")
        self.buttonColor.colorChanged.connect(self.colorChanged)

        # aggiungo il QWidget chiamato QadPreview
        # che eredita la posizione di widget_Preview (che viene nascosto)
        self.widget_Preview.setHidden(True)
        self.preview = QadPreview(self.plugIn, self.widget_Preview.parent(),
                                  self.tempQadVariables, self.currentContext)
        self.preview.setGeometry(self.widget_Preview.geometry())
        self.preview.setObjectName("preview")

    #============================================================================
    # init_context_list
    #============================================================================
    def init_context_list(self):
        self.contextList = dict()

        # description, element dictionary
        contextDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Model Space")  # x lupdate
        self.contextList[QadColorContextEnum.MODEL_SPACE_2D] = [
            contextDescr, self.get_MODEL_SPACE_2D_element_dict()
        ]
        contextDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Command line")  # x lupdate
        self.contextList[QadColorContextEnum.COMMAND_LINE] = [
            contextDescr, self.get_COMMAND_LINE_element_dict()
        ]

    #============================================================================
    # get_MODEL_SPACE_2D_element_dict
    #============================================================================
    def get_MODEL_SPACE_2D_element_dict(self):
        elementList = dict()

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Crosshairs")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "CURSORCOLOR")  # x lupdate
        elementList[QadColorElementEnum.CROSSHAIRS] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Pickbox")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "PICKBOXCOLOR")  # x lupdate
        elementList[QadColorElementEnum.PICKBOX] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Autotreck vector")  # x lupdate
        elementVarName = QadMsg.translate(
            "Environment variables", "AUTOTRECKINGVECTORCOLOR")  # x lupdate
        elementList[QadColorElementEnum.AUTOTRECK_VECTOR] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Autosnap marker")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "AUTOSNAPCOLOR")  # x lupdate
        elementList[QadColorElementEnum.AUTOSNAP_MARKER] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Dynamic dimension lines")  # x lupdate
        elementVarName = QadMsg.translate(
            "Environment variables", "DYNTRECKINGVECTORCOLOR")  # x lupdate
        elementList[QadColorElementEnum.DI_AUTOTRECK_VECTOR] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Drafting tool tip")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "DYNEDITFORECOLOR")  # x lupdate
        elementList[QadColorElementEnum.DI_COMMAND_DESCR] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate(
            "WindowColor_Dialog", "Drafting tool tip contour")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "DYNEDITBORDERCOLOR")  # x lupdate
        elementList[QadColorElementEnum.DI_COMMAND_DESCR_BACKGROUND] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate(
            "WindowColor_Dialog", "Drafting tool tip background")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "DYNEDITBACKCOLOR")  # x lupdate
        elementList[QadColorElementEnum.DI_COMMAND_DESCR_BORDER] = [
            elementDescr, elementVarName
        ]

        return elementList

    #============================================================================
    # get_COMMAND_LINE_element_dict
    #============================================================================
    def get_COMMAND_LINE_element_dict(self):
        elementList = dict()

        # description, system variable
        elementDescr = QadMsg.translate(
            "WindowColor_Dialog", "Command history background")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "CMDHISTORYBACKCOLOR")  # x lupdate
        elementList[QadColorElementEnum.COMMAND_HISTORY_BACKGROUND] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Command history text")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "CMDHISTORYFORECOLOR")  # x lupdate
        elementList[QadColorElementEnum.COMMAND_HISTORY_TEXT] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate(
            "WindowColor_Dialog", "Active prompt background")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "CMDLINEBACKCOLOR")  # x lupdate
        elementList[QadColorElementEnum.PROMPT_BACKGROUND] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Active prompt text")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "CMDLINEFORECOLOR")  # x lupdate
        elementList[QadColorElementEnum.PROMPT_TEXT] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate("WindowColor_Dialog",
                                        "Command option keyword")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "CMDLINEOPTCOLOR")  # x lupdate
        elementList[QadColorElementEnum.COMMAND_OPTION_KEYWORD] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate(
            "WindowColor_Dialog",
            "Command option keyword background")  # x lupdate
        elementVarName = QadMsg.translate("Environment variables",
                                          "CMDLINEOPTBACKCOLOR")  # x lupdate
        elementList[QadColorElementEnum.COMMAND_OPTION_BACKGROUND] = [
            elementDescr, elementVarName
        ]

        # description, system variable
        elementDescr = QadMsg.translate(
            "WindowColor_Dialog", "Command option highlighted")  # x lupdate
        elementVarName = QadMsg.translate(
            "Environment variables", "CMDLINEOPTHIGHLIGHTEDCOLOR")  # x lupdate
        elementList[QadColorElementEnum.COMMAND_OPTION_HIGHLIGHTED] = [
            elementDescr, elementVarName
        ]

        return elementList

    #============================================================================
    # init_colors
    #============================================================================
    def init_colors(self):
        self.init_context_list()

        # Inizializzazione della lista dei contesti
        model = QStandardItemModel(self.listView_Context)
        contexts = self.contextList.items()  # lista dei contesti
        for context in contexts:
            # context = (<contextEnum>, (<contextDescr>, <elementDict>))
            contextDescr = context[1][0]
            # Create an item with a caption
            item = QStandardItem(contextDescr)
            item.setData(context)
            model.appendRow(item)

        self.listView_Context.setModel(model)

        # collego l'evento "cambio di selezione" alla funzione self.contextChanged
        self.listView_Context.selectionModel().selectionChanged.connect(
            self.contextChanged)

    #============================================================================
    # contextChanged
    #============================================================================
    def contextChanged(self, current, previous):
        # leggo ciò che selezionato
        index = current.indexes()[0]
        item = self.listView_Context.model().itemFromIndex(index)
        context = item.data(
        )  # context = (<contextEnum>, (<contextDescr>, <elementDict>))
        self.currentContext = context[0]
        elementDict = context[1][1]
        self.preview.refreshColors(
            self.currentContext,
            self.tempQadVariables)  # forzo il disegno del preview
        self.currentVarName = ""

        # Inizializzazione della lista dei contesti
        model = QStandardItemModel(self.listView_Element)
        elements = elementDict.items()  # lista degli elementi
        for element in elements:
            # element = (<elementEnum>, (<elementDescr>, <sys var name>))
            elementDescr = element[1][0]
            # Create an item with a caption
            item = QStandardItem(elementDescr)
            item.setData(element)
            model.appendRow(item)

        self.listView_Element.setModel(model)
        # collego l'evento "cambio di selezione" alla funzione self.elementChanged
        self.listView_Element.selectionModel().selectionChanged.connect(
            self.elementChanged)

    #============================================================================
    # elementChanged
    #============================================================================
    def elementChanged(self, current, previous):
        # leggo ciò che selezionato
        index = current.indexes()[0]
        item = self.listView_Element.model().itemFromIndex(index)
        element = item.data(
        )  # element = (<elementEnum>, (<elementDescr>, <sys var name>))
        self.currentElement = element[0]
        self.currentVarName = element[1][1]
        self.buttonColor.setColor(
            QColor(self.tempQadVariables.get(self.currentVarName)))

    #============================================================================
    # colorChanged
    #============================================================================
    def colorChanged(self, value):
        self.tempQadVariables.set(self.currentVarName,
                                  self.buttonColor.color().name())
        self.preview.refreshColors(
            self.currentContext,
            self.tempQadVariables)  # forzo il disegno del preview

    #============================================================================
    # restoreVarValueElement
    #============================================================================
    def restoreVarValueElement(self, varName):
        variable = QadVariables.getVariable(varName)
        if variable is None:
            return False
        self.tempQadVariables.set(varName, variable.default)
        return True

    #============================================================================
    # restoreContext
    #============================================================================
    def restoreContext(self, context):
        context = self.contextList[
            context]  # context = (<contextEnum>, (<contextDescr>, <elementDict>))
        elementDict = context[1]
        elements = elementDict.items()  # lista degli elementi
        for element in elements:
            # element = (<elementEnum>, (<elementDescr>, <sys var name>))
            varName = element[1][1]
            self.restoreVarValueElement(varName)

    #============================================================================
    # Button_RestoreCurrElement_clicked
    #============================================================================
    def Button_RestoreCurrElement_clicked(self):
        if self.restoreVarValueElement(self.currentVarName):
            self.preview.refreshColors(
                self.currentContext,
                self.tempQadVariables)  # forzo il disegno del preview
            self.buttonColor.setColor(
                QColor(self.tempQadVariables.get(self.currentVarName)))

    #============================================================================
    # Button_RestoreCurrContext_clicked
    #============================================================================
    def Button_RestoreCurrContext_clicked(self):
        self.restoreContext(self.currentContext)
        self.preview.refreshColors(
            self.currentContext,
            self.tempQadVariables)  # forzo il disegno del preview
        if self.currentVarName != "":
            self.buttonColor.setColor(
                QColor(self.tempQadVariables.get(self.currentVarName)))

    #============================================================================
    # Button_RestoreAllContext_clicked
    #============================================================================
    def Button_RestoreAllContext_clicked(self):
        contexts = self.contextList.keys()  # lista dei contesti
        for context in contexts:
            self.restoreContext(context)

        self.preview.refreshColors(
            self.currentContext,
            self.tempQadVariables)  # forzo il disegno del preview
        if self.currentVarName != "":
            self.buttonColor.setColor(
                QColor(self.tempQadVariables.get(self.currentVarName)))

    #============================================================================
    # getSysVariableList
    #============================================================================
    def getSysVariableList(self):
        # ritorna una lista di variabili di sistema dei colori gestiti da questa finestra
        variables = []
        contexts = self.contextList.items()  # lista dei contesti
        for context in contexts:
            # context = (<contextEnum>, (<contextDescr>, <elementDict>))
            elementDict = context[1][1]
            elements = elementDict.items()  # lista degli elementi
            for element in elements:
                # element = (<elementEnum>, (<elementDescr>, <sys var name>))
                varName = element[1][1]
                varValue = self.tempQadVariables.get(varName)
                variables.append(
                    QadVariable(varName, varValue, QadVariableTypeEnum.COLOR))
        return variables

    def Button_ApplyClose_Pressed(self):
        # copio i valori dei colori in QadVariables e li salvo
        variables = self.getSysVariableList()
        for variable in variables:
            QadVariables.set(variable.name, variable.value)
        QadVariables.save()
        self.plugIn.TextWindow.refreshColors()

        QDialog.accept(self)

    def Button_Cancel_Pressed(self):
        QDialog.reject(self)

    def ButtonHELP_Pressed(self):
        qadShowPluginHelp(QadMsg.translate("Help", ""))
class QgsAnnotationWidget(QWidget):
    def __init__(self, parent, item):
        QWidget.__init__(self, parent)
        self.gridLayout_2 = QGridLayout(self)
        self.gridLayout_2.setObjectName(("gridLayout_2"))
        self.mMapPositionFixedCheckBox = QCheckBox(self)
        self.mMapPositionFixedCheckBox.setObjectName(
            ("mMapPositionFixedCheckBox"))
        self.gridLayout_2.addWidget(self.mMapPositionFixedCheckBox, 0, 0, 1, 1)
        self.gridLayout = QGridLayout()
        self.gridLayout.setObjectName(("gridLayout"))
        self.mFrameColorButton = QgsColorButton(self)
        self.mFrameColorButton.setText((""))
        self.mFrameColorButton.setObjectName(("mFrameColorButton"))
        self.gridLayout.addWidget(self.mFrameColorButton, 3, 1, 1, 1)
        self.mFrameColorButton.colorChanged.connect(
            self.on_mFrameColorButton_colorChanged)
        self.mBackgroundColorLabel = QLabel(self)
        self.mBackgroundColorLabel.setObjectName(("mBackgroundColorLabel"))
        self.gridLayout.addWidget(self.mBackgroundColorLabel, 2, 0, 1, 1)
        self.mMapMarkerLabel = QLabel(self)
        self.mMapMarkerLabel.setObjectName(("mMapMarkerLabel"))
        self.gridLayout.addWidget(self.mMapMarkerLabel, 0, 0, 1, 1)
        self.mBackgroundColorButton = QgsColorButton(self)
        self.mBackgroundColorButton.setText((""))
        self.mBackgroundColorButton.setObjectName(("mBackgroundColorButton"))
        self.gridLayout.addWidget(self.mBackgroundColorButton, 2, 1, 1, 1)
        self.mBackgroundColorButton.colorChanged.connect(
            self.on_mBackgroundColorButton_colorChanged)
        self.mMapMarkerButton = QPushButton(self)
        self.mMapMarkerButton.setText((""))
        self.mMapMarkerButton.setObjectName(("mMapMarkerButton"))
        self.gridLayout.addWidget(self.mMapMarkerButton, 0, 1, 1, 1)
        self.mMapMarkerButton.clicked.connect(self.on_mMapMarkerButton_clicked)
        self.mFrameWidthLabel = QLabel(self)
        self.mFrameWidthLabel.setObjectName(("mFrameWidthLabel"))
        self.gridLayout.addWidget(self.mFrameWidthLabel, 1, 0, 1, 1)
        self.mFrameWidthSpinBox = QDoubleSpinBox(self)
        self.mFrameWidthSpinBox.setObjectName(("mFrameWidthSpinBox"))
        self.gridLayout.addWidget(self.mFrameWidthSpinBox, 1, 1, 1, 1)
        self.mFrameColorLabel = QLabel(self)
        self.mFrameColorLabel.setObjectName(("mFrameColorLabel"))
        self.gridLayout.addWidget(self.mFrameColorLabel, 3, 0, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 1)
        self.mMapMarkerLabel.setBuddy(self.mMapMarkerButton)
        self.mFrameWidthLabel.setBuddy(self.mFrameWidthSpinBox)

        self.setWindowTitle("QgsAnnotationWidgetBase")
        self.mMapPositionFixedCheckBox.setText("Fixed map position")
        self.mBackgroundColorLabel.setText("Background color")
        self.mMapMarkerLabel.setText("Map marker")
        self.mFrameWidthLabel.setText("Frame width")
        self.mFrameColorLabel.setText("Frame color")
        self.setLayout(self.gridLayout_2)
        self.mItem = item
        if (self.mItem != None):
            self.blockAllSignals(True)

            if (self.mItem.mapPositionFixed()):
                self.mMapPositionFixedCheckBox.setCheckState(Qt.Checked)
            else:
                self.mMapPositionFixedCheckBox.setCheckState(Qt.Unchecked)

            self.mFrameWidthSpinBox.setValue(self.mItem.frameBorderWidth())
            self.mFrameColorButton.setColor(self.mItem.frameColor())
            self.mFrameColorButton.setColorDialogTitle("Select frame color")
            self.mFrameColorButton.setColorDialogOptions(
                QColorDialog.ShowAlphaChannel)
            self.mBackgroundColorButton.setColor(
                self.mItem.frameBackgroundColor())
            self.mBackgroundColorButton.setColorDialogTitle(
                "Select background color")
            self.mBackgroundColorButton.setColorDialogOptions(
                QColorDialog.ShowAlphaChannel)
            self.symbol = self.mItem.markerSymbol()
            if (self.symbol != None):
                self.mMarkerSymbol = self.symbol.clone()
                self.updateCenterIcon()
            self.blockAllSignals(False)

    def apply(self):
        if (self.mItem != None):
            self.mItem.setMapPositionFixed(
                self.mMapPositionFixedCheckBox.checkState() == Qt.Checked)
            self.mItem.setFrameBorderWidth(self.mFrameWidthSpinBox.value())
            self.mItem.setFrameColor(self.mFrameColorButton.color())
            self.mItem.setFrameBackgroundColor(
                self.mBackgroundColorButton.color())
            self.mItem.setMarkerSymbol(self.mMarkerSymbol)
            self.mMarkerSymbol = None  #//item takes ownership
            self.mItem.update()

    def blockAllSignals(self, block):
        self.mMapPositionFixedCheckBox.blockSignals(block)
        self.mMapMarkerButton.blockSignals(block)
        self.mFrameWidthSpinBox.blockSignals(block)
        self.mFrameColorButton.blockSignals(block)

    def on_mMapMarkerButton_clicked(self):
        if (self.mMarkerSymbol == None):
            return
        markerSymbol = self.mMarkerSymbol.clone()
        dlg = QgsSymbolV2SelectorDialog(markerSymbol,
                                        QgsStyleV2.defaultStyle(), None, self)
        if (dlg.exec_() != QDialog.Rejected):
            self.mMarkerSymbol = markerSymbol
            self.updateCenterIcon()

    def on_mFrameColorButton_colorChanged(self, color):
        if (self.mItem == None):
            return
        self.mItem.setFrameColor(color)

    def updateCenterIcon(self):
        if (self.mMarkerSymbol == None):
            return
        icon = QgsSymbolLayerV2Utils.symbolPreviewIcon(
            self.mMarkerSymbol, self.mMapMarkerButton.iconSize())
        self.mMapMarkerButton.setIcon(icon)

    def on_mBackgroundColorButton_colorChanged(self, color):
        if (self.mItem == None):
            return
        self.mItem.setFrameBackgroundColor(color)
class Ui_VectorScaleBoxOptionsDialog(object):
    def setupUi(self, VectorScaleBoxOptionsDialog):
        VectorScaleBoxOptionsDialog.setObjectName(_fromUtf8("VectorScaleBoxOptionsDialog"))
        VectorScaleBoxOptionsDialog.resize(399, 274)
        self.uMainLayout = QtGui.QVBoxLayout(VectorScaleBoxOptionsDialog)
        self.uMainLayout.setObjectName(_fromUtf8("uMainLayout"))
        self.uLocationGroup = QtGui.QGroupBox(VectorScaleBoxOptionsDialog)
        self.uLocationGroup.setObjectName(_fromUtf8("uLocationGroup"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.uLocationGroup)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.uLocationLayout = QtGui.QVBoxLayout()
        self.uLocationLayout.setObjectName(_fromUtf8("uLocationLayout"))
        self.uPositionLayout_2 = QtGui.QHBoxLayout()
        self.uPositionLayout_2.setObjectName(_fromUtf8("uPositionLayout_2"))
        self.uPositionLabel = QtGui.QLabel(self.uLocationGroup)
        self.uPositionLabel.setObjectName(_fromUtf8("uPositionLabel"))
        self.uPositionLayout_2.addWidget(self.uPositionLabel)
        self.uRadioTL = QtGui.QRadioButton(self.uLocationGroup)
        self.uRadioTL.setObjectName(_fromUtf8("uRadioTL"))
        self.uPositionLayout_2.addWidget(self.uRadioTL)
        self.uRadioTR = QtGui.QRadioButton(self.uLocationGroup)
        self.uRadioTR.setObjectName(_fromUtf8("uRadioTR"))
        self.uPositionLayout_2.addWidget(self.uRadioTR)
        self.uRadioBL = QtGui.QRadioButton(self.uLocationGroup)
        self.uRadioBL.setObjectName(_fromUtf8("uRadioBL"))
        self.uPositionLayout_2.addWidget(self.uRadioBL)
        self.uRadioBR = QtGui.QRadioButton(self.uLocationGroup)
        self.uRadioBR.setChecked(True)
        self.uRadioBR.setObjectName(_fromUtf8("uRadioBR"))
        self.uPositionLayout_2.addWidget(self.uRadioBR)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.uPositionLayout_2.addItem(spacerItem)
        self.uLocationLayout.addLayout(self.uPositionLayout_2)
        self.verticalLayout_2.addLayout(self.uLocationLayout)
        self.uPositionLayout = QtGui.QHBoxLayout()
        self.uPositionLayout.setObjectName(_fromUtf8("uPositionLayout"))
        self.uOffsetXLabel = QtGui.QLabel(self.uLocationGroup)
        self.uOffsetXLabel.setObjectName(_fromUtf8("uOffsetXLabel"))
        self.uPositionLayout.addWidget(self.uOffsetXLabel)
        self.uOffsetX = QtGui.QSpinBox(self.uLocationGroup)
        self.uOffsetX.setMaximum(300)
        self.uOffsetX.setObjectName(_fromUtf8("uOffsetX"))
        self.uPositionLayout.addWidget(self.uOffsetX)
        self.uOffsetYLabel = QtGui.QLabel(self.uLocationGroup)
        self.uOffsetYLabel.setObjectName(_fromUtf8("uOffsetYLabel"))
        self.uPositionLayout.addWidget(self.uOffsetYLabel)
        self.uOffsetY = QtGui.QSpinBox(self.uLocationGroup)
        self.uOffsetY.setMaximum(300)
        self.uOffsetY.setObjectName(_fromUtf8("uOffsetY"))
        self.uPositionLayout.addWidget(self.uOffsetY)
        self.uArrowSizeLabel = QtGui.QLabel(self.uLocationGroup)
        self.uArrowSizeLabel.setObjectName(_fromUtf8("uArrowSizeLabel"))
        self.uPositionLayout.addWidget(self.uArrowSizeLabel)
        self.uArrowSizePercent = QtGui.QSpinBox(self.uLocationGroup)
        self.uArrowSizePercent.setMaximum(30)
        self.uArrowSizePercent.setObjectName(_fromUtf8("uArrowSizePercent"))
        self.uPositionLayout.addWidget(self.uArrowSizePercent)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.uPositionLayout.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.uPositionLayout)
        self.uMainLayout.addWidget(self.uLocationGroup)
        self.uBoxGroup = QtGui.QGroupBox(VectorScaleBoxOptionsDialog)
        self.uBoxGroup.setObjectName(_fromUtf8("uBoxGroup"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.uBoxGroup)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.uShowBoxLabel = QtGui.QLabel(self.uBoxGroup)
        self.uShowBoxLabel.setObjectName(_fromUtf8("uShowBoxLabel"))
        self.horizontalLayout_6.addWidget(self.uShowBoxLabel)
        self.uShowBox = QtGui.QCheckBox(self.uBoxGroup)
        self.uShowBox.setText(_fromUtf8(""))
        self.uShowBox.setObjectName(_fromUtf8("uShowBox"))
        self.horizontalLayout_6.addWidget(self.uShowBox)
        self.uFillBoxLabel = QtGui.QLabel(self.uBoxGroup)
        self.uFillBoxLabel.setObjectName(_fromUtf8("uFillBoxLabel"))
        self.horizontalLayout_6.addWidget(self.uFillBoxLabel)
        self.uFillBox = QtGui.QCheckBox(self.uBoxGroup)
        self.uFillBox.setText(_fromUtf8(""))
        self.uFillBox.setObjectName(_fromUtf8("uFillBox"))
        self.horizontalLayout_6.addWidget(self.uFillBox)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem2)
        self.uPenColor = QgsColorButton(self.uBoxGroup)
        self.uPenColor.setObjectName(_fromUtf8("uPenColor"))
        self.horizontalLayout_6.addWidget(self.uPenColor)
        self.uBrushColor = QgsColorButton(self.uBoxGroup)
        self.uBrushColor.setObjectName(_fromUtf8("uBrushColor"))
        self.horizontalLayout_6.addWidget(self.uBrushColor)
        self.uMainLayout.addWidget(self.uBoxGroup)
        self.uTextGroup = QtGui.QGroupBox(VectorScaleBoxOptionsDialog)
        self.uTextGroup.setObjectName(_fromUtf8("uTextGroup"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.uTextGroup)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.uTitleLabel = QtGui.QLabel(self.uTextGroup)
        self.uTitleLabel.setObjectName(_fromUtf8("uTitleLabel"))
        self.horizontalLayout_3.addWidget(self.uTitleLabel)
        self.uTitle = QtGui.QLineEdit(self.uTextGroup)
        self.uTitle.setObjectName(_fromUtf8("uTitle"))
        self.horizontalLayout_3.addWidget(self.uTitle)
        self.uTitleFont = QtGui.QPushButton(self.uTextGroup)
        self.uTitleFont.setObjectName(_fromUtf8("uTitleFont"))
        self.horizontalLayout_3.addWidget(self.uTitleFont)
        self.uScaleFont = QtGui.QPushButton(self.uTextGroup)
        self.uScaleFont.setObjectName(_fromUtf8("uScaleFont"))
        self.horizontalLayout_3.addWidget(self.uScaleFont)
        self.uMainLayout.addWidget(self.uTextGroup)
        self.uButtonBox = QtGui.QDialogButtonBox(VectorScaleBoxOptionsDialog)
        self.uButtonBox.setOrientation(QtCore.Qt.Horizontal)
        self.uButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Help|QtGui.QDialogButtonBox.Ok)
        self.uButtonBox.setObjectName(_fromUtf8("uButtonBox"))
        self.uMainLayout.addWidget(self.uButtonBox)
        self.uPositionLabel.setBuddy(self.uRadioTL)
        self.uOffsetXLabel.setBuddy(self.uOffsetX)
        self.uOffsetYLabel.setBuddy(self.uOffsetY)
        self.uArrowSizeLabel.setBuddy(self.uArrowSizePercent)
        self.uShowBoxLabel.setBuddy(self.uShowBox)
        self.uFillBoxLabel.setBuddy(self.uFillBox)
        self.uTitleLabel.setBuddy(self.uTitle)

        self.retranslateUi(VectorScaleBoxOptionsDialog)
        QtCore.QObject.connect(self.uButtonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), VectorScaleBoxOptionsDialog.accept)
        QtCore.QObject.connect(self.uButtonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), VectorScaleBoxOptionsDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(VectorScaleBoxOptionsDialog)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uRadioTL, self.uRadioTR)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uRadioTR, self.uRadioBL)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uRadioBL, self.uRadioBR)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uRadioBR, self.uOffsetX)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uOffsetX, self.uOffsetY)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uOffsetY, self.uArrowSizePercent)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uArrowSizePercent, self.uShowBox)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uShowBox, self.uFillBox)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uFillBox, self.uPenColor)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uPenColor, self.uBrushColor)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uBrushColor, self.uTitle)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uTitle, self.uTitleFont)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uTitleFont, self.uScaleFont)
        VectorScaleBoxOptionsDialog.setTabOrder(self.uScaleFont, self.uButtonBox)

    def retranslateUi(self, VectorScaleBoxOptionsDialog):
        VectorScaleBoxOptionsDialog.setWindowTitle(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Vector scale box options", None, QtGui.QApplication.UnicodeUTF8))
        self.uLocationGroup.setTitle(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Location", None, QtGui.QApplication.UnicodeUTF8))
        self.uPositionLabel.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Position:", None, QtGui.QApplication.UnicodeUTF8))
        self.uRadioTL.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Top left", None, QtGui.QApplication.UnicodeUTF8))
        self.uRadioTR.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Top right", None, QtGui.QApplication.UnicodeUTF8))
        self.uRadioBL.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Bottom left", None, QtGui.QApplication.UnicodeUTF8))
        self.uRadioBR.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Bottom right", None, QtGui.QApplication.UnicodeUTF8))
        self.uOffsetXLabel.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Offset: X", None, QtGui.QApplication.UnicodeUTF8))
        self.uOffsetYLabel.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "   Y", None, QtGui.QApplication.UnicodeUTF8))
        self.uArrowSizeLabel.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "     Approx arrow size (%)", None, QtGui.QApplication.UnicodeUTF8))
        self.uBoxGroup.setTitle(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Box", None, QtGui.QApplication.UnicodeUTF8))
        self.uShowBoxLabel.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Draw box?", None, QtGui.QApplication.UnicodeUTF8))
        self.uFillBoxLabel.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Fill box?", None, QtGui.QApplication.UnicodeUTF8))
        self.uPenColor.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Border color", None, QtGui.QApplication.UnicodeUTF8))
        self.uBrushColor.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Fill color", None, QtGui.QApplication.UnicodeUTF8))
        self.uTextGroup.setTitle(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Text", None, QtGui.QApplication.UnicodeUTF8))
        self.uTitleLabel.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Title: ", None, QtGui.QApplication.UnicodeUTF8))
        self.uTitleFont.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Title font", None, QtGui.QApplication.UnicodeUTF8))
        self.uScaleFont.setText(QtGui.QApplication.translate("VectorScaleBoxOptionsDialog", "Scale font", None, QtGui.QApplication.UnicodeUTF8))
class Ui_AnimationLayoutItemProps(object):
    def setupUi(self, AnimationLayoutItemProps):
        AnimationLayoutItemProps.setObjectName(_fromUtf8("AnimationLayoutItemProps"))
        AnimationLayoutItemProps.resize(475, 175)
        self.formLayout = QtGui.QFormLayout(AnimationLayoutItemProps)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.lblLabel = QtGui.QLabel(AnimationLayoutItemProps)
        self.lblLabel.setObjectName(_fromUtf8("lblLabel"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.lblLabel)
        self.editLabel = QtGui.QLineEdit(AnimationLayoutItemProps)
        self.editLabel.setObjectName(_fromUtf8("editLabel"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.editLabel)
        self.lblTimeFormat = QtGui.QLabel(AnimationLayoutItemProps)
        self.lblTimeFormat.setObjectName(_fromUtf8("lblTimeFormat"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.lblTimeFormat)
        self.cboTimeFormat = QtGui.QComboBox(AnimationLayoutItemProps)
        self.cboTimeFormat.setObjectName(_fromUtf8("cboTimeFormat"))
        self.cboTimeFormat.addItem(_fromUtf8(""))
        self.cboTimeFormat.addItem(_fromUtf8(""))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.cboTimeFormat)
        self.lblText = QtGui.QLabel(AnimationLayoutItemProps)
        self.lblText.setObjectName(_fromUtf8("lblText"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.lblText)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.btnFont = QtGui.QPushButton(AnimationLayoutItemProps)
        self.btnFont.setObjectName(_fromUtf8("btnFont"))
        self.horizontalLayout.addWidget(self.btnFont)
        self.btnTextColor = QgsColorButton(AnimationLayoutItemProps)
        self.btnTextColor.setText(_fromUtf8(""))
        self.btnTextColor.setObjectName(_fromUtf8("btnTextColor"))
        self.horizontalLayout.addWidget(self.btnTextColor)
        self.formLayout.setLayout(2, QtGui.QFormLayout.FieldRole, self.horizontalLayout)
        self.lblBackground = QtGui.QLabel(AnimationLayoutItemProps)
        self.lblBackground.setObjectName(_fromUtf8("lblBackground"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.lblBackground)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.chkBackground = QtGui.QCheckBox(AnimationLayoutItemProps)
        self.chkBackground.setText(_fromUtf8(""))
        self.chkBackground.setObjectName(_fromUtf8("chkBackground"))
        self.horizontalLayout_2.addWidget(self.chkBackground)
        self.btnBackgroundColor = QgsColorButton(AnimationLayoutItemProps)
        self.btnBackgroundColor.setText(_fromUtf8(""))
        self.btnBackgroundColor.setObjectName(_fromUtf8("btnBackgroundColor"))
        self.horizontalLayout_2.addWidget(self.btnBackgroundColor)
        self.formLayout.setLayout(3, QtGui.QFormLayout.FieldRole, self.horizontalLayout_2)
        self.lblPosition = QtGui.QLabel(AnimationLayoutItemProps)
        self.lblPosition.setObjectName(_fromUtf8("lblPosition"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.lblPosition)
        self.cboPosition = QtGui.QComboBox(AnimationLayoutItemProps)
        self.cboPosition.setObjectName(_fromUtf8("cboPosition"))
        self.cboPosition.addItem(_fromUtf8(""))
        self.cboPosition.addItem(_fromUtf8(""))
        self.cboPosition.addItem(_fromUtf8(""))
        self.cboPosition.addItem(_fromUtf8(""))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.cboPosition)

        self.retranslateUi(AnimationLayoutItemProps)
        QtCore.QMetaObject.connectSlotsByName(AnimationLayoutItemProps)
        AnimationLayoutItemProps.setTabOrder(self.editLabel, self.cboTimeFormat)
        AnimationLayoutItemProps.setTabOrder(self.cboTimeFormat, self.btnBackgroundColor)
        AnimationLayoutItemProps.setTabOrder(self.btnBackgroundColor, self.cboPosition)

    def retranslateUi(self, AnimationLayoutItemProps):
        AnimationLayoutItemProps.setWindowTitle(_translate("AnimationLayoutItemProps", "Form", None))
        self.lblLabel.setText(_translate("AnimationLayoutItemProps", "Label", None))
        self.lblTimeFormat.setText(_translate("AnimationLayoutItemProps", "Format", None))
        self.cboTimeFormat.setItemText(0, _translate("AnimationLayoutItemProps", "hh:mm:ss.ss", None))
        self.cboTimeFormat.setItemText(1, _translate("AnimationLayoutItemProps", "hh.hhh", None))
        self.lblText.setText(_translate("AnimationLayoutItemProps", "Text", None))
        self.btnFont.setText(_translate("AnimationLayoutItemProps", "Font...", None))
        self.lblBackground.setText(_translate("AnimationLayoutItemProps", "Background", None))
        self.lblPosition.setText(_translate("AnimationLayoutItemProps", "Position", None))
        self.cboPosition.setItemText(0, _translate("AnimationLayoutItemProps", "Top-left", None))
        self.cboPosition.setItemText(1, _translate("AnimationLayoutItemProps", "Top-right", None))
        self.cboPosition.setItemText(2, _translate("AnimationLayoutItemProps", "Bottom-left", None))
        self.cboPosition.setItemText(3, _translate("AnimationLayoutItemProps", "Bottom-right", None))
class Ui_Composite_Index(object):
    def setupUi(self, Composite_Index):
        Composite_Index.setObjectName(_fromUtf8("Composite_Index"))
        Composite_Index.resize(814, 754)
        self.verticalLayout = QtGui.QVBoxLayout(Composite_Index)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(Composite_Index)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.cbx_aggregation_layer = QgsMapLayerComboBox(Composite_Index)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbx_aggregation_layer.sizePolicy().hasHeightForWidth())
        self.cbx_aggregation_layer.setSizePolicy(sizePolicy)
        self.cbx_aggregation_layer.setObjectName(
            _fromUtf8("cbx_aggregation_layer"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.cbx_aggregation_layer)
        self.label_4 = QtGui.QLabel(Composite_Index)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.cbx_indicator_field = QgsFieldComboBox(Composite_Index)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbx_indicator_field.sizePolicy().hasHeightForWidth())
        self.cbx_indicator_field.setSizePolicy(sizePolicy)
        self.cbx_indicator_field.setObjectName(
            _fromUtf8("cbx_indicator_field"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.cbx_indicator_field)
        self.label_3 = QtGui.QLabel(Composite_Index)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.LabelRole,
                                  self.label_3)
        self.label_8 = QtGui.QLabel(Composite_Index)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole,
                                  self.label_8)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.le_output_filepath = QtGui.QLineEdit(Composite_Index)
        self.le_output_filepath.setObjectName(_fromUtf8("le_output_filepath"))
        self.horizontalLayout_6.addWidget(self.le_output_filepath)
        self.button_browse = QtGui.QPushButton(Composite_Index)
        self.button_browse.setObjectName(_fromUtf8("button_browse"))
        self.horizontalLayout_6.addWidget(self.button_browse)
        self.formLayout.setLayout(12, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout_6)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout.setLayout(13, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout)
        self.radioButton_vector_positive = QtGui.QRadioButton(Composite_Index)
        self.radioButton_vector_positive.setChecked(True)
        self.radioButton_vector_positive.setObjectName(
            _fromUtf8("radioButton_vector_positive"))
        self.buttonGroup_2 = QtGui.QButtonGroup(Composite_Index)
        self.buttonGroup_2.setObjectName(_fromUtf8("buttonGroup_2"))
        self.buttonGroup_2.addButton(self.radioButton_vector_positive)
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole,
                                  self.radioButton_vector_positive)
        self.radioButton_vector_negative = QtGui.QRadioButton(Composite_Index)
        self.radioButton_vector_negative.setObjectName(
            _fromUtf8("radioButton_vector_negative"))
        self.buttonGroup_2.addButton(self.radioButton_vector_negative)
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole,
                                  self.radioButton_vector_negative)
        self.le_new_column = QtGui.QLineEdit(Composite_Index)
        self.le_new_column.setMaxLength(10)
        self.le_new_column.setObjectName(_fromUtf8("le_new_column"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.FieldRole,
                                  self.le_new_column)
        self.cbx_list_indicators = QtGui.QListWidget(Composite_Index)
        self.cbx_list_indicators.setObjectName(
            _fromUtf8("cbx_list_indicators"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole,
                                  self.cbx_list_indicators)
        self.command_link_button = QtGui.QCommandLinkButton(Composite_Index)
        self.command_link_button.setObjectName(
            _fromUtf8("command_link_button"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole,
                                  self.command_link_button)
        self.label_2 = QtGui.QLabel(Composite_Index)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.label_2)
        self.verticalLayout.addLayout(self.formLayout)
        self.symbology = QgsCollapsibleGroupBox(Composite_Index)
        self.symbology.setCheckable(True)
        self.symbology.setProperty("collapsed", False)
        self.symbology.setObjectName(_fromUtf8("symbology"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.symbology)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_9 = QtGui.QLabel(self.symbology)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout_3.addWidget(self.label_9)
        self.color_low_value = QgsColorButton(self.symbology)
        self.color_low_value.setProperty("color", QtGui.QColor(50, 164, 46))
        self.color_low_value.setObjectName(_fromUtf8("color_low_value"))
        self.horizontalLayout_3.addWidget(self.color_low_value)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.label_10 = QtGui.QLabel(self.symbology)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.horizontalLayout_3.addWidget(self.label_10)
        self.color_high_value = QgsColorButton(self.symbology)
        self.color_high_value.setProperty("color", QtGui.QColor(202, 33, 36))
        self.color_high_value.setObjectName(_fromUtf8("color_high_value"))
        self.horizontalLayout_3.addWidget(self.color_high_value)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.label_11 = QtGui.QLabel(self.symbology)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_4.addWidget(self.label_11)
        self.spinBox_classes = QtGui.QSpinBox(self.symbology)
        self.spinBox_classes.setMinimum(1)
        self.spinBox_classes.setProperty("value", 5)
        self.spinBox_classes.setObjectName(_fromUtf8("spinBox_classes"))
        self.horizontalLayout_4.addWidget(self.spinBox_classes)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.label_12 = QtGui.QLabel(self.symbology)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_4.addWidget(self.label_12)
        self.cbx_mode = QtGui.QComboBox(self.symbology)
        self.cbx_mode.setObjectName(_fromUtf8("cbx_mode"))
        self.horizontalLayout_4.addWidget(self.cbx_mode)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.verticalLayout.addWidget(self.symbology)
        self.button_box_ok = QtGui.QDialogButtonBox(Composite_Index)
        self.button_box_ok.setOrientation(QtCore.Qt.Horizontal)
        self.button_box_ok.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                              | QtGui.QDialogButtonBox.Ok)
        self.button_box_ok.setObjectName(_fromUtf8("button_box_ok"))
        self.verticalLayout.addWidget(self.button_box_ok)

        self.retranslateUi(Composite_Index)
        QtCore.QObject.connect(
            self.cbx_aggregation_layer,
            QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")),
            self.cbx_indicator_field.setLayer)
        QtCore.QMetaObject.connectSlotsByName(Composite_Index)

    def retranslateUi(self, Composite_Index):
        Composite_Index.setWindowTitle(
            _translate("Composite_Index", "Incidence", None))
        self.label.setText(_translate("Composite_Index", "Layer", None))
        self.label_4.setText(
            _translate("Composite_Index", "Indicator field", None))
        self.label_3.setText(
            _translate("Composite_Index", "Composite Index", None))
        self.label_8.setText(_translate("Composite_Index", "Output", None))
        self.le_output_filepath.setPlaceholderText(
            _translate("Composite_Index", "Save to temporary file", None))
        self.button_browse.setText(
            _translate("Composite_Index", "Browse", None))
        self.radioButton_vector_positive.setText(
            _translate(
                "Composite_Index",
                "Higher the value of the indicator better the conditions for the population",
                None))
        self.radioButton_vector_negative.setText(
            _translate(
                "Composite_Index",
                "Higher the value of the indicator worse the conditions for the population",
                None))
        self.le_new_column.setPlaceholderText(
            _translate("Composite_Index", "UHN", None))
        self.command_link_button.setText(
            _translate("Composite_Index", "Add to Index", None))
        self.label_2.setText(
            _translate(
                "Composite_Index",
                "For removing and Indicator Click Twice in the one you want to remove",
                None))
        self.symbology.setTitle(
            _translate("Composite_Index", "Add a symbology", None))
        self.label_9.setText(
            _translate("Composite_Index", "Low Priority", None))
        self.label_10.setText(
            _translate("Composite_Index", "High Priority", None))
        self.label_11.setText(_translate("Composite_Index", "Classes", None))
        self.label_12.setText(_translate("Composite_Index", "Mode", None))
Example #10
0
class Ui_Settings(object):
    def setupUi(self, Settings):
        Settings.setObjectName("Settings")
        Settings.resize(292, 223)
        self.gridLayout = QtWidgets.QGridLayout(Settings)
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtWidgets.QLabel(Settings)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.label = QtWidgets.QLabel(Settings)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 4, 0, 1, 1)
        self.saveSelectionInProject = QtWidgets.QCheckBox(Settings)
        self.saveSelectionInProject.setChecked(True)
        self.saveSelectionInProject.setObjectName("saveSelectionInProject")
        self.gridLayout.addWidget(self.saveSelectionInProject, 1, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 5, 0, 1, 1)
        self.rubberWidth = QtWidgets.QDoubleSpinBox(Settings)
        self.rubberWidth.setToolTip("")
        self.rubberWidth.setDecimals(1)
        self.rubberWidth.setSingleStep(1.0)
        self.rubberWidth.setProperty("value", 2.0)
        self.rubberWidth.setObjectName("rubberWidth")
        self.gridLayout.addWidget(self.rubberWidth, 3, 1, 1, 1)
        self.scale = QtWidgets.QSpinBox(Settings)
        self.scale.setMinimum(1)
        self.scale.setMaximum(15)
        self.scale.setProperty("value", 5)
        self.scale.setObjectName("scale")
        self.gridLayout.addWidget(self.scale, 2, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Settings)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(Settings)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 6, 0, 1, 2)
        self.label_4 = QtWidgets.QLabel(Settings)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.dockArea = QtWidgets.QComboBox(Settings)
        self.dockArea.setObjectName("dockArea")
        self.dockArea.addItem("")
        self.dockArea.addItem("")
        self.gridLayout.addWidget(self.dockArea, 0, 1, 1, 1)
        self.rubberColor = QgsColorButton(Settings)
        self.rubberColor.setObjectName("rubberColor")
        self.gridLayout.addWidget(self.rubberColor, 4, 1, 1, 1)

        self.retranslateUi(Settings)
        self.buttonBox.accepted.connect(Settings.accept)
        self.buttonBox.rejected.connect(Settings.reject)
        QtCore.QMetaObject.connectSlotsByName(Settings)

    def retranslateUi(self, Settings):
        _translate = QtCore.QCoreApplication.translate
        Settings.setWindowTitle(_translate("Settings", "Item Browser :: settings"))
        self.label_2.setText(_translate("Settings", "Rubberband size"))
        self.label.setText(_translate("Settings", "Rubberband color"))
        self.saveSelectionInProject.setText(_translate("Settings", "save selection in project"))
        self.label_3.setText(_translate("Settings", "Scaling"))
        self.label_4.setText(_translate("Settings", "Dock area"))
        self.dockArea.setItemText(0, _translate("Settings", "left"))
        self.dockArea.setItemText(1, _translate("Settings", "right"))
        self.rubberColor.setColorDialogTitle(_translate("Settings", "Select Color for rubber band"))
Example #11
0
class Ui_B4UdigNL(object):
    def setupUi(self, B4UdigNL):
        B4UdigNL.setObjectName("B4UdigNL")
        B4UdigNL.resize(324, 432)
        B4UdigNL.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.verticalLayout = QtWidgets.QVBoxLayout(B4UdigNL)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtWidgets.QTabWidget(B4UdigNL)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setAutoFillBackground(False)
        self.tabWidget.setElideMode(QtCore.Qt.ElideNone)
        self.tabWidget.setObjectName("tabWidget")
        self.messageTab = QtWidgets.QWidget()
        self.messageTab.setObjectName("messageTab")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.messageTab)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.messageBox = QtWidgets.QGroupBox(self.messageTab)
        self.messageBox.setObjectName("messageBox")
        self.gridLayout = QtWidgets.QGridLayout(self.messageBox)
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.openMsgButton = QtWidgets.QPushButton(self.messageBox)
        self.openMsgButton.setObjectName("openMsgButton")
        self.horizontalLayout.addWidget(self.openMsgButton)
        self.openArchiveButton = QtWidgets.QPushButton(self.messageBox)
        self.openArchiveButton.setObjectName("openArchiveButton")
        self.horizontalLayout.addWidget(self.openArchiveButton)
        spacerItem = QtWidgets.QSpacerItem(68, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.msgListWidget = QtWidgets.QListWidget(self.messageBox)
        self.msgListWidget.setMinimumSize(QtCore.QSize(100, 40))
        self.msgListWidget.setMaximumSize(QtCore.QSize(16777215, 60))
        self.msgListWidget.setObjectName("msgListWidget")
        self.gridLayout.addWidget(self.msgListWidget, 1, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.gotoButton = QtWidgets.QPushButton(self.messageBox)
        self.gotoButton.setObjectName("gotoButton")
        self.horizontalLayout_2.addWidget(self.gotoButton)
        self.bestScaleButton = QtWidgets.QPushButton(self.messageBox)
        self.bestScaleButton.setObjectName("bestScaleButton")
        self.horizontalLayout_2.addWidget(self.bestScaleButton)
        self.removeMsgButton = QtWidgets.QPushButton(self.messageBox)
        self.removeMsgButton.setObjectName("removeMsgButton")
        self.horizontalLayout_2.addWidget(self.removeMsgButton)
        spacerItem1 = QtWidgets.QSpacerItem(78, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.messageBox)
        self.additionsBox = QtWidgets.QGroupBox(self.messageTab)
        self.additionsBox.setMaximumSize(QtCore.QSize(16777215, 300))
        self.additionsBox.setObjectName("additionsBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.additionsBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.treeWidget = QtWidgets.QTreeWidget(self.additionsBox)
        self.treeWidget.setMinimumSize(QtCore.QSize(100, 100))
        self.treeWidget.setMaximumSize(QtCore.QSize(16777215, 250))
        self.treeWidget.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setText(0, "1")
        self.gridLayout_2.addWidget(self.treeWidget, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.openDocButton = QtWidgets.QPushButton(self.additionsBox)
        self.openDocButton.setObjectName("openDocButton")
        self.horizontalLayout_3.addWidget(self.openDocButton)
        spacerItem2 = QtWidgets.QSpacerItem(168, 17, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.gridLayout_2.addLayout(self.horizontalLayout_3, 1, 0, 1, 1)
        self.verticalLayout_4.addWidget(self.additionsBox)
        spacerItem3 = QtWidgets.QSpacerItem(17, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem3)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.saveButton = QtWidgets.QPushButton(self.messageTab)
        self.saveButton.setObjectName("saveButton")
        self.horizontalLayout_4.addWidget(self.saveButton)
        spacerItem4 = QtWidgets.QSpacerItem(13, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem4)
        self.helpButton = QtWidgets.QPushButton(self.messageTab)
        self.helpButton.setObjectName("helpButton")
        self.horizontalLayout_4.addWidget(self.helpButton)
        self.closeButton = QtWidgets.QPushButton(self.messageTab)
        self.closeButton.setObjectName("closeButton")
        self.horizontalLayout_4.addWidget(self.closeButton)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.tabWidget.addTab(self.messageTab, "")
        self.ThemesTab = QtWidgets.QWidget()
        self.ThemesTab.setObjectName("ThemesTab")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.ThemesTab)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.mColorButton = QgsColorButton(self.ThemesTab)
        self.mColorButton.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton.setAcceptDrops(False)
        self.mColorButton.setColor(QtGui.QColor(0, 255, 0))
        self.mColorButton.setShowMenu(False)
        self.mColorButton.setProperty("acceptLiveUpdates", False)
        self.mColorButton.setObjectName("mColorButton")
        self.horizontalLayout_5.addWidget(self.mColorButton)
        self.checkBoxData = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxData.setTristate(True)
        self.checkBoxData.setObjectName("checkBoxData")
        self.horizontalLayout_5.addWidget(self.checkBoxData)
        self.gridLayout_3.addLayout(self.horizontalLayout_5, 0, 0, 1, 1)
        self.refreshButton = QtWidgets.QPushButton(self.ThemesTab)
        self.refreshButton.setObjectName("refreshButton")
        self.gridLayout_3.addWidget(self.refreshButton, 0, 1, 2, 1)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.mColorButton_2 = QgsColorButton(self.ThemesTab)
        self.mColorButton_2.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_2.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_2.setAcceptDrops(False)
        self.mColorButton_2.setColor(QtGui.QColor(255, 215, 80))
        self.mColorButton_2.setShowMenu(False)
        self.mColorButton_2.setProperty("acceptLiveUpdates", False)
        self.mColorButton_2.setObjectName("mColorButton_2")
        self.horizontalLayout_6.addWidget(self.mColorButton_2)
        self.checkBoxGas_low = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxGas_low.setTristate(True)
        self.checkBoxGas_low.setObjectName("checkBoxGas_low")
        self.horizontalLayout_6.addWidget(self.checkBoxGas_low)
        self.gridLayout_3.addLayout(self.horizontalLayout_6, 1, 0, 1, 1)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.mColorButton_3 = QgsColorButton(self.ThemesTab)
        self.mColorButton_3.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_3.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_3.setAcceptDrops(False)
        self.mColorButton_3.setColor(QtGui.QColor(255, 175, 60))
        self.mColorButton_3.setShowMenu(False)
        self.mColorButton_3.setProperty("acceptLiveUpdates", False)
        self.mColorButton_3.setObjectName("mColorButton_3")
        self.horizontalLayout_7.addWidget(self.mColorButton_3)
        self.checkBoxGas_high = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxGas_high.setTristate(True)
        self.checkBoxGas_high.setObjectName("checkBoxGas_high")
        self.horizontalLayout_7.addWidget(self.checkBoxGas_high)
        self.gridLayout_3.addLayout(self.horizontalLayout_7, 2, 0, 1, 1)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.mColorButton_4 = QgsColorButton(self.ThemesTab)
        self.mColorButton_4.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_4.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_4.setAcceptDrops(False)
        self.mColorButton_4.setColor(QtGui.QColor(255, 127, 0))
        self.mColorButton_4.setShowMenu(False)
        self.mColorButton_4.setProperty("acceptLiveUpdates", False)
        self.mColorButton_4.setObjectName("mColorButton_4")
        self.horizontalLayout_8.addWidget(self.mColorButton_4)
        self.checkBoxDanger = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxDanger.setTristate(True)
        self.checkBoxDanger.setObjectName("checkBoxDanger")
        self.horizontalLayout_8.addWidget(self.checkBoxDanger)
        self.gridLayout_3.addLayout(self.horizontalLayout_8, 3, 0, 1, 2)
        self.horizontalLayout_20 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_20.setObjectName("horizontalLayout_20")
        self.mColorButton_8 = QgsColorButton(self.ThemesTab)
        self.mColorButton_8.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_8.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_8.setAcceptDrops(False)
        self.mColorButton_8.setColor(QtGui.QColor(255, 0, 0))
        self.mColorButton_8.setShowMenu(False)
        self.mColorButton_8.setProperty("acceptLiveUpdates", False)
        self.mColorButton_8.setObjectName("mColorButton_8")
        self.horizontalLayout_20.addWidget(self.mColorButton_8)
        self.checkBoxElec_land = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxElec_land.setTristate(True)
        self.checkBoxElec_land.setObjectName("checkBoxElec_land")
        self.horizontalLayout_20.addWidget(self.checkBoxElec_land)
        self.gridLayout_3.addLayout(self.horizontalLayout_20, 4, 0, 1, 2)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.mColorButton_7 = QgsColorButton(self.ThemesTab)
        self.mColorButton_7.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_7.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_7.setAcceptDrops(False)
        self.mColorButton_7.setColor(QtGui.QColor(255, 0, 0))
        self.mColorButton_7.setShowMenu(False)
        self.mColorButton_7.setProperty("acceptLiveUpdates", False)
        self.mColorButton_7.setObjectName("mColorButton_7")
        self.horizontalLayout_11.addWidget(self.mColorButton_7)
        self.checkBoxElec_high = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxElec_high.setTristate(True)
        self.checkBoxElec_high.setObjectName("checkBoxElec_high")
        self.horizontalLayout_11.addWidget(self.checkBoxElec_high)
        self.gridLayout_3.addLayout(self.horizontalLayout_11, 5, 0, 1, 1)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.mColorButton_6 = QgsColorButton(self.ThemesTab)
        self.mColorButton_6.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_6.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_6.setAcceptDrops(False)
        self.mColorButton_6.setColor(QtGui.QColor(200, 0, 0))
        self.mColorButton_6.setShowMenu(False)
        self.mColorButton_6.setProperty("acceptLiveUpdates", False)
        self.mColorButton_6.setObjectName("mColorButton_6")
        self.horizontalLayout_10.addWidget(self.mColorButton_6)
        self.checkBoxElec_mid = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxElec_mid.setTristate(True)
        self.checkBoxElec_mid.setObjectName("checkBoxElec_mid")
        self.horizontalLayout_10.addWidget(self.checkBoxElec_mid)
        self.gridLayout_3.addLayout(self.horizontalLayout_10, 6, 0, 1, 2)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.mColorButton_5 = QgsColorButton(self.ThemesTab)
        self.mColorButton_5.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_5.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_5.setAcceptDrops(False)
        self.mColorButton_5.setColor(QtGui.QColor(150, 0, 0))
        self.mColorButton_5.setShowMenu(False)
        self.mColorButton_5.setObjectName("mColorButton_5")
        self.horizontalLayout_9.addWidget(self.mColorButton_5)
        self.checkBoxElec_low = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxElec_low.setTristate(True)
        self.checkBoxElec_low.setObjectName("checkBoxElec_low")
        self.horizontalLayout_9.addWidget(self.checkBoxElec_low)
        self.gridLayout_3.addLayout(self.horizontalLayout_9, 7, 0, 1, 1)
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
        self.mColorButton_13 = QgsColorButton(self.ThemesTab)
        self.mColorButton_13.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_13.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_13.setAcceptDrops(False)
        self.mColorButton_13.setColor(QtGui.QColor(182, 74, 0))
        self.mColorButton_13.setShowMenu(False)
        self.mColorButton_13.setProperty("acceptLiveUpdates", False)
        self.mColorButton_13.setObjectName("mColorButton_13")
        self.horizontalLayout_16.addWidget(self.mColorButton_13)
        self.checkBoxChemical = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxChemical.setTristate(True)
        self.checkBoxChemical.setObjectName("checkBoxChemical")
        self.horizontalLayout_16.addWidget(self.checkBoxChemical)
        self.gridLayout_3.addLayout(self.horizontalLayout_16, 8, 0, 1, 1)
        self.vectorCheckBox = QtWidgets.QCheckBox(self.ThemesTab)
        self.vectorCheckBox.setObjectName("vectorCheckBox")
        self.gridLayout_3.addWidget(self.vectorCheckBox, 8, 1, 1, 1)
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.mColorButton_9 = QgsColorButton(self.ThemesTab)
        self.mColorButton_9.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_9.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_9.setAcceptDrops(False)
        self.mColorButton_9.setColor(QtGui.QColor(186, 56, 168))
        self.mColorButton_9.setShowMenu(False)
        self.mColorButton_9.setObjectName("mColorButton_9")
        self.horizontalLayout_12.addWidget(self.mColorButton_9)
        self.checkBoxSewer_free = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxSewer_free.setTristate(True)
        self.checkBoxSewer_free.setObjectName("checkBoxSewer_free")
        self.horizontalLayout_12.addWidget(self.checkBoxSewer_free)
        self.gridLayout_3.addLayout(self.horizontalLayout_12, 9, 0, 1, 1)
        self.rasterCheckBox = QtWidgets.QCheckBox(self.ThemesTab)
        self.rasterCheckBox.setEnabled(True)
        self.rasterCheckBox.setObjectName("rasterCheckBox")
        self.gridLayout_3.addWidget(self.rasterCheckBox, 9, 1, 1, 1)
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.mColorButton_10 = QgsColorButton(self.ThemesTab)
        self.mColorButton_10.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_10.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_10.setAcceptDrops(False)
        self.mColorButton_10.setColor(QtGui.QColor(128, 0, 128))
        self.mColorButton_10.setShowMenu(False)
        self.mColorButton_10.setProperty("acceptLiveUpdates", False)
        self.mColorButton_10.setObjectName("mColorButton_10")
        self.horizontalLayout_13.addWidget(self.mColorButton_10)
        self.checkBoxSewer_pressure = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxSewer_pressure.setTristate(True)
        self.checkBoxSewer_pressure.setObjectName("checkBoxSewer_pressure")
        self.horizontalLayout_13.addWidget(self.checkBoxSewer_pressure)
        self.gridLayout_3.addLayout(self.horizontalLayout_13, 10, 0, 1, 1)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.mColorButton_11 = QgsColorButton(self.ThemesTab)
        self.mColorButton_11.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_11.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_11.setAcceptDrops(False)
        self.mColorButton_11.setColor(QtGui.QColor(0, 128, 128))
        self.mColorButton_11.setShowMenu(False)
        self.mColorButton_11.setObjectName("mColorButton_11")
        self.horizontalLayout_14.addWidget(self.mColorButton_11)
        self.checkBoxHeat = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxHeat.setTristate(True)
        self.checkBoxHeat.setObjectName("checkBoxHeat")
        self.horizontalLayout_14.addWidget(self.checkBoxHeat)
        self.gridLayout_3.addLayout(self.horizontalLayout_14, 11, 0, 1, 1)
        self.annotationCheckBox = QtWidgets.QCheckBox(self.ThemesTab)
        self.annotationCheckBox.setTristate(True)
        self.annotationCheckBox.setObjectName("annotationCheckBox")
        self.gridLayout_3.addWidget(self.annotationCheckBox, 11, 1, 1, 1)
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.mColorButton_12 = QgsColorButton(self.ThemesTab)
        self.mColorButton_12.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_12.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_12.setAcceptDrops(False)
        self.mColorButton_12.setColor(QtGui.QColor(0, 0, 255))
        self.mColorButton_12.setShowMenu(False)
        self.mColorButton_12.setObjectName("mColorButton_12")
        self.horizontalLayout_15.addWidget(self.mColorButton_12)
        self.checkBoxWater = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxWater.setTristate(True)
        self.checkBoxWater.setObjectName("checkBoxWater")
        self.horizontalLayout_15.addWidget(self.checkBoxWater)
        self.gridLayout_3.addLayout(self.horizontalLayout_15, 12, 0, 1, 1)
        self.dimensioningCheckBox = QtWidgets.QCheckBox(self.ThemesTab)
        self.dimensioningCheckBox.setTristate(True)
        self.dimensioningCheckBox.setObjectName("dimensioningCheckBox")
        self.gridLayout_3.addWidget(self.dimensioningCheckBox, 12, 1, 1, 1)
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
        self.mColorButton_14 = QgsColorButton(self.ThemesTab)
        self.mColorButton_14.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_14.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_14.setAcceptDrops(False)
        self.mColorButton_14.setColor(QtGui.QColor(145, 138, 111))
        self.mColorButton_14.setShowMenu(False)
        self.mColorButton_14.setObjectName("mColorButton_14")
        self.horizontalLayout_17.addWidget(self.mColorButton_14)
        self.checkBoxOrphan = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxOrphan.setTristate(True)
        self.checkBoxOrphan.setObjectName("checkBoxOrphan")
        self.horizontalLayout_17.addWidget(self.checkBoxOrphan)
        self.gridLayout_3.addLayout(self.horizontalLayout_17, 13, 0, 1, 1)
        self.locationCheckBox = QtWidgets.QCheckBox(self.ThemesTab)
        self.locationCheckBox.setTristate(True)
        self.locationCheckBox.setObjectName("locationCheckBox")
        self.gridLayout_3.addWidget(self.locationCheckBox, 13, 1, 1, 1)
        self.horizontalLayout_18 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_18.setObjectName("horizontalLayout_18")
        self.mColorButton_15 = QgsColorButton(self.ThemesTab)
        self.mColorButton_15.setMinimumSize(QtCore.QSize(40, 10))
        self.mColorButton_15.setMaximumSize(QtCore.QSize(40, 10))
        self.mColorButton_15.setAcceptDrops(False)
        self.mColorButton_15.setColor(QtGui.QColor(111, 92, 16))
        self.mColorButton_15.setShowMenu(False)
        self.mColorButton_15.setObjectName("mColorButton_15")
        self.horizontalLayout_18.addWidget(self.mColorButton_15)
        self.checkBoxOther = QtWidgets.QCheckBox(self.ThemesTab)
        self.checkBoxOther.setTristate(True)
        self.checkBoxOther.setObjectName("checkBoxOther")
        self.horizontalLayout_18.addWidget(self.checkBoxOther)
        self.gridLayout_3.addLayout(self.horizontalLayout_18, 14, 0, 1, 1)
        self.topoCheckBox = QtWidgets.QCheckBox(self.ThemesTab)
        self.topoCheckBox.setTristate(True)
        self.topoCheckBox.setObjectName("topoCheckBox")
        self.gridLayout_3.addWidget(self.topoCheckBox, 14, 1, 1, 1)
        self.tabWidget.addTab(self.ThemesTab, "")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupBox = QtWidgets.QGroupBox(self.tab)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_19 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_19.setObjectName("horizontalLayout_19")
        self.optionMsgDirButton = QtWidgets.QPushButton(self.groupBox)
        self.optionMsgDirButton.setMinimumSize(QtCore.QSize(0, 0))
        self.optionMsgDirButton.setObjectName("optionMsgDirButton")
        self.horizontalLayout_19.addWidget(self.optionMsgDirButton)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_19.addItem(spacerItem5)
        self.verticalLayout_2.addLayout(self.horizontalLayout_19)
        self.textEditDirPreffered = QtWidgets.QTextEdit(self.groupBox)
        self.textEditDirPreffered.setMinimumSize(QtCore.QSize(20, 20))
        self.textEditDirPreffered.setMaximumSize(QtCore.QSize(1000, 100))
        self.textEditDirPreffered.setBaseSize(QtCore.QSize(200, 40))
        self.textEditDirPreffered.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textEditDirPreffered.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
        self.textEditDirPreffered.setReadOnly(True)
        self.textEditDirPreffered.setObjectName("textEditDirPreffered")
        self.verticalLayout_2.addWidget(self.textEditDirPreffered)
        self.verticalLayout_3.addWidget(self.groupBox)
        spacerItem6 = QtWidgets.QSpacerItem(20, 318, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem6)
        self.tabWidget.addTab(self.tab, "")
        self.verticalLayout.addWidget(self.tabWidget)

        self.retranslateUi(B4UdigNL)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(B4UdigNL)

    def retranslateUi(self, B4UdigNL):
        _translate = QtCore.QCoreApplication.translate
        B4UdigNL.setWindowTitle(_translate("B4UdigNL", "KLIC Viewer"))
        self.messageBox.setTitle(_translate("B4UdigNL", "KLIC Berichten"))
        self.openMsgButton.setText(_translate("B4UdigNL", "&Open Folder..."))
        self.openArchiveButton.setText(_translate("B4UdigNL", "Open &Zip-bestand..."))
        self.gotoButton.setText(_translate("B4UdigNL", "&Ga naar"))
        self.bestScaleButton.setText(_translate("B4UdigNL", "Beste S&chaal"))
        self.removeMsgButton.setText(_translate("B4UdigNL", "&Sluit Bericht"))
        self.additionsBox.setTitle(_translate("B4UdigNL", "Bijlagen"))
        self.openDocButton.setText(_translate("B4UdigNL", "Open &Bijlage(n)"))
        self.saveButton.setText(_translate("B4UdigNL", "Opslaan in Project"))
        self.helpButton.setText(_translate("B4UdigNL", "&Help..."))
        self.closeButton.setText(_translate("B4UdigNL", "Afsl&uiten"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.messageTab), _translate("B4UdigNL", "Berichten"))
        self.checkBoxData.setText(_translate("B4UdigNL", "Datatransport"))
        self.refreshButton.setText(_translate("B4UdigNL", "&Ververs"))
        self.checkBoxGas_low.setText(_translate("B4UdigNL", "Gas lage druk"))
        self.checkBoxGas_high.setText(_translate("B4UdigNL", "Gas hoge druk"))
        self.checkBoxDanger.setText(_translate("B4UdigNL", "Buisleiding gevaarlijke inhoud"))
        self.checkBoxElec_land.setText(_translate("B4UdigNL", "Electriciteit landelijk  hoogspanningsnet"))
        self.checkBoxElec_high.setText(_translate("B4UdigNL", "Electriciteit hoogspanning"))
        self.checkBoxElec_mid.setText(_translate("B4UdigNL", "Electriciteit middenspanning"))
        self.checkBoxElec_low.setText(_translate("B4UdigNL", "Electriciteit laagspanning"))
        self.checkBoxChemical.setText(_translate("B4UdigNL", "(Petro) chemie"))
        self.vectorCheckBox.setText(_translate("B4UdigNL", "Vector"))
        self.checkBoxSewer_free.setText(_translate("B4UdigNL", "Riool vrij verval"))
        self.rasterCheckBox.setText(_translate("B4UdigNL", "Raster"))
        self.checkBoxSewer_pressure.setText(_translate("B4UdigNL", "Riool onder druk"))
        self.checkBoxHeat.setText(_translate("B4UdigNL", "Warmte"))
        self.annotationCheckBox.setText(_translate("B4UdigNL", "Annotatie"))
        self.checkBoxWater.setText(_translate("B4UdigNL", "Water "))
        self.dimensioningCheckBox.setText(_translate("B4UdigNL", "Maatvoering"))
        self.checkBoxOrphan.setText(_translate("B4UdigNL", "Wees"))
        self.locationCheckBox.setText(_translate("B4UdigNL", "Ligging"))
        self.checkBoxOther.setText(_translate("B4UdigNL", "Overig"))
        self.topoCheckBox.setText(_translate("B4UdigNL", "Topo"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.ThemesTab), _translate("B4UdigNL", "Thema\'s"))
        self.groupBox.setTitle(_translate("B4UdigNL", "KLIC Berichten"))
        self.optionMsgDirButton.setText(_translate("B4UdigNL", "Standaard folder..."))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("B4UdigNL", "Opties"))
class Ui_DockWidget(object):
    def setupUi(self, DockWidget):
        DockWidget.setObjectName(_fromUtf8("DockWidget"))
        DockWidget.resize(349, 565)
        self.dockWidgetContents = QtGui.QWidget()
        self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.dockWidgetContents)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label = QtGui.QLabel(self.dockWidgetContents)
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_6.addWidget(self.label)
        self.btnPlot = QtGui.QToolButton(self.dockWidgetContents)
        self.btnPlot.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.btnPlot.setAutoRaise(True)
        self.btnPlot.setObjectName(_fromUtf8("btnPlot"))
        self.horizontalLayout_6.addWidget(self.btnPlot)
        self.btnLockCurrent = QtGui.QToolButton(self.dockWidgetContents)
        self.btnLockCurrent.setAutoRaise(True)
        self.btnLockCurrent.setObjectName(_fromUtf8("btnLockCurrent"))
        self.horizontalLayout_6.addWidget(self.btnLockCurrent)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.treeDataSets = DataSetView(self.dockWidgetContents)
        self.treeDataSets.setMinimumSize(QtCore.QSize(0, 55))
        self.treeDataSets.setObjectName(_fromUtf8("treeDataSets"))
        self.verticalLayout_2.addWidget(self.treeDataSets)
        self.label_2 = QtGui.QLabel(self.dockWidgetContents)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.gridLayout_2 = QtGui.QGridLayout()
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.sliderTime = QtGui.QSlider(self.dockWidgetContents)
        self.sliderTime.setOrientation(QtCore.Qt.Horizontal)
        self.sliderTime.setTickPosition(QtGui.QSlider.TicksBelow)
        self.sliderTime.setTickInterval(1)
        self.sliderTime.setObjectName(_fromUtf8("sliderTime"))
        self.gridLayout_2.addWidget(self.sliderTime, 0, 0, 1, 5)
        self.cboTime = QtGui.QComboBox(self.dockWidgetContents)
        self.cboTime.setEditable(True)
        self.cboTime.setInsertPolicy(QtGui.QComboBox.NoInsert)
        self.cboTime.setObjectName(_fromUtf8("cboTime"))
        self.gridLayout_2.addWidget(self.cboTime, 1, 0, 1, 1)
        self.btnFirst = QtGui.QToolButton(self.dockWidgetContents)
        self.btnFirst.setAutoRaise(True)
        self.btnFirst.setObjectName(_fromUtf8("btnFirst"))
        self.gridLayout_2.addWidget(self.btnFirst, 1, 1, 1, 1)
        self.btnPrev = QtGui.QToolButton(self.dockWidgetContents)
        self.btnPrev.setAutoRaise(True)
        self.btnPrev.setObjectName(_fromUtf8("btnPrev"))
        self.gridLayout_2.addWidget(self.btnPrev, 1, 2, 1, 1)
        self.btnNext = QtGui.QToolButton(self.dockWidgetContents)
        self.btnNext.setAutoRaise(True)
        self.btnNext.setObjectName(_fromUtf8("btnNext"))
        self.gridLayout_2.addWidget(self.btnNext, 1, 3, 1, 1)
        self.btnLast = QtGui.QToolButton(self.dockWidgetContents)
        self.btnLast.setAutoRaise(True)
        self.btnLast.setObjectName(_fromUtf8("btnLast"))
        self.gridLayout_2.addWidget(self.btnLast, 1, 4, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout_2)
        self.contoursGroupBox = QgsCollapsibleGroupBox(self.dockWidgetContents)
        self.contoursGroupBox.setCheckable(True)
        self.contoursGroupBox.setObjectName(_fromUtf8("contoursGroupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.contoursGroupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_3 = QtGui.QLabel(self.contoursGroupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_2.addWidget(self.label_3)
        self.contourTransparencySlider = QtGui.QSlider(self.contoursGroupBox)
        self.contourTransparencySlider.setMaximum(255)
        self.contourTransparencySlider.setPageStep(20)
        self.contourTransparencySlider.setOrientation(QtCore.Qt.Horizontal)
        self.contourTransparencySlider.setObjectName(_fromUtf8("contourTransparencySlider"))
        self.horizontalLayout_2.addWidget(self.contourTransparencySlider)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.radContourBasic = QtGui.QRadioButton(self.contoursGroupBox)
        self.radContourBasic.setChecked(True)
        self.radContourBasic.setObjectName(_fromUtf8("radContourBasic"))
        self.horizontalLayout_3.addWidget(self.radContourBasic)
        self.cboContourBasic = QgsColorRampComboBox(self.contoursGroupBox)
        self.cboContourBasic.setObjectName(_fromUtf8("cboContourBasic"))
        self.horizontalLayout_3.addWidget(self.cboContourBasic)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.contourCustomRangeCheckBox = QtGui.QCheckBox(self.contoursGroupBox)
        self.contourCustomRangeCheckBox.setText(_fromUtf8(""))
        self.contourCustomRangeCheckBox.setObjectName(_fromUtf8("contourCustomRangeCheckBox"))
        self.horizontalLayout.addWidget(self.contourCustomRangeCheckBox)
        self.contourMinLabel = QtGui.QLabel(self.contoursGroupBox)
        self.contourMinLabel.setObjectName(_fromUtf8("contourMinLabel"))
        self.horizontalLayout.addWidget(self.contourMinLabel)
        self.contourMinLineEdit = QtGui.QLineEdit(self.contoursGroupBox)
        self.contourMinLineEdit.setEnabled(False)
        self.contourMinLineEdit.setObjectName(_fromUtf8("contourMinLineEdit"))
        self.horizontalLayout.addWidget(self.contourMinLineEdit)
        self.contourMaxLabel = QtGui.QLabel(self.contoursGroupBox)
        self.contourMaxLabel.setObjectName(_fromUtf8("contourMaxLabel"))
        self.horizontalLayout.addWidget(self.contourMaxLabel)
        self.contourMaxLineEdit = QtGui.QLineEdit(self.contoursGroupBox)
        self.contourMaxLineEdit.setEnabled(False)
        self.contourMaxLineEdit.setObjectName(_fromUtf8("contourMaxLineEdit"))
        self.horizontalLayout.addWidget(self.contourMaxLineEdit)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.radContourAdvanced = QtGui.QRadioButton(self.contoursGroupBox)
        self.radContourAdvanced.setObjectName(_fromUtf8("radContourAdvanced"))
        self.horizontalLayout_4.addWidget(self.radContourAdvanced)
        self.lblAdvancedPreview = QtGui.QLabel(self.contoursGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lblAdvancedPreview.sizePolicy().hasHeightForWidth())
        self.lblAdvancedPreview.setSizePolicy(sizePolicy)
        self.lblAdvancedPreview.setMinimumSize(QtCore.QSize(100, 0))
        self.lblAdvancedPreview.setText(_fromUtf8(""))
        self.lblAdvancedPreview.setObjectName(_fromUtf8("lblAdvancedPreview"))
        self.horizontalLayout_4.addWidget(self.lblAdvancedPreview)
        self.btnAdvanced = QtGui.QToolButton(self.contoursGroupBox)
        self.btnAdvanced.setPopupMode(QtGui.QToolButton.InstantPopup)
        self.btnAdvanced.setAutoRaise(True)
        self.btnAdvanced.setArrowType(QtCore.Qt.NoArrow)
        self.btnAdvanced.setObjectName(_fromUtf8("btnAdvanced"))
        self.horizontalLayout_4.addWidget(self.btnAdvanced)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.verticalLayout_2.addWidget(self.contoursGroupBox)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setContentsMargins(-1, -1, 7, -1)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.displayMeshCheckBox = QtGui.QCheckBox(self.dockWidgetContents)
        self.displayMeshCheckBox.setObjectName(_fromUtf8("displayMeshCheckBox"))
        self.gridLayout.addWidget(self.displayMeshCheckBox, 1, 0, 1, 1)
        self.btnMeshColor = QgsColorButton(self.dockWidgetContents)
        self.btnMeshColor.setObjectName(_fromUtf8("btnMeshColor"))
        self.gridLayout.addWidget(self.btnMeshColor, 1, 2, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem1)
        self.btnVectorOptions = QtGui.QToolButton(self.dockWidgetContents)
        self.btnVectorOptions.setAutoRaise(True)
        self.btnVectorOptions.setObjectName(_fromUtf8("btnVectorOptions"))
        self.horizontalLayout_5.addWidget(self.btnVectorOptions)
        self.gridLayout.addLayout(self.horizontalLayout_5, 0, 2, 1, 1)
        self.displayVectorsCheckBox = QtGui.QCheckBox(self.dockWidgetContents)
        self.displayVectorsCheckBox.setObjectName(_fromUtf8("displayVectorsCheckBox"))
        self.gridLayout.addWidget(self.displayVectorsCheckBox, 0, 0, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem2, 0, 1, 2, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        self.valueLabel = QtGui.QLabel(self.dockWidgetContents)
        self.valueLabel.setObjectName(_fromUtf8("valueLabel"))
        self.verticalLayout_2.addWidget(self.valueLabel)
        DockWidget.setWidget(self.dockWidgetContents)

        self.retranslateUi(DockWidget)
        QtCore.QObject.connect(self.displayVectorsCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), DockWidget.displayVectorsButtonToggled)
        QtCore.QObject.connect(self.displayMeshCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), DockWidget.displayMeshButtonToggled)
        QtCore.QObject.connect(self.btnVectorOptions, QtCore.SIGNAL(_fromUtf8("clicked()")), DockWidget.displayVectorPropsDialog)
        QtCore.QMetaObject.connectSlotsByName(DockWidget)
        DockWidget.setTabOrder(self.treeDataSets, self.sliderTime)
        DockWidget.setTabOrder(self.sliderTime, self.cboTime)
        DockWidget.setTabOrder(self.cboTime, self.btnFirst)
        DockWidget.setTabOrder(self.btnFirst, self.btnPrev)
        DockWidget.setTabOrder(self.btnPrev, self.btnNext)
        DockWidget.setTabOrder(self.btnNext, self.btnLast)
        DockWidget.setTabOrder(self.btnLast, self.contoursGroupBox)
        DockWidget.setTabOrder(self.contoursGroupBox, self.contourTransparencySlider)
        DockWidget.setTabOrder(self.contourTransparencySlider, self.radContourBasic)
        DockWidget.setTabOrder(self.radContourBasic, self.cboContourBasic)
        DockWidget.setTabOrder(self.cboContourBasic, self.contourCustomRangeCheckBox)
        DockWidget.setTabOrder(self.contourCustomRangeCheckBox, self.contourMinLineEdit)
        DockWidget.setTabOrder(self.contourMinLineEdit, self.contourMaxLineEdit)
        DockWidget.setTabOrder(self.contourMaxLineEdit, self.radContourAdvanced)
        DockWidget.setTabOrder(self.radContourAdvanced, self.btnAdvanced)
        DockWidget.setTabOrder(self.btnAdvanced, self.displayVectorsCheckBox)
        DockWidget.setTabOrder(self.displayVectorsCheckBox, self.btnVectorOptions)
        DockWidget.setTabOrder(self.btnVectorOptions, self.displayMeshCheckBox)
        DockWidget.setTabOrder(self.displayMeshCheckBox, self.btnMeshColor)

    def retranslateUi(self, DockWidget):
        DockWidget.setWindowTitle(_translate("DockWidget", "Crayfish", None))
        self.label.setText(_translate("DockWidget", "Quantity", None))
        self.btnPlot.setText(_translate("DockWidget", "Plot", None))
        self.btnLockCurrent.setToolTip(_translate("DockWidget", "Lock rendering to the current dataset\n"
"\n"
"When locked, Crayfish will render contours (and vectors)\n"
"from the selected dataset.\n"
"\n"
"When unlocked, it is possible to combine rendering\n"
"of contours and vectors from different datasets\n"
"by clicking the icons next to dataset names.", None))
        self.label_2.setText(_translate("DockWidget", "Output Time", None))
        self.btnFirst.setText(_translate("DockWidget", "|<", None))
        self.btnPrev.setText(_translate("DockWidget", "<", None))
        self.btnNext.setText(_translate("DockWidget", ">", None))
        self.btnLast.setText(_translate("DockWidget", ">|", None))
        self.contoursGroupBox.setTitle(_translate("DockWidget", "Display Contours", None))
        self.label_3.setText(_translate("DockWidget", "Transparency", None))
        self.radContourBasic.setText(_translate("DockWidget", "Basic", None))
        self.contourMinLabel.setText(_translate("DockWidget", "Min", None))
        self.contourMaxLabel.setText(_translate("DockWidget", "Max", None))
        self.radContourAdvanced.setText(_translate("DockWidget", "Advanced", None))
        self.btnAdvanced.setToolTip(_translate("DockWidget", "Advanced Contour Options", None))
        self.btnAdvanced.setText(_translate("DockWidget", "...", None))
        self.displayMeshCheckBox.setText(_translate("DockWidget", "Display Mesh", None))
        self.btnVectorOptions.setToolTip(_translate("DockWidget", "Vector Options", None))
        self.btnVectorOptions.setText(_translate("DockWidget", "...", None))
        self.displayVectorsCheckBox.setText(_translate("DockWidget", "Display Vectors", None))
        self.valueLabel.setText(_translate("DockWidget", "(0.000) 0.000", None))
    def appendGroupBox(self, layerTreeGroup, type):
        if layerTreeGroup is not None:
            title = layerTreeGroup.name()
        else:
            raise Exception("mainGroup not defined")

        if type == "img" or type == "tif":
            isRaster = True
        else:
            isRaster = False

        self.iGroupBox += 1
        layerTreeGroup.uiId = self.iGroupBox
        layerTreeGroup.type = type

        self.groupBoxList[self.iGroupBox] = dict()
        self.groupBoxList[self.iGroupBox]["id"] = self.iGroupBox
        self.groupBoxList[self.iGroupBox]["type"] = type
        self.groupBoxList[self.iGroupBox]["title"] = title
        self.groupBoxList[self.iGroupBox]["treeItem"] = layerTreeGroup
        self.groupBoxList[self.iGroupBox]["groupBox"] = None

        spacerItem = self.gridLayout_2.itemAtPosition(self.iGroupBox - 1, 0)
        if spacerItem is not None:
            self.gridLayout_2.removeItem(spacerItem)

        groupBox_1 = self.groupBoxList[
            self.iGroupBox]["groupBox"] = QMyGroupBox(
                self.scrollAreaWidgetContents)
        groupBox_1.id = self.iGroupBox
        sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            groupBox_1.sizePolicy().hasHeightForWidth())
        groupBox_1.setSizePolicy(sizePolicy)
        groupBox_1.setMaximumSize(QSize(280, 130))
        groupBox_1.setAlignment(Qt.AlignHCenter | Qt.AlignTop)
        groupBox_1.setObjectName("groupBox_{}".format(self.iGroupBox))
        gridLayout = QGridLayout(groupBox_1)
        gridLayout.setObjectName("gridLayout")

        horLayout1_1 = QHBoxLayout()
        horLayout1_1.setObjectName("horLayout1_{}".format(self.iGroupBox))
        btnToSpWin_1 = QPushButton(groupBox_1)
        btnToSpWin_1.setObjectName("btnToSpWin_{}".format(self.iGroupBox))
        horLayout1_1.addWidget(btnToSpWin_1)
        # btnRemove_1 = QPushButton(groupBox_1)
        sizePolicy = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        # sizePolicy.setHeightForWidth(btnRemove_1.sizePolicy().hasHeightForWidth())
        # btnRemove_1.setSizePolicy(sizePolicy)
        # btnRemove_1.setObjectName("btnRemove_{}".format(self.iGroupBox))
        # horLayout1_1.addWidget(btnRemove_1)
        gridLayout.addLayout(horLayout1_1, 0, 0, 1, 1)

        horLayout2_1 = QHBoxLayout()
        horLayout2_1.setObjectName("horLayout2_{}".format(self.iGroupBox))
        lblTrans_1 = QLabel(groupBox_1)
        lblTrans_1.setObjectName("lblTrans_{}".format(self.iGroupBox))
        horLayout2_1.addWidget(lblTrans_1)

        sldTrans_1 = QSlider(groupBox_1)
        sldTrans_1.setOrientation(Qt.Horizontal)
        sldTrans_1.setObjectName("sldTrans_{}".format(self.iGroupBox))
        # 값의 범위를 0 ~ 90 으로 한정
        sldTrans_1.setRange(0, 90)
        horLayout2_1.addWidget(sldTrans_1)
        gridLayout.addLayout(horLayout2_1, 1, 0, 1, 1)

        groupBox_1.setTitle(title)
        btnToSpWin_1.setText(u"분할창에 띄우기")
        # btnRemove_1.setText(u"제거")
        lblTrans_1.setText(u"투명도:")

        if not isRaster:
            horLayout3_1 = QHBoxLayout()
            horLayout3_1.setObjectName("horLayout3_{}".format(self.iGroupBox))
            lblColor_1 = QLabel(groupBox_1)
            lblColor_1.setObjectName("lblColor_{}".format(self.iGroupBox))
            lblColor_1.setText(u"색  상:")
            horLayout3_1.addWidget(lblColor_1)
            btnSelColor_1 = QgsColorButton(groupBox_1)
            btnSelColor_1.setObjectName("btnSelColor_{}".format(
                self.iGroupBox))
            horLayout3_1.addWidget(btnSelColor_1)
            gridLayout.addLayout(horLayout3_1, 2, 0, 1, 1)

        self.gridLayout_2.addWidget(groupBox_1, self.iGroupBox - 1, 0, 1, 1)

        # 그룹을 위한 버튼들 액션 추가
        btnToSpWin_1.clicked.connect(
            lambda: self._onGroupBoxSubButtonClick(btnToSpWin_1))
        # btnRemove_1.clicked.connect(lambda: self._onGroupBoxSubButtonClick(btnRemove_1))
        if not isRaster:
            btnSelColor_1.clicked.connect(
                lambda: self._onGroupBoxColorButtonClick(btnSelColor_1))
            btnSelColor_1.colorChanged.connect(
                lambda: self._onGroupBoxColorChanged(btnSelColor_1))
        sldTrans_1.sliderReleased.connect(
            lambda: self._onGroupBoxSliderReleased(sldTrans_1))

        # 레이어 트리의 제거시 액션 추가
        layerTreeGroup.setCustomProperty("groupId", self.iGroupBox)
        groupBox_1.groupId = self.iGroupBox

        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, self.iGroupBox, 0, 1, 1)
Example #14
0
class Ui_ScenePropertiesWidget(object):
    def setupUi(self, ScenePropertiesWidget):
        ScenePropertiesWidget.setObjectName("ScenePropertiesWidget")
        ScenePropertiesWidget.resize(328, 411)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(ScenePropertiesWidget)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupBox_1 = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox_1.setObjectName("groupBox_1")
        self.formLayout_3 = QtWidgets.QFormLayout(self.groupBox_1)
        self.formLayout_3.setObjectName("formLayout_3")
        self.label_3 = QtWidgets.QLabel(self.groupBox_1)
        self.label_3.setObjectName("label_3")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_3)
        self.lineEdit_BaseSize = QtWidgets.QLineEdit(self.groupBox_1)
        self.lineEdit_BaseSize.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.lineEdit_BaseSize.setObjectName("lineEdit_BaseSize")
        self.formLayout_3.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEdit_BaseSize)
        self.label = QtWidgets.QLabel(self.groupBox_1)
        self.label.setObjectName("label")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label)
        self.lineEdit_zFactor = QtWidgets.QLineEdit(self.groupBox_1)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEdit_zFactor.sizePolicy().hasHeightForWidth())
        self.lineEdit_zFactor.setSizePolicy(sizePolicy)
        self.lineEdit_zFactor.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineEdit_zFactor.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.lineEdit_zFactor.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.lineEdit_zFactor.setObjectName("lineEdit_zFactor")
        self.formLayout_3.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lineEdit_zFactor)
        self.label_2 = QtWidgets.QLabel(self.groupBox_1)
        self.label_2.setObjectName("label_2")
        self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lineEdit_zShift = QtWidgets.QLineEdit(self.groupBox_1)
        self.lineEdit_zShift.setObjectName("lineEdit_zShift")
        self.horizontalLayout.addWidget(self.lineEdit_zShift)
        self.checkBox_autoZShift = QtWidgets.QCheckBox(self.groupBox_1)
        self.checkBox_autoZShift.setObjectName("checkBox_autoZShift")
        self.horizontalLayout.addWidget(self.checkBox_autoZShift)
        self.formLayout_3.setLayout(2, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout)
        self.verticalLayout_3.addWidget(self.groupBox_1)
        self.groupBox = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox.setObjectName("groupBox")
        self.formLayout = QtWidgets.QFormLayout(self.groupBox)
        self.formLayout.setObjectName("formLayout")
        self.label_4 = QtWidgets.QLabel(self.groupBox)
        self.label_4.setObjectName("label_4")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_4)
        self.comboBox_MaterialType = QtWidgets.QComboBox(self.groupBox)
        self.comboBox_MaterialType.setObjectName("comboBox_MaterialType")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_MaterialType)
        self.verticalLayout_3.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.radioButton_Sky = QtWidgets.QRadioButton(self.groupBox_2)
        self.radioButton_Sky.setChecked(True)
        self.radioButton_Sky.setObjectName("radioButton_Sky")
        self.verticalLayout_2.addWidget(self.radioButton_Sky)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.radioButton_Color = QtWidgets.QRadioButton(self.groupBox_2)
        self.radioButton_Color.setMinimumSize(QtCore.QSize(110, 0))
        self.radioButton_Color.setObjectName("radioButton_Color")
        self.horizontalLayout_2.addWidget(self.radioButton_Color)
        self.colorButton_Color = QgsColorButton(self.groupBox_2)
        self.colorButton_Color.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.colorButton_Color.sizePolicy().hasHeightForWidth())
        self.colorButton_Color.setSizePolicy(sizePolicy)
        self.colorButton_Color.setObjectName("colorButton_Color")
        self.horizontalLayout_2.addWidget(self.colorButton_Color)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout.setObjectName("verticalLayout")
        self.radioButton_ProjectCRS = QtWidgets.QRadioButton(self.groupBox_3)
        self.radioButton_ProjectCRS.setChecked(True)
        self.radioButton_ProjectCRS.setObjectName("radioButton_ProjectCRS")
        self.verticalLayout.addWidget(self.radioButton_ProjectCRS)
        self.radioButton_WGS84 = QtWidgets.QRadioButton(self.groupBox_3)
        self.radioButton_WGS84.setObjectName("radioButton_WGS84")
        self.verticalLayout.addWidget(self.radioButton_WGS84)
        self.verticalLayout_3.addWidget(self.groupBox_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)

        self.retranslateUi(ScenePropertiesWidget)
        self.radioButton_Color.toggled['bool'].connect(self.colorButton_Color.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(ScenePropertiesWidget)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_BaseSize, self.lineEdit_zFactor)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_zFactor, self.lineEdit_zShift)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_zShift, self.checkBox_autoZShift)
        ScenePropertiesWidget.setTabOrder(self.checkBox_autoZShift, self.comboBox_MaterialType)
        ScenePropertiesWidget.setTabOrder(self.comboBox_MaterialType, self.radioButton_Sky)
        ScenePropertiesWidget.setTabOrder(self.radioButton_Sky, self.radioButton_Color)
        ScenePropertiesWidget.setTabOrder(self.radioButton_Color, self.colorButton_Color)
        ScenePropertiesWidget.setTabOrder(self.colorButton_Color, self.radioButton_ProjectCRS)
        ScenePropertiesWidget.setTabOrder(self.radioButton_ProjectCRS, self.radioButton_WGS84)

    def retranslateUi(self, ScenePropertiesWidget):
        _translate = QtCore.QCoreApplication.translate
        ScenePropertiesWidget.setWindowTitle(_translate("ScenePropertiesWidget", "Form"))
        self.groupBox_1.setTitle(_translate("ScenePropertiesWidget", "&World Coordinates"))
        self.label_3.setText(_translate("ScenePropertiesWidget", "Base width"))
        self.label.setText(_translate("ScenePropertiesWidget", "Vertical exaggeration"))
        self.label_2.setText(_translate("ScenePropertiesWidget", "Vertical shift"))
        self.checkBox_autoZShift.setToolTip(_translate("ScenePropertiesWidget", "Automatic vertical shift adjustment"))
        self.checkBox_autoZShift.setText(_translate("ScenePropertiesWidget", "Auto"))
        self.groupBox.setTitle(_translate("ScenePropertiesWidget", "Material"))
        self.label_4.setText(_translate("ScenePropertiesWidget", "Basic type"))
        self.groupBox_2.setTitle(_translate("ScenePropertiesWidget", "&Background"))
        self.radioButton_Sky.setText(_translate("ScenePropertiesWidget", "Sky"))
        self.radioButton_Color.setText(_translate("ScenePropertiesWidget", "Solid color"))
        self.groupBox_3.setTitle(_translate("ScenePropertiesWidget", "&Display of Coordinates"))
        self.radioButton_ProjectCRS.setText(_translate("ScenePropertiesWidget", "Coordinates in the project CRS"))
        self.radioButton_WGS84.setText(_translate("ScenePropertiesWidget", "Latitude and longitude (WGS84)"))
Example #15
0
class Ui_PCPropertiesWidget(object):
    def setupUi(self, PCPropertiesWidget):
        PCPropertiesWidget.setObjectName("PCPropertiesWidget")
        PCPropertiesWidget.resize(335, 420)
        self.verticalLayout = QtWidgets.QVBoxLayout(PCPropertiesWidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(PCPropertiesWidget)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label)
        self.lineEdit_Name = QtWidgets.QLineEdit(self.groupBox)
        self.lineEdit_Name.setObjectName("lineEdit_Name")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lineEdit_Name)
        self.label_3 = QtWidgets.QLabel(self.groupBox)
        self.label_3.setObjectName("label_3")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_3)
        self.url = QtWidgets.QLineEdit(self.groupBox)
        self.url.setStyleSheet("background-color: #F0F0F0;")
        self.url.setReadOnly(True)
        self.url.setObjectName("url")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.url)
        self.verticalLayout_2.addLayout(self.formLayout)
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.textBrowser = QtWidgets.QTextBrowser(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
        self.textBrowser.setSizePolicy(sizePolicy)
        self.textBrowser.setMinimumSize(QtCore.QSize(0, 100))
        self.textBrowser.setObjectName("textBrowser")
        self.verticalLayout_2.addWidget(self.textBrowser)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(PCPropertiesWidget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.formLayout_2 = QtWidgets.QFormLayout(self.groupBox_2)
        self.formLayout_2.setObjectName("formLayout_2")
        self.label_17 = QtWidgets.QLabel(self.groupBox_2)
        self.label_17.setObjectName("label_17")
        self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_17)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.horizontalSlider_Opacity = QtWidgets.QSlider(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.horizontalSlider_Opacity.sizePolicy().hasHeightForWidth())
        self.horizontalSlider_Opacity.setSizePolicy(sizePolicy)
        self.horizontalSlider_Opacity.setMinimumSize(QtCore.QSize(0, 22))
        self.horizontalSlider_Opacity.setMaximum(100)
        self.horizontalSlider_Opacity.setProperty("value", 100)
        self.horizontalSlider_Opacity.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider_Opacity.setObjectName("horizontalSlider_Opacity")
        self.gridLayout.addWidget(self.horizontalSlider_Opacity, 0, 1, 1, 1)
        self.spinBox_Opacity = QtWidgets.QSpinBox(self.groupBox_2)
        self.spinBox_Opacity.setEnabled(True)
        self.spinBox_Opacity.setMinimumSize(QtCore.QSize(0, 22))
        self.spinBox_Opacity.setPrefix("")
        self.spinBox_Opacity.setMinimum(0)
        self.spinBox_Opacity.setMaximum(100)
        self.spinBox_Opacity.setSingleStep(1)
        self.spinBox_Opacity.setProperty("value", 100)
        self.spinBox_Opacity.setObjectName("spinBox_Opacity")
        self.gridLayout.addWidget(self.spinBox_Opacity, 0, 2, 1, 1)
        self.formLayout_2.setLayout(2, QtWidgets.QFormLayout.FieldRole, self.gridLayout)
        self.label_4 = QtWidgets.QLabel(self.groupBox_2)
        self.label_4.setObjectName("label_4")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_4)
        self.comboBox_ColorType = QtWidgets.QComboBox(self.groupBox_2)
        self.comboBox_ColorType.setObjectName("comboBox_ColorType")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.comboBox_ColorType)
        self.label_Color = QtWidgets.QLabel(self.groupBox_2)
        self.label_Color.setObjectName("label_Color")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_Color)
        self.colorButton_Color = QgsColorButton(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.colorButton_Color.sizePolicy().hasHeightForWidth())
        self.colorButton_Color.setSizePolicy(sizePolicy)
        self.colorButton_Color.setMinimumSize(QtCore.QSize(0, 22))
        self.colorButton_Color.setObjectName("colorButton_Color")
        self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.colorButton_Color)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(PCPropertiesWidget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.checkBox_BoxVisible = QtWidgets.QCheckBox(self.groupBox_3)
        self.checkBox_BoxVisible.setObjectName("checkBox_BoxVisible")
        self.verticalLayout_3.addWidget(self.checkBox_BoxVisible)
        self.checkBox_Visible = QtWidgets.QCheckBox(self.groupBox_3)
        self.checkBox_Visible.setChecked(True)
        self.checkBox_Visible.setObjectName("checkBox_Visible")
        self.verticalLayout_3.addWidget(self.checkBox_Visible)
        self.verticalLayout.addWidget(self.groupBox_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)

        self.retranslateUi(PCPropertiesWidget)
        self.spinBox_Opacity.valueChanged['int'].connect(self.horizontalSlider_Opacity.setValue)
        self.horizontalSlider_Opacity.valueChanged['int'].connect(self.spinBox_Opacity.setValue)
        QtCore.QMetaObject.connectSlotsByName(PCPropertiesWidget)
        PCPropertiesWidget.setTabOrder(self.lineEdit_Name, self.url)
        PCPropertiesWidget.setTabOrder(self.url, self.textBrowser)
        PCPropertiesWidget.setTabOrder(self.textBrowser, self.comboBox_ColorType)
        PCPropertiesWidget.setTabOrder(self.comboBox_ColorType, self.colorButton_Color)
        PCPropertiesWidget.setTabOrder(self.colorButton_Color, self.horizontalSlider_Opacity)
        PCPropertiesWidget.setTabOrder(self.horizontalSlider_Opacity, self.spinBox_Opacity)
        PCPropertiesWidget.setTabOrder(self.spinBox_Opacity, self.checkBox_BoxVisible)
        PCPropertiesWidget.setTabOrder(self.checkBox_BoxVisible, self.checkBox_Visible)

    def retranslateUi(self, PCPropertiesWidget):
        _translate = QtCore.QCoreApplication.translate
        PCPropertiesWidget.setWindowTitle(_translate("PCPropertiesWidget", "Form"))
        self.groupBox.setTitle(_translate("PCPropertiesWidget", "&General"))
        self.label.setText(_translate("PCPropertiesWidget", "Name"))
        self.label_3.setText(_translate("PCPropertiesWidget", "URL"))
        self.label_2.setText(_translate("PCPropertiesWidget", "Information"))
        self.groupBox_2.setTitle(_translate("PCPropertiesWidget", "&Material"))
        self.label_17.setText(_translate("PCPropertiesWidget", "Opacity (%)"))
        self.label_4.setText(_translate("PCPropertiesWidget", "Color type"))
        self.label_Color.setText(_translate("PCPropertiesWidget", "Color"))
        self.groupBox_3.setTitle(_translate("PCPropertiesWidget", "&Other Options"))
        self.checkBox_BoxVisible.setText(_translate("PCPropertiesWidget", "Show bounding boxes"))
        self.checkBox_Visible.setText(_translate("PCPropertiesWidget", "Visible on load"))
Example #16
0
class Ui_ScenePropertiesWidget(object):
    def setupUi(self, ScenePropertiesWidget):
        ScenePropertiesWidget.setObjectName("ScenePropertiesWidget")
        ScenePropertiesWidget.resize(385, 657)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(ScenePropertiesWidget)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupBox_1 = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox_1.setObjectName("groupBox_1")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_1)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.lineEdit_BaseSize = QtWidgets.QLineEdit(self.groupBox_1)
        self.lineEdit_BaseSize.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEdit_BaseSize.setObjectName("lineEdit_BaseSize")
        self.gridLayout_4.addWidget(self.lineEdit_BaseSize, 0, 1, 1, 2)
        self.label_2 = QtWidgets.QLabel(self.groupBox_1)
        self.label_2.setObjectName("label_2")
        self.gridLayout_4.addWidget(self.label_2, 2, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_1)
        self.label_3.setObjectName("label_3")
        self.gridLayout_4.addWidget(self.label_3, 0, 0, 1, 1)
        self.checkBox_autoZShift = QtWidgets.QCheckBox(self.groupBox_1)
        self.checkBox_autoZShift.setObjectName("checkBox_autoZShift")
        self.gridLayout_4.addWidget(self.checkBox_autoZShift, 2, 2, 1, 1)
        self.lineEdit_zFactor = QtWidgets.QLineEdit(self.groupBox_1)
        self.lineEdit_zFactor.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.lineEdit_zFactor.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEdit_zFactor.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.lineEdit_zFactor.setObjectName("lineEdit_zFactor")
        self.gridLayout_4.addWidget(self.lineEdit_zFactor, 1, 1, 1, 2)
        self.label = QtWidgets.QLabel(self.groupBox_1)
        self.label.setObjectName("label")
        self.gridLayout_4.addWidget(self.label, 1, 0, 1, 1)
        self.lineEdit_zShift = QtWidgets.QLineEdit(self.groupBox_1)
        self.lineEdit_zShift.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEdit_zShift.setObjectName("lineEdit_zShift")
        self.gridLayout_4.addWidget(self.lineEdit_zShift, 2, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_1)
        self.groupBox_4 = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.checkBox_FixAspectRatio = QtWidgets.QCheckBox(self.groupBox_4)
        self.checkBox_FixAspectRatio.setObjectName("checkBox_FixAspectRatio")
        self.gridLayout_3.addWidget(self.checkBox_FixAspectRatio, 4, 0, 1, 1)
        self.radioButton_FixedExtent = QtWidgets.QRadioButton(self.groupBox_4)
        self.radioButton_FixedExtent.setObjectName("radioButton_FixedExtent")
        self.gridLayout_3.addWidget(self.radioButton_FixedExtent, 1, 0, 1, 1)
        self.radioButton_UseCanvasExtent = QtWidgets.QRadioButton(self.groupBox_4)
        self.radioButton_UseCanvasExtent.setChecked(True)
        self.radioButton_UseCanvasExtent.setObjectName("radioButton_UseCanvasExtent")
        self.gridLayout_3.addWidget(self.radioButton_UseCanvasExtent, 0, 0, 1, 1)
        self.gridLayout_Extent = QtWidgets.QGridLayout()
        self.gridLayout_Extent.setObjectName("gridLayout_Extent")
        self.label_10 = QtWidgets.QLabel(self.groupBox_4)
        self.label_10.setObjectName("label_10")
        self.gridLayout_Extent.addWidget(self.label_10, 7, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_4)
        self.label_7.setObjectName("label_7")
        self.gridLayout_Extent.addWidget(self.label_7, 4, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_4)
        self.label_6.setObjectName("label_6")
        self.gridLayout_Extent.addWidget(self.label_6, 4, 0, 1, 1)
        self.lineEdit_CenterY = QtWidgets.QLineEdit(self.groupBox_4)
        self.lineEdit_CenterY.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEdit_CenterY.setObjectName("lineEdit_CenterY")
        self.gridLayout_Extent.addWidget(self.lineEdit_CenterY, 1, 3, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_4)
        self.label_8.setObjectName("label_8")
        self.gridLayout_Extent.addWidget(self.label_8, 1, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_4)
        self.label_5.setObjectName("label_5")
        self.gridLayout_Extent.addWidget(self.label_5, 1, 0, 1, 1)
        self.pushButton_SelectExtent = QtWidgets.QPushButton(self.groupBox_4)
        self.pushButton_SelectExtent.setObjectName("pushButton_SelectExtent")
        self.gridLayout_Extent.addWidget(self.pushButton_SelectExtent, 7, 3, 1, 1)
        self.lineEdit_Height = QtWidgets.QLineEdit(self.groupBox_4)
        self.lineEdit_Height.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEdit_Height.setObjectName("lineEdit_Height")
        self.gridLayout_Extent.addWidget(self.lineEdit_Height, 4, 3, 1, 1)
        self.lineEdit_Width = QtWidgets.QLineEdit(self.groupBox_4)
        self.lineEdit_Width.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEdit_Width.setObjectName("lineEdit_Width")
        self.gridLayout_Extent.addWidget(self.lineEdit_Width, 4, 1, 1, 1)
        self.lineEdit_Rotation = QtWidgets.QLineEdit(self.groupBox_4)
        self.lineEdit_Rotation.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly)
        self.lineEdit_Rotation.setObjectName("lineEdit_Rotation")
        self.gridLayout_Extent.addWidget(self.lineEdit_Rotation, 7, 1, 1, 1)
        self.lineEdit_CenterX = QtWidgets.QLineEdit(self.groupBox_4)
        self.lineEdit_CenterX.setInputMethodHints(QtCore.Qt.ImhFormattedNumbersOnly|QtCore.Qt.ImhLowercaseOnly)
        self.lineEdit_CenterX.setObjectName("lineEdit_CenterX")
        self.gridLayout_Extent.addWidget(self.lineEdit_CenterX, 1, 1, 1, 1)
        self.gridLayout_3.addLayout(self.gridLayout_Extent, 3, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_4)
        self.groupBox = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_4 = QtWidgets.QLabel(self.groupBox)
        self.label_4.setObjectName("label_4")
        self.gridLayout_5.addWidget(self.label_4, 0, 0, 1, 1)
        self.checkBox_Outline = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_Outline.setObjectName("checkBox_Outline")
        self.gridLayout_5.addWidget(self.checkBox_Outline, 1, 0, 1, 2)
        self.comboBox_MaterialType = QtWidgets.QComboBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox_MaterialType.sizePolicy().hasHeightForWidth())
        self.comboBox_MaterialType.setSizePolicy(sizePolicy)
        self.comboBox_MaterialType.setObjectName("comboBox_MaterialType")
        self.gridLayout_5.addWidget(self.comboBox_MaterialType, 0, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.radioButton_Sky = QtWidgets.QRadioButton(self.groupBox_2)
        self.radioButton_Sky.setChecked(True)
        self.radioButton_Sky.setObjectName("radioButton_Sky")
        self.gridLayout_2.addWidget(self.radioButton_Sky, 0, 0, 1, 2)
        self.radioButton_Color = QtWidgets.QRadioButton(self.groupBox_2)
        self.radioButton_Color.setMinimumSize(QtCore.QSize(110, 0))
        self.radioButton_Color.setObjectName("radioButton_Color")
        self.gridLayout_2.addWidget(self.radioButton_Color, 2, 0, 1, 1)
        self.colorButton_Color = QgsColorButton(self.groupBox_2)
        self.colorButton_Color.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.colorButton_Color.sizePolicy().hasHeightForWidth())
        self.colorButton_Color.setSizePolicy(sizePolicy)
        self.colorButton_Color.setObjectName("colorButton_Color")
        self.gridLayout_2.addWidget(self.colorButton_Color, 2, 1, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(ScenePropertiesWidget)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout.setObjectName("verticalLayout")
        self.radioButton_ProjectCRS = QtWidgets.QRadioButton(self.groupBox_3)
        self.radioButton_ProjectCRS.setChecked(True)
        self.radioButton_ProjectCRS.setObjectName("radioButton_ProjectCRS")
        self.verticalLayout.addWidget(self.radioButton_ProjectCRS)
        self.radioButton_WGS84 = QtWidgets.QRadioButton(self.groupBox_3)
        self.radioButton_WGS84.setObjectName("radioButton_WGS84")
        self.verticalLayout.addWidget(self.radioButton_WGS84)
        self.verticalLayout_3.addWidget(self.groupBox_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)

        self.retranslateUi(ScenePropertiesWidget)
        self.radioButton_Color.toggled['bool'].connect(self.colorButton_Color.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(ScenePropertiesWidget)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_BaseSize, self.lineEdit_zFactor)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_zFactor, self.lineEdit_zShift)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_zShift, self.checkBox_autoZShift)
        ScenePropertiesWidget.setTabOrder(self.checkBox_autoZShift, self.radioButton_UseCanvasExtent)
        ScenePropertiesWidget.setTabOrder(self.radioButton_UseCanvasExtent, self.radioButton_FixedExtent)
        ScenePropertiesWidget.setTabOrder(self.radioButton_FixedExtent, self.lineEdit_CenterX)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_CenterX, self.lineEdit_CenterY)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_CenterY, self.lineEdit_Width)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_Width, self.lineEdit_Height)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_Height, self.lineEdit_Rotation)
        ScenePropertiesWidget.setTabOrder(self.lineEdit_Rotation, self.pushButton_SelectExtent)
        ScenePropertiesWidget.setTabOrder(self.pushButton_SelectExtent, self.checkBox_FixAspectRatio)
        ScenePropertiesWidget.setTabOrder(self.checkBox_FixAspectRatio, self.comboBox_MaterialType)
        ScenePropertiesWidget.setTabOrder(self.comboBox_MaterialType, self.checkBox_Outline)
        ScenePropertiesWidget.setTabOrder(self.checkBox_Outline, self.radioButton_Sky)
        ScenePropertiesWidget.setTabOrder(self.radioButton_Sky, self.radioButton_Color)
        ScenePropertiesWidget.setTabOrder(self.radioButton_Color, self.colorButton_Color)
        ScenePropertiesWidget.setTabOrder(self.colorButton_Color, self.radioButton_ProjectCRS)
        ScenePropertiesWidget.setTabOrder(self.radioButton_ProjectCRS, self.radioButton_WGS84)

    def retranslateUi(self, ScenePropertiesWidget):
        _translate = QtCore.QCoreApplication.translate
        ScenePropertiesWidget.setWindowTitle(_translate("ScenePropertiesWidget", "Form"))
        self.groupBox_1.setTitle(_translate("ScenePropertiesWidget", "&World Coordinates"))
        self.label_2.setText(_translate("ScenePropertiesWidget", "Vertical shift"))
        self.label_3.setText(_translate("ScenePropertiesWidget", "Base width"))
        self.checkBox_autoZShift.setToolTip(_translate("ScenePropertiesWidget", "Automatic vertical shift adjustment"))
        self.checkBox_autoZShift.setText(_translate("ScenePropertiesWidget", "Auto"))
        self.label.setText(_translate("ScenePropertiesWidget", "Vertical exaggeration"))
        self.groupBox_4.setTitle(_translate("ScenePropertiesWidget", "Map &Extent"))
        self.checkBox_FixAspectRatio.setText(_translate("ScenePropertiesWidget", "Fix aspect ratio to 1:1"))
        self.radioButton_FixedExtent.setText(_translate("ScenePropertiesWidget", "Fixed extent"))
        self.radioButton_UseCanvasExtent.setText(_translate("ScenePropertiesWidget", "Use map canvas extent"))
        self.label_10.setText(_translate("ScenePropertiesWidget", "Rotation"))
        self.label_7.setText(_translate("ScenePropertiesWidget", "Height"))
        self.label_6.setText(_translate("ScenePropertiesWidget", "Width"))
        self.label_8.setText(_translate("ScenePropertiesWidget", "Center Y"))
        self.label_5.setText(_translate("ScenePropertiesWidget", "Center X"))
        self.pushButton_SelectExtent.setText(_translate("ScenePropertiesWidget", "Select..."))
        self.groupBox.setTitle(_translate("ScenePropertiesWidget", "&Material and Effect"))
        self.label_4.setText(_translate("ScenePropertiesWidget", "Material type"))
        self.checkBox_Outline.setToolTip(_translate("ScenePropertiesWidget", "Check this to enable outline effect"))
        self.checkBox_Outline.setText(_translate("ScenePropertiesWidget", "Enable outline effect"))
        self.groupBox_2.setTitle(_translate("ScenePropertiesWidget", "&Background"))
        self.radioButton_Sky.setText(_translate("ScenePropertiesWidget", "Sky"))
        self.radioButton_Color.setText(_translate("ScenePropertiesWidget", "Solid color"))
        self.groupBox_3.setTitle(_translate("ScenePropertiesWidget", "&Display of Coordinates"))
        self.radioButton_ProjectCRS.setText(_translate("ScenePropertiesWidget", "Coordinates in the project CRS"))
        self.radioButton_WGS84.setText(_translate("ScenePropertiesWidget", "Latitude and longitude (WGS84)"))
class Ui_Mapmashup(object):
    def setupUi(self, Mapmashup):
        Mapmashup.setObjectName("Mapmashup")
        Mapmashup.resize(327, 427)
        self.verticalLayout = QtWidgets.QVBoxLayout(Mapmashup)
        self.verticalLayout.setObjectName("verticalLayout")
        self.hlImageFolder = QtWidgets.QHBoxLayout()
        self.hlImageFolder.setObjectName("hlImageFolder")
        self.leImageFolder = QtWidgets.QLineEdit(Mapmashup)
        self.leImageFolder.setObjectName("leImageFolder")
        self.hlImageFolder.addWidget(self.leImageFolder)
        self.butBrowseImg = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butBrowseImg.sizePolicy().hasHeightForWidth())
        self.butBrowseImg.setSizePolicy(sizePolicy)
        self.butBrowseImg.setMinimumSize(QtCore.QSize(100, 0))
        self.butBrowseImg.setMaximumSize(QtCore.QSize(100, 16777215))
        self.butBrowseImg.setObjectName("butBrowseImg")
        self.hlImageFolder.addWidget(self.butBrowseImg)
        self.verticalLayout.addLayout(self.hlImageFolder)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.leRegistrationFolder = QtWidgets.QLineEdit(Mapmashup)
        self.leRegistrationFolder.setObjectName("leRegistrationFolder")
        self.horizontalLayout_2.addWidget(self.leRegistrationFolder)
        self.butBrowseReg = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butBrowseReg.sizePolicy().hasHeightForWidth())
        self.butBrowseReg.setSizePolicy(sizePolicy)
        self.butBrowseReg.setMinimumSize(QtCore.QSize(100, 0))
        self.butBrowseReg.setMaximumSize(QtCore.QSize(100, 16777215))
        self.butBrowseReg.setObjectName("butBrowseReg")
        self.horizontalLayout_2.addWidget(self.butBrowseReg)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.cboRegistrations = QtWidgets.QComboBox(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cboRegistrations.sizePolicy().hasHeightForWidth())
        self.cboRegistrations.setSizePolicy(sizePolicy)
        self.cboRegistrations.setObjectName("cboRegistrations")
        self.horizontalLayout_5.addWidget(self.cboRegistrations)
        self.butRefresh = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butRefresh.sizePolicy().hasHeightForWidth())
        self.butRefresh.setSizePolicy(sizePolicy)
        self.butRefresh.setMinimumSize(QtCore.QSize(100, 0))
        self.butRefresh.setMaximumSize(QtCore.QSize(100, 16777215))
        self.butRefresh.setObjectName("butRefresh")
        self.horizontalLayout_5.addWidget(self.butRefresh)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_2 = QtWidgets.QLabel(Mapmashup)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout.addWidget(self.label_2)
        self.leName = QtWidgets.QLineEdit(Mapmashup)
        self.leName.setObjectName("leName")
        self.horizontalLayout.addWidget(self.leName)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label = QtWidgets.QLabel(Mapmashup)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label)
        self.hsTransparency = QtWidgets.QSlider(Mapmashup)
        self.hsTransparency.setOrientation(QtCore.Qt.Horizontal)
        self.hsTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow)
        self.hsTransparency.setTickInterval(10)
        self.hsTransparency.setObjectName("hsTransparency")
        self.horizontalLayout_3.addWidget(self.hsTransparency)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.groupBox = QtWidgets.QGroupBox(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 61))
        self.groupBox.setMaximumSize(QtCore.QSize(3000, 61))
        self.groupBox.setObjectName("groupBox")
        self.cbTransparentColour = QtWidgets.QCheckBox(self.groupBox)
        self.cbTransparentColour.setGeometry(QtCore.QRect(10, 15, 211, 17))
        self.cbTransparentColour.setObjectName("cbTransparentColour")
        self.label_3 = QtWidgets.QLabel(self.groupBox)
        self.label_3.setGeometry(QtCore.QRect(10, 35, 56, 20))
        self.label_3.setObjectName("label_3")
        self.mcbTransparentColour = QgsColorButton(self.groupBox)
        self.mcbTransparentColour.setGeometry(QtCore.QRect(43, 33, 61, 25))
        self.mcbTransparentColour.setColor(QtGui.QColor(255, 255, 255))
        self.mcbTransparentColour.setDefaultColor(QtGui.QColor(255, 255, 255))
        self.mcbTransparentColour.setObjectName("mcbTransparentColour")
        self.verticalLayout.addWidget(self.groupBox)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.leStyleFile = QtWidgets.QLineEdit(Mapmashup)
        self.leStyleFile.setObjectName("leStyleFile")
        self.horizontalLayout_6.addWidget(self.leStyleFile)
        self.pbBrowseStyleFile = QtWidgets.QPushButton(Mapmashup)
        self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(100, 0))
        self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile")
        self.horizontalLayout_6.addWidget(self.pbBrowseStyleFile)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.cbApplyStyle = QtWidgets.QCheckBox(Mapmashup)
        self.cbApplyStyle.setObjectName("cbApplyStyle")
        self.verticalLayout.addWidget(self.cbApplyStyle)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.butLoadImage = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butLoadImage.sizePolicy().hasHeightForWidth())
        self.butLoadImage.setSizePolicy(sizePolicy)
        self.butLoadImage.setMinimumSize(QtCore.QSize(30, 30))
        self.butLoadImage.setMaximumSize(QtCore.QSize(30, 30))
        self.butLoadImage.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("images/mashup.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        self.butLoadImage.setIcon(icon)
        self.butLoadImage.setIconSize(QtCore.QSize(26, 26))
        self.butLoadImage.setObjectName("butLoadImage")
        self.horizontalLayout_4.addWidget(self.butLoadImage)
        self.butLoadImageFile = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butLoadImageFile.sizePolicy().hasHeightForWidth())
        self.butLoadImageFile.setSizePolicy(sizePolicy)
        self.butLoadImageFile.setMinimumSize(QtCore.QSize(30, 30))
        self.butLoadImageFile.setMaximumSize(QtCore.QSize(30, 30))
        self.butLoadImageFile.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("images/mashup2.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butLoadImageFile.setIcon(icon1)
        self.butLoadImageFile.setIconSize(QtCore.QSize(26, 26))
        self.butLoadImageFile.setObjectName("butLoadImageFile")
        self.horizontalLayout_4.addWidget(self.butLoadImageFile)
        self.butLoadImageBrowse = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butLoadImageBrowse.sizePolicy().hasHeightForWidth())
        self.butLoadImageBrowse.setSizePolicy(sizePolicy)
        self.butLoadImageBrowse.setMinimumSize(QtCore.QSize(30, 30))
        self.butLoadImageBrowse.setMaximumSize(QtCore.QSize(30, 30))
        self.butLoadImageBrowse.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("images/mashup3.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butLoadImageBrowse.setIcon(icon2)
        self.butLoadImageBrowse.setIconSize(QtCore.QSize(26, 26))
        self.butLoadImageBrowse.setObjectName("butLoadImageBrowse")
        self.horizontalLayout_4.addWidget(self.butLoadImageBrowse)
        self.butClearLast = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butClearLast.sizePolicy().hasHeightForWidth())
        self.butClearLast.setSizePolicy(sizePolicy)
        self.butClearLast.setMinimumSize(QtCore.QSize(30, 30))
        self.butClearLast.setMaximumSize(QtCore.QSize(30, 30))
        self.butClearLast.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("images/removelayer.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butClearLast.setIcon(icon3)
        self.butClearLast.setIconSize(QtCore.QSize(26, 26))
        self.butClearLast.setObjectName("butClearLast")
        self.horizontalLayout_4.addWidget(self.butClearLast)
        self.butClear = QtWidgets.QPushButton(Mapmashup)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butClear.sizePolicy().hasHeightForWidth())
        self.butClear.setSizePolicy(sizePolicy)
        self.butClear.setMinimumSize(QtCore.QSize(30, 30))
        self.butClear.setMaximumSize(QtCore.QSize(30, 30))
        self.butClear.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("images/removelayers.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butClear.setIcon(icon4)
        self.butClear.setIconSize(QtCore.QSize(26, 26))
        self.butClear.setObjectName("butClear")
        self.horizontalLayout_4.addWidget(self.butClear)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.butHelp = QtWidgets.QPushButton(Mapmashup)
        self.butHelp.setMinimumSize(QtCore.QSize(30, 30))
        self.butHelp.setMaximumSize(QtCore.QSize(30, 30))
        self.butHelp.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.butHelp.setIcon(icon5)
        self.butHelp.setIconSize(QtCore.QSize(24, 24))
        self.butHelp.setObjectName("butHelp")
        self.horizontalLayout_4.addWidget(self.butHelp)
        self.butGithub = QtWidgets.QPushButton(Mapmashup)
        self.butGithub.setMinimumSize(QtCore.QSize(30, 30))
        self.butGithub.setMaximumSize(QtCore.QSize(30, 30))
        self.butGithub.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.butGithub.setIcon(icon6)
        self.butGithub.setIconSize(QtCore.QSize(24, 24))
        self.butGithub.setObjectName("butGithub")
        self.horizontalLayout_4.addWidget(self.butGithub)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        spacerItem1 = QtWidgets.QSpacerItem(20, 150,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.groupBox.raise_()
        self.cbApplyStyle.raise_()

        self.retranslateUi(Mapmashup)
        QtCore.QMetaObject.connectSlotsByName(Mapmashup)

    def retranslateUi(self, Mapmashup):
        _translate = QtCore.QCoreApplication.translate
        Mapmashup.setWindowTitle(_translate("Mapmashup", "FSC QGIS plugin"))
        self.leImageFolder.setToolTip(
            _translate("Mapmashup", "Path of folder for temp image files"))
        self.butBrowseImg.setToolTip(
            _translate("Mapmashup", "Browse for image folder"))
        self.butBrowseImg.setText(_translate("Mapmashup", "Image folder"))
        self.leRegistrationFolder.setToolTip(
            _translate("Mapmashup", "Folder where WLD files are kept"))
        self.butBrowseReg.setToolTip(
            _translate("Mapmashup", "Browse for folder containing WLD files"))
        self.butBrowseReg.setText(
            _translate("Mapmashup", "Registration folder"))
        self.cboRegistrations.setToolTip(
            _translate("Mapmashup", "Select WLD registration info"))
        self.butRefresh.setToolTip(
            _translate("Mapmashup", "Refresh the list of WLD files"))
        self.butRefresh.setText(_translate("Mapmashup", "Refresh"))
        self.label_2.setText(_translate("Mapmashup", "Layer name"))
        self.leName.setToolTip(
            _translate("Mapmashup", "Text to be used in layer name"))
        self.label.setText(_translate("Mapmashup", "Global transparency"))
        self.hsTransparency.setToolTip(
            _translate("Mapmashup", "Set the layer\'s global transparency"))
        self.groupBox.setTitle(_translate("Mapmashup", "Transparent colour"))
        self.cbTransparentColour.setText(
            _translate("Mapmashup", "Set transparent background colour"))
        self.label_3.setText(_translate("Mapmashup", "Colour"))
        self.mcbTransparentColour.setToolTip(
            _translate("Mapmashup",
                       "Use this button to select transparent colour"))
        self.mcbTransparentColour.setColorDialogTitle(
            _translate("Mapmashup", "Select transparent colour"))
        self.leStyleFile.setToolTip(
            _translate("Mapmashup",
                       "Path of style file to apply to created maps"))
        self.pbBrowseStyleFile.setText(
            _translate("Mapmashup", "Browse style file"))
        self.cbApplyStyle.setText(_translate("Mapmashup", "Apply style"))
        self.butLoadImage.setToolTip(
            _translate(
                "Mapmashup",
                "Paste image from clipboard to map with specified registration"
            ))
        self.butLoadImageFile.setToolTip(
            _translate(
                "Mapmashup",
                "Paste most recent  image from image folder to map with specified registration"
            ))
        self.butLoadImageBrowse.setToolTip(
            _translate(
                "Mapmashup",
                "Browse for image to paste into map with specified registration"
            ))
        self.butClearLast.setToolTip(
            _translate("Mapmashup", "Remove last mashed map"))
        self.butClear.setToolTip(
            _translate("Mapmashup", "Remove all mashed maps"))
        self.butHelp.setToolTip(
            _translate(
                "Mapmashup",
                "<html><head/><body><p><span style=\" font-size:12pt;\">Get more information about this tool and help on using it. This links to a webpage with up-to-date information about the tool. </span></p></body></html>"
            ))
        self.butGithub.setToolTip(
            _translate(
                "Mapmashup",
                "<html><head/><body><p><span style=\" font-size:12pt; font-weight:600;\">Report an issue with this tool.</span><span style=\" font-size:12pt;\"> Using this channel is the best way to get attention quickly. Issues can be bug reports, enhancement requests or just questions. Anyone can view current issues, but to add a new issue you will need to sign up for a free Github account (very easy).</span></p></body></html>"
            ))