Ejemplo n.º 1
0
    def __init__(self, setting, widget, options):
        txt = options.get("dialogTitle", "")
        color_widget = QgsColorButtonV2(widget, txt)
        signal = color_widget.colorChanged

        SettingWidget.__init__(self, setting, color_widget, options, signal)
        self.widget.setAllowAlpha(self.options.get("allowAlpha", False))
 def __init__(self, layer, style, renderer):
     QgsRendererV2Widget.__init__(self, layer, style)
     self.setupUi(self)
     if renderer is None or renderer.type() != "RandomRenderer":
         self.r = RandomRenderer()
     else:
         self.r = renderer
     # setup UI
     self.btn1 = QgsColorButtonV2()
     self.btn1.setColor(self.r.syms[0].color())
     self.vbox = QVBoxLayout()
     self.vbox.addWidget(self.btn1)
     self.setLayout(self.vbox)
     self.connect(self.btn1, SIGNAL("clicked()"), self.setColor1)
Ejemplo n.º 3
0
    def testClearingColors(self):
        """
        Test setting colors to transparent
        """

        # start with a valid color
        button = QgsColorButtonV2()
        button.setAllowAlpha(True)
        button.setColor(QColor(255, 100, 200, 255))
        self.assertEqual(button.color(), QColor(255, 100, 200, 255))

        # now set to no color
        button.setToNoColor()
        # ensure that only the alpha channel has changed - not the other color components
        self.assertEqual(button.color(), QColor(255, 100, 200, 0))
