class Ui_QgsAnnotationWidgetBase(object): def setupUi(self, QgsAnnotationWidgetBase): QgsAnnotationWidgetBase.setObjectName(_fromUtf8("QgsAnnotationWidgetBase")) QgsAnnotationWidgetBase.resize(221, 172) self.gridLayout_2 = QtGui.QGridLayout(QgsAnnotationWidgetBase) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.mMapPositionFixedCheckBox = QtGui.QCheckBox(QgsAnnotationWidgetBase) self.mMapPositionFixedCheckBox.setObjectName(_fromUtf8("mMapPositionFixedCheckBox")) self.gridLayout_2.addWidget(self.mMapPositionFixedCheckBox, 0, 0, 1, 1) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.mFrameColorButton = QgsColorButton(QgsAnnotationWidgetBase) self.mFrameColorButton.setText(_fromUtf8("")) self.mFrameColorButton.setObjectName(_fromUtf8("mFrameColorButton")) self.gridLayout.addWidget(self.mFrameColorButton, 3, 1, 1, 1) self.mBackgroundColorLabel = QtGui.QLabel(QgsAnnotationWidgetBase) self.mBackgroundColorLabel.setObjectName(_fromUtf8("mBackgroundColorLabel")) self.gridLayout.addWidget(self.mBackgroundColorLabel, 2, 0, 1, 1) self.mMapMarkerLabel = QtGui.QLabel(QgsAnnotationWidgetBase) self.mMapMarkerLabel.setObjectName(_fromUtf8("mMapMarkerLabel")) self.gridLayout.addWidget(self.mMapMarkerLabel, 0, 0, 1, 1) self.mBackgroundColorButton = QgsColorButton(QgsAnnotationWidgetBase) self.mBackgroundColorButton.setText(_fromUtf8("")) self.mBackgroundColorButton.setObjectName(_fromUtf8("mBackgroundColorButton")) self.gridLayout.addWidget(self.mBackgroundColorButton, 2, 1, 1, 1) self.mMapMarkerButton = QtGui.QPushButton(QgsAnnotationWidgetBase) self.mMapMarkerButton.setText(_fromUtf8("")) self.mMapMarkerButton.setObjectName(_fromUtf8("mMapMarkerButton")) self.gridLayout.addWidget(self.mMapMarkerButton, 0, 1, 1, 1) self.mFrameWidthLabel = QtGui.QLabel(QgsAnnotationWidgetBase) self.mFrameWidthLabel.setObjectName(_fromUtf8("mFrameWidthLabel")) self.gridLayout.addWidget(self.mFrameWidthLabel, 1, 0, 1, 1) self.mFrameWidthSpinBox = QtGui.QDoubleSpinBox(QgsAnnotationWidgetBase) self.mFrameWidthSpinBox.setObjectName(_fromUtf8("mFrameWidthSpinBox")) self.gridLayout.addWidget(self.mFrameWidthSpinBox, 1, 1, 1, 1) self.mFrameColorLabel = QtGui.QLabel(QgsAnnotationWidgetBase) self.mFrameColorLabel.setObjectName(_fromUtf8("mFrameColorLabel")) self.gridLayout.addWidget(self.mFrameColorLabel, 3, 0, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 1) self.mMapMarkerLabel.setBuddy(self.mMapMarkerButton) self.mFrameWidthLabel.setBuddy(self.mFrameWidthSpinBox) self.retranslateUi(QgsAnnotationWidgetBase) QtCore.QMetaObject.connectSlotsByName(QgsAnnotationWidgetBase) def retranslateUi(self, QgsAnnotationWidgetBase): QgsAnnotationWidgetBase.setWindowTitle(_translate("QgsAnnotationWidgetBase", "Form", None)) self.mMapPositionFixedCheckBox.setText(_translate("QgsAnnotationWidgetBase", "Fixed map position", None)) self.mBackgroundColorLabel.setText(_translate("QgsAnnotationWidgetBase", "Background color", None)) self.mMapMarkerLabel.setText(_translate("QgsAnnotationWidgetBase", "Map marker", None)) self.mFrameWidthLabel.setText(_translate("QgsAnnotationWidgetBase", "Frame width", None)) self.mFrameColorLabel.setText(_translate("QgsAnnotationWidgetBase", "Frame color", None))
class Ui_QgsTextAnnotationDialogBase(object): def setupUi(self, QgsTextAnnotationDialogBase): QgsTextAnnotationDialogBase.setObjectName( _fromUtf8("QgsTextAnnotationDialogBase")) QgsTextAnnotationDialogBase.resize(517, 364) self.gridLayout = QtGui.QGridLayout(QgsTextAnnotationDialogBase) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.mFontComboBox = QtGui.QFontComboBox(QgsTextAnnotationDialogBase) self.mFontComboBox.setObjectName(_fromUtf8("mFontComboBox")) self.horizontalLayout.addWidget(self.mFontComboBox) spacerItem = QtGui.QSpacerItem(38, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.mFontSizeSpinBox = QtGui.QSpinBox(QgsTextAnnotationDialogBase) self.mFontSizeSpinBox.setObjectName(_fromUtf8("mFontSizeSpinBox")) self.horizontalLayout.addWidget(self.mFontSizeSpinBox) self.mBoldPushButton = QtGui.QPushButton(QgsTextAnnotationDialogBase) self.mBoldPushButton.setMinimumSize(QtCore.QSize(50, 0)) self.mBoldPushButton.setCheckable(True) self.mBoldPushButton.setObjectName(_fromUtf8("mBoldPushButton")) self.horizontalLayout.addWidget(self.mBoldPushButton) self.mItalicsPushButton = QtGui.QPushButton( QgsTextAnnotationDialogBase) self.mItalicsPushButton.setMinimumSize(QtCore.QSize(50, 0)) self.mItalicsPushButton.setCheckable(True) self.mItalicsPushButton.setObjectName(_fromUtf8("mItalicsPushButton")) self.horizontalLayout.addWidget(self.mItalicsPushButton) self.mFontColorButton = QgsColorButton(QgsTextAnnotationDialogBase) self.mFontColorButton.setText(_fromUtf8("")) self.mFontColorButton.setAutoDefault(False) self.mFontColorButton.setObjectName(_fromUtf8("mFontColorButton")) self.horizontalLayout.addWidget(self.mFontColorButton) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.mButtonBox = QtGui.QDialogButtonBox(QgsTextAnnotationDialogBase) self.mButtonBox.setOrientation(QtCore.Qt.Horizontal) self.mButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.mButtonBox.setObjectName(_fromUtf8("mButtonBox")) self.gridLayout.addWidget(self.mButtonBox, 3, 0, 1, 1) self.mTextEdit = QtGui.QTextEdit(QgsTextAnnotationDialogBase) self.mTextEdit.setObjectName(_fromUtf8("mTextEdit")) self.gridLayout.addWidget(self.mTextEdit, 1, 0, 1, 1) self.mStackedWidget = QtGui.QStackedWidget(QgsTextAnnotationDialogBase) self.mStackedWidget.setObjectName(_fromUtf8("mStackedWidget")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.mStackedWidget.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.mStackedWidget.addWidget(self.page_2) self.gridLayout.addWidget(self.mStackedWidget, 2, 0, 1, 1) self.retranslateUi(QgsTextAnnotationDialogBase) self.mStackedWidget.setCurrentIndex(0) QtCore.QObject.connect(self.mButtonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), QgsTextAnnotationDialogBase.accept) QtCore.QObject.connect(self.mButtonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), QgsTextAnnotationDialogBase.reject) QtCore.QMetaObject.connectSlotsByName(QgsTextAnnotationDialogBase) QgsTextAnnotationDialogBase.setTabOrder(self.mFontComboBox, self.mFontSizeSpinBox) QgsTextAnnotationDialogBase.setTabOrder(self.mFontSizeSpinBox, self.mBoldPushButton) QgsTextAnnotationDialogBase.setTabOrder(self.mBoldPushButton, self.mItalicsPushButton) QgsTextAnnotationDialogBase.setTabOrder(self.mItalicsPushButton, self.mFontColorButton) QgsTextAnnotationDialogBase.setTabOrder(self.mFontColorButton, self.mTextEdit) QgsTextAnnotationDialogBase.setTabOrder(self.mTextEdit, self.mButtonBox) def retranslateUi(self, QgsTextAnnotationDialogBase): QgsTextAnnotationDialogBase.setWindowTitle( _translate("QgsTextAnnotationDialogBase", "Annotation text", None)) self.mBoldPushButton.setText( _translate("QgsTextAnnotationDialogBase", "B", None)) self.mItalicsPushButton.setText( _translate("QgsTextAnnotationDialogBase", "I", None))