def setupUi(self, QgsCompositionWidgetBase):
        QgsCompositionWidgetBase.setObjectName(
            _fromUtf8("QgsCompositionWidgetBase"))
        QgsCompositionWidgetBase.resize(345, 506)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            QgsCompositionWidgetBase.sizePolicy().hasHeightForWidth())
        QgsCompositionWidgetBase.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(QgsCompositionWidgetBase)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.scrollArea = QtGui.QScrollArea(QgsCompositionWidgetBase)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.scrollArea.sizePolicy().hasHeightForWidth())
        self.scrollArea.setSizePolicy(sizePolicy)
        self.scrollArea.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.scrollArea.setFrameShape(QtGui.QFrame.StyledPanel)
        self.scrollArea.setFrameShadow(QtGui.QFrame.Plain)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(
            0, 0, 327, 1085))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(
            self.scrollAreaWidgetContents)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        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.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.textLabel7 = QtGui.QLabel(self.groupBox)
        self.textLabel7.setWordWrap(True)
        self.textLabel7.setObjectName(_fromUtf8("textLabel7"))
        self.gridLayout.addWidget(self.textLabel7, 4, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
        self.mPaperUnitsComboBox = QtGui.QComboBox(self.groupBox)
        self.mPaperUnitsComboBox.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mPaperUnitsComboBox.sizePolicy().hasHeightForWidth())
        self.mPaperUnitsComboBox.setSizePolicy(sizePolicy)
        self.mPaperUnitsComboBox.setObjectName(
            _fromUtf8("mPaperUnitsComboBox"))
        self.gridLayout.addWidget(self.mPaperUnitsComboBox, 3, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setWordWrap(True)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
        self.textLabel3 = QtGui.QLabel(self.groupBox)
        self.textLabel3.setWordWrap(True)
        self.textLabel3.setObjectName(_fromUtf8("textLabel3"))
        self.gridLayout.addWidget(self.textLabel3, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.mPaperHeightDoubleSpinBox = QgsDoubleSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mPaperHeightDoubleSpinBox.sizePolicy().hasHeightForWidth())
        self.mPaperHeightDoubleSpinBox.setSizePolicy(sizePolicy)
        self.mPaperHeightDoubleSpinBox.setPrefix(_fromUtf8(""))
        self.mPaperHeightDoubleSpinBox.setSuffix(_fromUtf8(""))
        self.mPaperHeightDoubleSpinBox.setMaximum(99999.0)
        self.mPaperHeightDoubleSpinBox.setProperty("showClearButton", False)
        self.mPaperHeightDoubleSpinBox.setObjectName(
            _fromUtf8("mPaperHeightDoubleSpinBox"))
        self.horizontalLayout_3.addWidget(self.mPaperHeightDoubleSpinBox)
        self.mPaperHeightDDBtn = QgsDataDefinedButton(self.groupBox)
        self.mPaperHeightDDBtn.setObjectName(_fromUtf8("mPaperHeightDDBtn"))
        self.horizontalLayout_3.addWidget(self.mPaperHeightDDBtn)
        self.gridLayout.addLayout(self.horizontalLayout_3, 2, 1, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.mPaperWidthDoubleSpinBox = QgsDoubleSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mPaperWidthDoubleSpinBox.sizePolicy().hasHeightForWidth())
        self.mPaperWidthDoubleSpinBox.setSizePolicy(sizePolicy)
        self.mPaperWidthDoubleSpinBox.setPrefix(_fromUtf8(""))
        self.mPaperWidthDoubleSpinBox.setSuffix(_fromUtf8(""))
        self.mPaperWidthDoubleSpinBox.setMaximum(99999.0)
        self.mPaperWidthDoubleSpinBox.setProperty("showClearButton", False)
        self.mPaperWidthDoubleSpinBox.setObjectName(
            _fromUtf8("mPaperWidthDoubleSpinBox"))
        self.horizontalLayout_2.addWidget(self.mPaperWidthDoubleSpinBox)
        self.mPaperWidthDDBtn = QgsDataDefinedButton(self.groupBox)
        self.mPaperWidthDDBtn.setObjectName(_fromUtf8("mPaperWidthDDBtn"))
        self.horizontalLayout_2.addWidget(self.mPaperWidthDDBtn)
        self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mPaperSizeComboBox = QtGui.QComboBox(self.groupBox)
        self.mPaperSizeComboBox.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mPaperSizeComboBox.sizePolicy().hasHeightForWidth())
        self.mPaperSizeComboBox.setSizePolicy(sizePolicy)
        self.mPaperSizeComboBox.setObjectName(_fromUtf8("mPaperSizeComboBox"))
        self.horizontalLayout.addWidget(self.mPaperSizeComboBox)
        self.mPaperSizeDDBtn = QgsDataDefinedButton(self.groupBox)
        self.mPaperSizeDDBtn.setObjectName(_fromUtf8("mPaperSizeDDBtn"))
        self.horizontalLayout.addWidget(self.mPaperSizeDDBtn)
        self.gridLayout.addLayout(self.horizontalLayout, 0, 1, 1, 1)
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.mPaperOrientationComboBox = QtGui.QComboBox(self.groupBox)
        self.mPaperOrientationComboBox.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mPaperOrientationComboBox.sizePolicy().hasHeightForWidth())
        self.mPaperOrientationComboBox.setSizePolicy(sizePolicy)
        self.mPaperOrientationComboBox.setObjectName(
            _fromUtf8("mPaperOrientationComboBox"))
        self.horizontalLayout_5.addWidget(self.mPaperOrientationComboBox)
        self.mPaperOrientationDDBtn = QgsDataDefinedButton(self.groupBox)
        self.mPaperOrientationDDBtn.setObjectName(
            _fromUtf8("mPaperOrientationDDBtn"))
        self.horizontalLayout_5.addWidget(self.mPaperOrientationDDBtn)
        self.gridLayout.addLayout(self.horizontalLayout_5, 4, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupBox_5 = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.groupBox_5.setObjectName(_fromUtf8("groupBox_5"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.gridLayout_5 = QtGui.QGridLayout()
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label_4 = QtGui.QLabel(self.groupBox_5)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_5.addWidget(self.label_4, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem, 0, 0, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem1, 0, 3, 1, 1)
        self.mTopMarginSpinBox = QgsDoubleSpinBox(self.groupBox_5)
        self.mTopMarginSpinBox.setSingleStep(0.1)
        self.mTopMarginSpinBox.setObjectName(_fromUtf8("mTopMarginSpinBox"))
        self.gridLayout_5.addWidget(self.mTopMarginSpinBox, 0, 2, 1, 1)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.label_5 = QtGui.QLabel(self.groupBox_5)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout_7.addWidget(self.label_5)
        self.mLeftMarginSpinBox = QgsDoubleSpinBox(self.groupBox_5)
        self.mLeftMarginSpinBox.setSingleStep(0.1)
        self.mLeftMarginSpinBox.setObjectName(_fromUtf8("mLeftMarginSpinBox"))
        self.horizontalLayout_7.addWidget(self.mLeftMarginSpinBox)
        self.label_11 = QtGui.QLabel(self.groupBox_5)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_7.addWidget(self.label_11)
        self.mRightMarginSpinBox = QgsDoubleSpinBox(self.groupBox_5)
        self.mRightMarginSpinBox.setSingleStep(0.1)
        self.mRightMarginSpinBox.setObjectName(
            _fromUtf8("mRightMarginSpinBox"))
        self.horizontalLayout_7.addWidget(self.mRightMarginSpinBox)
        self.gridLayout_5.addLayout(self.horizontalLayout_7, 1, 0, 1, 4)
        self.label_12 = QtGui.QLabel(self.groupBox_5)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.gridLayout_5.addWidget(self.label_12, 2, 1, 1, 1)
        self.mBottomMarginSpinBox = QgsDoubleSpinBox(self.groupBox_5)
        self.mBottomMarginSpinBox.setSingleStep(0.1)
        self.mBottomMarginSpinBox.setObjectName(
            _fromUtf8("mBottomMarginSpinBox"))
        self.gridLayout_5.addWidget(self.mBottomMarginSpinBox, 2, 2, 1, 1)
        self.mResizePageButton = QtGui.QPushButton(self.groupBox_5)
        self.mResizePageButton.setObjectName(_fromUtf8("mResizePageButton"))
        self.gridLayout_5.addWidget(self.mResizePageButton, 3, 1, 1, 2)
        self.verticalLayout_5.addLayout(self.gridLayout_5)
        self.verticalLayout_2.addWidget(self.groupBox_5)
        self.groupBox_4 = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.mNumPagesLabel = QtGui.QLabel(self.groupBox_4)
        self.mNumPagesLabel.setWordWrap(True)
        self.mNumPagesLabel.setObjectName(_fromUtf8("mNumPagesLabel"))
        self.gridLayout_4.addWidget(self.mNumPagesLabel, 0, 0, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.mNumPagesSpinBox = QgsSpinBox(self.groupBox_4)
        self.mNumPagesSpinBox.setMinimum(1)
        self.mNumPagesSpinBox.setProperty("showClearButton", False)
        self.mNumPagesSpinBox.setObjectName(_fromUtf8("mNumPagesSpinBox"))
        self.horizontalLayout_4.addWidget(self.mNumPagesSpinBox)
        self.mNumPagesDDBtn = QgsDataDefinedButton(self.groupBox_4)
        self.mNumPagesDDBtn.setObjectName(_fromUtf8("mNumPagesDDBtn"))
        self.horizontalLayout_4.addWidget(self.mNumPagesDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout_4, 0, 1, 1, 1)
        self.label_10 = QtGui.QLabel(self.groupBox_4)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout_4.addWidget(self.label_10, 1, 0, 1, 1)
        self.mPageStyleButton = QtGui.QPushButton(self.groupBox_4)
        self.mPageStyleButton.setObjectName(_fromUtf8("mPageStyleButton"))
        self.gridLayout_4.addWidget(self.mPageStyleButton, 1, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_4)
        self.groupBox_3 = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_3)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.mResolutionSpinBox = QgsSpinBox(self.groupBox_3)
        self.mResolutionSpinBox.setPrefix(_fromUtf8(""))
        self.mResolutionSpinBox.setMaximum(3000)
        self.mResolutionSpinBox.setProperty("showClearButton", False)
        self.mResolutionSpinBox.setObjectName(_fromUtf8("mResolutionSpinBox"))
        self.gridLayout_3.addWidget(self.mResolutionSpinBox, 1, 1, 1, 1)
        self.mPrintAsRasterCheckBox = QtGui.QCheckBox(self.groupBox_3)
        self.mPrintAsRasterCheckBox.setCheckable(True)
        self.mPrintAsRasterCheckBox.setChecked(False)
        self.mPrintAsRasterCheckBox.setObjectName(
            _fromUtf8("mPrintAsRasterCheckBox"))
        self.gridLayout_3.addWidget(self.mPrintAsRasterCheckBox, 2, 0, 1, 1)
        self.mWorldFileMapComboBox = QtGui.QComboBox(self.groupBox_3)
        self.mWorldFileMapComboBox.setEnabled(False)
        self.mWorldFileMapComboBox.setEditable(False)
        self.mWorldFileMapComboBox.setObjectName(
            _fromUtf8("mWorldFileMapComboBox"))
        self.gridLayout_3.addWidget(self.mWorldFileMapComboBox, 3, 1, 1, 1)
        self.mGenerateWorldFileCheckBox = QtGui.QCheckBox(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mGenerateWorldFileCheckBox.sizePolicy().hasHeightForWidth())
        self.mGenerateWorldFileCheckBox.setSizePolicy(sizePolicy)
        self.mGenerateWorldFileCheckBox.setObjectName(
            _fromUtf8("mGenerateWorldFileCheckBox"))
        self.gridLayout_3.addWidget(self.mGenerateWorldFileCheckBox, 3, 0, 1,
                                    1)
        self.label_9 = QtGui.QLabel(self.groupBox_3)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout_3.addWidget(self.label_9, 1, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        self.mSnapToGridGroupCheckBox = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mSnapToGridGroupCheckBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mSnapToGridGroupCheckBox.setCheckable(False)
        self.mSnapToGridGroupCheckBox.setChecked(False)
        self.mSnapToGridGroupCheckBox.setProperty("syncGroup",
                                                  _fromUtf8("composeritem"))
        self.mSnapToGridGroupCheckBox.setProperty("collapsed", True)
        self.mSnapToGridGroupCheckBox.setObjectName(
            _fromUtf8("mSnapToGridGroupCheckBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.mSnapToGridGroupCheckBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_8 = QtGui.QLabel(self.mSnapToGridGroupCheckBox)
        self.label_8.setWordWrap(True)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_2.addWidget(self.label_8, 0, 0, 1, 1)
        self.mGridResolutionSpinBox = QgsDoubleSpinBox(
            self.mSnapToGridGroupCheckBox)
        self.mGridResolutionSpinBox.setPrefix(_fromUtf8(""))
        self.mGridResolutionSpinBox.setMinimum(0.5)
        self.mGridResolutionSpinBox.setMaximum(9999.0)
        self.mGridResolutionSpinBox.setProperty("showClearButton", False)
        self.mGridResolutionSpinBox.setObjectName(
            _fromUtf8("mGridResolutionSpinBox"))
        self.gridLayout_2.addWidget(self.mGridResolutionSpinBox, 0, 1, 1, 1)
        self.label_6 = QtGui.QLabel(self.mSnapToGridGroupCheckBox)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_2.addWidget(self.label_6, 1, 0, 1, 1)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.mOffsetXSpinBox = QgsDoubleSpinBox(self.mSnapToGridGroupCheckBox)
        self.mOffsetXSpinBox.setMaximum(9999.0)
        self.mOffsetXSpinBox.setObjectName(_fromUtf8("mOffsetXSpinBox"))
        self.verticalLayout_3.addWidget(self.mOffsetXSpinBox)
        self.mOffsetYSpinBox = QgsDoubleSpinBox(self.mSnapToGridGroupCheckBox)
        self.mOffsetYSpinBox.setMaximum(9999.0)
        self.mOffsetYSpinBox.setObjectName(_fromUtf8("mOffsetYSpinBox"))
        self.verticalLayout_3.addWidget(self.mOffsetYSpinBox)
        self.gridLayout_2.addLayout(self.verticalLayout_3, 1, 1, 1, 1)
        self.label_7 = QtGui.QLabel(self.mSnapToGridGroupCheckBox)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
        self.mSnapToleranceSpinBox = QgsSpinBox(self.mSnapToGridGroupCheckBox)
        self.mSnapToleranceSpinBox.setMaximum(200)
        self.mSnapToleranceSpinBox.setProperty("showClearButton", False)
        self.mSnapToleranceSpinBox.setObjectName(
            _fromUtf8("mSnapToleranceSpinBox"))
        self.gridLayout_2.addWidget(self.mSnapToleranceSpinBox, 2, 1, 1, 1)
        self.gridLayout_2.setColumnStretch(1, 1)
        self.verticalLayout_2.addWidget(self.mSnapToGridGroupCheckBox)
        self.groupBox_2 = QgsCollapsibleGroupBox(self.scrollAreaWidgetContents)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.mVariableEditor = QgsVariableEditorWidget(self.groupBox_2)
        self.mVariableEditor.setMinimumSize(QtCore.QSize(0, 200))
        self.mVariableEditor.setObjectName(_fromUtf8("mVariableEditor"))
        self.verticalLayout_4.addWidget(self.mVariableEditor)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem2)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)
        self.textLabel7.setBuddy(self.mPaperOrientationComboBox)
        self.textLabel3.setBuddy(self.mPaperSizeComboBox)

        self.retranslateUi(QgsCompositionWidgetBase)
        QtCore.QMetaObject.connectSlotsByName(QgsCompositionWidgetBase)
        QgsCompositionWidgetBase.setTabOrder(self.scrollArea, self.groupBox)
        QgsCompositionWidgetBase.setTabOrder(self.groupBox,
                                             self.mPaperSizeComboBox)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperSizeComboBox,
                                             self.mPaperSizeDDBtn)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperSizeDDBtn,
                                             self.mPaperWidthDoubleSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperWidthDoubleSpinBox,
                                             self.mPaperWidthDDBtn)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperWidthDDBtn,
                                             self.mPaperHeightDoubleSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperHeightDoubleSpinBox,
                                             self.mPaperHeightDDBtn)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperHeightDDBtn,
                                             self.mPaperUnitsComboBox)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperUnitsComboBox,
                                             self.mPaperOrientationComboBox)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperOrientationComboBox,
                                             self.mPaperOrientationDDBtn)
        QgsCompositionWidgetBase.setTabOrder(self.mPaperOrientationDDBtn,
                                             self.mTopMarginSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mTopMarginSpinBox,
                                             self.mLeftMarginSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mLeftMarginSpinBox,
                                             self.mRightMarginSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mRightMarginSpinBox,
                                             self.mBottomMarginSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mBottomMarginSpinBox,
                                             self.mResizePageButton)
        QgsCompositionWidgetBase.setTabOrder(self.mResizePageButton,
                                             self.mNumPagesSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mNumPagesSpinBox,
                                             self.mNumPagesDDBtn)
        QgsCompositionWidgetBase.setTabOrder(self.mNumPagesDDBtn,
                                             self.mPageStyleButton)
        QgsCompositionWidgetBase.setTabOrder(self.mPageStyleButton,
                                             self.mResolutionSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mResolutionSpinBox,
                                             self.mPrintAsRasterCheckBox)
        QgsCompositionWidgetBase.setTabOrder(self.mPrintAsRasterCheckBox,
                                             self.mGenerateWorldFileCheckBox)
        QgsCompositionWidgetBase.setTabOrder(self.mGenerateWorldFileCheckBox,
                                             self.mWorldFileMapComboBox)
        QgsCompositionWidgetBase.setTabOrder(self.mWorldFileMapComboBox,
                                             self.mSnapToGridGroupCheckBox)
        QgsCompositionWidgetBase.setTabOrder(self.mSnapToGridGroupCheckBox,
                                             self.mGridResolutionSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mGridResolutionSpinBox,
                                             self.mOffsetXSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mOffsetXSpinBox,
                                             self.mOffsetYSpinBox)
        QgsCompositionWidgetBase.setTabOrder(self.mOffsetYSpinBox,
                                             self.mSnapToleranceSpinBox)
    def setupUi(self, QgsComposerItemWidgetBase):
        QgsComposerItemWidgetBase.setObjectName(
            _fromUtf8("QgsComposerItemWidgetBase"))
        QgsComposerItemWidgetBase.resize(290, 847)
        self.verticalLayout_2 = QtGui.QVBoxLayout(QgsComposerItemWidgetBase)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.mGeneralOptionsGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mGeneralOptionsGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mGeneralOptionsGroupBox.setProperty("syncGroup",
                                                 _fromUtf8("composeritem"))
        self.mGeneralOptionsGroupBox.setProperty("collapsed", True)
        self.mGeneralOptionsGroupBox.setObjectName(
            _fromUtf8("mGeneralOptionsGroupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.mGeneralOptionsGroupBox)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.mWidthLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mWidthLabel.setObjectName(_fromUtf8("mWidthLabel"))
        self.gridLayout_3.addWidget(self.mWidthLabel, 3, 0, 1, 1)
        self.mXLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mXLabel.setObjectName(_fromUtf8("mXLabel"))
        self.gridLayout_3.addWidget(self.mXLabel, 1, 0, 1, 1)
        self.mHeightLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mHeightLabel.setObjectName(_fromUtf8("mHeightLabel"))
        self.gridLayout_3.addWidget(self.mHeightLabel, 4, 0, 1, 1)
        self.mYLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mYLabel.setObjectName(_fromUtf8("mYLabel"))
        self.gridLayout_3.addWidget(self.mYLabel, 2, 0, 1, 1)
        self.mPageLabel = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.mPageLabel.setObjectName(_fromUtf8("mPageLabel"))
        self.gridLayout_3.addWidget(self.mPageLabel, 0, 0, 1, 1)
        self.mXPositionDDBtn = QgsDataDefinedButton(
            self.mGeneralOptionsGroupBox)
        self.mXPositionDDBtn.setObjectName(_fromUtf8("mXPositionDDBtn"))
        self.gridLayout_3.addWidget(self.mXPositionDDBtn, 1, 3, 1, 1)
        self.mYPositionDDBtn = QgsDataDefinedButton(
            self.mGeneralOptionsGroupBox)
        self.mYPositionDDBtn.setObjectName(_fromUtf8("mYPositionDDBtn"))
        self.gridLayout_3.addWidget(self.mYPositionDDBtn, 2, 3, 1, 1)
        self.mWidthDDBtn = QgsDataDefinedButton(self.mGeneralOptionsGroupBox)
        self.mWidthDDBtn.setObjectName(_fromUtf8("mWidthDDBtn"))
        self.gridLayout_3.addWidget(self.mWidthDDBtn, 3, 3, 1, 1)
        self.mHeightDDBtn = QgsDataDefinedButton(self.mGeneralOptionsGroupBox)
        self.mHeightDDBtn.setObjectName(_fromUtf8("mHeightDDBtn"))
        self.gridLayout_3.addWidget(self.mHeightDDBtn, 4, 3, 1, 1)
        self.mPageSpinBox = QgsSpinBox(self.mGeneralOptionsGroupBox)
        self.mPageSpinBox.setMinimum(1)
        self.mPageSpinBox.setProperty("showClearButton", False)
        self.mPageSpinBox.setObjectName(_fromUtf8("mPageSpinBox"))
        self.gridLayout_3.addWidget(self.mPageSpinBox, 0, 1, 1, 3)
        self.mWidthSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mWidthSpin.setDecimals(3)
        self.mWidthSpin.setMaximum(9999999.0)
        self.mWidthSpin.setProperty("showClearButton", False)
        self.mWidthSpin.setObjectName(_fromUtf8("mWidthSpin"))
        self.gridLayout_3.addWidget(self.mWidthSpin, 3, 1, 1, 2)
        self.mHeightSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mHeightSpin.setDecimals(3)
        self.mHeightSpin.setMaximum(9999999.0)
        self.mHeightSpin.setProperty("showClearButton", False)
        self.mHeightSpin.setObjectName(_fromUtf8("mHeightSpin"))
        self.gridLayout_3.addWidget(self.mHeightSpin, 4, 1, 1, 2)
        self.mYPosSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mYPosSpin.setDecimals(3)
        self.mYPosSpin.setMinimum(-9999999.0)
        self.mYPosSpin.setMaximum(9999999.0)
        self.mYPosSpin.setProperty("showClearButton", False)
        self.mYPosSpin.setObjectName(_fromUtf8("mYPosSpin"))
        self.gridLayout_3.addWidget(self.mYPosSpin, 2, 1, 1, 2)
        self.mXPosSpin = QgsDoubleSpinBox(self.mGeneralOptionsGroupBox)
        self.mXPosSpin.setDecimals(3)
        self.mXPosSpin.setMinimum(-9999999.0)
        self.mXPosSpin.setMaximum(9999999.0)
        self.mXPosSpin.setProperty("showClearButton", False)
        self.mXPosSpin.setObjectName(_fromUtf8("mXPosSpin"))
        self.gridLayout_3.addWidget(self.mXPosSpin, 1, 1, 1, 2)
        self.gridLayout_3.setColumnStretch(1, 1)
        self.gridLayout_3.setColumnStretch(2, 1)
        self.gridLayout_3.setColumnStretch(3, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.label_2 = QtGui.QLabel(self.mGeneralOptionsGroupBox)
        self.label_2.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_7.addWidget(self.label_2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mUpperMiddleCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mUpperMiddleCheckBox.setText(_fromUtf8(""))
        self.mUpperMiddleCheckBox.setObjectName(
            _fromUtf8("mUpperMiddleCheckBox"))
        self.gridLayout.addWidget(self.mUpperMiddleCheckBox, 0, 1, 1, 1)
        self.mMiddleRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleRightCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleRightCheckBox.setText(_fromUtf8(""))
        self.mMiddleRightCheckBox.setObjectName(
            _fromUtf8("mMiddleRightCheckBox"))
        self.gridLayout.addWidget(self.mMiddleRightCheckBox, 1, 2, 1, 1)
        self.mMiddleCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleCheckBox.setText(_fromUtf8(""))
        self.mMiddleCheckBox.setObjectName(_fromUtf8("mMiddleCheckBox"))
        self.gridLayout.addWidget(self.mMiddleCheckBox, 1, 1, 1, 1)
        self.mUpperRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperRightCheckBox.setSizePolicy(sizePolicy)
        self.mUpperRightCheckBox.setText(_fromUtf8(""))
        self.mUpperRightCheckBox.setObjectName(
            _fromUtf8("mUpperRightCheckBox"))
        self.gridLayout.addWidget(self.mUpperRightCheckBox, 0, 2, 1, 1)
        self.mLowerMiddleCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerMiddleCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerMiddleCheckBox.setSizePolicy(sizePolicy)
        self.mLowerMiddleCheckBox.setText(_fromUtf8(""))
        self.mLowerMiddleCheckBox.setObjectName(
            _fromUtf8("mLowerMiddleCheckBox"))
        self.gridLayout.addWidget(self.mLowerMiddleCheckBox, 2, 1, 1, 1)
        self.mLowerRightCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerRightCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerRightCheckBox.setSizePolicy(sizePolicy)
        self.mLowerRightCheckBox.setText(_fromUtf8(""))
        self.mLowerRightCheckBox.setObjectName(
            _fromUtf8("mLowerRightCheckBox"))
        self.gridLayout.addWidget(self.mLowerRightCheckBox, 2, 2, 1, 1)
        self.mUpperLeftCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mUpperLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mUpperLeftCheckBox.setSizePolicy(sizePolicy)
        self.mUpperLeftCheckBox.setText(_fromUtf8(""))
        self.mUpperLeftCheckBox.setObjectName(_fromUtf8("mUpperLeftCheckBox"))
        self.gridLayout.addWidget(self.mUpperLeftCheckBox, 0, 0, 1, 1)
        self.mLowerLeftCheckBox = QtGui.QCheckBox(self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mLowerLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mLowerLeftCheckBox.setSizePolicy(sizePolicy)
        self.mLowerLeftCheckBox.setText(_fromUtf8(""))
        self.mLowerLeftCheckBox.setObjectName(_fromUtf8("mLowerLeftCheckBox"))
        self.gridLayout.addWidget(self.mLowerLeftCheckBox, 2, 0, 1, 1)
        self.mMiddleLeftCheckBox = QtGui.QCheckBox(
            self.mGeneralOptionsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mMiddleLeftCheckBox.sizePolicy().hasHeightForWidth())
        self.mMiddleLeftCheckBox.setSizePolicy(sizePolicy)
        self.mMiddleLeftCheckBox.setText(_fromUtf8(""))
        self.mMiddleLeftCheckBox.setObjectName(
            _fromUtf8("mMiddleLeftCheckBox"))
        self.gridLayout.addWidget(self.mMiddleLeftCheckBox, 1, 0, 1, 1)
        self.horizontalLayout_7.addLayout(self.gridLayout)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.verticalLayout_2.addWidget(self.mGeneralOptionsGroupBox)
        self.mTransformsGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mTransformsGroupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mTransformsGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mTransformsGroupBox.setProperty("collapsed", True)
        self.mTransformsGroupBox.setObjectName(
            _fromUtf8("mTransformsGroupBox"))
        self.gridLayout_5 = QtGui.QGridLayout(self.mTransformsGroupBox)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label = QtGui.QLabel(self.mTransformsGroupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_5.addWidget(self.label, 0, 0, 1, 1)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.mItemRotationSpinBox = QgsDoubleSpinBox(self.mTransformsGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mItemRotationSpinBox.sizePolicy().hasHeightForWidth())
        self.mItemRotationSpinBox.setSizePolicy(sizePolicy)
        self.mItemRotationSpinBox.setMaximum(360.0)
        self.mItemRotationSpinBox.setObjectName(
            _fromUtf8("mItemRotationSpinBox"))
        self.horizontalLayout_4.addWidget(self.mItemRotationSpinBox)
        self.mItemRotationDDBtn = QgsDataDefinedButton(
            self.mTransformsGroupBox)
        self.mItemRotationDDBtn.setObjectName(_fromUtf8("mItemRotationDDBtn"))
        self.horizontalLayout_4.addWidget(self.mItemRotationDDBtn)
        self.gridLayout_5.addLayout(self.horizontalLayout_4, 0, 1, 1, 1)
        self.gridLayout_5.setColumnStretch(1, 1)
        self.verticalLayout_2.addWidget(self.mTransformsGroupBox)
        self.mFrameGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mFrameGroupBox.setCheckable(True)
        self.mFrameGroupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.mFrameGroupBox.setProperty("collapsed", True)
        self.mFrameGroupBox.setObjectName(_fromUtf8("mFrameGroupBox"))
        self.gridLayout_6 = QtGui.QGridLayout(self.mFrameGroupBox)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.label_3 = QtGui.QLabel(self.mFrameGroupBox)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.mFrameColorButton = QgsColorButtonV2(self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mFrameColorButton.sizePolicy().hasHeightForWidth())
        self.mFrameColorButton.setSizePolicy(sizePolicy)
        self.mFrameColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mFrameColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mFrameColorButton.setText(_fromUtf8(""))
        self.mFrameColorButton.setObjectName(_fromUtf8("mFrameColorButton"))
        self.horizontalLayout_6.addWidget(self.mFrameColorButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.gridLayout_6.addLayout(self.horizontalLayout_6, 0, 1, 1, 1)
        self.mOutlineWidthLabel = QtGui.QLabel(self.mFrameGroupBox)
        self.mOutlineWidthLabel.setWordWrap(True)
        self.mOutlineWidthLabel.setObjectName(_fromUtf8("mOutlineWidthLabel"))
        self.gridLayout_6.addWidget(self.mOutlineWidthLabel, 1, 0, 1, 1)
        self.mOutlineWidthSpinBox = QgsDoubleSpinBox(self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mOutlineWidthSpinBox.sizePolicy().hasHeightForWidth())
        self.mOutlineWidthSpinBox.setSizePolicy(sizePolicy)
        self.mOutlineWidthSpinBox.setSingleStep(0.1)
        self.mOutlineWidthSpinBox.setProperty("showClearButton", False)
        self.mOutlineWidthSpinBox.setObjectName(
            _fromUtf8("mOutlineWidthSpinBox"))
        self.gridLayout_6.addWidget(self.mOutlineWidthSpinBox, 1, 1, 1, 1)
        self.label_8 = QtGui.QLabel(self.mFrameGroupBox)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout_6.addWidget(self.label_8, 2, 0, 1, 1)
        self.mFrameJoinStyleCombo = QgsPenJoinStyleComboBox(
            self.mFrameGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mFrameJoinStyleCombo.sizePolicy().hasHeightForWidth())
        self.mFrameJoinStyleCombo.setSizePolicy(sizePolicy)
        self.mFrameJoinStyleCombo.setObjectName(
            _fromUtf8("mFrameJoinStyleCombo"))
        self.gridLayout_6.addWidget(self.mFrameJoinStyleCombo, 2, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.mFrameGroupBox)
        self.mBackgroundGroupBox = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.mBackgroundGroupBox.setCheckable(True)
        self.mBackgroundGroupBox.setChecked(True)
        self.mBackgroundGroupBox.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mBackgroundGroupBox.setProperty("collapsed", True)
        self.mBackgroundGroupBox.setObjectName(
            _fromUtf8("mBackgroundGroupBox"))
        self.gridLayout_7 = QtGui.QGridLayout(self.mBackgroundGroupBox)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.label_4 = QtGui.QLabel(self.mBackgroundGroupBox)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_7.addWidget(self.label_4, 0, 0, 1, 1)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.mBackgroundColorButton = QgsColorButtonV2(
            self.mBackgroundGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mBackgroundColorButton.sizePolicy().hasHeightForWidth())
        self.mBackgroundColorButton.setSizePolicy(sizePolicy)
        self.mBackgroundColorButton.setMinimumSize(QtCore.QSize(120, 0))
        self.mBackgroundColorButton.setMaximumSize(QtCore.QSize(120, 16777215))
        self.mBackgroundColorButton.setText(_fromUtf8(""))
        self.mBackgroundColorButton.setObjectName(
            _fromUtf8("mBackgroundColorButton"))
        self.horizontalLayout_5.addWidget(self.mBackgroundColorButton)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.gridLayout_7.addLayout(self.horizontalLayout_5, 0, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.mBackgroundGroupBox)
        self.groupBox = QgsCollapsibleGroupBoxBasic(QgsComposerItemWidgetBase)
        self.groupBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.groupBox.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.groupBox.setProperty("collapsed", True)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_8 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.mItemIdLabel = QtGui.QLabel(self.groupBox)
        self.mItemIdLabel.setObjectName(_fromUtf8("mItemIdLabel"))
        self.gridLayout_8.addWidget(self.mItemIdLabel, 0, 0, 1, 1)
        self.mItemIdLineEdit = QtGui.QLineEdit(self.groupBox)
        self.mItemIdLineEdit.setObjectName(_fromUtf8("mItemIdLineEdit"))
        self.gridLayout_8.addWidget(self.mItemIdLineEdit, 0, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupRendering = QgsCollapsibleGroupBoxBasic(
            QgsComposerItemWidgetBase)
        self.groupRendering.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.groupRendering.setProperty("collapsed", True)
        self.groupRendering.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.groupRendering.setObjectName(_fromUtf8("groupRendering"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupRendering)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.labelBlendMode = QtGui.QLabel(self.groupRendering)
        self.labelBlendMode.setObjectName(_fromUtf8("labelBlendMode"))
        self.gridLayout_4.addWidget(self.labelBlendMode, 0, 0, 1, 1)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.mBlendModeCombo = QgsBlendModeComboBox(self.groupRendering)
        self.mBlendModeCombo.setObjectName(_fromUtf8("mBlendModeCombo"))
        self.horizontalLayout_3.addWidget(self.mBlendModeCombo)
        self.mBlendModeDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mBlendModeDDBtn.setObjectName(_fromUtf8("mBlendModeDDBtn"))
        self.horizontalLayout_3.addWidget(self.mBlendModeDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout_3, 0, 1, 1, 1)
        self.labelTransparency = QtGui.QLabel(self.groupRendering)
        self.labelTransparency.setObjectName(_fromUtf8("labelTransparency"))
        self.gridLayout_4.addWidget(self.labelTransparency, 1, 0, 1, 1)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.mTransparencySlider = QtGui.QSlider(self.groupRendering)
        self.mTransparencySlider.setMaximum(100)
        self.mTransparencySlider.setOrientation(QtCore.Qt.Horizontal)
        self.mTransparencySlider.setObjectName(
            _fromUtf8("mTransparencySlider"))
        self.horizontalLayout_2.addWidget(self.mTransparencySlider)
        self.mTransparencySpnBx = QgsSpinBox(self.groupRendering)
        self.mTransparencySpnBx.setMinimumSize(QtCore.QSize(80, 25))
        self.mTransparencySpnBx.setMaximum(100)
        self.mTransparencySpnBx.setObjectName(_fromUtf8("mTransparencySpnBx"))
        self.horizontalLayout_2.addWidget(self.mTransparencySpnBx)
        self.mTransparencyDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mTransparencyDDBtn.setObjectName(_fromUtf8("mTransparencyDDBtn"))
        self.horizontalLayout_2.addWidget(self.mTransparencyDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout_2, 1, 1, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.mExcludeFromPrintsCheckBox = QtGui.QCheckBox(self.groupRendering)
        self.mExcludeFromPrintsCheckBox.setObjectName(
            _fromUtf8("mExcludeFromPrintsCheckBox"))
        self.horizontalLayout.addWidget(self.mExcludeFromPrintsCheckBox)
        self.mExcludePrintsDDBtn = QgsDataDefinedButton(self.groupRendering)
        self.mExcludePrintsDDBtn.setObjectName(
            _fromUtf8("mExcludePrintsDDBtn"))
        self.horizontalLayout.addWidget(self.mExcludePrintsDDBtn)
        self.gridLayout_4.addLayout(self.horizontalLayout, 2, 0, 1, 2)
        self.verticalLayout_2.addWidget(self.groupRendering)
        self.groupBox_3 = QgsCollapsibleGroupBox(QgsComposerItemWidgetBase)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.mVariableEditor = QgsVariableEditorWidget(self.groupBox_3)
        self.mVariableEditor.setMinimumSize(QtCore.QSize(0, 200))
        self.mVariableEditor.setObjectName(_fromUtf8("mVariableEditor"))
        self.verticalLayout_4.addWidget(self.mVariableEditor)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.MinimumExpanding)
        self.verticalLayout_2.addItem(spacerItem3)
        self.mOutlineWidthLabel.setBuddy(self.mOutlineWidthSpinBox)

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