class Ui_Preferences(object): def setupUi(self, Preferences): Preferences.setObjectName(_fromUtf8("Preferences")) Preferences.resize(400, 300) self.gridLayout = QtGui.QGridLayout(Preferences) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(Preferences) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.defaultDirectory = QtGui.QLineEdit(Preferences) self.defaultDirectory.setObjectName(_fromUtf8("defaultDirectory")) self.gridLayout.addWidget(self.defaultDirectory, 0, 1, 1, 1) self.buttons = QtGui.QDialogButtonBox(Preferences) self.buttons.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Reset|QtGui.QDialogButtonBox.Save) self.buttons.setCenterButtons(True) self.buttons.setObjectName(_fromUtf8("buttons")) self.gridLayout.addWidget(self.buttons, 4, 0, 1, 3) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 3, 1, 1, 1) self.label_2 = QtGui.QLabel(Preferences) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.projectDirectory = QtGui.QLineEdit(Preferences) self.projectDirectory.setObjectName(_fromUtf8("projectDirectory")) self.gridLayout.addWidget(self.projectDirectory, 1, 1, 1, 1) self.defaultDirectoryButton = QtGui.QPushButton(Preferences) self.defaultDirectoryButton.setObjectName(_fromUtf8("defaultDirectoryButton")) self.gridLayout.addWidget(self.defaultDirectoryButton, 0, 2, 1, 1) self.projectDirectoryButton = QtGui.QPushButton(Preferences) self.projectDirectoryButton.setObjectName(_fromUtf8("projectDirectoryButton")) self.gridLayout.addWidget(self.projectDirectoryButton, 1, 2, 1, 1) self.label_3 = QtGui.QLabel(Preferences) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.textOptions = QTextOptionsButton(Preferences) self.textOptions.setObjectName(_fromUtf8("textOptions")) self.gridLayout.addWidget(self.textOptions, 2, 1, 1, 1) self.retranslateUi(Preferences) QtCore.QObject.connect(self.textOptions, QtCore.SIGNAL(_fromUtf8("clicked()")), self.textOptions.showTextOptionsWidget) Preferences.setTabOrder(self.defaultDirectory, self.defaultDirectoryButton) Preferences.setTabOrder(self.defaultDirectoryButton, self.projectDirectory) Preferences.setTabOrder(self.projectDirectory, self.projectDirectoryButton) Preferences.setTabOrder(self.projectDirectoryButton, self.textOptions) Preferences.setTabOrder(self.textOptions, self.buttons) def retranslateUi(self, Preferences): Preferences.setWindowTitle(QtGui.QApplication.translate("Preferences", "Preferences", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("Preferences", "Default Directory", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText(QtGui.QApplication.translate("Preferences", "Project Directory", None, QtGui.QApplication.UnicodeUTF8)) self.defaultDirectoryButton.setText(QtGui.QApplication.translate("Preferences", "Select...", None, QtGui.QApplication.UnicodeUTF8)) self.projectDirectoryButton.setText(QtGui.QApplication.translate("Preferences", "Select...", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setText(QtGui.QApplication.translate("Preferences", "Text Options", None, QtGui.QApplication.UnicodeUTF8)) self.textOptions.setText(QtGui.QApplication.translate("Preferences", "Select Text Options", None, QtGui.QApplication.UnicodeUTF8))
def setupUi(self, PlotLegend): PlotLegend.setObjectName(_fromUtf8("PlotLegend")) PlotLegend.resize(595, 462) self.gridLayout = QtGui.QGridLayout(PlotLegend) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(PlotLegend) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 1, 1, 1) self.loc = QtGui.QComboBox(PlotLegend) self.loc.setObjectName(_fromUtf8("loc")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.loc, 0, 2, 1, 1) self.label_2 = QtGui.QLabel(PlotLegend) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 1, 1, 1) self.title = QtGui.QLineEdit(PlotLegend) self.title.setObjectName(_fromUtf8("title")) self.gridLayout.addWidget(self.title, 2, 2, 1, 1) self.label_3 = QtGui.QLabel(PlotLegend) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 4, 1, 1, 1) self.frameon = QtGui.QCheckBox(PlotLegend) self.frameon.setText(_fromUtf8("")) self.frameon.setChecked(True) self.frameon.setObjectName(_fromUtf8("frameon")) self.gridLayout.addWidget(self.frameon, 4, 2, 1, 1) self.label_5 = QtGui.QLabel(PlotLegend) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 5, 1, 1, 1) self.fancybox = QtGui.QCheckBox(PlotLegend) self.fancybox.setText(_fromUtf8("")) self.fancybox.setObjectName(_fromUtf8("fancybox")) self.gridLayout.addWidget(self.fancybox, 5, 2, 1, 1) self.label_4 = QtGui.QLabel(PlotLegend) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 6, 1, 1, 1) self.shadow = QtGui.QCheckBox(PlotLegend) self.shadow.setText(_fromUtf8("")) self.shadow.setObjectName(_fromUtf8("shadow")) self.gridLayout.addWidget(self.shadow, 6, 2, 1, 1) self.label_6 = QtGui.QLabel(PlotLegend) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 7, 1, 1, 1) self.ncol = QtGui.QSpinBox(PlotLegend) self.ncol.setMinimum(1) self.ncol.setMaximum(20) self.ncol.setObjectName(_fromUtf8("ncol")) self.gridLayout.addWidget(self.ncol, 7, 2, 1, 1) self.label_7 = QtGui.QLabel(PlotLegend) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 8, 1, 1, 1) self.columnspacing = QtGui.QDoubleSpinBox(PlotLegend) self.columnspacing.setMaximum(10.0) self.columnspacing.setProperty(_fromUtf8("value"), 1.0) self.columnspacing.setObjectName(_fromUtf8("columnspacing")) self.gridLayout.addWidget(self.columnspacing, 8, 2, 1, 1) self.label_8 = QtGui.QLabel(PlotLegend) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 9, 1, 1, 1) self.borderaxespad = QtGui.QDoubleSpinBox(PlotLegend) self.borderaxespad.setMaximum(10.0) self.borderaxespad.setProperty(_fromUtf8("value"), 0.5) self.borderaxespad.setObjectName(_fromUtf8("borderaxespad")) self.gridLayout.addWidget(self.borderaxespad, 9, 2, 1, 1) self.label_9 = QtGui.QLabel(PlotLegend) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 10, 1, 1, 1) self.handletextpad = QtGui.QDoubleSpinBox(PlotLegend) self.handletextpad.setMaximum(10.0) self.handletextpad.setProperty(_fromUtf8("value"), 0.5) self.handletextpad.setObjectName(_fromUtf8("handletextpad")) self.gridLayout.addWidget(self.handletextpad, 10, 2, 1, 1) self.label_10 = QtGui.QLabel(PlotLegend) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 11, 1, 1, 1) self.handlelength = QtGui.QDoubleSpinBox(PlotLegend) self.handlelength.setMaximum(20.0) self.handlelength.setProperty(_fromUtf8("value"), 2.0) self.handlelength.setObjectName(_fromUtf8("handlelength")) self.gridLayout.addWidget(self.handlelength, 11, 2, 1, 1) self.label_11 = QtGui.QLabel(PlotLegend) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 12, 1, 1, 1) self.borderpad = QtGui.QDoubleSpinBox(PlotLegend) self.borderpad.setMaximum(10.0) self.borderpad.setProperty(_fromUtf8("value"), 0.3) self.borderpad.setObjectName(_fromUtf8("borderpad")) self.gridLayout.addWidget(self.borderpad, 12, 2, 1, 1) self.label_12 = QtGui.QLabel(PlotLegend) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout.addWidget(self.label_12, 13, 1, 1, 1) self.labelspacing = QtGui.QDoubleSpinBox(PlotLegend) self.labelspacing.setMaximum(10.0) self.labelspacing.setProperty(_fromUtf8("value"), 0.5) self.labelspacing.setObjectName(_fromUtf8("labelspacing")) self.gridLayout.addWidget(self.labelspacing, 13, 2, 1, 1) self.label_13 = QtGui.QLabel(PlotLegend) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout.addWidget(self.label_13, 14, 1, 1, 1) self.markerscale = QtGui.QDoubleSpinBox(PlotLegend) self.markerscale.setMaximum(10.0) self.markerscale.setProperty(_fromUtf8("value"), 1.0) self.markerscale.setObjectName(_fromUtf8("markerscale")) self.gridLayout.addWidget(self.markerscale, 14, 2, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 4, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 15, 2, 1, 1) self.font = QTextOptionsButton(PlotLegend) self.font.setObjectName(_fromUtf8("font")) self.gridLayout.addWidget(self.font, 1, 2, 1, 1) self.titleFont = QTextOptionsButton(PlotLegend) self.titleFont.setObjectName(_fromUtf8("titleFont")) self.gridLayout.addWidget(self.titleFont, 3, 2, 1, 1) self.storedSettingsButton = QStoredSettingsButton(PlotLegend) 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.addWidget(self.storedSettingsButton, 0, 3, 15, 1) self.retranslateUi(PlotLegend) QtCore.QObject.connect(self.frameon, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.fancybox.setEnabled) QtCore.QObject.connect(self.storedSettingsButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.storedSettingsButton.toggleWidget) QtCore.QObject.connect(self.font, QtCore.SIGNAL(_fromUtf8("clicked()")), self.font.showTextOptionsWidget) QtCore.QObject.connect(self.titleFont, QtCore.SIGNAL(_fromUtf8("clicked()")), self.titleFont.showTextOptionsWidget) PlotLegend.setTabOrder(self.loc, self.font) PlotLegend.setTabOrder(self.font, self.title) PlotLegend.setTabOrder(self.title, self.titleFont) PlotLegend.setTabOrder(self.titleFont, self.frameon) PlotLegend.setTabOrder(self.frameon, self.fancybox) PlotLegend.setTabOrder(self.fancybox, self.shadow) PlotLegend.setTabOrder(self.shadow, self.ncol) PlotLegend.setTabOrder(self.ncol, self.columnspacing) PlotLegend.setTabOrder(self.columnspacing, self.borderaxespad) PlotLegend.setTabOrder(self.borderaxespad, self.handletextpad) PlotLegend.setTabOrder(self.handletextpad, self.handlelength) PlotLegend.setTabOrder(self.handlelength, self.borderpad) PlotLegend.setTabOrder(self.borderpad, self.labelspacing) PlotLegend.setTabOrder(self.labelspacing, self.markerscale) PlotLegend.setTabOrder(self.markerscale, self.storedSettingsButton)
class Ui_PlotLegend(object): def setupUi(self, PlotLegend): PlotLegend.setObjectName(_fromUtf8("PlotLegend")) PlotLegend.resize(595, 462) self.gridLayout = QtGui.QGridLayout(PlotLegend) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(PlotLegend) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 1, 1, 1) self.loc = QtGui.QComboBox(PlotLegend) self.loc.setObjectName(_fromUtf8("loc")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.loc.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.loc, 0, 2, 1, 1) self.label_2 = QtGui.QLabel(PlotLegend) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 2, 1, 1, 1) self.title = QtGui.QLineEdit(PlotLegend) self.title.setObjectName(_fromUtf8("title")) self.gridLayout.addWidget(self.title, 2, 2, 1, 1) self.label_3 = QtGui.QLabel(PlotLegend) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 4, 1, 1, 1) self.frameon = QtGui.QCheckBox(PlotLegend) self.frameon.setText(_fromUtf8("")) self.frameon.setChecked(True) self.frameon.setObjectName(_fromUtf8("frameon")) self.gridLayout.addWidget(self.frameon, 4, 2, 1, 1) self.label_5 = QtGui.QLabel(PlotLegend) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 5, 1, 1, 1) self.fancybox = QtGui.QCheckBox(PlotLegend) self.fancybox.setText(_fromUtf8("")) self.fancybox.setObjectName(_fromUtf8("fancybox")) self.gridLayout.addWidget(self.fancybox, 5, 2, 1, 1) self.label_4 = QtGui.QLabel(PlotLegend) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 6, 1, 1, 1) self.shadow = QtGui.QCheckBox(PlotLegend) self.shadow.setText(_fromUtf8("")) self.shadow.setObjectName(_fromUtf8("shadow")) self.gridLayout.addWidget(self.shadow, 6, 2, 1, 1) self.label_6 = QtGui.QLabel(PlotLegend) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 7, 1, 1, 1) self.ncol = QtGui.QSpinBox(PlotLegend) self.ncol.setMinimum(1) self.ncol.setMaximum(20) self.ncol.setObjectName(_fromUtf8("ncol")) self.gridLayout.addWidget(self.ncol, 7, 2, 1, 1) self.label_7 = QtGui.QLabel(PlotLegend) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 8, 1, 1, 1) self.columnspacing = QtGui.QDoubleSpinBox(PlotLegend) self.columnspacing.setMaximum(10.0) self.columnspacing.setProperty(_fromUtf8("value"), 1.0) self.columnspacing.setObjectName(_fromUtf8("columnspacing")) self.gridLayout.addWidget(self.columnspacing, 8, 2, 1, 1) self.label_8 = QtGui.QLabel(PlotLegend) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 9, 1, 1, 1) self.borderaxespad = QtGui.QDoubleSpinBox(PlotLegend) self.borderaxespad.setMaximum(10.0) self.borderaxespad.setProperty(_fromUtf8("value"), 0.5) self.borderaxespad.setObjectName(_fromUtf8("borderaxespad")) self.gridLayout.addWidget(self.borderaxespad, 9, 2, 1, 1) self.label_9 = QtGui.QLabel(PlotLegend) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 10, 1, 1, 1) self.handletextpad = QtGui.QDoubleSpinBox(PlotLegend) self.handletextpad.setMaximum(10.0) self.handletextpad.setProperty(_fromUtf8("value"), 0.5) self.handletextpad.setObjectName(_fromUtf8("handletextpad")) self.gridLayout.addWidget(self.handletextpad, 10, 2, 1, 1) self.label_10 = QtGui.QLabel(PlotLegend) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 11, 1, 1, 1) self.handlelength = QtGui.QDoubleSpinBox(PlotLegend) self.handlelength.setMaximum(20.0) self.handlelength.setProperty(_fromUtf8("value"), 2.0) self.handlelength.setObjectName(_fromUtf8("handlelength")) self.gridLayout.addWidget(self.handlelength, 11, 2, 1, 1) self.label_11 = QtGui.QLabel(PlotLegend) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 12, 1, 1, 1) self.borderpad = QtGui.QDoubleSpinBox(PlotLegend) self.borderpad.setMaximum(10.0) self.borderpad.setProperty(_fromUtf8("value"), 0.3) self.borderpad.setObjectName(_fromUtf8("borderpad")) self.gridLayout.addWidget(self.borderpad, 12, 2, 1, 1) self.label_12 = QtGui.QLabel(PlotLegend) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout.addWidget(self.label_12, 13, 1, 1, 1) self.labelspacing = QtGui.QDoubleSpinBox(PlotLegend) self.labelspacing.setMaximum(10.0) self.labelspacing.setProperty(_fromUtf8("value"), 0.5) self.labelspacing.setObjectName(_fromUtf8("labelspacing")) self.gridLayout.addWidget(self.labelspacing, 13, 2, 1, 1) self.label_13 = QtGui.QLabel(PlotLegend) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout.addWidget(self.label_13, 14, 1, 1, 1) self.markerscale = QtGui.QDoubleSpinBox(PlotLegend) self.markerscale.setMaximum(10.0) self.markerscale.setProperty(_fromUtf8("value"), 1.0) self.markerscale.setObjectName(_fromUtf8("markerscale")) self.gridLayout.addWidget(self.markerscale, 14, 2, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 4, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 15, 2, 1, 1) self.font = QTextOptionsButton(PlotLegend) self.font.setObjectName(_fromUtf8("font")) self.gridLayout.addWidget(self.font, 1, 2, 1, 1) self.titleFont = QTextOptionsButton(PlotLegend) self.titleFont.setObjectName(_fromUtf8("titleFont")) self.gridLayout.addWidget(self.titleFont, 3, 2, 1, 1) self.storedSettingsButton = QStoredSettingsButton(PlotLegend) 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.addWidget(self.storedSettingsButton, 0, 3, 15, 1) self.retranslateUi(PlotLegend) QtCore.QObject.connect(self.frameon, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.fancybox.setEnabled) QtCore.QObject.connect(self.storedSettingsButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.storedSettingsButton.toggleWidget) QtCore.QObject.connect(self.font, QtCore.SIGNAL(_fromUtf8("clicked()")), self.font.showTextOptionsWidget) QtCore.QObject.connect(self.titleFont, QtCore.SIGNAL(_fromUtf8("clicked()")), self.titleFont.showTextOptionsWidget) PlotLegend.setTabOrder(self.loc, self.font) PlotLegend.setTabOrder(self.font, self.title) PlotLegend.setTabOrder(self.title, self.titleFont) PlotLegend.setTabOrder(self.titleFont, self.frameon) PlotLegend.setTabOrder(self.frameon, self.fancybox) PlotLegend.setTabOrder(self.fancybox, self.shadow) PlotLegend.setTabOrder(self.shadow, self.ncol) PlotLegend.setTabOrder(self.ncol, self.columnspacing) PlotLegend.setTabOrder(self.columnspacing, self.borderaxespad) PlotLegend.setTabOrder(self.borderaxespad, self.handletextpad) PlotLegend.setTabOrder(self.handletextpad, self.handlelength) PlotLegend.setTabOrder(self.handlelength, self.borderpad) PlotLegend.setTabOrder(self.borderpad, self.labelspacing) PlotLegend.setTabOrder(self.labelspacing, self.markerscale) PlotLegend.setTabOrder(self.markerscale, self.storedSettingsButton) def retranslateUi(self, PlotLegend): PlotLegend.setWindowTitle(QtGui.QApplication.translate("PlotLegend", "Form", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("PlotLegend", "Location", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(0, QtGui.QApplication.translate("PlotLegend", "none", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(1, QtGui.QApplication.translate("PlotLegend", "best", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(2, QtGui.QApplication.translate("PlotLegend", "upper right", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(3, QtGui.QApplication.translate("PlotLegend", "upper left", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(4, QtGui.QApplication.translate("PlotLegend", "lower left", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(5, QtGui.QApplication.translate("PlotLegend", "lower right", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(6, QtGui.QApplication.translate("PlotLegend", "right", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(7, QtGui.QApplication.translate("PlotLegend", "center left", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(8, QtGui.QApplication.translate("PlotLegend", "center right", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(9, QtGui.QApplication.translate("PlotLegend", "lower center", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(10, QtGui.QApplication.translate("PlotLegend", "upper center", None, QtGui.QApplication.UnicodeUTF8)) self.loc.setItemText(11, QtGui.QApplication.translate("PlotLegend", "center", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText(QtGui.QApplication.translate("PlotLegend", "Title", None, QtGui.QApplication.UnicodeUTF8)) self.label_3.setText(QtGui.QApplication.translate("PlotLegend", "Border", None, QtGui.QApplication.UnicodeUTF8)) self.label_5.setText(QtGui.QApplication.translate("PlotLegend", "Rounded Corners", None, QtGui.QApplication.UnicodeUTF8)) self.label_4.setText(QtGui.QApplication.translate("PlotLegend", "Shadow", None, QtGui.QApplication.UnicodeUTF8)) self.label_6.setText(QtGui.QApplication.translate("PlotLegend", "Number of Columns", None, QtGui.QApplication.UnicodeUTF8)) self.label_7.setText(QtGui.QApplication.translate("PlotLegend", "Spacing between Columns", None, QtGui.QApplication.UnicodeUTF8)) self.label_8.setText(QtGui.QApplication.translate("PlotLegend", "Border-Axis spacing", None, QtGui.QApplication.UnicodeUTF8)) self.label_9.setText(QtGui.QApplication.translate("PlotLegend", "Handle-Text padding", None, QtGui.QApplication.UnicodeUTF8)) self.label_10.setText(QtGui.QApplication.translate("PlotLegend", "Handle size", None, QtGui.QApplication.UnicodeUTF8)) self.label_11.setText(QtGui.QApplication.translate("PlotLegend", "Border padding", None, QtGui.QApplication.UnicodeUTF8)) self.label_12.setText(QtGui.QApplication.translate("PlotLegend", "Label line spacing", None, QtGui.QApplication.UnicodeUTF8)) self.label_13.setText(QtGui.QApplication.translate("PlotLegend", "Marker scale", None, QtGui.QApplication.UnicodeUTF8)) self.font.setText(QtGui.QApplication.translate("PlotLegend", "Trace Font", None, QtGui.QApplication.UnicodeUTF8)) self.titleFont.setText(QtGui.QApplication.translate("PlotLegend", "Title Font", None, QtGui.QApplication.UnicodeUTF8)) self.storedSettingsButton.setText(QtGui.QApplication.translate("PlotLegend", "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))
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 setupUi(self, FigureOptionsWidget): FigureOptionsWidget.setObjectName(_fromUtf8("FigureOptionsWidget")) FigureOptionsWidget.resize(568, 355) self.gridLayout = QtGui.QGridLayout(FigureOptionsWidget) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_7 = QtGui.QLabel(FigureOptionsWidget) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1) self.label_8 = QtGui.QLabel(FigureOptionsWidget) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_2.addWidget(self.label_8, 0, 2, 1, 1) self.rows = QtGui.QSpinBox(FigureOptionsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rows.sizePolicy().hasHeightForWidth()) self.rows.setSizePolicy(sizePolicy) self.rows.setMinimumSize(QtCore.QSize(50, 0)) self.rows.setMinimum(1) self.rows.setObjectName(_fromUtf8("rows")) self.gridLayout_2.addWidget(self.rows, 0, 1, 1, 1) self.columns = QtGui.QSpinBox(FigureOptionsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.columns.sizePolicy().hasHeightForWidth()) self.columns.setSizePolicy(sizePolicy) self.columns.setMinimumSize(QtCore.QSize(50, 0)) self.columns.setMinimum(1) self.columns.setObjectName(_fromUtf8("columns")) self.gridLayout_2.addWidget(self.columns, 0, 3, 1, 1) self.linkPlotAxes = QtGui.QCheckBox(FigureOptionsWidget) self.linkPlotAxes.setLayoutDirection(QtCore.Qt.LeftToRight) self.linkPlotAxes.setObjectName(_fromUtf8("linkPlotAxes")) self.gridLayout_2.addWidget(self.linkPlotAxes, 0, 4, 1, 2) self.gridLayout.addLayout(self.gridLayout_2, 4, 0, 1, 3) self.windowTitle = QtGui.QLineEdit(FigureOptionsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.windowTitle.sizePolicy().hasHeightForWidth()) self.windowTitle.setSizePolicy(sizePolicy) self.windowTitle.setMinimumSize(QtCore.QSize(150, 0)) self.windowTitle.setObjectName(_fromUtf8("windowTitle")) self.gridLayout.addWidget(self.windowTitle, 0, 1, 1, 2) self.label_24 = QtGui.QLabel(FigureOptionsWidget) self.label_24.setObjectName(_fromUtf8("label_24")) self.gridLayout.addWidget(self.label_24, 0, 0, 1, 1) self.label_13 = QtGui.QLabel(FigureOptionsWidget) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout.addWidget(self.label_13, 1, 0, 1, 1) self.title = QtGui.QLineEdit(FigureOptionsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.title.sizePolicy().hasHeightForWidth()) self.title.setSizePolicy(sizePolicy) self.title.setMinimumSize(QtCore.QSize(150, 0)) self.title.setObjectName(_fromUtf8("title")) self.gridLayout.addWidget(self.title, 1, 1, 1, 1) self.titleFont = QTextOptionsButton(FigureOptionsWidget) self.titleFont.setObjectName(_fromUtf8("titleFont")) self.gridLayout.addWidget(self.titleFont, 1, 2, 1, 1) self.label_5 = QtGui.QLabel(FigureOptionsWidget) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1) self.backgroundColor = QColorButton(FigureOptionsWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.backgroundColor.sizePolicy().hasHeightForWidth()) self.backgroundColor.setSizePolicy(sizePolicy) self.backgroundColor.setMinimumSize(QtCore.QSize(55, 0)) self.backgroundColor.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.backgroundColor.setStyleSheet( _fromUtf8("background-color: rgb(255, 255, 255);\n" "color: rgb(0, 0, 0);\n" "") ) self.backgroundColor.setObjectName(_fromUtf8("backgroundColor")) self.gridLayout.addWidget(self.backgroundColor, 2, 1, 1, 2) self.label_20 = QtGui.QLabel(FigureOptionsWidget) self.label_20.setObjectName(_fromUtf8("label_20")) self.gridLayout.addWidget(self.label_20, 3, 0, 1, 1) self.axesPadding = QtGui.QDoubleSpinBox(FigureOptionsWidget) self.axesPadding.setSingleStep(0.1) self.axesPadding.setProperty(_fromUtf8("value"), 0.5) self.axesPadding.setObjectName(_fromUtf8("axesPadding")) self.gridLayout.addWidget(self.axesPadding, 3, 1, 1, 2) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 3, 4, 1, 1) self.line_2 = QtGui.QFrame(FigureOptionsWidget) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.gridLayout.addWidget(self.line_2, 5, 0, 1, 3) self.buttons = QtGui.QDialogButtonBox(FigureOptionsWidget) self.buttons.setOrientation(QtCore.Qt.Horizontal) self.buttons.setStandardButtons(QtGui.QDialogButtonBox.Apply | QtGui.QDialogButtonBox.Reset) self.buttons.setCenterButtons(True) self.buttons.setObjectName(_fromUtf8("buttons")) self.gridLayout.addWidget(self.buttons, 6, 0, 1, 3) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 8, 3, 1, 1) self.storedSettingsButton = QStoredSettingsButton(FigureOptionsWidget) 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.addWidget(self.storedSettingsButton, 0, 3, 8, 1) self.retranslateUi(FigureOptionsWidget) QtCore.QObject.connect( self.backgroundColor, QtCore.SIGNAL(_fromUtf8("clicked()")), self.backgroundColor.createColorDialog ) QtCore.QObject.connect( self.titleFont, QtCore.SIGNAL(_fromUtf8("clicked()")), self.titleFont.showTextOptionsWidget ) QtCore.QObject.connect( self.buttons, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), FigureOptionsWidget.buttonClickHandler ) QtCore.QObject.connect( self.storedSettingsButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.storedSettingsButton.toggleWidget )
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 )