Ejemplo n.º 4
0
    def __init__(self,
                 parent=None,
                 value_field='',
                 def_color='#2564e1',
                 legend_name=''):
        QWidget.__init__(self, parent)

        self._value_field = value_field

        #Insert controls for editing fill color and legend names
        self.lbl_fill_color = QLabel(self)
        self.lbl_fill_color.setText(
            QApplication.translate("ValueConfigWidget", "Fill color"))
        self.fill_color_btn = QgsColorButtonV2(
            self,
            QApplication.translate("ValueConfigWidget",
                                   "Select bar fill color"))
        self.fill_color_btn.setMaximumHeight(30)
        self.fill_color_btn.setMinimumHeight(30)
        self.fill_color_btn.setMinimumWidth(100)
        if QColor.isValidColor(def_color):
            default_color = QColor(def_color)
            self.fill_color_btn.setColor(default_color)

        self.lbl_legend_name = QLabel(self)
        self.lbl_legend_name.setText(
            QApplication.translate("ValueConfigWidget", "Legend name"))
        self.txt_legend_name = QLineEdit(self)
        self.txt_legend_name.setMaxLength(50)
        self.txt_legend_name.setMinimumHeight(30)
        self.txt_legend_name.setText(legend_name)

        self.layout = QGridLayout(self)
        self.layout.addWidget(self.lbl_fill_color, 0, 0, 1, 1)
        self.layout.addWidget(self.fill_color_btn, 0, 1, 1, 1)
        self.layout.addWidget(self.lbl_legend_name, 1, 0, 1, 1)
        self.layout.addWidget(self.txt_legend_name, 1, 1, 1, 1)
    def __init__(self, parent):
        self.setObjectName(_fromUtf8("self"))
        self.resize(393, 995)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
        self.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(self)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_11 = QtGui.QLabel(self)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setStyleSheet(
            _fromUtf8(
                "padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);"
            ))
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.verticalLayout.addWidget(self.label_11)
        self.scrollArea = QtGui.QScrollArea(self)
        self.scrollArea.setFrameShape(QtGui.QFrame.StyledPanel)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(
            0, 0, 375, 1478))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.mainLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.mainLayout.setObjectName(_fromUtf8("mainLayout"))
        self.mMainPropertiesColGroupBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mMainPropertiesColGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mMainPropertiesColGroupBox.setProperty("syncGroup",
                                                    _fromUtf8("composeritem"))
        self.mMainPropertiesColGroupBox.setProperty("collapsed", False)
        self.mMainPropertiesColGroupBox.setObjectName(
            _fromUtf8("mMainPropertiesColGroupBox"))
        self.formLayout = QtGui.QFormLayout(self.mMainPropertiesColGroupBox)
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setLabelAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignVCenter)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.mTitleLabel = QtGui.QLabel(self.mMainPropertiesColGroupBox)
        self.mTitleLabel.setObjectName(_fromUtf8("mTitleLabel"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole,
                                  self.mTitleLabel)
        self.mTitleLineEdit = QtGui.QLineEdit(self.mMainPropertiesColGroupBox)
        self.mTitleLineEdit.setObjectName(_fromUtf8("mTitleLineEdit"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole,
                                  self.mTitleLineEdit)
        self.mMapLabel = QtGui.QLabel(self.mMainPropertiesColGroupBox)
        self.mMapLabel.setObjectName(_fromUtf8("mMapLabel"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole,
                                  self.mMapLabel)
        self.mMapComboBox = QtGui.QComboBox(self.mMainPropertiesColGroupBox)
        self.mMapComboBox.setObjectName(_fromUtf8("mMapComboBox"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.mMapComboBox)
        self.label = QtGui.QLabel(self.mMainPropertiesColGroupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label)
        self.mWrapCharLineEdit = QtGui.QLineEdit(
            self.mMainPropertiesColGroupBox)
        self.mWrapCharLineEdit.setFrame(True)
        self.mWrapCharLineEdit.setObjectName(_fromUtf8("mWrapCharLineEdit"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.mWrapCharLineEdit)
        self.label_15 = QtGui.QLabel(self.mMainPropertiesColGroupBox)
        self.label_15.setObjectName(_fromUtf8("label_15"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole,
                                  self.label_15)
        self.mTitleAlignCombo = QtGui.QComboBox(
            self.mMainPropertiesColGroupBox)
        self.mTitleAlignCombo.setObjectName(_fromUtf8("mTitleAlignCombo"))
        self.mTitleAlignCombo.addItem(_fromUtf8(""))
        self.mTitleAlignCombo.addItem(_fromUtf8(""))
        self.mTitleAlignCombo.addItem(_fromUtf8(""))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole,
                                  self.mTitleAlignCombo)
        self.mainLayout.addWidget(self.mMainPropertiesColGroupBox)
        self.mLegendItemColGroupBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mLegendItemColGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mLegendItemColGroupBox.setProperty("syncGroup",
                                                _fromUtf8("composeritem"))
        self.mLegendItemColGroupBox.setProperty("collapsed", False)
        self.mLegendItemColGroupBox.setObjectName(
            _fromUtf8("mLegendItemColGroupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.mLegendItemColGroupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mCheckBoxAutoUpdate = QtGui.QCheckBox(self.mLegendItemColGroupBox)
        self.mCheckBoxAutoUpdate.setChecked(True)
        self.mCheckBoxAutoUpdate.setObjectName(
            _fromUtf8("mCheckBoxAutoUpdate"))
        self.horizontalLayout.addWidget(self.mCheckBoxAutoUpdate)
        spacerItem = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.mUpdateAllPushButton = QtGui.QToolButton(
            self.mLegendItemColGroupBox)
        self.mUpdateAllPushButton.setObjectName(
            _fromUtf8("mUpdateAllPushButton"))
        self.horizontalLayout.addWidget(self.mUpdateAllPushButton)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.mItemTreeView = QgsLayerTreeView(self.mLegendItemColGroupBox)
        self.mItemTreeView.setMinimumSize(QtCore.QSize(0, 250))
        self.mItemTreeView.setSelectionMode(
            QtGui.QAbstractItemView.ContiguousSelection)
        self.mItemTreeView.setHeaderHidden(True)
        self.mItemTreeView.setObjectName(_fromUtf8("mItemTreeView"))
        self.mItemTreeView.header().setVisible(False)
        self.verticalLayout_2.addWidget(self.mItemTreeView)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(3)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.mMoveDownToolButton = QtGui.QToolButton(
            self.mLegendItemColGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMoveDownToolButton.sizePolicy().hasHeightForWidth())
        self.mMoveDownToolButton.setSizePolicy(sizePolicy)
        self.mMoveDownToolButton.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(
                    "Resource/images/themes/default/mActionArrowDown.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mMoveDownToolButton.setIcon(icon)
        self.mMoveDownToolButton.setIconSize(QtCore.QSize(20, 20))
        self.mMoveDownToolButton.setObjectName(
            _fromUtf8("mMoveDownToolButton"))
        self.horizontalLayout_2.addWidget(self.mMoveDownToolButton)
        self.mMoveUpToolButton = QtGui.QToolButton(self.mLegendItemColGroupBox)
        self.mMoveUpToolButton.setText(_fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(
                    "Resource/images/themes/default/mActionArrowUp.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mMoveUpToolButton.setIcon(icon1)
        self.mMoveUpToolButton.setIconSize(QtCore.QSize(20, 20))
        self.mMoveUpToolButton.setObjectName(_fromUtf8("mMoveUpToolButton"))
        self.horizontalLayout_2.addWidget(self.mMoveUpToolButton)
        self.mAddGroupToolButton = QtGui.QToolButton(
            self.mLegendItemColGroupBox)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(
                    "Resource/images/themes/default/mActionAddGroup.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mAddGroupToolButton.setIcon(icon2)
        self.mAddGroupToolButton.setIconSize(QtCore.QSize(20, 20))
        self.mAddGroupToolButton.setObjectName(
            _fromUtf8("mAddGroupToolButton"))
        self.horizontalLayout_2.addWidget(self.mAddGroupToolButton)
        self.mAddToolButton = QtGui.QToolButton(self.mLegendItemColGroupBox)
        self.mAddToolButton.setText(_fromUtf8(""))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(
            QtGui.QPixmap(
                _fromUtf8("Resource/images/themes/default/symbologyAdd.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mAddToolButton.setIcon(icon3)
        self.mAddToolButton.setIconSize(QtCore.QSize(20, 20))
        self.mAddToolButton.setObjectName(_fromUtf8("mAddToolButton"))
        self.horizontalLayout_2.addWidget(self.mAddToolButton)
        self.mRemoveToolButton = QtGui.QToolButton(self.mLegendItemColGroupBox)
        self.mRemoveToolButton.setText(_fromUtf8(""))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(
                    "Resource/images/themes/default/symbologyRemove.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mRemoveToolButton.setIcon(icon4)
        self.mRemoveToolButton.setIconSize(QtCore.QSize(20, 20))
        self.mRemoveToolButton.setObjectName(_fromUtf8("mRemoveToolButton"))
        self.horizontalLayout_2.addWidget(self.mRemoveToolButton)
        self.mEditPushButton = QtGui.QToolButton(self.mLegendItemColGroupBox)
        self.mEditPushButton.setText(_fromUtf8(""))
        icon5 = QtGui.QIcon()
        icon5.addPixmap(
            QtGui.QPixmap(
                _fromUtf8("Resource/images/themes/default/symbologyEdit.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mEditPushButton.setIcon(icon5)
        self.mEditPushButton.setIconSize(QtCore.QSize(20, 20))
        self.mEditPushButton.setObjectName(_fromUtf8("mEditPushButton"))
        self.horizontalLayout_2.addWidget(self.mEditPushButton)
        self.mCountToolButton = QtGui.QToolButton(self.mLegendItemColGroupBox)
        self.mCountToolButton.setEnabled(False)
        self.mCountToolButton.setText(_fromUtf8(""))
        icon6 = QtGui.QIcon()
        icon6.addPixmap(
            QtGui.QPixmap(
                _fromUtf8("Resource/images/themes/default/mActionSum.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mCountToolButton.setIcon(icon6)
        self.mCountToolButton.setIconSize(QtCore.QSize(20, 20))
        self.mCountToolButton.setCheckable(True)
        self.mCountToolButton.setObjectName(_fromUtf8("mCountToolButton"))
        self.horizontalLayout_2.addWidget(self.mCountToolButton)
        self.mFilterByMapToolButton = QtGui.QToolButton(
            self.mLegendItemColGroupBox)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(
                    "Resource/images/themes/default/mActionFilter2.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mFilterByMapToolButton.setIcon(icon7)
        self.mFilterByMapToolButton.setIconSize(QtCore.QSize(20, 20))
        self.mFilterByMapToolButton.setCheckable(True)
        self.mFilterByMapToolButton.setObjectName(
            _fromUtf8("mFilterByMapToolButton"))
        self.horizontalLayout_2.addWidget(self.mFilterByMapToolButton)
        self.mExpressionFilterButton = QgsLegendFilterButton(
            self.mLegendItemColGroupBox)
        self.mExpressionFilterButton.setText(_fromUtf8(""))
        icon8 = QtGui.QIcon()
        icon8.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(
                    "Resource/images/themes/default/mIconExpressionFilter.svg")
            ), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mExpressionFilterButton.setIcon(icon8)
        self.mExpressionFilterButton.setIconSize(QtCore.QSize(20, 20))
        self.mExpressionFilterButton.setObjectName(
            _fromUtf8("mExpressionFilterButton"))
        self.horizontalLayout_2.addWidget(self.mExpressionFilterButton)
        spacerItem1 = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.mFilterLegendByAtlasCheckBox = QtGui.QCheckBox(
            self.mLegendItemColGroupBox)
        self.mFilterLegendByAtlasCheckBox.setObjectName(
            _fromUtf8("mFilterLegendByAtlasCheckBox"))
        self.verticalLayout_2.addWidget(self.mFilterLegendByAtlasCheckBox)
        self.mainLayout.addWidget(self.mLegendItemColGroupBox)
        self.mFontsColGroupBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mFontsColGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mFontsColGroupBox.setProperty("syncGroup",
                                           _fromUtf8("composeritem"))
        self.mFontsColGroupBox.setProperty("collapsed", True)
        self.mFontsColGroupBox.setObjectName(_fromUtf8("mFontsColGroupBox"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.mFontsColGroupBox)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.mTitleFontButton = QtGui.QPushButton(self.mFontsColGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mTitleFontButton.sizePolicy().hasHeightForWidth())
        self.mTitleFontButton.setSizePolicy(sizePolicy)
        self.mTitleFontButton.setObjectName(_fromUtf8("mTitleFontButton"))
        self.verticalLayout_3.addWidget(self.mTitleFontButton)
        self.mLayerFontButton = QtGui.QPushButton(self.mFontsColGroupBox)
        self.mLayerFontButton.setObjectName(_fromUtf8("mLayerFontButton"))
        self.verticalLayout_3.addWidget(self.mLayerFontButton)
        self.mGroupFontButton = QtGui.QPushButton(self.mFontsColGroupBox)
        self.mGroupFontButton.setObjectName(_fromUtf8("mGroupFontButton"))
        self.verticalLayout_3.addWidget(self.mGroupFontButton)
        self.mItemFontButton = QtGui.QPushButton(self.mFontsColGroupBox)
        self.mItemFontButton.setObjectName(_fromUtf8("mItemFontButton"))
        self.verticalLayout_3.addWidget(self.mItemFontButton)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_16 = QtGui.QLabel(self.mFontsColGroupBox)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.horizontalLayout_3.addWidget(self.label_16)
        self.mFontColorButton = QgsColorButtonV2(self.mFontsColGroupBox)
        self.mFontColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mFontColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mFontColorButton.setText(_fromUtf8(""))
        self.mFontColorButton.setObjectName(_fromUtf8("mFontColorButton"))
        self.horizontalLayout_3.addWidget(self.mFontColorButton)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.mainLayout.addWidget(self.mFontsColGroupBox)
        self.mColumnsColGroupBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mColumnsColGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mColumnsColGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mColumnsColGroupBox.setProperty("collapsed", True)
        self.mColumnsColGroupBox.setObjectName(
            _fromUtf8("mColumnsColGroupBox"))
        self.formLayout_2 = QtGui.QFormLayout(self.mColumnsColGroupBox)
        self.formLayout_2.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_2 = QtGui.QLabel(self.mColumnsColGroupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_2)
        self.mColumnCountSpinBox = QgsSpinBox(self.mColumnsColGroupBox)
        self.mColumnCountSpinBox.setPrefix(_fromUtf8(""))
        self.mColumnCountSpinBox.setMinimum(1)
        self.mColumnCountSpinBox.setMaximum(1000)
        self.mColumnCountSpinBox.setObjectName(
            _fromUtf8("mColumnCountSpinBox"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.mColumnCountSpinBox)
        self.mEqualColumnWidthCheckBox = QtGui.QCheckBox(
            self.mColumnsColGroupBox)
        self.mEqualColumnWidthCheckBox.setObjectName(
            _fromUtf8("mEqualColumnWidthCheckBox"))
        self.formLayout_2.setWidget(3, QtGui.QFormLayout.SpanningRole,
                                    self.mEqualColumnWidthCheckBox)
        self.mSplitLayerCheckBox = QtGui.QCheckBox(self.mColumnsColGroupBox)
        self.mSplitLayerCheckBox.setObjectName(
            _fromUtf8("mSplitLayerCheckBox"))
        self.formLayout_2.setWidget(4, QtGui.QFormLayout.SpanningRole,
                                    self.mSplitLayerCheckBox)
        self.mainLayout.addWidget(self.mColumnsColGroupBox)
        self.mSymbolsColGroupBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mSymbolsColGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mSymbolsColGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mSymbolsColGroupBox.setProperty("collapsed", True)
        self.mSymbolsColGroupBox.setObjectName(
            _fromUtf8("mSymbolsColGroupBox"))
        self.formLayout_3 = QtGui.QFormLayout(self.mSymbolsColGroupBox)
        self.formLayout_3.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_3.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_3.setObjectName(_fromUtf8("formLayout_3"))
        self.label_3 = QtGui.QLabel(self.mSymbolsColGroupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_3)
        self.mSymbolWidthSpinBox = QgsDoubleSpinBox(self.mSymbolsColGroupBox)
        self.mSymbolWidthSpinBox.setPrefix(_fromUtf8(""))
        self.mSymbolWidthSpinBox.setProperty("showClearButton", False)
        self.mSymbolWidthSpinBox.setObjectName(
            _fromUtf8("mSymbolWidthSpinBox"))
        self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.mSymbolWidthSpinBox)
        self.label_4 = QtGui.QLabel(self.mSymbolsColGroupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_4)
        self.mSymbolHeightSpinBox = QgsDoubleSpinBox(self.mSymbolsColGroupBox)
        self.mSymbolHeightSpinBox.setPrefix(_fromUtf8(""))
        self.mSymbolHeightSpinBox.setProperty("showClearButton", False)
        self.mSymbolHeightSpinBox.setObjectName(
            _fromUtf8("mSymbolHeightSpinBox"))
        self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.mSymbolHeightSpinBox)
        self.mRasterBorderGroupBox = QgsCollapsibleGroupBoxBasic(
            self.mSymbolsColGroupBox)
        self.mRasterBorderGroupBox.setCheckable(True)
        self.mRasterBorderGroupBox.setProperty("syncGroup",
                                               _fromUtf8("composeritem"))
        self.mRasterBorderGroupBox.setProperty("collapsed", True)
        self.mRasterBorderGroupBox.setObjectName(
            _fromUtf8("mRasterBorderGroupBox"))
        self.gridLayout = QtGui.QGridLayout(self.mRasterBorderGroupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_17 = QtGui.QLabel(self.mRasterBorderGroupBox)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.gridLayout.addWidget(self.label_17, 0, 0, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.mRasterBorderColorButton = QgsColorButtonV2(
            self.mRasterBorderGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mRasterBorderColorButton.sizePolicy().hasHeightForWidth())
        self.mRasterBorderColorButton.setSizePolicy(sizePolicy)
        self.mRasterBorderColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mRasterBorderColorButton.setMaximumSize(
            QtCore.QSize(120, 16777215))
        self.mRasterBorderColorButton.setText(_fromUtf8(""))
        self.mRasterBorderColorButton.setObjectName(
            _fromUtf8("mRasterBorderColorButton"))
        self.horizontalLayout_6.addWidget(self.mRasterBorderColorButton)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem3)
        self.gridLayout.addLayout(self.horizontalLayout_6, 0, 1, 1, 1)
        self.mOutlineWidthLabel = QtGui.QLabel(self.mRasterBorderGroupBox)
        self.mOutlineWidthLabel.setObjectName(_fromUtf8("mOutlineWidthLabel"))
        self.gridLayout.addWidget(self.mOutlineWidthLabel, 1, 0, 1, 1)
        self.mRasterBorderWidthSpinBox = QgsDoubleSpinBox(
            self.mRasterBorderGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mRasterBorderWidthSpinBox.sizePolicy().hasHeightForWidth())
        self.mRasterBorderWidthSpinBox.setSizePolicy(sizePolicy)
        self.mRasterBorderWidthSpinBox.setSingleStep(0.1)
        self.mRasterBorderWidthSpinBox.setProperty("showClearButton", False)
        self.mRasterBorderWidthSpinBox.setObjectName(
            _fromUtf8("mRasterBorderWidthSpinBox"))
        self.gridLayout.addWidget(self.mRasterBorderWidthSpinBox, 1, 1, 1, 1)
        self.formLayout_3.setWidget(2, QtGui.QFormLayout.SpanningRole,
                                    self.mRasterBorderGroupBox)
        self.mainLayout.addWidget(self.mSymbolsColGroupBox)
        self.mSymbolsColGroupBox_2 = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mSymbolsColGroupBox_2.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mSymbolsColGroupBox_2.setProperty("syncGroup",
                                               _fromUtf8("composeritem"))
        self.mSymbolsColGroupBox_2.setProperty("collapsed", True)
        self.mSymbolsColGroupBox_2.setObjectName(
            _fromUtf8("mSymbolsColGroupBox_2"))
        self.formLayout_5 = QtGui.QFormLayout(self.mSymbolsColGroupBox_2)
        self.formLayout_5.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_5.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_5.setObjectName(_fromUtf8("formLayout_5"))
        self.label_13 = QtGui.QLabel(self.mSymbolsColGroupBox_2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_13)
        self.mWmsLegendWidthSpinBox = QgsDoubleSpinBox(
            self.mSymbolsColGroupBox_2)
        self.mWmsLegendWidthSpinBox.setPrefix(_fromUtf8(""))
        self.mWmsLegendWidthSpinBox.setMaximum(9999.0)
        self.mWmsLegendWidthSpinBox.setProperty("showClearButton", False)
        self.mWmsLegendWidthSpinBox.setObjectName(
            _fromUtf8("mWmsLegendWidthSpinBox"))
        self.formLayout_5.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.mWmsLegendWidthSpinBox)
        self.label_14 = QtGui.QLabel(self.mSymbolsColGroupBox_2)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_14)
        self.mWmsLegendHeightSpinBox = QgsDoubleSpinBox(
            self.mSymbolsColGroupBox_2)
        self.mWmsLegendHeightSpinBox.setPrefix(_fromUtf8(""))
        self.mWmsLegendHeightSpinBox.setMaximum(9999.0)
        self.mWmsLegendHeightSpinBox.setProperty("showClearButton", False)
        self.mWmsLegendHeightSpinBox.setObjectName(
            _fromUtf8("mWmsLegendHeightSpinBox"))
        self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.mWmsLegendHeightSpinBox)
        self.mainLayout.addWidget(self.mSymbolsColGroupBox_2)
        self.mSpacingColGroupBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mSpacingColGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mSpacingColGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mSpacingColGroupBox.setProperty("collapsed", True)
        self.mSpacingColGroupBox.setObjectName(
            _fromUtf8("mSpacingColGroupBox"))
        self.formLayout_4 = QtGui.QFormLayout(self.mSpacingColGroupBox)
        self.formLayout_4.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_4.setLabelAlignment(QtCore.Qt.AlignLeading
                                            | QtCore.Qt.AlignLeft
                                            | QtCore.Qt.AlignVCenter)
        self.formLayout_4.setObjectName(_fromUtf8("formLayout_4"))
        self.label_5 = QtGui.QLabel(self.mSpacingColGroupBox)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole,
                                    self.label_5)
        self.mGroupSpaceSpinBox = QgsDoubleSpinBox(self.mSpacingColGroupBox)
        self.mGroupSpaceSpinBox.setPrefix(_fromUtf8(""))
        self.mGroupSpaceSpinBox.setObjectName(_fromUtf8("mGroupSpaceSpinBox"))
        self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole,
                                    self.mGroupSpaceSpinBox)
        self.label_6 = QtGui.QLabel(self.mSpacingColGroupBox)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole,
                                    self.label_6)
        self.mLayerSpaceSpinBox = QgsDoubleSpinBox(self.mSpacingColGroupBox)
        self.mLayerSpaceSpinBox.setPrefix(_fromUtf8(""))
        self.mLayerSpaceSpinBox.setObjectName(_fromUtf8("mLayerSpaceSpinBox"))
        self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole,
                                    self.mLayerSpaceSpinBox)
        self.label_7 = QtGui.QLabel(self.mSpacingColGroupBox)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole,
                                    self.label_7)
        self.mSymbolSpaceSpinBox = QgsDoubleSpinBox(self.mSpacingColGroupBox)
        self.mSymbolSpaceSpinBox.setPrefix(_fromUtf8(""))
        self.mSymbolSpaceSpinBox.setObjectName(
            _fromUtf8("mSymbolSpaceSpinBox"))
        self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole,
                                    self.mSymbolSpaceSpinBox)
        self.label_8 = QtGui.QLabel(self.mSpacingColGroupBox)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout_4.setWidget(4, QtGui.QFormLayout.LabelRole,
                                    self.label_8)
        self.mIconLabelSpaceSpinBox = QgsDoubleSpinBox(
            self.mSpacingColGroupBox)
        self.mIconLabelSpaceSpinBox.setPrefix(_fromUtf8(""))
        self.mIconLabelSpaceSpinBox.setObjectName(
            _fromUtf8("mIconLabelSpaceSpinBox"))
        self.formLayout_4.setWidget(4, QtGui.QFormLayout.FieldRole,
                                    self.mIconLabelSpaceSpinBox)
        self.label_9 = QtGui.QLabel(self.mSpacingColGroupBox)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.formLayout_4.setWidget(5, QtGui.QFormLayout.LabelRole,
                                    self.label_9)
        self.mBoxSpaceSpinBox = QgsDoubleSpinBox(self.mSpacingColGroupBox)
        self.mBoxSpaceSpinBox.setPrefix(_fromUtf8(""))
        self.mBoxSpaceSpinBox.setObjectName(_fromUtf8("mBoxSpaceSpinBox"))
        self.formLayout_4.setWidget(5, QtGui.QFormLayout.FieldRole,
                                    self.mBoxSpaceSpinBox)
        self.label_12 = QtGui.QLabel(self.mSpacingColGroupBox)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.formLayout_4.setWidget(6, QtGui.QFormLayout.LabelRole,
                                    self.label_12)
        self.mColumnSpaceSpinBox = QgsDoubleSpinBox(self.mSpacingColGroupBox)
        self.mColumnSpaceSpinBox.setPrefix(_fromUtf8(""))
        self.mColumnSpaceSpinBox.setObjectName(
            _fromUtf8("mColumnSpaceSpinBox"))
        self.formLayout_4.setWidget(6, QtGui.QFormLayout.FieldRole,
                                    self.mColumnSpaceSpinBox)
        self.label_10 = QtGui.QLabel(self.mSpacingColGroupBox)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole,
                                    self.label_10)
        self.mTitleSpaceBottomSpinBox = QgsDoubleSpinBox(
            self.mSpacingColGroupBox)
        self.mTitleSpaceBottomSpinBox.setObjectName(
            _fromUtf8("mTitleSpaceBottomSpinBox"))
        self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole,
                                    self.mTitleSpaceBottomSpinBox)
        self.mainLayout.addWidget(self.mSpacingColGroupBox)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)
        self.mTitleLabel.setBuddy(self.mTitleLineEdit)
        self.mOutlineWidthLabel.setBuddy(self.mRasterBorderWidthSpinBox)

        self.retranslateUi()
        QtCore.QMetaObject.connectSlotsByName(self)
        self.setTabOrder(self.scrollArea, self.mMainPropertiesColGroupBox)
        self.setTabOrder(self.mMainPropertiesColGroupBox, self.mTitleLineEdit)
        self.setTabOrder(self.mTitleLineEdit, self.mTitleAlignCombo)
        self.setTabOrder(self.mTitleAlignCombo, self.mMapComboBox)
        self.setTabOrder(self.mMapComboBox, self.mWrapCharLineEdit)
        self.setTabOrder(self.mWrapCharLineEdit, self.mLegendItemColGroupBox)
        self.setTabOrder(self.mLegendItemColGroupBox, self.mCheckBoxAutoUpdate)
        self.setTabOrder(self.mCheckBoxAutoUpdate, self.mUpdateAllPushButton)
        self.setTabOrder(self.mUpdateAllPushButton, self.mItemTreeView)
        self.setTabOrder(self.mItemTreeView, self.mMoveDownToolButton)
        self.setTabOrder(self.mMoveDownToolButton, self.mMoveUpToolButton)
        self.setTabOrder(self.mMoveUpToolButton, self.mAddGroupToolButton)
        self.setTabOrder(self.mAddGroupToolButton, self.mAddToolButton)
        self.setTabOrder(self.mAddToolButton, self.mRemoveToolButton)
        self.setTabOrder(self.mRemoveToolButton, self.mEditPushButton)
        self.setTabOrder(self.mEditPushButton, self.mCountToolButton)
        self.setTabOrder(self.mCountToolButton, self.mFilterByMapToolButton)
        self.setTabOrder(self.mFilterByMapToolButton,
                         self.mExpressionFilterButton)
        self.setTabOrder(self.mExpressionFilterButton,
                         self.mFilterLegendByAtlasCheckBox)
        self.setTabOrder(self.mFilterLegendByAtlasCheckBox,
                         self.mFontsColGroupBox)
        self.setTabOrder(self.mFontsColGroupBox, self.mTitleFontButton)
        self.setTabOrder(self.mTitleFontButton, self.mLayerFontButton)
        self.setTabOrder(self.mLayerFontButton, self.mGroupFontButton)
        self.setTabOrder(self.mGroupFontButton, self.mItemFontButton)
        self.setTabOrder(self.mItemFontButton, self.mFontColorButton)
        self.setTabOrder(self.mFontColorButton, self.mColumnsColGroupBox)
        self.setTabOrder(self.mColumnsColGroupBox, self.mColumnCountSpinBox)
        self.setTabOrder(self.mColumnCountSpinBox,
                         self.mEqualColumnWidthCheckBox)
        self.setTabOrder(self.mEqualColumnWidthCheckBox,
                         self.mSplitLayerCheckBox)
        self.setTabOrder(self.mSplitLayerCheckBox, self.mSymbolsColGroupBox)
        self.setTabOrder(self.mSymbolsColGroupBox, self.mSymbolWidthSpinBox)
        self.setTabOrder(self.mSymbolWidthSpinBox, self.mSymbolHeightSpinBox)
        self.setTabOrder(self.mSymbolHeightSpinBox, self.mRasterBorderGroupBox)
        self.setTabOrder(self.mRasterBorderGroupBox,
                         self.mRasterBorderColorButton)
        self.setTabOrder(self.mRasterBorderColorButton,
                         self.mRasterBorderWidthSpinBox)
        self.setTabOrder(self.mRasterBorderWidthSpinBox,
                         self.mSymbolsColGroupBox_2)
        self.setTabOrder(self.mSymbolsColGroupBox_2,
                         self.mWmsLegendWidthSpinBox)
        self.setTabOrder(self.mWmsLegendWidthSpinBox,
                         self.mWmsLegendHeightSpinBox)
        self.setTabOrder(self.mWmsLegendHeightSpinBox,
                         self.mSpacingColGroupBox)
        self.setTabOrder(self.mSpacingColGroupBox,
                         self.mTitleSpaceBottomSpinBox)
        self.setTabOrder(self.mTitleSpaceBottomSpinBox,
                         self.mGroupSpaceSpinBox)
        self.setTabOrder(self.mGroupSpaceSpinBox, self.mLayerSpaceSpinBox)
        self.setTabOrder(self.mLayerSpaceSpinBox, self.mSymbolSpaceSpinBox)
        self.setTabOrder(self.mSymbolSpaceSpinBox, self.mIconLabelSpaceSpinBox)
        self.setTabOrder(self.mIconLabelSpaceSpinBox, self.mBoxSpaceSpinBox)
        self.setTabOrder(self.mBoxSpaceSpinBox, self.mColumnSpaceSpinBox)
Ejemplo n.º 6
0
    def setupUi(self, ImageExportSettings):
        ImageExportSettings.setObjectName(_fromUtf8("ImageExportSettings"))
        ImageExportSettings.resize(299, 283)
        self.gridLayout_4 = QtGui.QGridLayout(ImageExportSettings)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.btn_path = QtGui.QToolButton(ImageExportSettings)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(":/plugins/stdm/images/icons/open_file.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btn_path.setIcon(icon)
        self.btn_path.setObjectName(_fromUtf8("btn_path"))
        self.gridLayout_4.addWidget(self.btn_path, 2, 1, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(ImageExportSettings)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout_4.addWidget(self.buttonBox, 5, 0, 1, 2)
        self.txt_path = QtGui.QLineEdit(ImageExportSettings)
        self.txt_path.setObjectName(_fromUtf8("txt_path"))
        self.gridLayout_4.addWidget(self.txt_path, 2, 0, 1, 1)
        self.label = QtGui.QLabel(ImageExportSettings)
        self.label.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_4.addWidget(self.label, 1, 0, 1, 2)
        self.groupBox = QtGui.QGroupBox(ImageExportSettings)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setSpacing(2)
        self.horizontalLayout.setContentsMargins(-1, 0, -1, 9)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.sb_resolution = QtGui.QSpinBox(self.groupBox)
        self.sb_resolution.setMinimum(72)
        self.sb_resolution.setMaximum(600)
        self.sb_resolution.setProperty("value", 96)
        self.sb_resolution.setObjectName(_fromUtf8("sb_resolution"))
        self.horizontalLayout.addWidget(self.sb_resolution)
        self.frame = QtGui.QFrame(self.groupBox)
        self.frame.setMinimumSize(QtCore.QSize(0, 40))
        self.frame.setMaximumSize(QtCore.QSize(16777215, 40))
        self.frame.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.gridLayout = QtGui.QGridLayout(self.frame)
        self.gridLayout.setContentsMargins(-1, 0, -1, 0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_2 = QtGui.QLabel(self.frame)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 4)
        self.label_3 = QtGui.QLabel(self.frame)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.lbl_width = QtGui.QLabel(self.frame)
        self.lbl_width.setMinimumSize(QtCore.QSize(50, 0))
        self.lbl_width.setFrameShape(QtGui.QFrame.NoFrame)
        self.lbl_width.setText(_fromUtf8(""))
        self.lbl_width.setObjectName(_fromUtf8("lbl_width"))
        self.gridLayout.addWidget(self.lbl_width, 1, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.frame)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 1, 2, 1, 1)
        self.lbl_height = QtGui.QLabel(self.frame)
        self.lbl_height.setMinimumSize(QtCore.QSize(50, 0))
        self.lbl_height.setFrameShape(QtGui.QFrame.NoFrame)
        self.lbl_height.setText(_fromUtf8(""))
        self.lbl_height.setObjectName(_fromUtf8("lbl_height"))
        self.gridLayout.addWidget(self.lbl_height, 1, 3, 1, 1)
        self.horizontalLayout.addWidget(self.frame)
        self.gridLayout_4.addWidget(self.groupBox, 3, 0, 1, 2)
        self.groupBox_2 = QtGui.QGroupBox(ImageExportSettings)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.rb_transparent = QtGui.QRadioButton(self.groupBox_2)
        self.rb_transparent.setChecked(True)
        self.rb_transparent.setObjectName(_fromUtf8("rb_transparent"))
        self.gridLayout_2.addWidget(self.rb_transparent, 0, 0, 1, 3)
        self.rb_fill = QtGui.QRadioButton(self.groupBox_2)
        self.rb_fill.setObjectName(_fromUtf8("rb_fill"))
        self.gridLayout_2.addWidget(self.rb_fill, 1, 0, 1, 1)
        spacerItem = QtGui.QSpacerItem(160, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 1, 1, 1, 1)
        self.btn_color = QgsColorButtonV2(self.groupBox_2)
        self.btn_color.setObjectName(_fromUtf8("btn_color"))
        self.gridLayout_2.addWidget(self.btn_color, 1, 2, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox_2, 4, 0, 1, 2)
        self.vl_notification = QtGui.QVBoxLayout()
        self.vl_notification.setObjectName(_fromUtf8("vl_notification"))
        self.gridLayout_4.addLayout(self.vl_notification, 0, 0, 1, 2)

        self.retranslateUi(ImageExportSettings)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               ImageExportSettings.reject)
        QtCore.QObject.connect(self.rb_fill,
                               QtCore.SIGNAL(_fromUtf8("toggled(bool)")),
                               self.btn_color.setVisible)
        QtCore.QMetaObject.connectSlotsByName(ImageExportSettings)
Ejemplo n.º 7
0
    def __init__(self, parent, composerObject):
        QtGui.QWidget.__init__(self, parent)
        self.mComposerObject = composerObject
        self.setObjectName(_fromUtf8("QgsComposerItemWidgetBase"))
        self.resize(290, 847)
        self.verticalLayout_2 = QtGui.QVBoxLayout(self)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.mGeneralOptionsGroupBox = QgsCollapsibleGroupBoxBasic(self)
        self.mGeneralOptionsGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mGeneralOptionsGroupBox.setProperty("syncGroup",
                                                 _fromUtf8("composeritem"))
        self.mGeneralOptionsGroupBox.setProperty("collapsed", True)
        self.mGeneralOptionsGroupBox.setObjectName(
            _fromUtf8("mGeneralOptionsGroupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.mGeneralOptionsGroupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.mWidthLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mWidthLabel.setObjectName(_fromUtf8("mWidthLabel"))
        self.gridLayout_3.addWidget(self.mWidthLabel, 3, 0, 1, 1)
        self.mXLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mXLabel.setObjectName(_fromUtf8("mXLabel"))
        self.gridLayout_3.addWidget(self.mXLabel, 1, 0, 1, 1)
        self.mHeightLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mHeightLabel.setObjectName(_fromUtf8("mHeightLabel"))
        self.gridLayout_3.addWidget(self.mHeightLabel, 4, 0, 1, 1)
        self.mYLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mYLabel.setObjectName(_fromUtf8("mYLabel"))
        self.gridLayout_3.addWidget(self.mYLabel, 2, 0, 1, 1)
        self.mPageLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mPageLabel.setObjectName(_fromUtf8("mPageLabel"))
        self.gridLayout_3.addWidget(self.mPageLabel, 0, 0, 1, 1)
        self.mXPositionDDBtn = QgsDataDefinedButton(
            self.mGeneralOptionsGroupBox)
        self.mXPositionDDBtn.setObjectName(_fromUtf8("mXPositionDDBtn"))
        self.gridLayout_3.addWidget(self.mXPositionDDBtn, 1, 3, 1, 1)
        self.mYPositionDDBtn = QgsDataDefinedButton(
            self.mGeneralOptionsGroupBox)
        self.mYPositionDDBtn.setObjectName(_fromUtf8("mYPositionDDBtn"))
        self.gridLayout_3.addWidget(self.mYPositionDDBtn, 2, 3, 1, 1)
        self.mWidthDDBtn = QgsDataDefinedButton(self.mGeneralOptionsGroupBox)
        self.mWidthDDBtn.setObjectName(_fromUtf8("mWidthDDBtn"))
        self.gridLayout_3.addWidget(self.mWidthDDBtn, 3, 3, 1, 1)
        self.mHeightDDBtn = QgsDataDefinedButton(self.mGeneralOptionsGroupBox)
        self.mHeightDDBtn.setObjectName(_fromUtf8("mHeightDDBtn"))
        self.gridLayout_3.addWidget(self.mHeightDDBtn, 4, 3, 1, 1)
        self.mPageSpinBox = QgsSpinBox(self.mGeneralOptionsGroupBox)
        self.mPageSpinBox.setMinimum(1)
        self.mPageSpinBox.setProperty("showClearButton", False)
        self.mPageSpinBox.setObjectName(_fromUtf8("mPageSpinBox"))
        self.gridLayout_3.addWidget(self.mPageSpinBox, 0, 1, 1, 3)
        self.mWidthSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mWidthSpin.setDecimals(3)
        self.mWidthSpin.setMaximum(9999999.0)
        self.mWidthSpin.setProperty("showClearButton", False)
        self.mWidthSpin.setObjectName(_fromUtf8("mWidthSpin"))
        self.gridLayout_3.addWidget(self.mWidthSpin, 3, 1, 1, 2)
        self.mHeightSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mHeightSpin.setDecimals(3)
        self.mHeightSpin.setMaximum(9999999.0)
        self.mHeightSpin.setProperty("showClearButton", False)
        self.mHeightSpin.setObjectName(_fromUtf8("mHeightSpin"))
        self.gridLayout_3.addWidget(self.mHeightSpin, 4, 1, 1, 2)
        self.mYPosSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mYPosSpin.setDecimals(3)
        self.mYPosSpin.setMinimum(-9999999.0)
        self.mYPosSpin.setMaximum(9999999.0)
        self.mYPosSpin.setProperty("showClearButton", False)
        self.mYPosSpin.setObjectName(_fromUtf8("mYPosSpin"))
        self.gridLayout_3.addWidget(self.mYPosSpin, 2, 1, 1, 2)
        self.mXPosSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mXPosSpin.setDecimals(3)
        self.mXPosSpin.setMinimum(-9999999.0)
        self.mXPosSpin.setMaximum(9999999.0)
        self.mXPosSpin.setProperty("showClearButton", False)
        self.mXPosSpin.setObjectName(_fromUtf8("mXPosSpin"))
        self.gridLayout_3.addWidget(self.mXPosSpin, 1, 1, 1, 2)
        self.gridLayout_3.setColumnStretch(1, 1)
        self.gridLayout_3.setColumnStretch(2, 1)
        self.gridLayout_3.setColumnStretch(3, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.label_2 = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.label_2.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_7.addWidget(self.label_2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mUpperMiddleCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mUpperMiddleCheckBox.setText(_fromUtf8(""))
        self.mUpperMiddleCheckBox.setObjectName(
            _fromUtf8("mUpperMiddleCheckBox"))
        self.gridLayout.addWidget(self.mUpperMiddleCheckBox, 0, 1, 1, 1)
        self.mMiddleRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleRightCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleRightCheckBox.setText(_fromUtf8(""))
        self.mMiddleRightCheckBox.setObjectName(
            _fromUtf8("mMiddleRightCheckBox"))
        self.gridLayout.addWidget(self.mMiddleRightCheckBox, 1, 2, 1, 1)
        self.mMiddleCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleCheckBox.setText(_fromUtf8(""))
        self.mMiddleCheckBox.setObjectName(_fromUtf8("mMiddleCheckBox"))
        self.gridLayout.addWidget(self.mMiddleCheckBox, 1, 1, 1, 1)
        self.mUpperRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperRightCheckBox.setSizePolicy(sizePolicy)
        self.mUpperRightCheckBox.setText(_fromUtf8(""))
        self.mUpperRightCheckBox.setObjectName(
            _fromUtf8("mUpperRightCheckBox"))
        self.gridLayout.addWidget(self.mUpperRightCheckBox, 0, 2, 1, 1)
        self.mLowerMiddleCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mLowerMiddleCheckBox.setText(_fromUtf8(""))
        self.mLowerMiddleCheckBox.setObjectName(
            _fromUtf8("mLowerMiddleCheckBox"))
        self.gridLayout.addWidget(self.mLowerMiddleCheckBox, 2, 1, 1, 1)
        self.mLowerRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerRightCheckBox.setSizePolicy(sizePolicy)
        self.mLowerRightCheckBox.setText(_fromUtf8(""))
        self.mLowerRightCheckBox.setObjectName(
            _fromUtf8("mLowerRightCheckBox"))
        self.gridLayout.addWidget(self.mLowerRightCheckBox, 2, 2, 1, 1)
        self.mUpperLeftCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperLeftCheckBox.setSizePolicy(sizePolicy)
        self.mUpperLeftCheckBox.setText(_fromUtf8(""))
        self.mUpperLeftCheckBox.setObjectName(_fromUtf8("mUpperLeftCheckBox"))
        self.gridLayout.addWidget(self.mUpperLeftCheckBox, 0, 0, 1, 1)
        self.mLowerLeftCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerLeftCheckBox.setSizePolicy(sizePolicy)
        self.mLowerLeftCheckBox.setText(_fromUtf8(""))
        self.mLowerLeftCheckBox.setObjectName(_fromUtf8("mLowerLeftCheckBox"))
        self.gridLayout.addWidget(self.mLowerLeftCheckBox, 2, 0, 1, 1)
        self.mMiddleLeftCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleLeftCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleLeftCheckBox.setText(_fromUtf8(""))
        self.mMiddleLeftCheckBox.setObjectName(
            _fromUtf8("mMiddleLeftCheckBox"))
        self.gridLayout.addWidget(self.mMiddleLeftCheckBox, 1, 0, 1, 1)
        self.horizontalLayout_7.addLayout(self.gridLayout)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.verticalLayout_2.addWidget(self.mGeneralOptionsGroupBox)
        self.mTransformsGroupBox = QgsCollapsibleGroupBoxBasic(self)
        self.mTransformsGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mTransformsGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mTransformsGroupBox.setProperty("collapsed", True)
        self.mTransformsGroupBox.setObjectName(
            _fromUtf8("mTransformsGroupBox"))
        self.gridLayout_5 = QtGui.QGridLayout(self.mTransformsGroupBox)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label = QtGui.QLabel(self.mTransformsGroupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_5.addWidget(self.label, 0, 0, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.mItemRotationSpinBox = QgsDoubleSpinBox(self.mTransformsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mItemRotationSpinBox.sizePolicy().hasHeightForWidth())
        self.mItemRotationSpinBox.setSizePolicy(sizePolicy)
        self.mItemRotationSpinBox.setMaximum(360.0)
        self.mItemRotationSpinBox.setObjectName(
            _fromUtf8("mItemRotationSpinBox"))
        self.horizontalLayout_4.addWidget(self.mItemRotationSpinBox)
        self.mItemRotationDDBtn = QgsDataDefinedButton(
            self.mTransformsGroupBox)
        self.mItemRotationDDBtn.setObjectName(_fromUtf8("mItemRotationDDBtn"))
        self.horizontalLayout_4.addWidget(self.mItemRotationDDBtn)
        self.gridLayout_5.addLayout(self.horizontalLayout_4, 0, 1, 1, 1)
        self.gridLayout_5.setColumnStretch(1, 1)
        self.verticalLayout_2.addWidget(self.mTransformsGroupBox)
        self.mFrameGroupBox = QgsCollapsibleGroupBoxBasic(self)
        self.mFrameGroupBox.setCheckable(True)
        self.mFrameGroupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.mFrameGroupBox.setProperty("collapsed", True)
        self.mFrameGroupBox.setObjectName(_fromUtf8("mFrameGroupBox"))
        self.gridLayout_6 = QtGui.QGridLayout(self.mFrameGroupBox)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.label_3 = QtGui.QLabel(self.mFrameGroupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.mFrameColorButton = QgsColorButtonV2(self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mFrameColorButton.sizePolicy().hasHeightForWidth())
        self.mFrameColorButton.setSizePolicy(sizePolicy)
        self.mFrameColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mFrameColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mFrameColorButton.setText(_fromUtf8(""))
        self.mFrameColorButton.setObjectName(_fromUtf8("mFrameColorButton"))
        self.horizontalLayout_6.addWidget(self.mFrameColorButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.gridLayout_6.addLayout(self.horizontalLayout_6, 0, 1, 1, 1)
        self.mOutlineWidthLabel = QtGui.QLabel(self.mFrameGroupBox)
        self.mOutlineWidthLabel.setWordWrap(True)
        self.mOutlineWidthLabel.setObjectName(_fromUtf8("mOutlineWidthLabel"))
        self.gridLayout_6.addWidget(self.mOutlineWidthLabel, 1, 0, 1, 1)
        self.mOutlineWidthSpinBox = QgsDoubleSpinBox(self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mOutlineWidthSpinBox.sizePolicy().hasHeightForWidth())
        self.mOutlineWidthSpinBox.setSizePolicy(sizePolicy)
        self.mOutlineWidthSpinBox.setSingleStep(0.1)
        self.mOutlineWidthSpinBox.setProperty("showClearButton", False)
        self.mOutlineWidthSpinBox.setObjectName(
            _fromUtf8("mOutlineWidthSpinBox"))
        self.gridLayout_6.addWidget(self.mOutlineWidthSpinBox, 1, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.mFrameGroupBox)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_6.addWidget(self.label_8, 2, 0, 1, 1)
        self.mFrameJoinStyleCombo = QgsPenJoinStyleComboBox(
            self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mFrameJoinStyleCombo.sizePolicy().hasHeightForWidth())
        self.mFrameJoinStyleCombo.setSizePolicy(sizePolicy)
        self.mFrameJoinStyleCombo.setObjectName(
            _fromUtf8("mFrameJoinStyleCombo"))
        self.gridLayout_6.addWidget(self.mFrameJoinStyleCombo, 2, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.mFrameGroupBox)
        self.mBackgroundGroupBox = QgsCollapsibleGroupBoxBasic(self)
        self.mBackgroundGroupBox.setCheckable(True)
        self.mBackgroundGroupBox.setChecked(True)
        self.mBackgroundGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mBackgroundGroupBox.setProperty("collapsed", True)
        self.mBackgroundGroupBox.setObjectName(
            _fromUtf8("mBackgroundGroupBox"))
        self.gridLayout_7 = QtGui.QGridLayout(self.mBackgroundGroupBox)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.label_4 = QtGui.QLabel(self.mBackgroundGroupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_7.addWidget(self.label_4, 0, 0, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.mBackgroundColorButton = QgsColorButtonV2(
            self.mBackgroundGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mBackgroundColorButton.sizePolicy().hasHeightForWidth())
        self.mBackgroundColorButton.setSizePolicy(sizePolicy)
        self.mBackgroundColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mBackgroundColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mBackgroundColorButton.setText(_fromUtf8(""))
        self.mBackgroundColorButton.setObjectName(
            _fromUtf8("mBackgroundColorButton"))
        self.horizontalLayout_5.addWidget(self.mBackgroundColorButton)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.gridLayout_7.addLayout(self.horizontalLayout_5, 0, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.mBackgroundGroupBox)
        self.groupBox = QgsCollapsibleGroupBoxBasic(self)
        self.groupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.groupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.groupBox.setProperty("collapsed", True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.mItemIdLabel = QtGui.QLabel(self.groupBox)
        self.mItemIdLabel.setObjectName(_fromUtf8("mItemIdLabel"))
        self.gridLayout_8.addWidget(self.mItemIdLabel, 0, 0, 1, 1)
        self.mItemIdLineEdit = QtGui.QLineEdit(self.groupBox)
        self.mItemIdLineEdit.setObjectName(_fromUtf8("mItemIdLineEdit"))
        self.gridLayout_8.addWidget(self.mItemIdLineEdit, 0, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupRendering = QgsCollapsibleGroupBoxBasic(self)
        self.groupRendering.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.groupRendering.setProperty("collapsed", True)
        self.groupRendering.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.groupRendering.setObjectName(_fromUtf8("groupRendering"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupRendering)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.labelBlendMode = QtGui.QLabel(self.groupRendering)
        self.labelBlendMode.setObjectName(_fromUtf8("labelBlendMode"))
        self.gridLayout_4.addWidget(self.labelBlendMode, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.mBlendModeCombo = QgsBlendModeComboBox(self.groupRendering)
        self.mBlendModeCombo.setObjectName(_fromUtf8("mBlendModeCombo"))
        self.horizontalLayout_3.addWidget(self.mBlendModeCombo)
        self.mBlendModeDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mBlendModeDDBtn.setObjectName(_fromUtf8("mBlendModeDDBtn"))
        self.horizontalLayout_3.addWidget(self.mBlendModeDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout_3, 0, 1, 1, 1)
        self.labelTransparency = QtGui.QLabel(self.groupRendering)
        self.labelTransparency.setObjectName(_fromUtf8("labelTransparency"))
        self.gridLayout_4.addWidget(self.labelTransparency, 1, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.mTransparencySlider = QtGui.QSlider(self.groupRendering)
        self.mTransparencySlider.setMaximum(100)
        self.mTransparencySlider.setOrientation(QtCore.Qt.Horizontal)
        self.mTransparencySlider.setObjectName(
            _fromUtf8("mTransparencySlider"))
        self.horizontalLayout_2.addWidget(self.mTransparencySlider)
        self.mTransparencySpnBx = QgsSpinBox(self.groupRendering)
        self.mTransparencySpnBx.setMinimumSize(QtCore.QSize(80, 25))
        self.mTransparencySpnBx.setMaximum(100)
        self.mTransparencySpnBx.setObjectName(_fromUtf8("mTransparencySpnBx"))
        self.horizontalLayout_2.addWidget(self.mTransparencySpnBx)
        self.mTransparencyDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mTransparencyDDBtn.setObjectName(_fromUtf8("mTransparencyDDBtn"))
        self.horizontalLayout_2.addWidget(self.mTransparencyDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mExcludeFromPrintsCheckBox = QtGui.QCheckBox(self.groupRendering)
        self.mExcludeFromPrintsCheckBox.setObjectName(
            _fromUtf8("mExcludeFromPrintsCheckBox"))
        self.horizontalLayout.addWidget(self.mExcludeFromPrintsCheckBox)
        self.mExcludePrintsDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mExcludePrintsDDBtn.setObjectName(
            _fromUtf8("mExcludePrintsDDBtn"))
        self.horizontalLayout.addWidget(self.mExcludePrintsDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout, 2, 0, 1, 2)
        self.verticalLayout_2.addWidget(self.groupRendering)
        self.groupBox_3 = QgsCollapsibleGroupBox(self)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.mVariableEditor = QgsVariableEditorWidget(self.groupBox_3)
        self.mVariableEditor.setMinimumSize(QtCore.QSize(0, 200))
        self.mVariableEditor.setObjectName(_fromUtf8("mVariableEditor"))
        self.verticalLayout_4.addWidget(self.mVariableEditor)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.MinimumExpanding)
        self.verticalLayout_2.addItem(spacerItem3)
        self.mOutlineWidthLabel.setBuddy(self.mOutlineWidthSpinBox)

        self.retranslateUi()
        QtCore.QMetaObject.connectSlotsByName(self)
        self.setTabOrder(self.mGeneralOptionsGroupBox, self.mPageSpinBox)
        self.setTabOrder(self.mPageSpinBox, self.mXPosSpin)
        self.setTabOrder(self.mXPosSpin, self.mXPositionDDBtn)
        self.setTabOrder(self.mXPositionDDBtn, self.mYPosSpin)
        self.setTabOrder(self.mYPosSpin, self.mYPositionDDBtn)
        self.setTabOrder(self.mYPositionDDBtn, self.mWidthSpin)
        self.setTabOrder(self.mWidthSpin, self.mWidthDDBtn)
        self.setTabOrder(self.mWidthDDBtn, self.mHeightSpin)
        self.setTabOrder(self.mHeightSpin, self.mHeightDDBtn)
        self.setTabOrder(self.mHeightDDBtn, self.mUpperLeftCheckBox)
        self.setTabOrder(self.mUpperLeftCheckBox, self.mUpperMiddleCheckBox)
        self.setTabOrder(self.mUpperMiddleCheckBox, self.mUpperRightCheckBox)
        self.setTabOrder(self.mUpperRightCheckBox, self.mMiddleLeftCheckBox)
        self.setTabOrder(self.mMiddleLeftCheckBox, self.mMiddleCheckBox)
        self.setTabOrder(self.mMiddleCheckBox, self.mMiddleRightCheckBox)
        self.setTabOrder(self.mMiddleRightCheckBox, self.mLowerLeftCheckBox)
        self.setTabOrder(self.mLowerLeftCheckBox, self.mLowerMiddleCheckBox)
        self.setTabOrder(self.mLowerMiddleCheckBox, self.mLowerRightCheckBox)
        self.setTabOrder(self.mLowerRightCheckBox, self.mTransformsGroupBox)
        self.setTabOrder(self.mTransformsGroupBox, self.mItemRotationSpinBox)
        self.setTabOrder(self.mItemRotationSpinBox, self.mItemRotationDDBtn)
        self.setTabOrder(self.mItemRotationDDBtn, self.mFrameGroupBox)
        self.setTabOrder(self.mFrameGroupBox, self.mFrameColorButton)
        self.setTabOrder(self.mFrameColorButton, self.mOutlineWidthSpinBox)
        self.setTabOrder(self.mOutlineWidthSpinBox, self.mFrameJoinStyleCombo)
        self.setTabOrder(self.mFrameJoinStyleCombo, self.mBackgroundGroupBox)
        self.setTabOrder(self.mBackgroundGroupBox, self.mBackgroundColorButton)
        self.setTabOrder(self.mBackgroundColorButton, self.groupBox)
        self.setTabOrder(self.groupBox, self.mItemIdLineEdit)
        self.setTabOrder(self.mItemIdLineEdit, self.groupRendering)
        self.setTabOrder(self.groupRendering, self.mBlendModeCombo)
        self.setTabOrder(self.mBlendModeCombo, self.mBlendModeDDBtn)
        self.setTabOrder(self.mBlendModeDDBtn, self.mTransparencySlider)
        self.setTabOrder(self.mTransparencySlider, self.mTransparencySpnBx)
        self.setTabOrder(self.mTransparencySpnBx, self.mTransparencyDDBtn)
        self.setTabOrder(self.mTransparencyDDBtn,
                         self.mExcludeFromPrintsCheckBox)
        self.setTabOrder(self.mExcludeFromPrintsCheckBox,
                         self.mExcludePrintsDDBtn)
        # self.mComposerObject = None
        self.groupBox_3.setVisible(False)
Ejemplo n.º 8
0
    def setupUi(self, bandwidths):
        bandwidths.setObjectName(_fromUtf8("bandwidths"))
        bandwidths.resize(689, 362)
        self.label = QtGui.QLabel(bandwidths)
        self.label.setGeometry(QtCore.QRect(20, 10, 131, 21))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(bandwidths)
        self.label_2.setGeometry(QtCore.QRect(200, 10, 131, 21))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.slider_spacer = QtGui.QSlider(bandwidths)
        self.slider_spacer.setGeometry(QtCore.QRect(17, 40, 121, 18))
        self.slider_spacer.setOrientation(QtCore.Qt.Horizontal)
        self.slider_spacer.setObjectName(_fromUtf8("slider_spacer"))
        self.slider_band_size = QtGui.QSlider(bandwidths)
        self.slider_band_size.setGeometry(QtCore.QRect(198, 40, 111, 18))
        self.slider_band_size.setOrientation(QtCore.Qt.Horizontal)
        self.slider_band_size.setObjectName(_fromUtf8("slider_band_size"))
        self.mMapLayerComboBox = QgsMapLayerComboBox(bandwidths)
        self.mMapLayerComboBox.setGeometry(QtCore.QRect(380, 30, 301, 30))
        self.mMapLayerComboBox.setObjectName(_fromUtf8("mMapLayerComboBox"))
        self.ab_FieldComboBox = QgsFieldComboBox(bandwidths)
        self.ab_FieldComboBox.setGeometry(QtCore.QRect(20, 92, 191, 30))
        self.ab_FieldComboBox.setObjectName(_fromUtf8("ab_FieldComboBox"))
        self.mColorButton = QgsColorButtonV2(bandwidths)
        self.mColorButton.setGeometry(QtCore.QRect(430, 92, 141, 30))
        self.mColorButton.setObjectName(_fromUtf8("mColorButton"))
        self.label_3 = QtGui.QLabel(bandwidths)
        self.label_3.setGeometry(QtCore.QRect(380, 10, 131, 21))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.ba_FieldComboBox = QgsFieldComboBox(bandwidths)
        self.ba_FieldComboBox.setGeometry(QtCore.QRect(224, 92, 191, 30))
        self.ba_FieldComboBox.setObjectName(_fromUtf8("ba_FieldComboBox"))
        self.but_add_band = QtGui.QPushButton(bandwidths)
        self.but_add_band.setGeometry(QtCore.QRect(610, 92, 71, 30))
        self.but_add_band.setObjectName(_fromUtf8("but_add_band"))
        self.bands_list = QtGui.QTableWidget(bandwidths)
        self.bands_list.setGeometry(QtCore.QRect(10, 140, 671, 181))
        self.bands_list.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.bands_list.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.bands_list.setRowCount(0)
        self.bands_list.setColumnCount(4)
        self.bands_list.setObjectName(_fromUtf8("bands_list"))
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(3, item)
        self.bands_list.verticalHeader().setDefaultSectionSize(27)
        self.label_5 = QtGui.QLabel(bandwidths)
        self.label_5.setGeometry(QtCore.QRect(224, 70, 131, 21))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_6 = QtGui.QLabel(bandwidths)
        self.label_6.setGeometry(QtCore.QRect(20, 70, 131, 21))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.but_run = QtGui.QPushButton(bandwidths)
        self.but_run.setGeometry(QtCore.QRect(10, 330, 671, 27))
        self.but_run.setObjectName(_fromUtf8("but_run"))
        self.lbl_width = QtGui.QLabel(bandwidths)
        self.lbl_width.setGeometry(QtCore.QRect(314, 39, 31, 21))
        self.lbl_width.setObjectName(_fromUtf8("lbl_width"))
        self.lbl_space = QtGui.QLabel(bandwidths)
        self.lbl_space.setGeometry(QtCore.QRect(140, 38, 31, 21))
        self.lbl_space.setObjectName(_fromUtf8("lbl_space"))
        self.but_load_ramp = QtGui.QPushButton(bandwidths)
        self.but_load_ramp.setGeometry(QtCore.QRect(541, 92, 61, 30))
        self.but_load_ramp.setObjectName(_fromUtf8("but_load_ramp"))
        self.rdo_color = QtGui.QRadioButton(bandwidths)
        self.rdo_color.setGeometry(QtCore.QRect(426, 70, 101, 22))
        self.rdo_color.setChecked(True)
        self.rdo_color.setObjectName(_fromUtf8("rdo_color"))
        self.rdo_ramp = QtGui.QRadioButton(bandwidths)
        self.rdo_ramp.setGeometry(QtCore.QRect(515, 70, 91, 22))
        self.rdo_ramp.setObjectName(_fromUtf8("rdo_ramp"))
        self.txt_ramp = QtGui.QLabel(bandwidths)
        self.txt_ramp.setGeometry(QtCore.QRect(430, 98, 101, 17))
        self.txt_ramp.setObjectName(_fromUtf8("txt_ramp"))

        self.retranslateUi(bandwidths)
        QtCore.QMetaObject.connectSlotsByName(bandwidths)
Ejemplo n.º 9
0
    def __init__(self, parent=None):
        super(FilterClauseWidget, self).__init__(parent)
        self.setupUi(self)

        self._filterIndex = -1
        self._filterType = FilterType.Include
        self._filterActionStatus = -1
        self._siteCode = ''

        self._addIcon = QIcon(':/plugins/ark/filter/addFilter.svg')
        self._addAction = QAction(self._addIcon, 'Add filter', self)
        self._addAction.setStatusTip('Add filter')
        self._addAction.triggered.connect(self._addFilterClicked)

        self._removeIcon = QIcon(':/plugins/ark/filter/removeFilter.svg')
        self._removeAction = QAction(self._removeIcon, 'Remove filter', self)
        self._removeAction.setStatusTip('Remove filter')
        self._removeAction.triggered.connect(self._removeFilterClicked)

        self.setFilterAction(FilterWidgetAction.AddFilter)

        self._includeIcon = QIcon(':/plugins/ark/filter/includeFilter.png')
        self._includeAction = QAction(self._includeIcon, 'Include', self)
        self._includeAction.setStatusTip('Include items in selection')
        self._includeAction.setCheckable(True)
        self._includeAction.triggered.connect(self._includeFilterChecked)

        self._excludeIcon = QIcon(':/plugins/ark/filter/excludeFilter.png')
        self._excludeAction = QAction(self._excludeIcon, 'Exclude', self)
        self._excludeAction.setStatusTip('Exclude items from selection')
        self._excludeAction.setCheckable(True)
        self._excludeAction.triggered.connect(self._excludeFilterChecked)

        self._selectIcon = QIcon(':/plugins/ark/filter/selectFilter.svg')
        self._selectAction = QAction(self._selectIcon, 'Select', self)
        self._selectAction.setStatusTip('Select items')
        self._selectAction.setCheckable(True)
        self._selectAction.triggered.connect(self._selectFilterChecked)

        self._highlightIcon = QIcon(':/plugins/ark/filter/highlightFilter.svg')
        self._highlightAction = QAction(self._highlightIcon, 'Highlight', self)
        self._highlightAction.setStatusTip('Highlight items')
        self._highlightAction.setCheckable(True)
        self._highlightAction.triggered.connect(self._highlightFilterChecked)

        self._typeActionGroup = QActionGroup(self)
        self._typeActionGroup.addAction(self._includeAction)
        self._typeActionGroup.addAction(self._excludeAction)
        self._typeActionGroup.addAction(self._selectAction)
        self._typeActionGroup.addAction(self._highlightAction)

        self._colorTool = QgsColorButtonV2(self)
        self._colorTool.setAllowAlpha(True)
        self._colorTool.setColorDialogTitle('Choose Highlight Color')
        self._colorTool.setContext('Choose Highlight Color')
        self._colorTool.setDefaultColor(Application.highlightFillColor())
        self._colorTool.setToDefaultColor()
        self._colorTool.colorChanged.connect(self._colorChanged)
        self._colorAction = QWidgetAction(self)
        self._colorAction.setDefaultWidget(self._colorTool)

        self._typeMenu = QMenu(self)
        self._typeMenu.addActions(self._typeActionGroup.actions())
        self._typeMenu.addSeparator()
        self._typeMenu.addAction(self._colorAction)
        self.filterTypeTool.setMenu(self._typeMenu)

        self._setFilterType(FilterType.Include)
Ejemplo n.º 10
0
    def __init__(self, parent):
        QtGui.QWidget.__init__(self, parent)
        self.setObjectName(_fromUtf8("self"))
        self.resize(334, 383)
        self.verticalLayout = QtGui.QVBoxLayout(self)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_3 = QtGui.QLabel(self)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setStyleSheet(_fromUtf8("padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);"))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.scrollArea = QtGui.QScrollArea(self)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 332, 360))
        self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents"))
        self.mainLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.mainLayout.setObjectName(_fromUtf8("mainLayout"))
        self.groupBox = QgsCollapsibleGroupBoxBasic(self.scrollAreaWidgetContents)
        self.groupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.groupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.groupBox.setProperty("collapsed", False)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.mLineStyleButton = QtGui.QPushButton(self.groupBox)
        self.mLineStyleButton.setObjectName(_fromUtf8("mLineStyleButton"))
        self.verticalLayout_2.addWidget(self.mLineStyleButton)
        self.mainLayout.addWidget(self.groupBox)
        self.mArrowMarkersGroupBox = QgsCollapsibleGroupBoxBasic(self.scrollAreaWidgetContents)
        self.mArrowMarkersGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mArrowMarkersGroupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.mArrowMarkersGroupBox.setProperty("collapsed", False)
        self.mArrowMarkersGroupBox.setObjectName(_fromUtf8("mArrowMarkersGroupBox"))
        self.gridLayout = QtGui.QGridLayout(self.mArrowMarkersGroupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.mDefaultMarkerRadioButton = QtGui.QRadioButton(self.mArrowMarkersGroupBox)
        self.mDefaultMarkerRadioButton.setObjectName(_fromUtf8("mDefaultMarkerRadioButton"))
        self.horizontalLayout_3.addWidget(self.mDefaultMarkerRadioButton)
        self.mNoMarkerRadioButton = QtGui.QRadioButton(self.mArrowMarkersGroupBox)
        self.mNoMarkerRadioButton.setObjectName(_fromUtf8("mNoMarkerRadioButton"))
        self.horizontalLayout_3.addWidget(self.mNoMarkerRadioButton)
        self.mSvgMarkerRadioButton = QtGui.QRadioButton(self.mArrowMarkersGroupBox)
        self.mSvgMarkerRadioButton.setObjectName(_fromUtf8("mSvgMarkerRadioButton"))
        self.horizontalLayout_3.addWidget(self.mSvgMarkerRadioButton)
        self.gridLayout.addLayout(self.horizontalLayout_3, 0, 0, 1, 2)
        self.label_5 = QtGui.QLabel(self.mArrowMarkersGroupBox)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1)
        self.mArrowHeadOutlineColorButton = QgsColorButtonV2(self.mArrowMarkersGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mArrowHeadOutlineColorButton.sizePolicy().hasHeightForWidth())
        self.mArrowHeadOutlineColorButton.setSizePolicy(sizePolicy)
        self.mArrowHeadOutlineColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mArrowHeadOutlineColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mArrowHeadOutlineColorButton.setText(_fromUtf8(""))
        self.mArrowHeadOutlineColorButton.setObjectName(_fromUtf8("mArrowHeadOutlineColorButton"))
        self.gridLayout.addWidget(self.mArrowHeadOutlineColorButton, 1, 1, 1, 1)
        self.label_4 = QtGui.QLabel(self.mArrowMarkersGroupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.mArrowHeadFillColorButton = QgsColorButtonV2(self.mArrowMarkersGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mArrowHeadFillColorButton.sizePolicy().hasHeightForWidth())
        self.mArrowHeadFillColorButton.setSizePolicy(sizePolicy)
        self.mArrowHeadFillColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mArrowHeadFillColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mArrowHeadFillColorButton.setText(_fromUtf8(""))
        self.mArrowHeadFillColorButton.setObjectName(_fromUtf8("mArrowHeadFillColorButton"))
        self.gridLayout.addWidget(self.mArrowHeadFillColorButton, 2, 1, 1, 1)
        self.label = QtGui.QLabel(self.mArrowMarkersGroupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
        self.mOutlineWidthSpinBox = QgsDoubleSpinBox(self.mArrowMarkersGroupBox)
        self.mOutlineWidthSpinBox.setPrefix(_fromUtf8(""))
        self.mOutlineWidthSpinBox.setShowClearButton(False)
        self.mOutlineWidthSpinBox.setObjectName(_fromUtf8("mOutlineWidthSpinBox"))
        self.gridLayout.addWidget(self.mOutlineWidthSpinBox, 3, 1, 1, 1)
        self.label_2 = QtGui.QLabel(self.mArrowMarkersGroupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 4, 0, 1, 1)
        self.mArrowHeadWidthSpinBox = QgsDoubleSpinBox(self.mArrowMarkersGroupBox)
        self.mArrowHeadWidthSpinBox.setPrefix(_fromUtf8(""))
        self.mArrowHeadWidthSpinBox.setShowClearButton(False)
        self.mArrowHeadWidthSpinBox.setObjectName(_fromUtf8("mArrowHeadWidthSpinBox"))
        self.gridLayout.addWidget(self.mArrowHeadWidthSpinBox, 4, 1, 1, 1)
        self.mStartMarkerLabel = QtGui.QLabel(self.mArrowMarkersGroupBox)
        self.mStartMarkerLabel.setObjectName(_fromUtf8("mStartMarkerLabel"))
        self.gridLayout.addWidget(self.mStartMarkerLabel, 5, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mStartMarkerLineEdit = QtGui.QLineEdit(self.mArrowMarkersGroupBox)
        self.mStartMarkerLineEdit.setObjectName(_fromUtf8("mStartMarkerLineEdit"))
        self.horizontalLayout.addWidget(self.mStartMarkerLineEdit)
        self.mStartMarkerToolButton = QtGui.QToolButton(self.mArrowMarkersGroupBox)
        self.mStartMarkerToolButton.setObjectName(_fromUtf8("mStartMarkerToolButton"))
        self.horizontalLayout.addWidget(self.mStartMarkerToolButton)
        self.gridLayout.addLayout(self.horizontalLayout, 5, 1, 1, 1)
        self.mEndMarkerLabel = QtGui.QLabel(self.mArrowMarkersGroupBox)
        self.mEndMarkerLabel.setObjectName(_fromUtf8("mEndMarkerLabel"))
        self.gridLayout.addWidget(self.mEndMarkerLabel, 6, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.mEndMarkerLineEdit = QtGui.QLineEdit(self.mArrowMarkersGroupBox)
        self.mEndMarkerLineEdit.setObjectName(_fromUtf8("mEndMarkerLineEdit"))
        self.horizontalLayout_2.addWidget(self.mEndMarkerLineEdit)
        self.mEndMarkerToolButton = QtGui.QToolButton(self.mArrowMarkersGroupBox)
        self.mEndMarkerToolButton.setObjectName(_fromUtf8("mEndMarkerToolButton"))
        self.horizontalLayout_2.addWidget(self.mEndMarkerToolButton)
        self.gridLayout.addLayout(self.horizontalLayout_2, 6, 1, 1, 1)
        self.mainLayout.addWidget(self.mArrowMarkersGroupBox)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)

        self.retranslateUi()
        QtCore.QMetaObject.connectSlotsByName(self)
        self.setTabOrder(self.scrollArea, self.groupBox)
        self.setTabOrder(self.groupBox, self.mLineStyleButton)
        self.setTabOrder(self.mLineStyleButton, self.mArrowMarkersGroupBox)
        self.setTabOrder(self.mArrowMarkersGroupBox, self.mDefaultMarkerRadioButton)
        self.setTabOrder(self.mDefaultMarkerRadioButton, self.mNoMarkerRadioButton)
        self.setTabOrder(self.mNoMarkerRadioButton, self.mSvgMarkerRadioButton)
        self.setTabOrder(self.mSvgMarkerRadioButton, self.mArrowHeadOutlineColorButton)
        self.setTabOrder(self.mArrowHeadOutlineColorButton, self.mArrowHeadFillColorButton)
        self.setTabOrder(self.mArrowHeadFillColorButton, self.mOutlineWidthSpinBox)
        self.setTabOrder(self.mOutlineWidthSpinBox, self.mArrowHeadWidthSpinBox)
        self.setTabOrder(self.mArrowHeadWidthSpinBox, self.mStartMarkerLineEdit)
        self.setTabOrder(self.mStartMarkerLineEdit, self.mStartMarkerToolButton)
        self.setTabOrder(self.mStartMarkerToolButton, self.mEndMarkerLineEdit)
        self.setTabOrder(self.mEndMarkerLineEdit, self.mEndMarkerToolButton)
    def __init__(self, parent, QgsComposerLabelWidgetBase):
        QtGui.QWidget.__init__(self, parent)
        self.setObjectName(_fromUtf8("self"))
        self.resize(304, 705)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
        self.setSizePolicy(sizePolicy)
        self._2 = QtGui.QVBoxLayout(self)
        self._2.setSpacing(0)
        self._2.setMargin(0)
        self._2.setObjectName(_fromUtf8("_2"))
        self.label = QtGui.QLabel(self)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setStyleSheet(
            _fromUtf8(
                "padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);"
            ))
        self.label.setObjectName(_fromUtf8("label"))
        self._2.addWidget(self.label)
        self.scrollArea = QtGui.QScrollArea(self)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 302, 682))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.mainLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.mainLayout.setObjectName(_fromUtf8("mainLayout"))
        self.mTextGroupBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mTextGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mTextGroupBox.setCheckable(False)
        self.mTextGroupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.mTextGroupBox.setProperty("collapsed", False)
        self.mTextGroupBox.setObjectName(_fromUtf8("mTextGroupBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.mTextGroupBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.mTextEdit = QtGui.QPlainTextEdit(self.mTextGroupBox)
        self.mTextEdit.setTabStopWidth(10)
        self.mTextEdit.setObjectName(_fromUtf8("mTextEdit"))
        self.gridLayout_2.addWidget(self.mTextEdit, 0, 0, 1, 1)
        self.mHtmlCheckBox = QtGui.QCheckBox(self.mTextGroupBox)
        self.mHtmlCheckBox.setObjectName(_fromUtf8("mHtmlCheckBox"))
        self.gridLayout_2.addWidget(self.mHtmlCheckBox, 1, 0, 1, 1)
        self.mInsertExpressionButton = QtGui.QPushButton(self.mTextGroupBox)
        self.mInsertExpressionButton.setObjectName(
            _fromUtf8("mInsertExpressionButton"))
        self.gridLayout_2.addWidget(self.mInsertExpressionButton, 2, 0, 1, 1)
        self.mainLayout.addWidget(self.mTextGroupBox)
        self.mAppearanceGroup = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mAppearanceGroup.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mAppearanceGroup.setCheckable(False)
        self.mAppearanceGroup.setProperty("syncGroup",
                                          _fromUtf8("composeritem"))
        self.mAppearanceGroup.setProperty("collapsed", False)
        self.mAppearanceGroup.setObjectName(_fromUtf8("mAppearanceGroup"))
        self.gridLayout = QtGui.QGridLayout(self.mAppearanceGroup)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_2 = QtGui.QLabel(self.mAppearanceGroup)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.mTopRadioButton = QtGui.QRadioButton(self.mAppearanceGroup)
        self.mTopRadioButton.setObjectName(_fromUtf8("mTopRadioButton"))
        self.buttonGroup = QtGui.QButtonGroup(self)
        self.buttonGroup.setObjectName(_fromUtf8("buttonGroup"))
        self.buttonGroup.addButton(self.mTopRadioButton)
        self.horizontalLayout_6.addWidget(self.mTopRadioButton)
        self.mMiddleRadioButton = QtGui.QRadioButton(self.mAppearanceGroup)
        self.mMiddleRadioButton.setObjectName(_fromUtf8("mMiddleRadioButton"))
        self.buttonGroup.addButton(self.mMiddleRadioButton)
        self.horizontalLayout_6.addWidget(self.mMiddleRadioButton)
        self.mBottomRadioButton = QtGui.QRadioButton(self.mAppearanceGroup)
        self.mBottomRadioButton.setObjectName(_fromUtf8("mBottomRadioButton"))
        self.buttonGroup.addButton(self.mBottomRadioButton)
        self.horizontalLayout_6.addWidget(self.mBottomRadioButton)
        spacerItem = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout_6, 7, 0, 1, 2)
        self.mMarginXDoubleSpinBox = QgsDoubleSpinBox(self.mAppearanceGroup)
        self.mMarginXDoubleSpinBox.setPrefix(_fromUtf8(""))
        self.mMarginXDoubleSpinBox.setMinimum(-99.99)
        self.mMarginXDoubleSpinBox.setObjectName(
            _fromUtf8("mMarginXDoubleSpinBox"))
        self.gridLayout.addWidget(self.mMarginXDoubleSpinBox, 2, 1, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.mLeftRadioButton = QtGui.QRadioButton(self.mAppearanceGroup)
        self.mLeftRadioButton.setObjectName(_fromUtf8("mLeftRadioButton"))
        self.buttonGroup_2 = QtGui.QButtonGroup(self)
        self.buttonGroup_2.setObjectName(_fromUtf8("buttonGroup_2"))
        self.buttonGroup_2.addButton(self.mLeftRadioButton)
        self.horizontalLayout_5.addWidget(self.mLeftRadioButton)
        self.mCenterRadioButton = QtGui.QRadioButton(self.mAppearanceGroup)
        self.mCenterRadioButton.setObjectName(_fromUtf8("mCenterRadioButton"))
        self.buttonGroup_2.addButton(self.mCenterRadioButton)
        self.horizontalLayout_5.addWidget(self.mCenterRadioButton)
        self.mRightRadioButton = QtGui.QRadioButton(self.mAppearanceGroup)
        self.mRightRadioButton.setObjectName(_fromUtf8("mRightRadioButton"))
        self.buttonGroup_2.addButton(self.mRightRadioButton)
        self.horizontalLayout_5.addWidget(self.mRightRadioButton)
        spacerItem1 = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem1)
        self.gridLayout.addLayout(self.horizontalLayout_5, 5, 0, 1, 2)
        self.mHorizontalAlignementLabel = QtGui.QLabel(self.mAppearanceGroup)
        self.mHorizontalAlignementLabel.setObjectName(
            _fromUtf8("mHorizontalAlignementLabel"))
        self.gridLayout.addWidget(self.mHorizontalAlignementLabel, 4, 0, 1, 2)
        self.mVerticalAlignementLabel = QtGui.QLabel(self.mAppearanceGroup)
        self.mVerticalAlignementLabel.setObjectName(
            _fromUtf8("mVerticalAlignementLabel"))
        self.gridLayout.addWidget(self.mVerticalAlignementLabel, 6, 0, 1, 2)
        self.mFontButton = QtGui.QPushButton(self.mAppearanceGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mFontButton.sizePolicy().hasHeightForWidth())
        self.mFontButton.setSizePolicy(sizePolicy)
        self.mFontButton.setObjectName(_fromUtf8("mFontButton"))
        self.gridLayout.addWidget(self.mFontButton, 0, 0, 1, 2)
        self.mMarginXLabel = QtGui.QLabel(self.mAppearanceGroup)
        self.mMarginXLabel.setObjectName(_fromUtf8("mMarginXLabel"))
        self.gridLayout.addWidget(self.mMarginXLabel, 2, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mFontColorButton = QgsColorButtonV2(self.mAppearanceGroup)
        self.mFontColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mFontColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mFontColorButton.setText(_fromUtf8(""))
        self.mFontColorButton.setObjectName(_fromUtf8("mFontColorButton"))
        self.horizontalLayout.addWidget(self.mFontColorButton)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 1, 1, 1)
        self.mMarginYDoubleSpinBox = QgsDoubleSpinBox(self.mAppearanceGroup)
        self.mMarginYDoubleSpinBox.setMinimum(-99.99)
        self.mMarginYDoubleSpinBox.setObjectName(
            _fromUtf8("mMarginYDoubleSpinBox"))
        self.gridLayout.addWidget(self.mMarginYDoubleSpinBox, 3, 1, 1, 1)
        self.mMarginYLabel = QtGui.QLabel(self.mAppearanceGroup)
        self.mMarginYLabel.setObjectName(_fromUtf8("mMarginYLabel"))
        self.gridLayout.addWidget(self.mMarginYLabel, 3, 0, 1, 1)
        self.mainLayout.addWidget(self.mAppearanceGroup)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self._2.addWidget(self.scrollArea)

        self.retranslateUi()
        QtCore.QMetaObject.connectSlotsByName(self)
        self.setTabOrder(self.scrollArea, self.mTextGroupBox)
        self.setTabOrder(self.mTextGroupBox, self.mTextEdit)
        self.setTabOrder(self.mTextEdit, self.mHtmlCheckBox)
        self.setTabOrder(self.mHtmlCheckBox, self.mInsertExpressionButton)
        self.setTabOrder(self.mInsertExpressionButton, self.mAppearanceGroup)
        self.setTabOrder(self.mAppearanceGroup, self.mFontButton)
        self.setTabOrder(self.mFontButton, self.mFontColorButton)
        self.setTabOrder(self.mFontColorButton, self.mMarginXDoubleSpinBox)
        self.setTabOrder(self.mMarginXDoubleSpinBox,
                         self.mMarginYDoubleSpinBox)
        self.setTabOrder(self.mMarginYDoubleSpinBox, self.mLeftRadioButton)
        self.setTabOrder(self.mLeftRadioButton, self.mCenterRadioButton)
        self.setTabOrder(self.mCenterRadioButton, self.mRightRadioButton)
        self.setTabOrder(self.mRightRadioButton, self.mTopRadioButton)
        self.setTabOrder(self.mTopRadioButton, self.mMiddleRadioButton)
        self.setTabOrder(self.mMiddleRadioButton, self.mBottomRadioButton)
    def setupUi(self, nbn):
        nbn.setObjectName(_fromUtf8("nbn"))
        nbn.resize(407, 560)
        nbn.setStyleSheet(
            _fromUtf8("#pbAttention{\n"
                      "    background-color: red;\n"
                      "    border-style: outset;\n"
                      "    border-width: 2px;\n"
                      "    border-radius: 10px;\n"
                      "    border-color: beige;\n"
                      "    font: bold 12px;\n"
                      "    min-width: 10em;\n"
                      "    padding: 6px;\n"
                      "}\n"
                      "#pbAttention:pressed {\n"
                      "    background-color: rgb(224, 0, 0);\n"
                      "    border-style: inset;\n"
                      "}"))
        self.verticalLayout_9 = QtGui.QVBoxLayout(nbn)
        self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9"))
        self.tabWidget = QtGui.QTabWidget(nbn)
        self.tabWidget.setMinimumSize(QtCore.QSize(280, 230))
        self.tabWidget.setTabPosition(QtGui.QTabWidget.North)
        self.tabWidget.setTabShape(QtGui.QTabWidget.Rounded)
        self.tabWidget.setUsesScrollButtons(True)
        self.tabWidget.setDocumentMode(False)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabOptions = QtGui.QWidget()
        self.tabOptions.setObjectName(_fromUtf8("tabOptions"))
        self.verticalLayout_8 = QtGui.QVBoxLayout(self.tabOptions)
        self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8"))
        self.groupBox_3 = QtGui.QGroupBox(self.tabOptions)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMinimumSize(QtCore.QSize(0, 0))
        self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.pbSpeciesWMS = QtGui.QPushButton(self.groupBox_3)
        self.pbSpeciesWMS.setMinimumSize(QtCore.QSize(95, 25))
        self.pbSpeciesWMS.setMaximumSize(QtCore.QSize(95, 25))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("images/nbngridmap.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pbSpeciesWMS.setIcon(icon)
        self.pbSpeciesWMS.setIconSize(QtCore.QSize(20, 20))
        self.pbSpeciesWMS.setObjectName(_fromUtf8("pbSpeciesWMS"))
        self.horizontalLayout_3.addWidget(self.pbSpeciesWMS)
        self.cbGridSize = QtGui.QComboBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(3)
        sizePolicy.setHeightForWidth(
            self.cbGridSize.sizePolicy().hasHeightForWidth())
        self.cbGridSize.setSizePolicy(sizePolicy)
        self.cbGridSize.setMinimumSize(QtCore.QSize(95, 25))
        self.cbGridSize.setMaximumSize(QtCore.QSize(95, 25))
        self.cbGridSize.setObjectName(_fromUtf8("cbGridSize"))
        self.cbGridSize.addItem(_fromUtf8(""))
        self.cbGridSize.addItem(_fromUtf8(""))
        self.horizontalLayout_3.addWidget(self.cbGridSize)
        spacerItem = QtGui.QSpacerItem(140, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.verticalLayout_8.addWidget(self.groupBox_3)
        self.mgbWMSStyles = QgsCollapsibleGroupBox(self.tabOptions)
        self.mgbWMSStyles.setObjectName(_fromUtf8("mgbWMSStyles"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.mgbWMSStyles)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setObjectName(
            _fromUtf8("horizontalLayout_11"))
        self.label_3 = QtGui.QLabel(self.mgbWMSStyles)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setMinimumSize(QtCore.QSize(0, 0))
        self.label_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_11.addWidget(self.label_3)
        self.mcbWMSColour = QgsColorButtonV2(self.mgbWMSStyles)
        self.mcbWMSColour.setColor(QtGui.QColor(170, 0, 0))
        self.mcbWMSColour.setDefaultColor(QtGui.QColor(170, 0, 0))
        self.mcbWMSColour.setShowNoColor(False)
        self.mcbWMSColour.setObjectName(_fromUtf8("mcbWMSColour"))
        self.horizontalLayout_11.addWidget(self.mcbWMSColour)
        self.label_2 = QtGui.QLabel(self.mgbWMSStyles)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMinimumSize(QtCore.QSize(0, 0))
        self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_11.addWidget(self.label_2)
        self.sbPointSize = QtGui.QSpinBox(self.mgbWMSStyles)
        self.sbPointSize.setMinimum(1)
        self.sbPointSize.setMaximum(20)
        self.sbPointSize.setProperty("value", 6)
        self.sbPointSize.setObjectName(_fromUtf8("sbPointSize"))
        self.horizontalLayout_11.addWidget(self.sbPointSize)
        spacerItem1 = QtGui.QSpacerItem(13, 16, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_11)
        self.horizontalLayout_13 = QtGui.QHBoxLayout()
        self.horizontalLayout_13.setObjectName(
            _fromUtf8("horizontalLayout_13"))
        self.label = QtGui.QLabel(self.mgbWMSStyles)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(70, 0))
        self.label.setMaximumSize(QtCore.QSize(70, 16777215))
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout_13.addWidget(self.label)
        self.hsTransparency = QtGui.QSlider(self.mgbWMSStyles)
        self.hsTransparency.setProperty("value", 0)
        self.hsTransparency.setOrientation(QtCore.Qt.Horizontal)
        self.hsTransparency.setTickPosition(QtGui.QSlider.TicksBelow)
        self.hsTransparency.setTickInterval(10)
        self.hsTransparency.setObjectName(_fromUtf8("hsTransparency"))
        self.horizontalLayout_13.addWidget(self.hsTransparency)
        self.verticalLayout_2.addLayout(self.horizontalLayout_13)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.cbOutline = QtGui.QCheckBox(self.mgbWMSStyles)
        self.cbOutline.setObjectName(_fromUtf8("cbOutline"))
        self.horizontalLayout_5.addWidget(self.cbOutline)
        self.cbGridLabels = QtGui.QCheckBox(self.mgbWMSStyles)
        self.cbGridLabels.setObjectName(_fromUtf8("cbGridLabels"))
        self.horizontalLayout_5.addWidget(self.cbGridLabels)
        spacerItem2 = QtGui.QSpacerItem(13, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.verticalLayout_8.addWidget(self.mgbWMSStyles)
        self.groupBox_5 = QtGui.QGroupBox(self.tabOptions)
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.horizontalLayout_14 = QtGui.QHBoxLayout(self.groupBox_5)
        self.horizontalLayout_14.setObjectName(
            _fromUtf8("horizontalLayout_14"))
        self.pbDownload = QtGui.QPushButton(self.groupBox_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbDownload.sizePolicy().hasHeightForWidth())
        self.pbDownload.setSizePolicy(sizePolicy)
        self.pbDownload.setMinimumSize(QtCore.QSize(100, 25))
        self.pbDownload.setMaximumSize(QtCore.QSize(90, 25))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("images/nbndownload.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pbDownload.setIcon(icon1)
        self.pbDownload.setIconSize(QtCore.QSize(20, 20))
        self.pbDownload.setObjectName(_fromUtf8("pbDownload"))
        self.horizontalLayout_14.addWidget(self.pbDownload)
        spacerItem3 = QtGui.QSpacerItem(96, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_14.addItem(spacerItem3)
        self.verticalLayout_8.addWidget(self.groupBox_5)
        self.groupBox_7 = QtGui.QGroupBox(self.tabOptions)
        self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.groupBox_7)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.cbIndTaxon = QtGui.QCheckBox(self.groupBox_7)
        self.cbIndTaxon.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbIndTaxon.sizePolicy().hasHeightForWidth())
        self.cbIndTaxon.setSizePolicy(sizePolicy)
        self.cbIndTaxon.setMinimumSize(QtCore.QSize(70, 0))
        self.cbIndTaxon.setMaximumSize(QtCore.QSize(70, 16777215))
        self.cbIndTaxon.setObjectName(_fromUtf8("cbIndTaxon"))
        self.horizontalLayout_8.addWidget(self.cbIndTaxon)
        self.cbIndDataset = QtGui.QCheckBox(self.groupBox_7)
        self.cbIndDataset.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbIndDataset.sizePolicy().hasHeightForWidth())
        self.cbIndDataset.setSizePolicy(sizePolicy)
        self.cbIndDataset.setMinimumSize(QtCore.QSize(70, 0))
        self.cbIndDataset.setMaximumSize(QtCore.QSize(70, 16777215))
        self.cbIndDataset.setObjectName(_fromUtf8("cbIndDataset"))
        self.horizontalLayout_8.addWidget(self.cbIndDataset)
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem4)
        self.verticalLayout_7.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_12 = QtGui.QHBoxLayout()
        self.horizontalLayout_12.setObjectName(
            _fromUtf8("horizontalLayout_12"))
        self.cbIndStartYear = QtGui.QCheckBox(self.groupBox_7)
        self.cbIndStartYear.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbIndStartYear.sizePolicy().hasHeightForWidth())
        self.cbIndStartYear.setSizePolicy(sizePolicy)
        self.cbIndStartYear.setMinimumSize(QtCore.QSize(80, 0))
        self.cbIndStartYear.setMaximumSize(QtCore.QSize(80, 16777215))
        self.cbIndStartYear.setObjectName(_fromUtf8("cbIndStartYear"))
        self.horizontalLayout_12.addWidget(self.cbIndStartYear)
        self.cbIndEndYear = QtGui.QCheckBox(self.groupBox_7)
        self.cbIndEndYear.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbIndEndYear.sizePolicy().hasHeightForWidth())
        self.cbIndEndYear.setSizePolicy(sizePolicy)
        self.cbIndEndYear.setMinimumSize(QtCore.QSize(80, 0))
        self.cbIndEndYear.setMaximumSize(QtCore.QSize(80, 16777215))
        self.cbIndEndYear.setObjectName(_fromUtf8("cbIndEndYear"))
        self.horizontalLayout_12.addWidget(self.cbIndEndYear)
        self.cbIndPolygon = QtGui.QCheckBox(self.groupBox_7)
        self.cbIndPolygon.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbIndPolygon.sizePolicy().hasHeightForWidth())
        self.cbIndPolygon.setSizePolicy(sizePolicy)
        self.cbIndPolygon.setMinimumSize(QtCore.QSize(70, 0))
        self.cbIndPolygon.setMaximumSize(QtCore.QSize(70, 16777215))
        self.cbIndPolygon.setObjectName(_fromUtf8("cbIndPolygon"))
        self.horizontalLayout_12.addWidget(self.cbIndPolygon)
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_12.addItem(spacerItem5)
        self.verticalLayout_7.addLayout(self.horizontalLayout_12)
        self.verticalLayout_8.addWidget(self.groupBox_7)
        spacerItem6 = QtGui.QSpacerItem(20, 23, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_8.addItem(spacerItem6)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem7 = QtGui.QSpacerItem(13, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem7)
        self.butClearLast = QtGui.QPushButton(self.tabOptions)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.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(_fromUtf8(""))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("images/removelayer.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butClearLast.setIcon(icon2)
        self.butClearLast.setIconSize(QtCore.QSize(28, 28))
        self.butClearLast.setObjectName(_fromUtf8("butClearLast"))
        self.horizontalLayout_2.addWidget(self.butClearLast)
        self.butClear = QtGui.QPushButton(self.tabOptions)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.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(_fromUtf8(""))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("images/removelayers.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butClear.setIcon(icon3)
        self.butClear.setIconSize(QtCore.QSize(28, 28))
        self.butClear.setObjectName(_fromUtf8("butClear"))
        self.horizontalLayout_2.addWidget(self.butClear)
        self.butHelp = QtGui.QPushButton(self.tabOptions)
        self.butHelp.setMinimumSize(QtCore.QSize(30, 30))
        self.butHelp.setMaximumSize(QtCore.QSize(30, 30))
        self.butHelp.setText(_fromUtf8(""))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("images/bang.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butHelp.setIcon(icon4)
        self.butHelp.setIconSize(QtCore.QSize(24, 24))
        self.butHelp.setObjectName(_fromUtf8("butHelp"))
        self.horizontalLayout_2.addWidget(self.butHelp)
        self.verticalLayout_8.addLayout(self.horizontalLayout_2)
        self.tabWidget.addTab(self.tabOptions, _fromUtf8(""))
        self.tab_7 = QtGui.QWidget()
        self.tab_7.setObjectName(_fromUtf8("tab_7"))
        self.verticalLayout_11 = QtGui.QVBoxLayout(self.tab_7)
        self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
        self.tabWidget_2 = QtGui.QTabWidget(self.tab_7)
        self.tabWidget_2.setTabPosition(QtGui.QTabWidget.East)
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.tab_8 = QtGui.QWidget()
        self.tab_8.setObjectName(_fromUtf8("tab_8"))
        self.verticalLayout_19 = QtGui.QVBoxLayout(self.tab_8)
        self.verticalLayout_19.setObjectName(_fromUtf8("verticalLayout_19"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.leTaxonSearch = QtGui.QLineEdit(self.tab_8)
        self.leTaxonSearch.setObjectName(_fromUtf8("leTaxonSearch"))
        self.horizontalLayout.addWidget(self.leTaxonSearch)
        self.butTaxonSearch = QtGui.QPushButton(self.tab_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butTaxonSearch.sizePolicy().hasHeightForWidth())
        self.butTaxonSearch.setSizePolicy(sizePolicy)
        self.butTaxonSearch.setMinimumSize(QtCore.QSize(30, 30))
        self.butTaxonSearch.setMaximumSize(QtCore.QSize(30, 30))
        self.butTaxonSearch.setText(_fromUtf8(""))
        icon5 = QtGui.QIcon()
        icon5.addPixmap(
            QtGui.QPixmap(_fromUtf8("images/speciesinventory.png")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butTaxonSearch.setIcon(icon5)
        self.butTaxonSearch.setIconSize(QtCore.QSize(26, 26))
        self.butTaxonSearch.setObjectName(_fromUtf8("butTaxonSearch"))
        self.horizontalLayout.addWidget(self.butTaxonSearch)
        self.verticalLayout_19.addLayout(self.horizontalLayout)
        self.twTaxa = QtGui.QTreeWidget(self.tab_8)
        self.twTaxa.setIndentation(10)
        self.twTaxa.setHeaderHidden(True)
        self.twTaxa.setColumnCount(1)
        self.twTaxa.setObjectName(_fromUtf8("twTaxa"))
        self.twTaxa.headerItem().setText(0, _fromUtf8("1"))
        self.twTaxa.header().setVisible(False)
        self.twTaxa.header().setStretchLastSection(True)
        self.verticalLayout_19.addWidget(self.twTaxa)
        self.tabWidget_2.addTab(self.tab_8, _fromUtf8(""))
        self.tab_9 = QtGui.QWidget()
        self.tab_9.setObjectName(_fromUtf8("tab_9"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab_9)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.twProviders = QtGui.QTreeWidget(self.tab_9)
        self.twProviders.setHeaderHidden(True)
        self.twProviders.setColumnCount(1)
        self.twProviders.setObjectName(_fromUtf8("twProviders"))
        self.twProviders.headerItem().setText(0, _fromUtf8("1"))
        self.twProviders.header().setVisible(False)
        self.twProviders.header().setStretchLastSection(True)
        self.verticalLayout_3.addWidget(self.twProviders)
        self.lblDatasetFilter = QtGui.QLabel(self.tab_9)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.lblDatasetFilter.setFont(font)
        self.lblDatasetFilter.setAutoFillBackground(False)
        self.lblDatasetFilter.setWordWrap(True)
        self.lblDatasetFilter.setObjectName(_fromUtf8("lblDatasetFilter"))
        self.verticalLayout_3.addWidget(self.lblDatasetFilter)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem8)
        self.pbUncheckAll = QtGui.QPushButton(self.tab_9)
        self.pbUncheckAll.setMinimumSize(QtCore.QSize(0, 0))
        self.pbUncheckAll.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.pbUncheckAll.setObjectName(_fromUtf8("pbUncheckAll"))
        self.horizontalLayout_9.addWidget(self.pbUncheckAll)
        self.pbRefreshDatasets = QtGui.QPushButton(self.tab_9)
        self.pbRefreshDatasets.setObjectName(_fromUtf8("pbRefreshDatasets"))
        self.horizontalLayout_9.addWidget(self.pbRefreshDatasets)
        self.verticalLayout_3.addLayout(self.horizontalLayout_9)
        self.tabWidget_2.addTab(self.tab_9, _fromUtf8(""))
        self.tab_13 = QtGui.QWidget()
        self.tab_13.setObjectName(_fromUtf8("tab_13"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.tab_13)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.groupBox = QtGui.QGroupBox(self.tab_13)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.sbStartYear = QtGui.QSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sbStartYear.sizePolicy().hasHeightForWidth())
        self.sbStartYear.setSizePolicy(sizePolicy)
        self.sbStartYear.setMinimumSize(QtCore.QSize(60, 0))
        self.sbStartYear.setMinimum(1600)
        self.sbStartYear.setMaximum(2100)
        self.sbStartYear.setSingleStep(1)
        self.sbStartYear.setProperty("value", 2000)
        self.sbStartYear.setObjectName(_fromUtf8("sbStartYear"))
        self.horizontalLayout_6.addWidget(self.sbStartYear)
        self.cbStartYear = QtGui.QCheckBox(self.groupBox)
        self.cbStartYear.setObjectName(_fromUtf8("cbStartYear"))
        self.horizontalLayout_6.addWidget(self.cbStartYear)
        self.verticalLayout_5.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.sbEndYear = QtGui.QSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sbEndYear.sizePolicy().hasHeightForWidth())
        self.sbEndYear.setSizePolicy(sizePolicy)
        self.sbEndYear.setMinimumSize(QtCore.QSize(60, 0))
        self.sbEndYear.setMinimum(1600)
        self.sbEndYear.setMaximum(2100)
        self.sbEndYear.setSingleStep(1)
        self.sbEndYear.setProperty("value", 2000)
        self.sbEndYear.setObjectName(_fromUtf8("sbEndYear"))
        self.horizontalLayout_7.addWidget(self.sbEndYear)
        self.cbEndYear = QtGui.QCheckBox(self.groupBox)
        self.cbEndYear.setObjectName(_fromUtf8("cbEndYear"))
        self.horizontalLayout_7.addWidget(self.cbEndYear)
        self.verticalLayout_5.addLayout(self.horizontalLayout_7)
        self.verticalLayout_6.addWidget(self.groupBox)
        spacerItem9 = QtGui.QSpacerItem(17, 53, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem9)
        self.tabWidget_2.addTab(self.tab_13, _fromUtf8(""))
        self.tabUtilities = QtGui.QWidget()
        self.tabUtilities.setObjectName(_fromUtf8("tabUtilities"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabUtilities)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.groupBox_8 = QtGui.QGroupBox(self.tabUtilities)
        self.groupBox_8.setObjectName(_fromUtf8("groupBox_8"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_8)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout_24 = QtGui.QHBoxLayout()
        self.horizontalLayout_24.setObjectName(
            _fromUtf8("horizontalLayout_24"))
        self.rbGR = QtGui.QRadioButton(self.groupBox_8)
        self.rbGR.setChecked(True)
        self.rbGR.setObjectName(_fromUtf8("rbGR"))
        self.horizontalLayout_24.addWidget(self.rbGR)
        self.rbEN = QtGui.QRadioButton(self.groupBox_8)
        self.rbEN.setObjectName(_fromUtf8("rbEN"))
        self.horizontalLayout_24.addWidget(self.rbEN)
        spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_24.addItem(spacerItem10)
        self.verticalLayout.addLayout(self.horizontalLayout_24)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.label_7 = QtGui.QLabel(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.horizontalLayout_4.addWidget(self.label_7)
        self.lePointBufferGR = QtGui.QLineEdit(self.groupBox_8)
        self.lePointBufferGR.setObjectName(_fromUtf8("lePointBufferGR"))
        self.horizontalLayout_4.addWidget(self.lePointBufferGR)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))
        self.label_10 = QtGui.QLabel(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.horizontalLayout_10.addWidget(self.label_10)
        self.sbEasting = QtGui.QSpinBox(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sbEasting.sizePolicy().hasHeightForWidth())
        self.sbEasting.setSizePolicy(sizePolicy)
        self.sbEasting.setMinimumSize(QtCore.QSize(60, 0))
        self.sbEasting.setMinimum(0)
        self.sbEasting.setMaximum(2000000)
        self.sbEasting.setSingleStep(1000)
        self.sbEasting.setProperty("value", 0)
        self.sbEasting.setObjectName(_fromUtf8("sbEasting"))
        self.horizontalLayout_10.addWidget(self.sbEasting)
        self.label_8 = QtGui.QLabel(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.horizontalLayout_10.addWidget(self.label_8)
        self.sbNorthing = QtGui.QSpinBox(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sbNorthing.sizePolicy().hasHeightForWidth())
        self.sbNorthing.setSizePolicy(sizePolicy)
        self.sbNorthing.setMinimumSize(QtCore.QSize(60, 0))
        self.sbNorthing.setMinimum(0)
        self.sbNorthing.setMaximum(2000000)
        self.sbNorthing.setSingleStep(1000)
        self.sbNorthing.setProperty("value", 0)
        self.sbNorthing.setObjectName(_fromUtf8("sbNorthing"))
        self.horizontalLayout_10.addWidget(self.sbNorthing)
        self.verticalLayout.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_22 = QtGui.QHBoxLayout()
        self.horizontalLayout_22.setObjectName(
            _fromUtf8("horizontalLayout_22"))
        self.label_9 = QtGui.QLabel(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout_22.addWidget(self.label_9)
        self.sbBuffer = QtGui.QSpinBox(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sbBuffer.sizePolicy().hasHeightForWidth())
        self.sbBuffer.setSizePolicy(sizePolicy)
        self.sbBuffer.setMinimumSize(QtCore.QSize(60, 0))
        self.sbBuffer.setMinimum(10)
        self.sbBuffer.setMaximum(10000)
        self.sbBuffer.setSingleStep(10)
        self.sbBuffer.setProperty("value", 2000)
        self.sbBuffer.setObjectName(_fromUtf8("sbBuffer"))
        self.horizontalLayout_22.addWidget(self.sbBuffer)
        spacerItem11 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_22.addItem(spacerItem11)
        self.pbBuffer = QtGui.QPushButton(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbBuffer.sizePolicy().hasHeightForWidth())
        self.pbBuffer.setSizePolicy(sizePolicy)
        self.pbBuffer.setMinimumSize(QtCore.QSize(30, 30))
        self.pbBuffer.setMaximumSize(QtCore.QSize(30, 30))
        self.pbBuffer.setText(_fromUtf8(""))
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8("images/buffer.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pbBuffer.setIcon(icon6)
        self.pbBuffer.setIconSize(QtCore.QSize(26, 26))
        self.pbBuffer.setObjectName(_fromUtf8("pbBuffer"))
        self.horizontalLayout_22.addWidget(self.pbBuffer)
        self.pbClearLastBuffer = QtGui.QPushButton(self.groupBox_8)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbClearLastBuffer.sizePolicy().hasHeightForWidth())
        self.pbClearLastBuffer.setSizePolicy(sizePolicy)
        self.pbClearLastBuffer.setMinimumSize(QtCore.QSize(30, 30))
        self.pbClearLastBuffer.setMaximumSize(QtCore.QSize(30, 30))
        self.pbClearLastBuffer.setText(_fromUtf8(""))
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(_fromUtf8("images/bufferclear.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pbClearLastBuffer.setIcon(icon7)
        self.pbClearLastBuffer.setIconSize(QtCore.QSize(26, 26))
        self.pbClearLastBuffer.setObjectName(_fromUtf8("pbClearLastBuffer"))
        self.horizontalLayout_22.addWidget(self.pbClearLastBuffer)
        self.verticalLayout.addLayout(self.horizontalLayout_22)
        self.verticalLayout_4.addWidget(self.groupBox_8)
        spacerItem12 = QtGui.QSpacerItem(20, 285, QtGui.QSizePolicy.Minimum,
                                         QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem12)
        self.tabWidget_2.addTab(self.tabUtilities, _fromUtf8(""))
        self.verticalLayout_11.addWidget(self.tabWidget_2)
        self.horizontalLayout_15 = QtGui.QHBoxLayout()
        self.horizontalLayout_15.setObjectName(
            _fromUtf8("horizontalLayout_15"))
        spacerItem13 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_15.addItem(spacerItem13)
        self.pbClearFilters = QtGui.QPushButton(self.tab_7)
        self.pbClearFilters.setObjectName(_fromUtf8("pbClearFilters"))
        self.horizontalLayout_15.addWidget(self.pbClearFilters)
        self.verticalLayout_11.addLayout(self.horizontalLayout_15)
        self.tabWidget.addTab(self.tab_7, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.verticalLayout_10 = QtGui.QVBoxLayout(self.tab_4)
        self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10"))
        self.lwDownloaded = QtGui.QListWidget(self.tab_4)
        self.lwDownloaded.setObjectName(_fromUtf8("lwDownloaded"))
        self.verticalLayout_10.addWidget(self.lwDownloaded)
        self.horizontalLayout_16 = QtGui.QHBoxLayout()
        self.horizontalLayout_16.setObjectName(
            _fromUtf8("horizontalLayout_16"))
        spacerItem14 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                         QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_16.addItem(spacerItem14)
        self.pbSendToBiorec = QtGui.QPushButton(self.tab_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pbSendToBiorec.sizePolicy().hasHeightForWidth())
        self.pbSendToBiorec.setSizePolicy(sizePolicy)
        self.pbSendToBiorec.setMinimumSize(QtCore.QSize(32, 32))
        self.pbSendToBiorec.setMaximumSize(QtCore.QSize(32, 32))
        self.pbSendToBiorec.setText(_fromUtf8(""))
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(_fromUtf8("images/maptaxa.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pbSendToBiorec.setIcon(icon8)
        self.pbSendToBiorec.setIconSize(QtCore.QSize(30, 30))
        self.pbSendToBiorec.setObjectName(_fromUtf8("pbSendToBiorec"))
        self.horizontalLayout_16.addWidget(self.pbSendToBiorec)
        self.verticalLayout_10.addLayout(self.horizontalLayout_16)
        self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
        self.verticalLayout_9.addWidget(self.tabWidget)

        self.retranslateUi(nbn)
        self.tabWidget.setCurrentIndex(0)
        self.cbGridSize.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(nbn)
# coding: utf-8
from PyQt4.QtGui import QDialog, QVBoxLayout
from qgis.gui import QgsColorButtonV2

# Create dialog and widget
d = QDialog()
# Create the color button
btn = QgsColorButtonV2()

# Create layout and add the button as a widget to it
vbox = QVBoxLayout()
vbox.addWidget(btn)

# Set the dialog layout
d.setLayout(vbox)

# Show the dialog and hence, the QgsColorButtonV2
d.show()
Ejemplo n.º 14
0
    def __init__(self, dPlotStyles, parent=None):

        super(PlotStyleDialog, self).__init__(parent)

        self.dPlotStyles = dPlotStyles

        settings = QSettings("alberese", "geocouche")

        layout = QVBoxLayout()

        # great circle settings

        grpGreatCircles = QGroupBox("Great circles")
        lytGreatCircles = QGridLayout()

        # line color

        lytGreatCircles.addWidget(QLabel("Line color"), 0, 0, 1, 1)
        self.btnLineColor = QgsColorButtonV2()
        line_color = self.dPlotStyles["line_color"]
        self.btnLineColor.setColor(QColor(line_color))
        lytGreatCircles.addWidget(self.btnLineColor, 0, 1, 1, 1)

        # line style

        lytGreatCircles.addWidget(QLabel("Line style"), 0, 2, 1, 1)
        self.cmbLineStyle = QComboBox()
        self.cmbLineStyle.insertItems(0, ltLineStyles)
        line_style = self.dPlotStyles["line_style"]
        line_style_ndx = ltLineStyles.index(
            line_style) if line_style in ltLineStyles else 0
        self.cmbLineStyle.setCurrentIndex(line_style_ndx)
        lytGreatCircles.addWidget(self.cmbLineStyle, 0, 3, 1, 1)

        # line thickness

        lytGreatCircles.addWidget(QLabel("Line width"), 1, 0, 1, 1)
        self.cmbLineWidth = QComboBox()
        lnLineThickness = [1, 2, 3, 4, 5, 6]
        ltLineThicknVals = [str(val) + " pt(s)" for val in lnLineThickness]
        self.cmbLineWidth.insertItems(0, ltLineThicknVals)
        line_thickn = self.dPlotStyles["line_width"]
        line_thickn_ndx = ltLineThicknVals.index(
            line_thickn) if line_thickn in ltLineThicknVals else 0
        self.cmbLineWidth.setCurrentIndex(line_thickn_ndx)
        lytGreatCircles.addWidget(self.cmbLineWidth, 1, 1, 1, 1)

        # line transparency

        lytGreatCircles.addWidget(QLabel("Line transp."), 1, 2, 1, 1)
        self.cmbLineTransp = QComboBox()
        lnLineTransparencies = [0, 25, 50, 75]
        ltLineTranspPrcntVals = [
            str(val) + "%" for val in lnLineTransparencies
        ]
        self.cmbLineTransp.insertItems(0, ltLineTranspPrcntVals)
        line_transp = self.dPlotStyles["line_transp"]
        line_transp_ndx = ltLineTranspPrcntVals.index(
            line_transp) if line_transp in ltLineTranspPrcntVals else 0
        self.cmbLineTransp.setCurrentIndex(line_transp_ndx)
        lytGreatCircles.addWidget(self.cmbLineTransp, 1, 3, 1, 1)

        # set/add to layout

        grpGreatCircles.setLayout(lytGreatCircles)
        layout.addWidget(grpGreatCircles)

        # pole settings

        grpPoles = QGroupBox("Poles")
        lytPoles = QGridLayout()

        # marker color

        lytPoles.addWidget(QLabel("Marker color"), 0, 0, 1, 1)
        self.btnPointColor = QgsColorButtonV2()
        point_color = self.dPlotStyles["marker_color"]
        self.btnPointColor.setColor(QColor(point_color))
        lytPoles.addWidget(self.btnPointColor, 0, 1, 1, 1)

        # marker style

        lytPoles.addWidget(QLabel("Marker style"), 0, 2, 1, 1)
        self.cmbPointStyle = QComboBox()
        self.cmbPointStyle.insertItems(0, ltMarkerStyles.keys())
        point_style = self.dPlotStyles["marker_style"]
        point_style_ndx = ltMarkerStyles.keys().index(
            point_style) if point_style in ltMarkerStyles.keys() else 0
        self.cmbPointStyle.setCurrentIndex(point_style_ndx)
        lytPoles.addWidget(self.cmbPointStyle, 0, 3, 1, 1)

        # marker size

        lytPoles.addWidget(QLabel("Marker size"), 1, 0, 1, 1)
        lnPointSizes = [2, 4, 6, 8, 10, 15, 20]
        self.cmbPointSize = QComboBox()
        ltPointSizeVals = [str(val) + " pt(s)" for val in lnPointSizes]
        self.cmbPointSize.insertItems(0, ltPointSizeVals)
        point_size = self.dPlotStyles["marker_size"]
        point_style_ndx = ltPointSizeVals.index(
            point_size) if point_size in ltPointSizeVals else 2
        self.cmbPointSize.setCurrentIndex(point_style_ndx)
        lytPoles.addWidget(self.cmbPointSize, 1, 1, 1, 1)

        # marker transparency

        lytPoles.addWidget(QLabel("Marker transp."), 1, 2, 1, 1)
        lnPointTransparencies = [0, 25, 50, 75]
        self.cmbPointTransp = QComboBox()
        ltPointTranspPrcntVals = [
            str(val) + "%" for val in lnPointTransparencies
        ]
        self.cmbPointTransp.insertItems(0, ltPointTranspPrcntVals)
        point_transp = self.dPlotStyles["marker_transp"]
        point_transp_ndx = ltPointTranspPrcntVals.index(
            point_transp) if point_transp in ltPointTranspPrcntVals else 0
        self.cmbPointTransp.setCurrentIndex(point_transp_ndx)
        lytPoles.addWidget(self.cmbPointTransp, 1, 3, 1, 1)

        # set/add to layout

        grpPoles.setLayout(lytPoles)
        layout.addWidget(grpPoles)

        # ok/cancel stuff
        btnOk = QPushButton("&OK")
        btnCancel = QPushButton("Cancel")

        lytButtons = QHBoxLayout()
        lytButtons.addStretch()
        lytButtons.addWidget(btnOk)
        lytButtons.addWidget(btnCancel)

        layout.addLayout(lytButtons)

        self.connect(btnOk, SIGNAL("clicked()"), self, SLOT("accept()"))
        self.connect(btnCancel, SIGNAL("clicked()"), self, SLOT("reject()"))

        self.setLayout(layout)

        self.setWindowTitle("Plot style")
Ejemplo n.º 15
0
    def setupUi(self, FilterExportDialog):
        FilterExportDialog.setObjectName(_fromUtf8("FilterExportDialog"))
        FilterExportDialog.resize(436, 298)
        self.gridLayout = QtGui.QGridLayout(FilterExportDialog)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.exportNameEdit = QtGui.QLineEdit(FilterExportDialog)
        self.exportNameEdit.setObjectName(_fromUtf8("exportNameEdit"))
        self.gridLayout.addWidget(self.exportNameEdit, 2, 1, 1, 1)
        self.filterSetNameEdit = QtGui.QLineEdit(FilterExportDialog)
        self.filterSetNameEdit.setReadOnly(True)
        self.filterSetNameEdit.setObjectName(_fromUtf8("filterSetNameEdit"))
        self.gridLayout.addWidget(self.filterSetNameEdit, 1, 1, 1, 1)
        self.filterSetNameLabel = QtGui.QLabel(FilterExportDialog)
        self.filterSetNameLabel.setObjectName(_fromUtf8("filterSetNameLabel"))
        self.gridLayout.addWidget(self.filterSetNameLabel, 1, 0, 1, 1)
        self.infoLabel = QtGui.QLabel(FilterExportDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.infoLabel.sizePolicy().hasHeightForWidth())
        self.infoLabel.setSizePolicy(sizePolicy)
        self.infoLabel.setTextFormat(QtCore.Qt.LogText)
        self.infoLabel.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
        self.infoLabel.setWordWrap(True)
        self.infoLabel.setObjectName(_fromUtf8("infoLabel"))
        self.gridLayout.addWidget(self.infoLabel, 0, 0, 1, 2)
        self.buttonBox = QtGui.QDialogButtonBox(FilterExportDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout.addWidget(self.buttonBox, 7, 0, 1, 2)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(20, -1, -1, -1)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.schematicColorLabel = QtGui.QLabel(FilterExportDialog)
        self.schematicColorLabel.setObjectName(_fromUtf8("schematicColorLabel"))
        self.horizontalLayout.addWidget(self.schematicColorLabel)
        self.schematicColorTool = QgsColorButtonV2(FilterExportDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.schematicColorTool.sizePolicy().hasHeightForWidth())
        self.schematicColorTool.setSizePolicy(sizePolicy)
        self.schematicColorTool.setMinimumSize(QtCore.QSize(0, 30))
        self.schematicColorTool.setObjectName(_fromUtf8("schematicColorTool"))
        self.horizontalLayout.addWidget(self.schematicColorTool)
        self.gridLayout.addLayout(self.horizontalLayout, 4, 1, 1, 1)
        self.exportSchematicButton = QtGui.QRadioButton(FilterExportDialog)
        self.exportSchematicButton.setChecked(True)
        self.exportSchematicButton.setObjectName(_fromUtf8("exportSchematicButton"))
        self.gridLayout.addWidget(self.exportSchematicButton, 3, 1, 1, 1)
        self.exportNameLabel = QtGui.QLabel(FilterExportDialog)
        self.exportNameLabel.setObjectName(_fromUtf8("exportNameLabel"))
        self.gridLayout.addWidget(self.exportNameLabel, 2, 0, 1, 1)
        self.exportDataButton = QtGui.QRadioButton(FilterExportDialog)
        self.exportDataButton.setObjectName(_fromUtf8("exportDataButton"))
        self.gridLayout.addWidget(self.exportDataButton, 5, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 6, 1, 1, 1)

        self.retranslateUi(FilterExportDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), FilterExportDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), FilterExportDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(FilterExportDialog)