コード例 #1
0
class Ui_CartesianPlotAxis(object):
    def setupUi(self, CartesianPlotAxis):
        CartesianPlotAxis.setObjectName(_fromUtf8("CartesianPlotAxis"))
        CartesianPlotAxis.resize(596, 439)
        self.gridLayout_4 = QtGui.QGridLayout(CartesianPlotAxis)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.groupBox = QtGui.QGroupBox(CartesianPlotAxis)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(185, 0))
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_5 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.visible = QtGui.QCheckBox(self.groupBox)
        self.visible.setEnabled(True)
        self.visible.setChecked(True)
        self.visible.setObjectName(_fromUtf8("visible"))
        self.gridLayout_5.addWidget(self.visible, 0, 0, 1, 1)
        self.scaleType = QtGui.QComboBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scaleType.sizePolicy().hasHeightForWidth())
        self.scaleType.setSizePolicy(sizePolicy)
        self.scaleType.setObjectName(_fromUtf8("scaleType"))
        self.scaleType.addItem(_fromUtf8(""))
        self.scaleType.addItem(_fromUtf8(""))
        self.scaleType.addItem(_fromUtf8(""))
        self.gridLayout_5.addWidget(self.scaleType, 0, 5, 1, 1)
        self.line = QtGui.QFrame(self.groupBox)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.gridLayout_5.addWidget(self.line, 0, 2, 3, 2)
        self.label = QtGui.QLineEdit(self.groupBox)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_5.addWidget(self.label, 1, 1, 1, 1)
        self.label_19 = QtGui.QLabel(self.groupBox)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.gridLayout_5.addWidget(self.label_19, 1, 0, 1, 1)
        self.minimum = QtGui.QLineEdit(self.groupBox)
        self.minimum.setEnabled(False)
        self.minimum.setObjectName(_fromUtf8("minimum"))
        self.gridLayout_5.addWidget(self.minimum, 1, 5, 1, 1)
        self.label_20 = QtGui.QLabel(self.groupBox)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.gridLayout_5.addWidget(self.label_20, 1, 4, 1, 1)
        self.label_21 = QtGui.QLabel(self.groupBox)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.gridLayout_5.addWidget(self.label_21, 0, 4, 1, 1)
        self.label_22 = QtGui.QLabel(self.groupBox)
        self.label_22.setObjectName(_fromUtf8("label_22"))
        self.gridLayout_5.addWidget(self.label_22, 2, 4, 1, 1)
        self.maximum = QtGui.QLineEdit(self.groupBox)
        self.maximum.setEnabled(False)
        self.maximum.setObjectName(_fromUtf8("maximum"))
        self.gridLayout_5.addWidget(self.maximum, 2, 5, 1, 1)
        self.labelFont = QTextOptionsButton(self.groupBox)
        self.labelFont.setObjectName(_fromUtf8("labelFont"))
        self.gridLayout_5.addWidget(self.labelFont, 2, 1, 1, 1)
        self.autoscale = QtGui.QCheckBox(self.groupBox)
        self.autoscale.setChecked(True)
        self.autoscale.setObjectName(_fromUtf8("autoscale"))
        self.gridLayout_5.addWidget(self.autoscale, 0, 1, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox, 0, 0, 1, 1)
        self.majorTicksVisible = QtGui.QGroupBox(CartesianPlotAxis)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.majorTicksVisible.sizePolicy().hasHeightForWidth())
        self.majorTicksVisible.setSizePolicy(sizePolicy)
        self.majorTicksVisible.setCheckable(True)
        self.majorTicksVisible.setObjectName(_fromUtf8("majorTicksVisible"))
        self.gridLayout_7 = QtGui.QGridLayout(self.majorTicksVisible)
        self.gridLayout_7.setMargin(0)
        self.gridLayout_7.setHorizontalSpacing(3)
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.groupBox_2 = QtGui.QGroupBox(self.majorTicksVisible)
        self.groupBox_2.setAlignment(QtCore.Qt.AlignCenter)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.majorTicksLocationsStackedWidget = QtGui.QStackedWidget(self.groupBox_2)
        self.majorTicksLocationsStackedWidget.setObjectName(_fromUtf8("majorTicksLocationsStackedWidget"))
        self.page = QtGui.QWidget()
        self.page.setObjectName(_fromUtf8("page"))
        self.gridLayout_6 = QtGui.QGridLayout(self.page)
        self.gridLayout_6.setMargin(0)
        self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6"))
        self.useMajorTicksAnchor = QtGui.QCheckBox(self.page)
        self.useMajorTicksAnchor.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.useMajorTicksAnchor.setObjectName(_fromUtf8("useMajorTicksAnchor"))
        self.gridLayout_6.addWidget(self.useMajorTicksAnchor, 0, 0, 1, 1)
        self.majorTicksAnchor = QtGui.QLineEdit(self.page)
        self.majorTicksAnchor.setEnabled(False)
        self.majorTicksAnchor.setObjectName(_fromUtf8("majorTicksAnchor"))
        self.gridLayout_6.addWidget(self.majorTicksAnchor, 0, 1, 1, 1)
        self.useMajorTicksSpacing = QtGui.QRadioButton(self.page)
        self.useMajorTicksSpacing.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.useMajorTicksSpacing.setObjectName(_fromUtf8("useMajorTicksSpacing"))
        self.gridLayout_6.addWidget(self.useMajorTicksSpacing, 1, 0, 1, 1)
        self.majorTicksSpacing = QtGui.QLineEdit(self.page)
        self.majorTicksSpacing.setEnabled(False)
        self.majorTicksSpacing.setObjectName(_fromUtf8("majorTicksSpacing"))
        self.gridLayout_6.addWidget(self.majorTicksSpacing, 1, 1, 1, 1)
        self.useMajorTicksNumber = QtGui.QRadioButton(self.page)
        self.useMajorTicksNumber.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.useMajorTicksNumber.setChecked(True)
        self.useMajorTicksNumber.setObjectName(_fromUtf8("useMajorTicksNumber"))
        self.gridLayout_6.addWidget(self.useMajorTicksNumber, 3, 0, 1, 1)
        self.majorTicksNumber = QtGui.QSpinBox(self.page)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.majorTicksNumber.sizePolicy().hasHeightForWidth())
        self.majorTicksNumber.setSizePolicy(sizePolicy)
        self.majorTicksNumber.setMinimum(2)
        self.majorTicksNumber.setProperty(_fromUtf8("value"), 5)
        self.majorTicksNumber.setObjectName(_fromUtf8("majorTicksNumber"))
        self.gridLayout_6.addWidget(self.majorTicksNumber, 3, 1, 1, 1)
        self.useMajorTicksWaveValues = QtGui.QRadioButton(self.page)
        self.useMajorTicksWaveValues.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.useMajorTicksWaveValues.setObjectName(_fromUtf8("useMajorTicksWaveValues"))
        self.gridLayout_6.addWidget(self.useMajorTicksWaveValues, 4, 0, 1, 1)
        self.majorTicksWaveValues = QtGui.QComboBox(self.page)
        self.majorTicksWaveValues.setEnabled(False)
        self.majorTicksWaveValues.setObjectName(_fromUtf8("majorTicksWaveValues"))
        self.gridLayout_6.addWidget(self.majorTicksWaveValues, 4, 1, 1, 1)
        self.majorTicksLocationsStackedWidget.addWidget(self.page)
        self.page_2 = QtGui.QWidget()
        self.page_2.setObjectName(_fromUtf8("page_2"))
        self.gridLayout_8 = QtGui.QGridLayout(self.page_2)
        self.gridLayout_8.setMargin(0)
        self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
        self.label_2 = QtGui.QLabel(self.page_2)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_8.addWidget(self.label_2, 0, 0, 1, 1)
        self.majorTicksLogBase = QtGui.QLineEdit(self.page_2)
        self.majorTicksLogBase.setObjectName(_fromUtf8("majorTicksLogBase"))
        self.gridLayout_8.addWidget(self.majorTicksLogBase, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.page_2)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_8.addWidget(self.label_3, 1, 0, 1, 1)
        self.majorTicksLogLocations = QtGui.QLineEdit(self.page_2)
        self.majorTicksLogLocations.setObjectName(_fromUtf8("majorTicksLogLocations"))
        self.gridLayout_8.addWidget(self.majorTicksLogLocations, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_8.addItem(spacerItem, 2, 0, 1, 1)
        self.majorTicksLocationsStackedWidget.addWidget(self.page_2)
        self.gridLayout.addWidget(self.majorTicksLocationsStackedWidget, 0, 0, 1, 2)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 1, 0, 1, 1)
        self.gridLayout_7.addWidget(self.groupBox_2, 0, 3, 1, 1)
        self.line_2 = QtGui.QFrame(self.majorTicksVisible)
        self.line_2.setFrameShape(QtGui.QFrame.VLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.gridLayout_7.addWidget(self.line_2, 0, 4, 1, 1)
        self.majorTicksLabelVisible = QtGui.QGroupBox(self.majorTicksVisible)
        self.majorTicksLabelVisible.setAlignment(QtCore.Qt.AlignCenter)
        self.majorTicksLabelVisible.setFlat(True)
        self.majorTicksLabelVisible.setCheckable(True)
        self.majorTicksLabelVisible.setObjectName(_fromUtf8("majorTicksLabelVisible"))
        self.gridLayout_2 = QtGui.QGridLayout(self.majorTicksLabelVisible)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_30 = QtGui.QLabel(self.majorTicksLabelVisible)
        self.label_30.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_30.setWordWrap(True)
        self.label_30.setObjectName(_fromUtf8("label_30"))
        self.gridLayout_2.addWidget(self.label_30, 3, 0, 1, 2)
        self.label_5 = QtGui.QLabel(self.majorTicksLabelVisible)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 2)
        self.label_31 = QtGui.QLabel(self.majorTicksLabelVisible)
        self.label_31.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_31.setObjectName(_fromUtf8("label_31"))
        self.gridLayout_2.addWidget(self.label_31, 5, 0, 1, 1)
        self.majorTicksLabelUseNumeric = QtGui.QRadioButton(self.majorTicksLabelVisible)
        self.majorTicksLabelUseNumeric.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.majorTicksLabelUseNumeric.setChecked(True)
        self.majorTicksLabelUseNumeric.setObjectName(_fromUtf8("majorTicksLabelUseNumeric"))
        self.gridLayout_2.addWidget(self.majorTicksLabelUseNumeric, 0, 0, 1, 2)
        self.majorTicksLabelUseWave = QtGui.QRadioButton(self.majorTicksLabelVisible)
        self.majorTicksLabelUseWave.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.majorTicksLabelUseWave.setObjectName(_fromUtf8("majorTicksLabelUseWave"))
        self.gridLayout_2.addWidget(self.majorTicksLabelUseWave, 1, 0, 1, 2)
        self.majorTicksDirection = QtGui.QComboBox(self.majorTicksLabelVisible)
        self.majorTicksDirection.setObjectName(_fromUtf8("majorTicksDirection"))
        self.majorTicksDirection.addItem(_fromUtf8(""))
        self.majorTicksDirection.addItem(_fromUtf8(""))
        self.gridLayout_2.addWidget(self.majorTicksDirection, 5, 1, 1, 1)
        self.majorTicksLength = QtGui.QSpinBox(self.majorTicksLabelVisible)
        self.majorTicksLength.setProperty(_fromUtf8("value"), 4)
        self.majorTicksLength.setObjectName(_fromUtf8("majorTicksLength"))
        self.gridLayout_2.addWidget(self.majorTicksLength, 6, 1, 1, 1)
        self.label_33 = QtGui.QLabel(self.majorTicksLabelVisible)
        self.label_33.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_33.setObjectName(_fromUtf8("label_33"))
        self.gridLayout_2.addWidget(self.label_33, 6, 0, 1, 1)
        self.label_34 = QtGui.QLabel(self.majorTicksLabelVisible)
        self.label_34.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_34.setObjectName(_fromUtf8("label_34"))
        self.gridLayout_2.addWidget(self.label_34, 6, 2, 1, 1)
        self.majorTicksWidth = QtGui.QSpinBox(self.majorTicksLabelVisible)
        self.majorTicksWidth.setProperty(_fromUtf8("value"), 1)
        self.majorTicksWidth.setObjectName(_fromUtf8("majorTicksWidth"))
        self.gridLayout_2.addWidget(self.majorTicksWidth, 6, 3, 1, 1)
        self.majorTicksColor = QColorButton(self.majorTicksLabelVisible)
        self.majorTicksColor.setStyleSheet(_fromUtf8("background-color: rgb(0, 0, 0);\n"
"color: rgb(255, 255, 255);"))
        self.majorTicksColor.setObjectName(_fromUtf8("majorTicksColor"))
        self.gridLayout_2.addWidget(self.majorTicksColor, 5, 3, 1, 1)
        self.majorTicksLabelNumericFormat = QtGui.QLineEdit(self.majorTicksLabelVisible)
        self.majorTicksLabelNumericFormat.setObjectName(_fromUtf8("majorTicksLabelNumericFormat"))
        self.gridLayout_2.addWidget(self.majorTicksLabelNumericFormat, 0, 2, 1, 2)
        self.majorTicksLabelWave = QtGui.QComboBox(self.majorTicksLabelVisible)
        self.majorTicksLabelWave.setEnabled(False)
        self.majorTicksLabelWave.setObjectName(_fromUtf8("majorTicksLabelWave"))
        self.gridLayout_2.addWidget(self.majorTicksLabelWave, 1, 2, 1, 2)
        self.label_32 = QtGui.QLabel(self.majorTicksLabelVisible)
        self.label_32.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_32.setObjectName(_fromUtf8("label_32"))
        self.gridLayout_2.addWidget(self.label_32, 5, 2, 1, 1)
        self.majorTicksLabelFont = QTextOptionsButton(self.majorTicksLabelVisible)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.majorTicksLabelFont.sizePolicy().hasHeightForWidth())
        self.majorTicksLabelFont.setSizePolicy(sizePolicy)
        self.majorTicksLabelFont.setMinimumSize(QtCore.QSize(5, 0))
        self.majorTicksLabelFont.setObjectName(_fromUtf8("majorTicksLabelFont"))
        self.gridLayout_2.addWidget(self.majorTicksLabelFont, 2, 2, 1, 2)
        self.majorTicksLabelPadding = QtGui.QSpinBox(self.majorTicksLabelVisible)
        self.majorTicksLabelPadding.setProperty(_fromUtf8("value"), 4)
        self.majorTicksLabelPadding.setObjectName(_fromUtf8("majorTicksLabelPadding"))
        self.gridLayout_2.addWidget(self.majorTicksLabelPadding, 3, 2, 1, 2)
        self.gridLayout_7.addWidget(self.majorTicksLabelVisible, 0, 5, 1, 1)
        self.gridLayout_7.setRowStretch(0, 1)
        self.gridLayout_4.addWidget(self.majorTicksVisible, 1, 0, 1, 1)
        self.minorTicksVisible = QtGui.QGroupBox(CartesianPlotAxis)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.minorTicksVisible.sizePolicy().hasHeightForWidth())
        self.minorTicksVisible.setSizePolicy(sizePolicy)
        self.minorTicksVisible.setCheckable(True)
        self.minorTicksVisible.setObjectName(_fromUtf8("minorTicksVisible"))
        self.gridLayout_3 = QtGui.QGridLayout(self.minorTicksVisible)
        self.gridLayout_3.setVerticalSpacing(0)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.minorTicksLocationsStackedWidget = QtGui.QStackedWidget(self.minorTicksVisible)
        self.minorTicksLocationsStackedWidget.setObjectName(_fromUtf8("minorTicksLocationsStackedWidget"))
        self.page_3 = QtGui.QWidget()
        self.page_3.setObjectName(_fromUtf8("page_3"))
        self.verticalLayout = QtGui.QVBoxLayout(self.page_3)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_26 = QtGui.QLabel(self.page_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_26.sizePolicy().hasHeightForWidth())
        self.label_26.setSizePolicy(sizePolicy)
        self.label_26.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_26.setObjectName(_fromUtf8("label_26"))
        self.verticalLayout.addWidget(self.label_26)
        self.minorTicksNumber = QtGui.QSpinBox(self.page_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.minorTicksNumber.sizePolicy().hasHeightForWidth())
        self.minorTicksNumber.setSizePolicy(sizePolicy)
        self.minorTicksNumber.setMaximumSize(QtCore.QSize(50, 16777215))
        self.minorTicksNumber.setMinimum(1)
        self.minorTicksNumber.setProperty(_fromUtf8("value"), 5)
        self.minorTicksNumber.setObjectName(_fromUtf8("minorTicksNumber"))
        self.verticalLayout.addWidget(self.minorTicksNumber)
        self.minorTicksLocationsStackedWidget.addWidget(self.page_3)
        self.page_4 = QtGui.QWidget()
        self.page_4.setObjectName(_fromUtf8("page_4"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.page_4)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_4 = QtGui.QLabel(self.page_4)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayout_2.addWidget(self.label_4)
        self.minorTicksLogLocations = QtGui.QLineEdit(self.page_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.minorTicksLogLocations.sizePolicy().hasHeightForWidth())
        self.minorTicksLogLocations.setSizePolicy(sizePolicy)
        self.minorTicksLogLocations.setObjectName(_fromUtf8("minorTicksLogLocations"))
        self.verticalLayout_2.addWidget(self.minorTicksLogLocations)
        self.minorTicksLocationsStackedWidget.addWidget(self.page_4)
        self.gridLayout_3.addWidget(self.minorTicksLocationsStackedWidget, 0, 0, 2, 1)
        self.label_24 = QtGui.QLabel(self.minorTicksVisible)
        self.label_24.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_24.setObjectName(_fromUtf8("label_24"))
        self.gridLayout_3.addWidget(self.label_24, 0, 2, 1, 1)
        self.label_27 = QtGui.QLabel(self.minorTicksVisible)
        self.label_27.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_27.setObjectName(_fromUtf8("label_27"))
        self.gridLayout_3.addWidget(self.label_27, 0, 3, 1, 1)
        self.label_28 = QtGui.QLabel(self.minorTicksVisible)
        self.label_28.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_28.setObjectName(_fromUtf8("label_28"))
        self.gridLayout_3.addWidget(self.label_28, 0, 4, 1, 1)
        self.minorTicksDirection = QtGui.QComboBox(self.minorTicksVisible)
        self.minorTicksDirection.setMaximumSize(QtCore.QSize(100, 16777215))
        self.minorTicksDirection.setObjectName(_fromUtf8("minorTicksDirection"))
        self.minorTicksDirection.addItem(_fromUtf8(""))
        self.minorTicksDirection.addItem(_fromUtf8(""))
        self.gridLayout_3.addWidget(self.minorTicksDirection, 1, 1, 1, 1)
        self.minorTicksColor = QColorButton(self.minorTicksVisible)
        self.minorTicksColor.setStyleSheet(_fromUtf8("background-color: rgb(0, 0, 0);\n"
"color: rgb(255, 255, 255);"))
        self.minorTicksColor.setObjectName(_fromUtf8("minorTicksColor"))
        self.gridLayout_3.addWidget(self.minorTicksColor, 1, 2, 1, 1)
        self.minorTicksLength = QtGui.QSpinBox(self.minorTicksVisible)
        self.minorTicksLength.setMaximumSize(QtCore.QSize(50, 16777215))
        self.minorTicksLength.setProperty(_fromUtf8("value"), 2)
        self.minorTicksLength.setObjectName(_fromUtf8("minorTicksLength"))
        self.gridLayout_3.addWidget(self.minorTicksLength, 1, 3, 1, 1)
        self.minorTicksWidth = QtGui.QSpinBox(self.minorTicksVisible)
        self.minorTicksWidth.setMaximumSize(QtCore.QSize(50, 16777215))
        self.minorTicksWidth.setProperty(_fromUtf8("value"), 1)
        self.minorTicksWidth.setObjectName(_fromUtf8("minorTicksWidth"))
        self.gridLayout_3.addWidget(self.minorTicksWidth, 1, 4, 1, 1)
        self.label_23 = QtGui.QLabel(self.minorTicksVisible)
        self.label_23.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.gridLayout_3.addWidget(self.label_23, 0, 1, 1, 1)
        self.gridLayout_3.setColumnStretch(0, 2)
        self.gridLayout_3.setColumnStretch(1, 1)
        self.gridLayout_3.setColumnStretch(2, 2)
        self.gridLayout_3.setColumnStretch(3, 1)
        self.gridLayout_3.setColumnStretch(4, 1)
        self.gridLayout_4.addWidget(self.minorTicksVisible, 2, 0, 1, 1)
        self.storedSettingsButton = QStoredSettingsButton(CartesianPlotAxis)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.storedSettingsButton.sizePolicy().hasHeightForWidth())
        self.storedSettingsButton.setSizePolicy(sizePolicy)
        self.storedSettingsButton.setMaximumSize(QtCore.QSize(26, 16777215))
        self.storedSettingsButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
        self.storedSettingsButton.setArrowType(QtCore.Qt.LeftArrow)
        self.storedSettingsButton.setObjectName(_fromUtf8("storedSettingsButton"))
        self.gridLayout_4.addWidget(self.storedSettingsButton, 0, 1, 4, 1)

        self.retranslateUi(CartesianPlotAxis)
        self.majorTicksLocationsStackedWidget.setCurrentIndex(0)
        self.minorTicksLocationsStackedWidget.setCurrentIndex(0)
        QtCore.QObject.connect(self.storedSettingsButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.storedSettingsButton.toggleWidget)
        QtCore.QObject.connect(self.labelFont, QtCore.SIGNAL(_fromUtf8("clicked()")), self.labelFont.showTextOptionsWidget)
        QtCore.QObject.connect(self.autoscale, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.minimum.setDisabled)
        QtCore.QObject.connect(self.autoscale, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.maximum.setDisabled)
        QtCore.QObject.connect(self.majorTicksLabelFont, QtCore.SIGNAL(_fromUtf8("clicked()")), self.majorTicksLabelFont.showTextOptionsWidget)
        QtCore.QObject.connect(self.majorTicksColor, QtCore.SIGNAL(_fromUtf8("clicked()")), self.majorTicksColor.createColorDialog)
        QtCore.QObject.connect(self.minorTicksColor, QtCore.SIGNAL(_fromUtf8("clicked()")), self.minorTicksColor.createColorDialog)
        QtCore.QObject.connect(self.useMajorTicksSpacing, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.majorTicksSpacing.setEnabled)
        QtCore.QObject.connect(self.useMajorTicksNumber, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.majorTicksNumber.setEnabled)
        QtCore.QObject.connect(self.majorTicksVisible, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.minorTicksVisible.setEnabled)
        QtCore.QObject.connect(self.useMajorTicksAnchor, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.majorTicksAnchor.setEnabled)
        QtCore.QObject.connect(self.majorTicksLabelUseNumeric, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.majorTicksLabelNumericFormat.setEnabled)
        QtCore.QObject.connect(self.majorTicksLabelUseWave, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.majorTicksLabelWave.setEnabled)
        QtCore.QObject.connect(self.useMajorTicksWaveValues, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.majorTicksWaveValues.setEnabled)
        QtCore.QObject.connect(self.scaleType, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(QString)")), CartesianPlotAxis.changeScaleType)
        QtCore.QObject.connect(self.useMajorTicksWaveValues, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.useMajorTicksAnchor.setDisabled)
        QtCore.QObject.connect(self.useMajorTicksWaveValues, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.majorTicksAnchor.setDisabled)
        CartesianPlotAxis.setTabOrder(self.visible, self.autoscale)
        CartesianPlotAxis.setTabOrder(self.autoscale, self.label)
        CartesianPlotAxis.setTabOrder(self.label, self.labelFont)
        CartesianPlotAxis.setTabOrder(self.labelFont, self.scaleType)
        CartesianPlotAxis.setTabOrder(self.scaleType, self.minimum)
        CartesianPlotAxis.setTabOrder(self.minimum, self.maximum)
        CartesianPlotAxis.setTabOrder(self.maximum, self.majorTicksVisible)
        CartesianPlotAxis.setTabOrder(self.majorTicksVisible, self.useMajorTicksAnchor)
        CartesianPlotAxis.setTabOrder(self.useMajorTicksAnchor, self.majorTicksAnchor)
        CartesianPlotAxis.setTabOrder(self.majorTicksAnchor, self.useMajorTicksSpacing)
        CartesianPlotAxis.setTabOrder(self.useMajorTicksSpacing, self.majorTicksSpacing)
        CartesianPlotAxis.setTabOrder(self.majorTicksSpacing, self.useMajorTicksNumber)
        CartesianPlotAxis.setTabOrder(self.useMajorTicksNumber, self.majorTicksNumber)
        CartesianPlotAxis.setTabOrder(self.majorTicksNumber, self.useMajorTicksWaveValues)
        CartesianPlotAxis.setTabOrder(self.useMajorTicksWaveValues, self.majorTicksWaveValues)
        CartesianPlotAxis.setTabOrder(self.majorTicksWaveValues, self.majorTicksLabelVisible)
        CartesianPlotAxis.setTabOrder(self.majorTicksLabelVisible, self.majorTicksLabelUseNumeric)
        CartesianPlotAxis.setTabOrder(self.majorTicksLabelUseNumeric, self.majorTicksLabelNumericFormat)
        CartesianPlotAxis.setTabOrder(self.majorTicksLabelNumericFormat, self.majorTicksLabelUseWave)
        CartesianPlotAxis.setTabOrder(self.majorTicksLabelUseWave, self.majorTicksLabelWave)
        CartesianPlotAxis.setTabOrder(self.majorTicksLabelWave, self.majorTicksLabelFont)
        CartesianPlotAxis.setTabOrder(self.majorTicksLabelFont, self.majorTicksLabelPadding)
        CartesianPlotAxis.setTabOrder(self.majorTicksLabelPadding, self.majorTicksDirection)
        CartesianPlotAxis.setTabOrder(self.majorTicksDirection, self.majorTicksColor)
        CartesianPlotAxis.setTabOrder(self.majorTicksColor, self.majorTicksLength)
        CartesianPlotAxis.setTabOrder(self.majorTicksLength, self.majorTicksWidth)
        CartesianPlotAxis.setTabOrder(self.majorTicksWidth, self.minorTicksVisible)
        CartesianPlotAxis.setTabOrder(self.minorTicksVisible, self.minorTicksNumber)
        CartesianPlotAxis.setTabOrder(self.minorTicksNumber, self.minorTicksDirection)
        CartesianPlotAxis.setTabOrder(self.minorTicksDirection, self.minorTicksColor)
        CartesianPlotAxis.setTabOrder(self.minorTicksColor, self.minorTicksLength)
        CartesianPlotAxis.setTabOrder(self.minorTicksLength, self.minorTicksWidth)
        CartesianPlotAxis.setTabOrder(self.minorTicksWidth, self.storedSettingsButton)
        CartesianPlotAxis.setTabOrder(self.storedSettingsButton, self.majorTicksLogLocations)
        CartesianPlotAxis.setTabOrder(self.majorTicksLogLocations, self.majorTicksLogBase)
        CartesianPlotAxis.setTabOrder(self.majorTicksLogBase, self.minorTicksLogLocations)

    def retranslateUi(self, CartesianPlotAxis):
        CartesianPlotAxis.setWindowTitle(QtGui.QApplication.translate("CartesianPlotAxis", "Form", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("CartesianPlotAxis", "Axis", None, QtGui.QApplication.UnicodeUTF8))
        self.visible.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Visible?", None, QtGui.QApplication.UnicodeUTF8))
        self.scaleType.setItemText(0, QtGui.QApplication.translate("CartesianPlotAxis", "Linear", None, QtGui.QApplication.UnicodeUTF8))
        self.scaleType.setItemText(1, QtGui.QApplication.translate("CartesianPlotAxis", "Logarithmic", None, QtGui.QApplication.UnicodeUTF8))
        self.scaleType.setItemText(2, QtGui.QApplication.translate("CartesianPlotAxis", "Symmetric Log", None, QtGui.QApplication.UnicodeUTF8))
        self.label_19.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Label", None, QtGui.QApplication.UnicodeUTF8))
        self.minimum.setText(QtGui.QApplication.translate("CartesianPlotAxis", "-10.00", None, QtGui.QApplication.UnicodeUTF8))
        self.label_20.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Minimum", None, QtGui.QApplication.UnicodeUTF8))
        self.label_21.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Type", None, QtGui.QApplication.UnicodeUTF8))
        self.label_22.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Maximum", None, QtGui.QApplication.UnicodeUTF8))
        self.maximum.setText(QtGui.QApplication.translate("CartesianPlotAxis", "10.00", None, QtGui.QApplication.UnicodeUTF8))
        self.labelFont.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Label Font", None, QtGui.QApplication.UnicodeUTF8))
        self.autoscale.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Autoscale?", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksVisible.setTitle(QtGui.QApplication.translate("CartesianPlotAxis", "Major Ticks", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("CartesianPlotAxis", "Locations", None, QtGui.QApplication.UnicodeUTF8))
        self.useMajorTicksAnchor.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Anchor to value", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksAnchor.setText(QtGui.QApplication.translate("CartesianPlotAxis", "0.00", None, QtGui.QApplication.UnicodeUTF8))
        self.useMajorTicksSpacing.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Spacing between", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksSpacing.setText(QtGui.QApplication.translate("CartesianPlotAxis", "2.00", None, QtGui.QApplication.UnicodeUTF8))
        self.useMajorTicksNumber.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Number of", None, QtGui.QApplication.UnicodeUTF8))
        self.useMajorTicksWaveValues.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Wave values", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Base", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksLogBase.setText(QtGui.QApplication.translate("CartesianPlotAxis", "10", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Tick Locations", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksLogLocations.setText(QtGui.QApplication.translate("CartesianPlotAxis", "1", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksLabelVisible.setTitle(QtGui.QApplication.translate("CartesianPlotAxis", "Labels", None, QtGui.QApplication.UnicodeUTF8))
        self.label_30.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Distance between\n"
"tick and label", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Tick Label", None, QtGui.QApplication.UnicodeUTF8))
        self.label_31.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Direction", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksLabelUseNumeric.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Numeric Labels", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksLabelUseWave.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Wave-based Labels", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksDirection.setItemText(0, QtGui.QApplication.translate("CartesianPlotAxis", "in", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksDirection.setItemText(1, QtGui.QApplication.translate("CartesianPlotAxis", "out", None, QtGui.QApplication.UnicodeUTF8))
        self.label_33.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Length", None, QtGui.QApplication.UnicodeUTF8))
        self.label_34.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Width", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksColor.setText(QtGui.QApplication.translate("CartesianPlotAxis", "(0,0,0,255)", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksLabelNumericFormat.setText(QtGui.QApplication.translate("CartesianPlotAxis", "%.2g", None, QtGui.QApplication.UnicodeUTF8))
        self.label_32.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Color", None, QtGui.QApplication.UnicodeUTF8))
        self.majorTicksLabelFont.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Font", None, QtGui.QApplication.UnicodeUTF8))
        self.minorTicksVisible.setTitle(QtGui.QApplication.translate("CartesianPlotAxis", "Minor Ticks", None, QtGui.QApplication.UnicodeUTF8))
        self.label_26.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Number", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Tick Locations", None, QtGui.QApplication.UnicodeUTF8))
        self.minorTicksLogLocations.setText(QtGui.QApplication.translate("CartesianPlotAxis", "1,2,3,4,5,6,7,8,9", None, QtGui.QApplication.UnicodeUTF8))
        self.label_24.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Color", None, QtGui.QApplication.UnicodeUTF8))
        self.label_27.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Length", None, QtGui.QApplication.UnicodeUTF8))
        self.label_28.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Width", None, QtGui.QApplication.UnicodeUTF8))
        self.minorTicksDirection.setItemText(0, QtGui.QApplication.translate("CartesianPlotAxis", "in", None, QtGui.QApplication.UnicodeUTF8))
        self.minorTicksDirection.setItemText(1, QtGui.QApplication.translate("CartesianPlotAxis", "out", None, QtGui.QApplication.UnicodeUTF8))
        self.minorTicksColor.setText(QtGui.QApplication.translate("CartesianPlotAxis", "(0,0,0,255)", None, QtGui.QApplication.UnicodeUTF8))
        self.label_23.setText(QtGui.QApplication.translate("CartesianPlotAxis", "Direction", None, QtGui.QApplication.UnicodeUTF8))
        self.storedSettingsButton.setText(QtGui.QApplication.translate("CartesianPlotAxis", "S\n"
"t\n"
"o\n"
"r\n"
"e\n"
"d\n"
"\n"
"S\n"
"e\n"
"t\n"
"t\n"
"i\n"
"n\n"
"g\n"
"s", None, QtGui.QApplication.UnicodeUTF8))
コード例 #2
0
class Ui_PlotOptionsWidget(object):
    def setupUi(self, PlotOptionsWidget):
        PlotOptionsWidget.setObjectName(_fromUtf8("PlotOptionsWidget"))
        PlotOptionsWidget.resize(797, 442)
        self.horizontalLayout = QtGui.QHBoxLayout(PlotOptionsWidget)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_29 = QtGui.QLabel(PlotOptionsWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_29.sizePolicy().hasHeightForWidth())
        self.label_29.setSizePolicy(sizePolicy)
        self.label_29.setObjectName(_fromUtf8("label_29"))
        self.verticalLayout.addWidget(self.label_29)
        self.plotSelector = QtGui.QComboBox(PlotOptionsWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotSelector.sizePolicy().hasHeightForWidth())
        self.plotSelector.setSizePolicy(sizePolicy)
        self.plotSelector.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToContents)
        self.plotSelector.setMinimumContentsLength(20)
        self.plotSelector.setObjectName(_fromUtf8("plotSelector"))
        self.verticalLayout.addWidget(self.plotSelector)
        self.line = QtGui.QFrame(PlotOptionsWidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout.addWidget(self.line)
        self.groupBox = QtGui.QGroupBox(PlotOptionsWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(200, 0))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_3 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout_3.addWidget(self.label_3)
        self.name = QtGui.QLineEdit(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.name.sizePolicy().hasHeightForWidth())
        self.name.setSizePolicy(sizePolicy)
        self.name.setMinimumSize(QtCore.QSize(150, 0))
        self.name.setMaximumSize(QtCore.QSize(300, 16777215))
        self.name.setObjectName(_fromUtf8("name"))
        self.verticalLayout_3.addWidget(self.name)
        self.nameFont = QTextOptionsButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.nameFont.sizePolicy().hasHeightForWidth())
        self.nameFont.setSizePolicy(sizePolicy)
        self.nameFont.setMinimumSize(QtCore.QSize(75, 0))
        self.nameFont.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.nameFont.setObjectName(_fromUtf8("nameFont"))
        self.verticalLayout_3.addWidget(self.nameFont)
        self.line_5 = QtGui.QFrame(self.groupBox)
        self.line_5.setFrameShape(QtGui.QFrame.HLine)
        self.line_5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_5.setObjectName(_fromUtf8("line_5"))
        self.verticalLayout_3.addWidget(self.line_5)
        self.label_8 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        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.verticalLayout_3.addWidget(self.label_8)
        self.backgroundColor = QColorButton(self.groupBox)
        self.backgroundColor.setMinimumSize(QtCore.QSize(150, 0))
        self.backgroundColor.setStyleSheet(_fromUtf8("color: rgb(0, 0, 0);\n" "background-color: rgb(255, 255, 255);"))
        self.backgroundColor.setObjectName(_fromUtf8("backgroundColor"))
        self.verticalLayout_3.addWidget(self.backgroundColor)
        self.line_6 = QtGui.QFrame(self.groupBox)
        self.line_6.setFrameShape(QtGui.QFrame.HLine)
        self.line_6.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_6.setObjectName(_fromUtf8("line_6"))
        self.verticalLayout_3.addWidget(self.line_6)
        self.label = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_3.addWidget(self.label)
        self.plotType = QtGui.QListWidget(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotType.sizePolicy().hasHeightForWidth())
        self.plotType.setSizePolicy(sizePolicy)
        self.plotType.setMinimumSize(QtCore.QSize(100, 0))
        self.plotType.setObjectName(_fromUtf8("plotType"))
        self.verticalLayout_3.addWidget(self.plotType)
        self.buttons = QtGui.QDialogButtonBox(self.groupBox)
        self.buttons.setStandardButtons(QtGui.QDialogButtonBox.Apply | QtGui.QDialogButtonBox.Reset)
        self.buttons.setCenterButtons(True)
        self.buttons.setObjectName(_fromUtf8("buttons"))
        self.verticalLayout_3.addWidget(self.buttons)
        self.verticalLayout.addWidget(self.groupBox)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.plotTypeStack = QtGui.QStackedWidget(PlotOptionsWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.plotTypeStack.sizePolicy().hasHeightForWidth())
        self.plotTypeStack.setSizePolicy(sizePolicy)
        self.plotTypeStack.setFrameShape(QtGui.QFrame.NoFrame)
        self.plotTypeStack.setObjectName(_fromUtf8("plotTypeStack"))
        self.horizontalLayout.addWidget(self.plotTypeStack)
        self.horizontalLayout.setStretch(0, 1)
        self.horizontalLayout.setStretch(1, 3)

        self.retranslateUi(PlotOptionsWidget)
        self.plotTypeStack.setCurrentIndex(-1)
        QtCore.QObject.connect(
            self.plotSelector, QtCore.SIGNAL(_fromUtf8("currentIndexChanged(int)")), PlotOptionsWidget.changeCurrentPlot
        )
        QtCore.QObject.connect(
            self.buttons, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), PlotOptionsWidget.buttonClickHandler
        )
        QtCore.QObject.connect(
            self.nameFont, QtCore.SIGNAL(_fromUtf8("clicked()")), self.nameFont.showTextOptionsWidget
        )
        QtCore.QObject.connect(
            self.backgroundColor, QtCore.SIGNAL(_fromUtf8("clicked()")), self.backgroundColor.createColorDialog
        )

    def retranslateUi(self, PlotOptionsWidget):
        PlotOptionsWidget.setWindowTitle(
            QtGui.QApplication.translate("PlotOptionsWidget", "Form", None, QtGui.QApplication.UnicodeUTF8)
        )
        self.label_29.setText(
            QtGui.QApplication.translate("PlotOptionsWidget", "Select Plot", None, QtGui.QApplication.UnicodeUTF8)
        )
        self.groupBox.setTitle(
            QtGui.QApplication.translate(
                "PlotOptionsWidget", "General Plot Options", None, QtGui.QApplication.UnicodeUTF8
            )
        )
        self.label_3.setText(
            QtGui.QApplication.translate("PlotOptionsWidget", "Plot Name", None, QtGui.QApplication.UnicodeUTF8)
        )
        self.nameFont.setText(
            QtGui.QApplication.translate("PlotOptionsWidget", "Font", None, QtGui.QApplication.UnicodeUTF8)
        )
        self.label_8.setText(
            QtGui.QApplication.translate("PlotOptionsWidget", "Plot Background", None, QtGui.QApplication.UnicodeUTF8)
        )
        self.backgroundColor.setText(
            QtGui.QApplication.translate("PlotOptionsWidget", "(255,255,255,255)", None, QtGui.QApplication.UnicodeUTF8)
        )
        self.label.setText(
            QtGui.QApplication.translate("PlotOptionsWidget", "Plot Type", None, QtGui.QApplication.UnicodeUTF8)
        )