def setupUi(self, BankFullDetection): BankFullDetection.setObjectName(_fromUtf8("BankFullDetection")) BankFullDetection.resize(460, 525) self.verticalLayout_5 = QtGui.QVBoxLayout(BankFullDetection) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.tabWidget = QtGui.QTabWidget(BankFullDetection) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.groupBox = QtGui.QGroupBox(self.tab) font = QtGui.QFont() font.setItalic(False) font.setKerning(True) font.setStyleStrategy(QtGui.QFont.PreferDefault) self.groupBox.setFont(font) self.groupBox.setAcceptDrops(False) self.groupBox.setAutoFillBackground(False) self.groupBox.setStyleSheet( _fromUtf8("QGroupBox {border:1px solid rgb(0, 0, 0); }")) self.groupBox.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.groupBox.setFlat(False) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_3.setContentsMargins(9, 25, -1, 9) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.comboVector = QtGui.QComboBox(self.groupBox) self.comboVector.setObjectName(_fromUtf8("comboVector")) self.horizontalLayout.addWidget(self.comboVector) self.verticalLayout_3.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_2.addWidget(self.label_3) self.stepXSspin = QtGui.QSpinBox(self.groupBox) self.stepXSspin.setMaximum(10000) self.stepXSspin.setSingleStep(10) self.stepXSspin.setProperty("value", 50) self.stepXSspin.setObjectName(_fromUtf8("stepXSspin")) self.horizontalLayout_2.addWidget(self.stepXSspin) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_4 = QtGui.QLabel(self.groupBox) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_4.addWidget(self.label_4) self.widthXSspin = QtGui.QSpinBox(self.groupBox) self.widthXSspin.setMaximum(1000) self.widthXSspin.setProperty("value", 500) self.widthXSspin.setObjectName(_fromUtf8("widthXSspin")) self.horizontalLayout_4.addWidget(self.widthXSspin) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.genXSbtn = QtGui.QPushButton(self.groupBox) self.genXSbtn.setObjectName(_fromUtf8("genXSbtn")) self.verticalLayout_3.addWidget(self.genXSbtn) self.verticalLayout_2.addWidget(self.groupBox) self.groupBox_2 = QtGui.QGroupBox(self.tab) self.groupBox_2.setStyleSheet( _fromUtf8("QGroupBox {border:1px solid rgb(0, 0, 0); }")) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout.setContentsMargins(-1, 25, -1, -1) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_2 = QtGui.QLabel(self.groupBox_2) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_3.addWidget(self.label_2) self.comboDEM = QtGui.QComboBox(self.groupBox_2) self.comboDEM.setObjectName(_fromUtf8("comboDEM")) self.horizontalLayout_3.addWidget(self.comboDEM) self.verticalLayout.addLayout(self.horizontalLayout_3) self.formLayout = QtGui.QFormLayout() self.formLayout.setObjectName(_fromUtf8("formLayout")) self.label_5 = QtGui.QLabel(self.groupBox_2) self.label_5.setObjectName(_fromUtf8("label_5")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_5) self.nVsteps = QtGui.QSpinBox(self.groupBox_2) self.nVsteps.setSuffix(_fromUtf8("")) self.nVsteps.setMinimum(50) self.nVsteps.setMaximum(2000) self.nVsteps.setProperty("value", 700) self.nVsteps.setObjectName(_fromUtf8("nVsteps")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.nVsteps) self.minVdep = QtGui.QDoubleSpinBox(self.groupBox_2) self.minVdep.setSingleStep(0.05) self.minVdep.setProperty("value", 0.5) self.minVdep.setObjectName(_fromUtf8("minVdep")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.minVdep) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setObjectName(_fromUtf8("label_6")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_6) self.verticalLayout.addLayout(self.formLayout) self.line = QtGui.QFrame(self.groupBox_2) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout.addWidget(self.line) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.label_8 = QtGui.QLabel(self.groupBox_2) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_5.addWidget(self.label_8) self.ShpSaveLine = QtGui.QLineEdit(self.groupBox_2) self.ShpSaveLine.setObjectName(_fromUtf8("ShpSaveLine")) self.horizontalLayout_5.addWidget(self.ShpSaveLine) self.ShpSaveBtn = QtGui.QPushButton(self.groupBox_2) self.ShpSaveBtn.setObjectName(_fromUtf8("ShpSaveBtn")) self.horizontalLayout_5.addWidget(self.ShpSaveBtn) self.verticalLayout.addLayout(self.horizontalLayout_5) self.buttonProf = QtGui.QPushButton(self.groupBox_2) self.buttonProf.setObjectName(_fromUtf8("buttonProf")) self.verticalLayout.addWidget(self.buttonProf) self.progressBar = QtGui.QProgressBar(self.groupBox_2) self.progressBar.setProperty("value", 0) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.verticalLayout.addWidget(self.progressBar) self.verticalLayout_2.addWidget(self.groupBox_2) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName(_fromUtf8("tab_3")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_3) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.label_9 = QtGui.QLabel(self.tab_3) self.label_9.setObjectName(_fromUtf8("label_9")) self.horizontalLayout_6.addWidget(self.label_9) self.selXS = QtGui.QPushButton(self.tab_3) self.selXS.setObjectName(_fromUtf8("selXS")) self.horizontalLayout_6.addWidget(self.selXS) self.verticalLayout_4.addLayout(self.horizontalLayout_6) self.line_2 = QtGui.QFrame(self.tab_3) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.verticalLayout_4.addWidget(self.line_2) self.layout_plot = QtGui.QVBoxLayout() self.layout_plot.setObjectName(_fromUtf8("layout_plot")) self.widget = QtGui.QWidget(self.tab_3) self.widget.setObjectName(_fromUtf8("widget")) self.layout_plot.addWidget(self.widget) self.verticalLayout_4.addLayout(self.layout_plot) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem) self.tabWidget.addTab(self.tab_3, _fromUtf8("")) self.verticalLayout_5.addWidget(self.tabWidget) self.buttonBox = QtGui.QDialogButtonBox(BankFullDetection) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout_5.addWidget(self.buttonBox) self.retranslateUi(BankFullDetection) self.tabWidget.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), BankFullDetection.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), BankFullDetection.reject) QtCore.QMetaObject.connectSlotsByName(BankFullDetection)
def setupUi(self, Objekt_status_GDBDialogBase): Objekt_status_GDBDialogBase.setObjectName(_fromUtf8("Objekt_status_GDBDialogBase")) Objekt_status_GDBDialogBase.resize(481, 563) self.tabWidget = QtGui.QTabWidget(Objekt_status_GDBDialogBase) self.tabWidget.setGeometry(QtCore.QRect(10, 10, 461, 531)) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.label_2 = QtGui.QLabel(self.tab) self.label_2.setGeometry(QtCore.QRect(30, 60, 191, 21)) font = QtGui.QFont() font.setPointSize(12) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.layoutWidget = QtGui.QWidget(self.tab) self.layoutWidget.setGeometry(QtCore.QRect(20, 300, 404, 201)) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.gridLayout = QtGui.QGridLayout(self.layoutWidget) self.gridLayout.setMargin(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.checkBox_1 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_1.setObjectName(_fromUtf8("checkBox_1")) self.gridLayout.addWidget(self.checkBox_1, 0, 0, 1, 1) self.checkBox_5 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_5.setObjectName(_fromUtf8("checkBox_5")) self.gridLayout.addWidget(self.checkBox_5, 0, 1, 1, 1) self.checkBox_9 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_9.setObjectName(_fromUtf8("checkBox_9")) self.gridLayout.addWidget(self.checkBox_9, 0, 2, 1, 1) self.checkBox_2 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_2.setObjectName(_fromUtf8("checkBox_2")) self.gridLayout.addWidget(self.checkBox_2, 1, 0, 1, 1) self.checkBox_6 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_6.setObjectName(_fromUtf8("checkBox_6")) self.gridLayout.addWidget(self.checkBox_6, 1, 1, 1, 1) self.checkBox_10 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_10.setObjectName(_fromUtf8("checkBox_10")) self.gridLayout.addWidget(self.checkBox_10, 1, 2, 1, 1) self.checkBox_3 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_3.setObjectName(_fromUtf8("checkBox_3")) self.gridLayout.addWidget(self.checkBox_3, 2, 0, 1, 1) self.checkBox_7 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_7.setObjectName(_fromUtf8("checkBox_7")) self.gridLayout.addWidget(self.checkBox_7, 2, 1, 1, 1) self.checkBox_11 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_11.setObjectName(_fromUtf8("checkBox_11")) self.gridLayout.addWidget(self.checkBox_11, 2, 2, 1, 1) self.checkBox_4 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_4.setObjectName(_fromUtf8("checkBox_4")) self.gridLayout.addWidget(self.checkBox_4, 3, 0, 1, 1) self.checkBox_8 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_8.setObjectName(_fromUtf8("checkBox_8")) self.gridLayout.addWidget(self.checkBox_8, 3, 1, 1, 1) self.checkBox_12 = QtGui.QCheckBox(self.layoutWidget) self.checkBox_12.setObjectName(_fromUtf8("checkBox_12")) self.gridLayout.addWidget(self.checkBox_12, 3, 2, 1, 1) self.label = QtGui.QLabel(self.tab) self.label.setGeometry(QtCore.QRect(60, 0, 161, 41)) font = QtGui.QFont() font.setPointSize(12) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.lineEdit_Save_dir = QtGui.QLineEdit(self.tab) self.lineEdit_Save_dir.setGeometry(QtCore.QRect(150, 170, 261, 20)) self.lineEdit_Save_dir.setObjectName(_fromUtf8("lineEdit_Save_dir")) self.label_3 = QtGui.QLabel(self.tab) self.label_3.setGeometry(QtCore.QRect(10, 160, 141, 41)) font = QtGui.QFont() font.setPointSize(12) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.pushButton_Save_dir = QtGui.QPushButton(self.tab) self.pushButton_Save_dir.setGeometry(QtCore.QRect(420, 170, 31, 23)) self.pushButton_Save_dir.setObjectName(_fromUtf8("pushButton_Save_dir")) self.comboBox_geom_status = QtGui.QComboBox(self.tab) self.comboBox_geom_status.setGeometry(QtCore.QRect(220, 110, 231, 22)) self.comboBox_geom_status.setObjectName(_fromUtf8("comboBox_geom_status")) self.label_4 = QtGui.QLabel(self.tab) self.label_4.setGeometry(QtCore.QRect(10, 110, 221, 21)) font = QtGui.QFont() font.setPointSize(12) self.label_4.setFont(font) self.label_4.setObjectName(_fromUtf8("label_4")) self.pushButton_run = QtGui.QPushButton(self.tab) self.pushButton_run.setGeometry(QtCore.QRect(164, 220, 81, 23)) self.pushButton_run.setObjectName(_fromUtf8("pushButton_run")) self.comboBox_obj_status = QtGui.QComboBox(self.tab) self.comboBox_obj_status.setGeometry(QtCore.QRect(220, 60, 231, 22)) self.comboBox_obj_status.setObjectName(_fromUtf8("comboBox_obj_status")) self.comboBox_kommune = QtGui.QComboBox(self.tab) self.comboBox_kommune.setGeometry(QtCore.QRect(220, 10, 231, 22)) self.comboBox_kommune.setObjectName(_fromUtf8("comboBox_kommune")) self.label_10 = QtGui.QLabel(self.tab) self.label_10.setGeometry(QtCore.QRect(105, 260, 211, 31)) font = QtGui.QFont() font.setPointSize(10) font.setBold(True) font.setWeight(75) self.label_10.setFont(font) self.label_10.setAlignment(QtCore.Qt.AlignCenter) self.label_10.setObjectName(_fromUtf8("label_10")) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.groupBoxCredentials = QtGui.QGroupBox(self.tab_2) self.groupBoxCredentials.setGeometry(QtCore.QRect(10, 20, 391, 181)) self.groupBoxCredentials.setObjectName(_fromUtf8("groupBoxCredentials")) self.db_name = QtGui.QLineEdit(self.groupBoxCredentials) self.db_name.setGeometry(QtCore.QRect(100, 30, 261, 20)) self.db_name.setObjectName(_fromUtf8("db_name")) self.label_5 = QtGui.QLabel(self.groupBoxCredentials) self.label_5.setGeometry(QtCore.QRect(20, 30, 101, 16)) self.label_5.setObjectName(_fromUtf8("label_5")) self.db_host = QtGui.QLineEdit(self.groupBoxCredentials) self.db_host.setGeometry(QtCore.QRect(100, 60, 261, 20)) self.db_host.setObjectName(_fromUtf8("db_host")) self.label_6 = QtGui.QLabel(self.groupBoxCredentials) self.label_6.setGeometry(QtCore.QRect(20, 60, 101, 16)) self.label_6.setObjectName(_fromUtf8("label_6")) self.db_user = QtGui.QLineEdit(self.groupBoxCredentials) self.db_user.setGeometry(QtCore.QRect(100, 90, 261, 20)) self.db_user.setObjectName(_fromUtf8("db_user")) self.label_7 = QtGui.QLabel(self.groupBoxCredentials) self.label_7.setGeometry(QtCore.QRect(20, 90, 101, 16)) self.label_7.setObjectName(_fromUtf8("label_7")) self.db_password = QtGui.QLineEdit(self.groupBoxCredentials) self.db_password.setGeometry(QtCore.QRect(100, 120, 261, 20)) self.db_password.setObjectName(_fromUtf8("db_password")) self.label_8 = QtGui.QLabel(self.groupBoxCredentials) self.label_8.setGeometry(QtCore.QRect(20, 120, 101, 16)) self.label_8.setObjectName(_fromUtf8("label_8")) self.db_port = QtGui.QLineEdit(self.groupBoxCredentials) self.db_port.setGeometry(QtCore.QRect(100, 150, 261, 20)) self.db_port.setObjectName(_fromUtf8("db_port")) self.label_9 = QtGui.QLabel(self.groupBoxCredentials) self.label_9.setGeometry(QtCore.QRect(20, 150, 101, 16)) self.label_9.setObjectName(_fromUtf8("label_9")) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.button_box = QtGui.QDialogButtonBox(Objekt_status_GDBDialogBase) self.button_box.setGeometry(QtCore.QRect(110, 840, 341, 32)) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.button_box.setObjectName(_fromUtf8("button_box")) self.retranslateUi(Objekt_status_GDBDialogBase) self.tabWidget.setCurrentIndex(0) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("rejected()")), Objekt_status_GDBDialogBase.reject) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("accepted()")), Objekt_status_GDBDialogBase.accept) QtCore.QMetaObject.connectSlotsByName(Objekt_status_GDBDialogBase)
def setupUi(self, noise_patch_dialog): noise_patch_dialog.setObjectName(_fromUtf8("noise_patch_dialog")) noise_patch_dialog.resize(476, 384) self.verticalLayout = QtGui.QVBoxLayout(noise_patch_dialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.widget_header_box = QtGui.QWidget(noise_patch_dialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.widget_header_box.sizePolicy().hasHeightForWidth()) self.widget_header_box.setSizePolicy(sizePolicy) self.widget_header_box.setObjectName(_fromUtf8("widget_header_box")) self.horizontalLayout = QtGui.QHBoxLayout(self.widget_header_box) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setMargin(5) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_noise_patch = QtGui.QLabel(self.widget_header_box) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_noise_patch.sizePolicy().hasHeightForWidth()) self.label_noise_patch.setSizePolicy(sizePolicy) self.label_noise_patch.setText(_fromUtf8("")) self.label_noise_patch.setPixmap( QtGui.QPixmap(_fromUtf8(":/icons/noise_patch.png"))) self.label_noise_patch.setObjectName(_fromUtf8("label_noise_patch")) self.horizontalLayout.addWidget(self.label_noise_patch) self.label_2 = QtGui.QLabel(self.widget_header_box) font = QtGui.QFont() font.setPointSize(11) font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout.addWidget(self.label_2) self.verticalLayout.addWidget(self.widget_header_box) self.widget = QtGui.QWidget(noise_patch_dialog) font = QtGui.QFont() font.setPointSize(8) self.widget.setFont(font) self.widget.setObjectName(_fromUtf8("widget")) self.formLayout = QtGui.QFormLayout(self.widget) self.formLayout.setFieldGrowthPolicy( QtGui.QFormLayout.AllNonFixedFieldsGrow) self.formLayout.setMargin(0) self.formLayout.setVerticalSpacing(12) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.spin_size = QtGui.QSpinBox(self.widget) self.spin_size.setMinimum(1) self.spin_size.setMaximum(1000) self.spin_size.setProperty("value", 96) self.spin_size.setObjectName(_fromUtf8("spin_size")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.spin_size) self.label_5 = QtGui.QLabel(self.widget) self.label_5.setObjectName(_fromUtf8("label_5")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_5) self.combobox_env = QtGui.QComboBox(self.widget) self.combobox_env.setObjectName(_fromUtf8("combobox_env")) self.combobox_env.addItem(_fromUtf8("")) self.combobox_env.addItem(_fromUtf8("")) self.combobox_env.addItem(_fromUtf8("")) self.combobox_env.addItem(_fromUtf8("")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.combobox_env) self.label_6 = QtGui.QLabel(self.widget) self.label_6.setObjectName(_fromUtf8("label_6")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_6) self.spin_stdev = QtGui.QDoubleSpinBox(self.widget) self.spin_stdev.setMaximum(1000.0) self.spin_stdev.setProperty("value", 12.0) self.spin_stdev.setObjectName(_fromUtf8("spin_stdev")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.spin_stdev) self.label_10 = QtGui.QLabel(self.widget) self.label_10.setObjectName(_fromUtf8("label_10")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_10) self.edit_color1 = QtGui.QLineEdit(self.widget) self.edit_color1.setObjectName(_fromUtf8("edit_color1")) self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.edit_color1) self.label_9 = QtGui.QLabel(self.widget) self.label_9.setObjectName(_fromUtf8("label_9")) self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_9) self.edit_color2 = QtGui.QLineEdit(self.widget) self.edit_color2.setObjectName(_fromUtf8("edit_color2")) self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.edit_color2) self.label_11 = QtGui.QLabel(self.widget) font = QtGui.QFont() font.setPointSize(9) self.label_11.setFont(font) self.label_11.setObjectName(_fromUtf8("label_11")) self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_11) self.combobox_bgmode = QtGui.QComboBox(self.widget) self.combobox_bgmode.setObjectName(_fromUtf8("combobox_bgmode")) self.combobox_bgmode.addItem(_fromUtf8("")) self.combobox_bgmode.addItem(_fromUtf8("")) self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.combobox_bgmode) self.label_4 = QtGui.QLabel(self.widget) self.label_4.setObjectName(_fromUtf8("label_4")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_4) self.verticalLayout.addWidget(self.widget) self.widget_3 = QtGui.QWidget(noise_patch_dialog) self.widget_3.setObjectName(_fromUtf8("widget_3")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget_3) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.label_12 = QtGui.QLabel(self.widget_3) font = QtGui.QFont() font.setPointSize(9) font.setItalic(True) self.label_12.setFont(font) self.label_12.setWordWrap(True) self.label_12.setObjectName(_fromUtf8("label_12")) self.verticalLayout_2.addWidget(self.label_12) self.verticalLayout.addWidget(self.widget_3) self.buttonBox = QtGui.QDialogButtonBox(noise_patch_dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setCenterButtons(False) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(noise_patch_dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), noise_patch_dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), noise_patch_dialog.reject) QtCore.QMetaObject.connectSlotsByName(noise_patch_dialog)
def setupUi(self, MeterDialog): MeterDialog.setObjectName(_fromUtf8("MeterDialog")) MeterDialog.resize(588, 575) MeterDialog.setMinimumSize(QtCore.QSize(588, 450)) MeterDialog.setMaximumSize(QtCore.QSize(588, 640)) self.buttonBox = QtGui.QDialogButtonBox(MeterDialog) self.buttonBox.setGeometry(QtCore.QRect(405, 540, 166, 32)) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.tabWidget = QtGui.QTabWidget(MeterDialog) self.tabWidget.setGeometry(QtCore.QRect(15, 10, 556, 521)) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.meter_number_edit = QtGui.QLineEdit(self.tab) self.meter_number_edit.setGeometry(QtCore.QRect(27, 30, 196, 20)) self.meter_number_edit.setObjectName(_fromUtf8("meter_number_edit")) self.label = QtGui.QLabel(self.tab) self.label.setGeometry(QtCore.QRect(27, 15, 126, 16)) self.label.setObjectName(_fromUtf8("label")) self.label_7 = QtGui.QLabel(self.tab) self.label_7.setGeometry(QtCore.QRect(265, 135, 126, 16)) self.label_7.setObjectName(_fromUtf8("label_7")) self.inspection_intervall_unit_cbox = QtGui.QComboBox(self.tab) self.inspection_intervall_unit_cbox.setGeometry( QtCore.QRect(265, 70, 196, 22)) self.inspection_intervall_unit_cbox.setObjectName( _fromUtf8("inspection_intervall_unit_cbox")) self.plot_no_edit = QtGui.QLineEdit(self.tab) self.plot_no_edit.setGeometry(QtCore.QRect(25, 150, 196, 20)) self.plot_no_edit.setObjectName(_fromUtf8("plot_no_edit")) self.label_15 = QtGui.QLabel(self.tab) self.label_15.setGeometry(QtCore.QRect(265, 335, 126, 16)) self.label_15.setObjectName(_fromUtf8("label_15")) self.district_edit = QtGui.QLineEdit(self.tab) self.district_edit.setGeometry(QtCore.QRect(25, 190, 196, 20)) self.district_edit.setObjectName(_fromUtf8("district_edit")) self.street_edit = QtGui.QLineEdit(self.tab) self.street_edit.setGeometry(QtCore.QRect(25, 310, 196, 20)) self.street_edit.setText(_fromUtf8("")) self.street_edit.setObjectName(_fromUtf8("street_edit")) self.label_21 = QtGui.QLabel(self.tab) self.label_21.setGeometry(QtCore.QRect(265, 175, 126, 16)) self.label_21.setObjectName(_fromUtf8("label_21")) self.ward_edit = QtGui.QLineEdit(self.tab) self.ward_edit.setGeometry(QtCore.QRect(25, 270, 196, 20)) self.ward_edit.setText(_fromUtf8("")) self.ward_edit.setObjectName(_fromUtf8("ward_edit")) self.label_14 = QtGui.QLabel(self.tab) self.label_14.setGeometry(QtCore.QRect(265, 295, 126, 16)) self.label_14.setObjectName(_fromUtf8("label_14")) self.installation_date_chbox = QtGui.QCheckBox(self.tab) self.installation_date_chbox.setGeometry(QtCore.QRect(25, 355, 26, 17)) self.installation_date_chbox.setText(_fromUtf8("")) self.installation_date_chbox.setObjectName( _fromUtf8("installation_date_chbox")) self.label_3 = QtGui.QLabel(self.tab) self.label_3.setGeometry(QtCore.QRect(25, 335, 126, 16)) self.label_3.setObjectName(_fromUtf8("label_3")) self.date_of_first_use_chbox = QtGui.QCheckBox(self.tab) self.date_of_first_use_chbox.setGeometry(QtCore.QRect(25, 405, 26, 17)) self.date_of_first_use_chbox.setText(_fromUtf8("")) self.date_of_first_use_chbox.setObjectName( _fromUtf8("date_of_first_use_chbox")) self.network_cbox = QtGui.QComboBox(self.tab) self.network_cbox.setGeometry(QtCore.QRect(265, 350, 196, 22)) self.network_cbox.setObjectName(_fromUtf8("network_cbox")) self.label_22 = QtGui.QLabel(self.tab) self.label_22.setGeometry(QtCore.QRect(25, 385, 126, 16)) self.label_22.setObjectName(_fromUtf8("label_22")) self.date_of_last_inspection_chbox = QtGui.QCheckBox(self.tab) self.date_of_last_inspection_chbox.setGeometry( QtCore.QRect(265, 115, 26, 17)) self.date_of_last_inspection_chbox.setText(_fromUtf8("")) self.date_of_last_inspection_chbox.setObjectName( _fromUtf8("date_of_last_inspection_chbox")) self.inspection_intervall_sbox = QtGui.QDoubleSpinBox(self.tab) self.inspection_intervall_sbox.setGeometry( QtCore.QRect(265, 30, 196, 22)) self.inspection_intervall_sbox.setObjectName( _fromUtf8("inspection_intervall_sbox")) self.date_of_last_inspection_edit = QtGui.QDateEdit(self.tab) self.date_of_last_inspection_edit.setEnabled(False) self.date_of_last_inspection_edit.setGeometry( QtCore.QRect(290, 110, 171, 22)) self.date_of_last_inspection_edit.setCalendarPopup(True) self.date_of_last_inspection_edit.setObjectName( _fromUtf8("date_of_last_inspection_edit")) self.label_13 = QtGui.QLabel(self.tab) self.label_13.setGeometry(QtCore.QRect(265, 95, 126, 16)) self.label_13.setObjectName(_fromUtf8("label_13")) self.status_change_date_edit = QtGui.QDateEdit(self.tab) self.status_change_date_edit.setEnabled(False) self.status_change_date_edit.setGeometry( QtCore.QRect(290, 190, 171, 22)) self.status_change_date_edit.setCalendarPopup(True) self.status_change_date_edit.setObjectName( _fromUtf8("status_change_date_edit")) self.label_19 = QtGui.QLabel(self.tab) self.label_19.setGeometry(QtCore.QRect(25, 255, 141, 16)) self.label_19.setObjectName(_fromUtf8("label_19")) self.operating_state_cbox = QtGui.QComboBox(self.tab) self.operating_state_cbox.setGeometry(QtCore.QRect(265, 150, 196, 22)) self.operating_state_cbox.setObjectName( _fromUtf8("operating_state_cbox")) self.label_2 = QtGui.QLabel(self.tab) self.label_2.setGeometry(QtCore.QRect(25, 55, 216, 16)) self.label_2.setObjectName(_fromUtf8("label_2")) self.installation_date_edit = QtGui.QDateEdit(self.tab) self.installation_date_edit.setEnabled(False) self.installation_date_edit.setGeometry(QtCore.QRect(50, 350, 171, 22)) self.installation_date_edit.setCalendarPopup(True) self.installation_date_edit.setObjectName( _fromUtf8("installation_date_edit")) self.height_sbox = QtGui.QDoubleSpinBox(self.tab) self.height_sbox.setGeometry(QtCore.QRect(265, 310, 196, 22)) self.height_sbox.setMinimum(-100.0) self.height_sbox.setMaximum(2000.0) self.height_sbox.setObjectName(_fromUtf8("height_sbox")) self.label_20 = QtGui.QLabel(self.tab) self.label_20.setGeometry(QtCore.QRect(25, 295, 141, 16)) self.label_20.setObjectName(_fromUtf8("label_20")) self.label_16 = QtGui.QLabel(self.tab) self.label_16.setGeometry(QtCore.QRect(25, 135, 141, 16)) self.label_16.setObjectName(_fromUtf8("label_16")) self.label_5 = QtGui.QLabel(self.tab) self.label_5.setGeometry(QtCore.QRect(265, 15, 126, 16)) self.label_5.setObjectName(_fromUtf8("label_5")) self.label_17 = QtGui.QLabel(self.tab) self.label_17.setGeometry(QtCore.QRect(25, 175, 141, 16)) self.label_17.setObjectName(_fromUtf8("label_17")) self.status_change_date_chbox = QtGui.QCheckBox(self.tab) self.status_change_date_chbox.setGeometry( QtCore.QRect(265, 195, 26, 17)) self.status_change_date_chbox.setText(_fromUtf8("")) self.status_change_date_chbox.setObjectName( _fromUtf8("status_change_date_chbox")) self.date_of_first_use_edit = QtGui.QDateEdit(self.tab) self.date_of_first_use_edit.setEnabled(False) self.date_of_first_use_edit.setGeometry(QtCore.QRect(50, 400, 171, 22)) self.date_of_first_use_edit.setCalendarPopup(True) self.date_of_first_use_edit.setObjectName( _fromUtf8("date_of_first_use_edit")) self.label_18 = QtGui.QLabel(self.tab) self.label_18.setGeometry(QtCore.QRect(25, 215, 141, 16)) self.label_18.setObjectName(_fromUtf8("label_18")) self.label_6 = QtGui.QLabel(self.tab) self.label_6.setGeometry(QtCore.QRect(265, 55, 126, 16)) self.label_6.setObjectName(_fromUtf8("label_6")) self.meter_class_cbox = QtGui.QComboBox(self.tab) self.meter_class_cbox.setGeometry(QtCore.QRect(265, 230, 196, 22)) self.meter_class_cbox.setObjectName(_fromUtf8("meter_class_cbox")) self.label_9 = QtGui.QLabel(self.tab) self.label_9.setGeometry(QtCore.QRect(265, 215, 126, 16)) self.label_9.setObjectName(_fromUtf8("label_9")) self.meter_type_cbox = QtGui.QComboBox(self.tab) self.meter_type_cbox.setGeometry(QtCore.QRect(265, 270, 196, 22)) self.meter_type_cbox.setObjectName(_fromUtf8("meter_type_cbox")) self.label_10 = QtGui.QLabel(self.tab) self.label_10.setGeometry(QtCore.QRect(265, 255, 126, 16)) self.label_10.setObjectName(_fromUtf8("label_10")) self.zone_edit = QtGui.QLineEdit(self.tab) self.zone_edit.setGeometry(QtCore.QRect(25, 230, 196, 20)) self.zone_edit.setObjectName(_fromUtf8("zone_edit")) self.view_maxcom_button = QtGui.QPushButton(self.tab) self.view_maxcom_button.setGeometry(QtCore.QRect(195, 100, 25, 25)) self.view_maxcom_button.setText(_fromUtf8("")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/wnt/eye.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.view_maxcom_button.setIcon(icon) self.view_maxcom_button.setObjectName(_fromUtf8("view_maxcom_button")) self.verify_button = QtGui.QPushButton(self.tab) self.verify_button.setGeometry(QtCore.QRect(160, 100, 25, 25)) self.verify_button.setText(_fromUtf8("")) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/wnt/verify.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.verify_button.setIcon(icon1) self.verify_button.setObjectName(_fromUtf8("verify_button")) self.control_no_sbox = QtGui.QSpinBox(self.tab) self.control_no_sbox.setGeometry(QtCore.QRect(25, 70, 196, 22)) self.control_no_sbox.setMinimum(-1) self.control_no_sbox.setMaximum(8000000) self.control_no_sbox.setProperty("value", -1) self.control_no_sbox.setObjectName(_fromUtf8("control_no_sbox")) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.retranslateUi(MeterDialog) self.tabWidget.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), MeterDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), MeterDialog.reject) QtCore.QMetaObject.connectSlotsByName(MeterDialog) MeterDialog.setTabOrder(self.tabWidget, self.meter_number_edit) MeterDialog.setTabOrder(self.meter_number_edit, self.control_no_sbox) MeterDialog.setTabOrder(self.control_no_sbox, self.verify_button) MeterDialog.setTabOrder(self.verify_button, self.view_maxcom_button) MeterDialog.setTabOrder(self.view_maxcom_button, self.plot_no_edit) MeterDialog.setTabOrder(self.plot_no_edit, self.district_edit) MeterDialog.setTabOrder(self.district_edit, self.zone_edit) MeterDialog.setTabOrder(self.zone_edit, self.ward_edit) MeterDialog.setTabOrder(self.ward_edit, self.street_edit) MeterDialog.setTabOrder(self.street_edit, self.installation_date_chbox) MeterDialog.setTabOrder(self.installation_date_chbox, self.installation_date_edit) MeterDialog.setTabOrder(self.installation_date_edit, self.date_of_first_use_chbox) MeterDialog.setTabOrder(self.date_of_first_use_chbox, self.date_of_first_use_edit) MeterDialog.setTabOrder(self.date_of_first_use_edit, self.inspection_intervall_sbox) MeterDialog.setTabOrder(self.inspection_intervall_sbox, self.inspection_intervall_unit_cbox) MeterDialog.setTabOrder(self.inspection_intervall_unit_cbox, self.date_of_last_inspection_chbox) MeterDialog.setTabOrder(self.date_of_last_inspection_chbox, self.date_of_last_inspection_edit) MeterDialog.setTabOrder(self.date_of_last_inspection_edit, self.operating_state_cbox) MeterDialog.setTabOrder(self.operating_state_cbox, self.status_change_date_chbox) MeterDialog.setTabOrder(self.status_change_date_chbox, self.status_change_date_edit) MeterDialog.setTabOrder(self.status_change_date_edit, self.meter_class_cbox) MeterDialog.setTabOrder(self.meter_class_cbox, self.meter_type_cbox) MeterDialog.setTabOrder(self.meter_type_cbox, self.height_sbox) MeterDialog.setTabOrder(self.height_sbox, self.network_cbox) MeterDialog.setTabOrder(self.network_cbox, self.buttonBox)
def setupUi(self, ReportStationaryF007SetupDialog): ReportStationaryF007SetupDialog.setObjectName( _fromUtf8("ReportStationaryF007SetupDialog")) ReportStationaryF007SetupDialog.resize(450, 280) self.gridLayout = QtGui.QGridLayout(ReportStationaryF007SetupDialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.cmbOrgStructure = COrgStructureComboBox( ReportStationaryF007SetupDialog) self.cmbOrgStructure.setObjectName(_fromUtf8("cmbOrgStructure")) self.gridLayout.addWidget(self.cmbOrgStructure, 3, 1, 1, 2) self.lblSchedule = QtGui.QLabel(ReportStationaryF007SetupDialog) self.lblSchedule.setObjectName(_fromUtf8("lblSchedule")) self.gridLayout.addWidget(self.lblSchedule, 4, 0, 1, 1) self.cmbBedSchedule = QtGui.QComboBox(ReportStationaryF007SetupDialog) self.cmbBedSchedule.setObjectName(_fromUtf8("cmbBedSchedule")) self.cmbBedSchedule.addItem(_fromUtf8("")) self.cmbBedSchedule.addItem(_fromUtf8("")) self.cmbBedSchedule.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.cmbBedSchedule, 4, 1, 1, 2) self.lblOrgStructure = QtGui.QLabel(ReportStationaryF007SetupDialog) self.lblOrgStructure.setObjectName(_fromUtf8("lblOrgStructure")) self.gridLayout.addWidget(self.lblOrgStructure, 3, 0, 1, 1) self.lblProfileBed = QtGui.QLabel(ReportStationaryF007SetupDialog) self.lblProfileBed.setObjectName(_fromUtf8("lblProfileBed")) self.gridLayout.addWidget(self.lblProfileBed, 5, 0, 1, 1) self.cmbBedProfile = CRBComboBox(ReportStationaryF007SetupDialog) self.cmbBedProfile.setObjectName(_fromUtf8("cmbBedProfile")) self.gridLayout.addWidget(self.cmbBedProfile, 5, 1, 1, 2) self.chkDetailOrgStructure = QtGui.QCheckBox( ReportStationaryF007SetupDialog) self.chkDetailOrgStructure.setObjectName( _fromUtf8("chkDetailOrgStructure")) self.gridLayout.addWidget(self.chkDetailOrgStructure, 6, 0, 1, 3) self.buttonBox = QtGui.QDialogButtonBox( ReportStationaryF007SetupDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 8, 0, 1, 3) spacerItem = QtGui.QSpacerItem(129, 44, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 7, 0, 1, 1) self.edtDate = CDateEdit(ReportStationaryF007SetupDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.edtDate.sizePolicy().hasHeightForWidth()) self.edtDate.setSizePolicy(sizePolicy) self.edtDate.setCalendarPopup(True) self.edtDate.setObjectName(_fromUtf8("edtDate")) self.gridLayout.addWidget(self.edtDate, 0, 1, 1, 1) self.lblBegTime = QtGui.QLabel(ReportStationaryF007SetupDialog) self.lblBegTime.setObjectName(_fromUtf8("lblBegTime")) self.gridLayout.addWidget(self.lblBegTime, 1, 0, 1, 1) self.lblEndDate = QtGui.QLabel(ReportStationaryF007SetupDialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 0, 0, 1, 1) spacerItem1 = QtGui.QSpacerItem(192, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 0, 2, 1, 1) self.edtBegTime = QtGui.QTimeEdit(ReportStationaryF007SetupDialog) self.edtBegTime.setObjectName(_fromUtf8("edtBegTime")) self.gridLayout.addWidget(self.edtBegTime, 1, 1, 1, 1) self.lblOrgStructure.setBuddy(self.cmbOrgStructure) self.retranslateUi(ReportStationaryF007SetupDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportStationaryF007SetupDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportStationaryF007SetupDialog.reject) QtCore.QMetaObject.connectSlotsByName(ReportStationaryF007SetupDialog)
def setupUi(self, TagEditor): TagEditor.setObjectName(_fromUtf8("TagEditor")) TagEditor.resize(588, 335) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) TagEditor.setWindowIcon(icon) self.gridlayout = QtGui.QGridLayout(TagEditor) self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.label = QtGui.QLabel(TagEditor) self.label.setObjectName(_fromUtf8("label")) self.hboxlayout.addWidget(self.label) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout.addItem(spacerItem) self.vboxlayout.addLayout(self.hboxlayout) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1")) self.delete_button = QtGui.QToolButton(TagEditor) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("trash.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon1) self.delete_button.setObjectName(_fromUtf8("delete_button")) self.hboxlayout1.addWidget(self.delete_button) self.available_tags = QtGui.QListWidget(TagEditor) self.available_tags.setAlternatingRowColors(True) self.available_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.available_tags.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.available_tags.setObjectName(_fromUtf8("available_tags")) self.hboxlayout1.addWidget(self.available_tags) self.vboxlayout.addLayout(self.hboxlayout1) self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1) self.vboxlayout1 = QtGui.QVBoxLayout() self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem1) self.apply_button = QtGui.QToolButton(TagEditor) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.apply_button.setIcon(icon2) self.apply_button.setObjectName(_fromUtf8("apply_button")) self.vboxlayout1.addWidget(self.apply_button) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem2) self.gridlayout.addLayout(self.vboxlayout1, 0, 1, 1, 1) self.vboxlayout2 = QtGui.QVBoxLayout() self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.hboxlayout2 = QtGui.QHBoxLayout() self.hboxlayout2.setObjectName(_fromUtf8("hboxlayout2")) self.label_2 = QtGui.QLabel(TagEditor) self.label_2.setObjectName(_fromUtf8("label_2")) self.hboxlayout2.addWidget(self.label_2) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout2.addItem(spacerItem3) self.vboxlayout2.addLayout(self.hboxlayout2) self.applied_tags = QtGui.QListWidget(TagEditor) self.applied_tags.setAlternatingRowColors(True) self.applied_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.applied_tags.setObjectName(_fromUtf8("applied_tags")) self.vboxlayout2.addWidget(self.applied_tags) self.gridlayout.addLayout(self.vboxlayout2, 0, 2, 1, 1) self.vboxlayout3 = QtGui.QVBoxLayout() self.vboxlayout3.setObjectName(_fromUtf8("vboxlayout3")) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem4) self.unapply_button = QtGui.QToolButton(TagEditor) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.unapply_button.setIcon(icon3) self.unapply_button.setObjectName(_fromUtf8("unapply_button")) self.vboxlayout3.addWidget(self.unapply_button) spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem5) self.gridlayout.addLayout(self.vboxlayout3, 0, 3, 1, 1) self.hboxlayout3 = QtGui.QHBoxLayout() self.hboxlayout3.setObjectName(_fromUtf8("hboxlayout3")) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem6) self.label_3 = QtGui.QLabel(TagEditor) self.label_3.setObjectName(_fromUtf8("label_3")) self.hboxlayout3.addWidget(self.label_3) self.add_tag_input = EnLineEdit(TagEditor) self.add_tag_input.setObjectName(_fromUtf8("add_tag_input")) self.hboxlayout3.addWidget(self.add_tag_input) self.add_tag_button = QtGui.QToolButton(TagEditor) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_tag_button.setIcon(icon4) self.add_tag_button.setObjectName(_fromUtf8("add_tag_button")) self.hboxlayout3.addWidget(self.add_tag_button) spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem7) self.gridlayout.addLayout(self.hboxlayout3, 1, 0, 1, 4) self.buttonBox = QtGui.QDialogButtonBox(TagEditor) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 4) self.label.setBuddy(self.available_tags) self.label_2.setBuddy(self.applied_tags) self.label_3.setBuddy(self.add_tag_input) self.retranslateUi(TagEditor) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), TagEditor.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), TagEditor.reject) QtCore.QMetaObject.connectSlotsByName(TagEditor)
def setupUi(self, loop_wizard_dialog): loop_wizard_dialog.setObjectName(_fromUtf8("loop_wizard_dialog")) loop_wizard_dialog.resize(478, 471) self.verticalLayout = QtGui.QVBoxLayout(loop_wizard_dialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.widget = QtGui.QWidget(loop_wizard_dialog) self.widget.setObjectName(_fromUtf8("widget")) self.horizontalLayout = QtGui.QHBoxLayout(self.widget) self.horizontalLayout.setMargin(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_wizard = QtGui.QLabel(self.widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_wizard.sizePolicy().hasHeightForWidth()) self.label_wizard.setSizePolicy(sizePolicy) self.label_wizard.setText(_fromUtf8("")) self.label_wizard.setPixmap( QtGui.QPixmap(_fromUtf8(":/icons/wizard_large.png"))) self.label_wizard.setObjectName(_fromUtf8("label_wizard")) self.horizontalLayout.addWidget(self.label_wizard) self.label_2 = QtGui.QLabel(self.widget) self.label_2.setWordWrap(True) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout.addWidget(self.label_2) self.verticalLayout.addWidget(self.widget) self.widget_2 = QtGui.QWidget(loop_wizard_dialog) self.widget_2.setObjectName(_fromUtf8("widget_2")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget_2) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.checkBox = QtGui.QCheckBox(self.widget_2) self.checkBox.setObjectName(_fromUtf8("checkBox")) self.horizontalLayout_2.addWidget(self.checkBox) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.verticalLayout.addWidget(self.widget_2) self.table_example = good_looking_table(loop_wizard_dialog) self.table_example.setEditTriggers( QtGui.QAbstractItemView.NoEditTriggers) self.table_example.setGridStyle(QtCore.Qt.DotLine) self.table_example.setObjectName(_fromUtf8("table_example")) self.table_example.setColumnCount(10) self.table_example.setRowCount(12) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(3, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(4, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(5, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(6, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(7, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(8, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(9, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(10, item) item = QtGui.QTableWidgetItem() self.table_example.setVerticalHeaderItem(11, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(3, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(4, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(5, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(6, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(7, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(8, item) item = QtGui.QTableWidgetItem() self.table_example.setHorizontalHeaderItem(9, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(0, 0, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(0, 1, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(0, 2, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(1, 0, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(1, 1, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(1, 2, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(2, 0, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(2, 1, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(2, 2, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(3, 0, item) item = QtGui.QTableWidgetItem() self.table_example.setItem(4, 0, item) self.table_example.horizontalHeader().setVisible(False) self.table_example.verticalHeader().setVisible(False) self.verticalLayout.addWidget(self.table_example) self.table_wizard = good_looking_table(loop_wizard_dialog) self.table_wizard.setGridStyle(QtCore.Qt.DotLine) self.table_wizard.setObjectName(_fromUtf8("table_wizard")) self.table_wizard.setColumnCount(0) self.table_wizard.setRowCount(0) self.table_wizard.horizontalHeader().setVisible(False) self.table_wizard.verticalHeader().setVisible(False) self.verticalLayout.addWidget(self.table_wizard) self.buttonBox = QtGui.QDialogButtonBox(loop_wizard_dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(loop_wizard_dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), loop_wizard_dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), loop_wizard_dialog.reject) QtCore.QObject.connect(self.checkBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.table_example.setVisible) QtCore.QMetaObject.connectSlotsByName(loop_wizard_dialog)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(357, 473) self.verticalLayout = QtGui.QVBoxLayout(Dialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(Dialog) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.tSleepTime = QFNumberEdit(Dialog) self.tSleepTime.setObjectName(_fromUtf8("tSleepTime")) self.horizontalLayout.addWidget(self.tSleepTime) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_4 = QtGui.QLabel(Dialog) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_3.addWidget(self.label_4) self.cKeithGPIB = QtGui.QComboBox(Dialog) self.cKeithGPIB.setObjectName(_fromUtf8("cKeithGPIB")) self.horizontalLayout_3.addWidget(self.cKeithGPIB) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.label_6 = QtGui.QLabel(Dialog) self.label_6.setObjectName(_fromUtf8("label_6")) self.horizontalLayout_5.addWidget(self.label_6) self.tCompliance = QFNumberEdit(Dialog) self.tCompliance.setObjectName(_fromUtf8("tCompliance")) self.horizontalLayout_5.addWidget(self.tCompliance) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.label_7 = QtGui.QLabel(Dialog) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_6.addWidget(self.label_7) self.chMeasureReverse = QtGui.QCheckBox(Dialog) self.chMeasureReverse.setText(_fromUtf8("")) self.chMeasureReverse.setObjectName(_fromUtf8("chMeasureReverse")) self.horizontalLayout_6.addWidget(self.chMeasureReverse) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_5 = QtGui.QLabel(Dialog) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout_4.addWidget(self.label_5) self.cSRGPIB = QtGui.QComboBox(Dialog) self.cSRGPIB.setObjectName(_fromUtf8("cSRGPIB")) self.horizontalLayout_4.addWidget(self.cSRGPIB) spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem4) self.verticalLayout.addLayout(self.horizontalLayout_4) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_3 = QtGui.QLabel(Dialog) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_2.addWidget(self.label_3) self.chMeasurePhase = QtGui.QCheckBox(Dialog) self.chMeasurePhase.setText(_fromUtf8("")) self.chMeasurePhase.setObjectName(_fromUtf8("chMeasurePhase")) self.horizontalLayout_2.addWidget(self.chMeasurePhase) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.label_8 = QtGui.QLabel(Dialog) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_2.addWidget(self.label_8) self.tSeriesResistance = QFNumberEdit(Dialog) self.tSeriesResistance.setObjectName(_fromUtf8("tSeriesResistance")) self.horizontalLayout_2.addWidget(self.tSeriesResistance) self.verticalLayout.addLayout(self.horizontalLayout_2) self.label_2 = QtGui.QLabel(Dialog) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.tSaveComments = QtGui.QTextEdit(Dialog) self.tSaveComments.setObjectName(_fromUtf8("tSaveComments")) self.verticalLayout.addWidget(self.tSaveComments) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(450, 479) self.verticalLayout = QtGui.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.widget_2 = QtGui.QWidget(Dialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.widget_2.sizePolicy().hasHeightForWidth()) self.widget_2.setSizePolicy(sizePolicy) self.widget_2.setStyleSheet("background-color: #4e9a06;\n" "color: rgb(255, 255, 255);") self.widget_2.setObjectName("widget_2") self.horizontalLayout = QtGui.QHBoxLayout(self.widget_2) self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtGui.QLabel(self.widget_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setText("") self.label.setPixmap(QtGui.QPixmap(":/icons/gabor.png")) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.label_2 = QtGui.QLabel(self.widget_2) font = QtGui.QFont() font.setPointSize(11) font.setWeight(75) font.setBold(True) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.verticalLayout.addWidget(self.widget_2) self.widget = QtGui.QWidget(Dialog) font = QtGui.QFont() font.setPointSize(8) self.widget.setFont(font) self.widget.setObjectName("widget") self.formLayout = QtGui.QFormLayout(self.widget) self.formLayout.setVerticalSpacing(12) self.formLayout.setObjectName("formLayout") self.label_3 = QtGui.QLabel(self.widget) self.label_3.setObjectName("label_3") self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_3) self.spin_orient = QtGui.QDoubleSpinBox(self.widget) self.spin_orient.setMaximum(360.0) self.spin_orient.setObjectName("spin_orient") self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.spin_orient) self.label_4 = QtGui.QLabel(self.widget) self.label_4.setObjectName("label_4") self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_4) self.spin_size = QtGui.QSpinBox(self.widget) self.spin_size.setMinimum(1) self.spin_size.setMaximum(1000) self.spin_size.setProperty("value", 96) self.spin_size.setObjectName("spin_size") self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.spin_size) self.label_5 = QtGui.QLabel(self.widget) self.label_5.setObjectName("label_5") self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_5) self.combobox_env = QtGui.QComboBox(self.widget) self.combobox_env.setObjectName("combobox_env") self.combobox_env.addItem("") self.combobox_env.addItem("") self.combobox_env.addItem("") self.combobox_env.addItem("") self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.combobox_env) self.label_6 = QtGui.QLabel(self.widget) self.label_6.setObjectName("label_6") self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_6) self.spin_stdev = QtGui.QDoubleSpinBox(self.widget) self.spin_stdev.setMaximum(1000.0) self.spin_stdev.setProperty("value", 12.0) self.spin_stdev.setObjectName("spin_stdev") self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.spin_stdev) self.label_7 = QtGui.QLabel(self.widget) self.label_7.setObjectName("label_7") self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_7) self.spin_freq = QtGui.QDoubleSpinBox(self.widget) self.spin_freq.setSuffix("") self.spin_freq.setMaximum(1000.0) self.spin_freq.setProperty("value", 0.1) self.spin_freq.setObjectName("spin_freq") self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.spin_freq) self.label_8 = QtGui.QLabel(self.widget) self.label_8.setObjectName("label_8") self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_8) self.spin_phase = QtGui.QDoubleSpinBox(self.widget) self.spin_phase.setMaximum(1.0) self.spin_phase.setSingleStep(0.1) self.spin_phase.setObjectName("spin_phase") self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.spin_phase) self.label_10 = QtGui.QLabel(self.widget) self.label_10.setObjectName("label_10") self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_10) self.edit_color1 = QtGui.QLineEdit(self.widget) self.edit_color1.setObjectName("edit_color1") self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.edit_color1) self.label_9 = QtGui.QLabel(self.widget) self.label_9.setObjectName("label_9") self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.label_9) self.edit_color2 = QtGui.QLineEdit(self.widget) self.edit_color2.setObjectName("edit_color2") self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole, self.edit_color2) self.label_11 = QtGui.QLabel(self.widget) self.label_11.setObjectName("label_11") self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.label_11) self.combobox_bgmode = QtGui.QComboBox(self.widget) self.combobox_bgmode.setObjectName("combobox_bgmode") self.combobox_bgmode.addItem("") self.combobox_bgmode.addItem("") self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.combobox_bgmode) self.verticalLayout.addWidget(self.widget) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setCenterButtons(False) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, PrefsDialog): PrefsDialog.setObjectName(_fromUtf8("PrefsDialog")) PrefsDialog.resize(547, 354) self.gridLayout_4 = QtGui.QGridLayout(PrefsDialog) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.groupBox = QtGui.QGroupBox(PrefsDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.cbAutoDisplay = QtGui.QCheckBox(self.groupBox) self.cbAutoDisplay.setObjectName(_fromUtf8("cbAutoDisplay")) self.gridLayout_2.addWidget(self.cbAutoDisplay, 0, 0, 1, 1) self.cbCustomEditor = QtGui.QCheckBox(self.groupBox) self.cbCustomEditor.setObjectName(_fromUtf8("cbCustomEditor")) self.gridLayout_2.addWidget(self.cbCustomEditor, 1, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.leCustomEditorPath = QtGui.QLineEdit(self.groupBox) self.leCustomEditorPath.setMinimumSize(QtCore.QSize(400, 0)) self.leCustomEditorPath.setObjectName(_fromUtf8("leCustomEditorPath")) self.horizontalLayout.addWidget(self.leCustomEditorPath) self.tbSetEditorPath = QtGui.QToolButton(self.groupBox) self.tbSetEditorPath.setObjectName(_fromUtf8("tbSetEditorPath")) self.horizontalLayout.addWidget(self.tbSetEditorPath) self.gridLayout_2.addLayout(self.horizontalLayout, 2, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBoxOutput = QtGui.QGroupBox(PrefsDialog) self.groupBoxOutput.setObjectName(_fromUtf8("groupBoxOutput")) self.layoutWidget = QtGui.QWidget(self.groupBoxOutput) self.layoutWidget.setGeometry(QtCore.QRect(10, 120, 433, 58)) self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) self.gridLayout = QtGui.QGridLayout(self.layoutWidget) self.gridLayout.setMargin(0) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 0, 0, 1, 1) self.label = QtGui.QLabel(self.layoutWidget) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 1, 1, 1) self.leLogDirectory = QtGui.QLineEdit(self.layoutWidget) self.leLogDirectory.setMinimumSize(QtCore.QSize(250, 0)) self.leLogDirectory.setObjectName(_fromUtf8("leLogDirectory")) self.gridLayout.addWidget(self.leLogDirectory, 0, 2, 1, 1) self.tbSetLogDirectory = QtGui.QToolButton(self.layoutWidget) self.tbSetLogDirectory.setObjectName(_fromUtf8("tbSetLogDirectory")) self.gridLayout.addWidget(self.tbSetLogDirectory, 0, 3, 1, 1) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem2, 1, 0, 1, 1) self.cbOverwriteLogFile = QtGui.QCheckBox(self.layoutWidget) self.cbOverwriteLogFile.setObjectName(_fromUtf8("cbOverwriteLogFile")) self.gridLayout.addWidget(self.cbOverwriteLogFile, 1, 1, 1, 2) self.layoutWidget1 = QtGui.QWidget(self.groupBoxOutput) self.layoutWidget1.setGeometry(QtCore.QRect(8, 40, 352, 80)) self.layoutWidget1.setObjectName(_fromUtf8("layoutWidget1")) self.gridLayout_3 = QtGui.QGridLayout(self.layoutWidget1) self.gridLayout_3.setMargin(0) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.cbShowConsole = QtGui.QCheckBox(self.layoutWidget1) self.cbShowConsole.setObjectName(_fromUtf8("cbShowConsole")) self.gridLayout_3.addWidget(self.cbShowConsole, 0, 0, 1, 1) self.cbClearConsole = QtGui.QCheckBox(self.layoutWidget1) self.cbClearConsole.setMinimumSize(QtCore.QSize(350, 0)) self.cbClearConsole.setObjectName(_fromUtf8("cbClearConsole")) self.gridLayout_3.addWidget(self.cbClearConsole, 1, 0, 1, 1) self.cbLogToDisk = QtGui.QCheckBox(self.layoutWidget1) self.cbLogToDisk.setObjectName(_fromUtf8("cbLogToDisk")) self.gridLayout_3.addWidget(self.cbLogToDisk, 2, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBoxOutput, 1, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(PrefsDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout_4.addWidget(self.buttonBox, 2, 0, 1, 1) self.retranslateUi(PrefsDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), PrefsDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), PrefsDialog.reject) QtCore.QMetaObject.connectSlotsByName(PrefsDialog) PrefsDialog.setTabOrder(self.cbClearConsole, self.cbLogToDisk) PrefsDialog.setTabOrder(self.cbLogToDisk, self.leLogDirectory) PrefsDialog.setTabOrder(self.leLogDirectory, self.tbSetLogDirectory) PrefsDialog.setTabOrder(self.tbSetLogDirectory, self.buttonBox)
def setupUi(self, frmLogin): frmLogin.setObjectName(_fromUtf8("frmLogin")) frmLogin.resize(356, 168) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/images/pass_64.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off) frmLogin.setWindowIcon(icon) frmLogin.setSizeGripEnabled(True) frmLogin.setModal(True) self.verticalLayout = QtGui.QVBoxLayout(frmLogin) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.widget = QtGui.QWidget(frmLogin) self.widget.setObjectName(_fromUtf8("widget")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label = QtGui.QLabel(self.widget) self.label.setMaximumSize(QtCore.QSize(65, 16777215)) self.label.setText(_fromUtf8("")) self.label.setPixmap(QtGui.QPixmap(_fromUtf8(":/images/pass_64.ico"))) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout_2.addWidget(self.label) self.widget1 = QtGui.QWidget(self.widget) self.widget1.setObjectName(_fromUtf8("widget1")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.widget1) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.label_2 = QtGui.QLabel(self.widget1) self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout_2.addWidget(self.label_2) self.txtLogin = QtGui.QLineEdit(self.widget1) self.txtLogin.setObjectName(_fromUtf8("txtLogin")) self.verticalLayout_2.addWidget(self.txtLogin) self.label_3 = QtGui.QLabel(self.widget1) self.label_3.setObjectName(_fromUtf8("label_3")) self.verticalLayout_2.addWidget(self.label_3) self.txtPass = QtGui.QLineEdit(self.widget1) self.txtPass.setEchoMode(QtGui.QLineEdit.Password) self.txtPass.setObjectName(_fromUtf8("txtPass")) self.verticalLayout_2.addWidget(self.txtPass) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem1) self.horizontalLayout_2.addWidget(self.widget1) self.verticalLayout.addWidget(self.widget) self.widget2 = QtGui.QWidget(frmLogin) self.widget2.setMaximumSize(QtCore.QSize(16777215, 35)) self.widget2.setObjectName(_fromUtf8("widget2")) self.horizontalLayout = QtGui.QHBoxLayout(self.widget2) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.chkSavePass = QtGui.QCheckBox(self.widget2) self.chkSavePass.setChecked(True) self.chkSavePass.setObjectName(_fromUtf8("chkSavePass")) self.horizontalLayout.addWidget(self.chkSavePass) self.buttonBox = QtGui.QDialogButtonBox(self.widget2) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.horizontalLayout.addWidget(self.buttonBox) self.verticalLayout.addWidget(self.widget2) self.retranslateUi(frmLogin) QtCore.QMetaObject.connectSlotsByName(frmLogin)
def setupUi(self, Dialog, image_list, images_annotation, start_position, strFolderName, parent=None): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(630, 534) #Init values for self.images = image_list self.i = start_position self.annotations = images_annotation self.strFolderName = strFolderName self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setGeometry(QtCore.QRect(270, 480, 341, 32)) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.labe_image = QtGui.QLabel(Dialog) self.labe_image.setGeometry(QtCore.QRect(90, 120, 341, 151)) self.labe_image.setObjectName(_fromUtf8("labe_image")) self.label_2 = QtGui.QLabel(Dialog) self.label_2.setGeometry(QtCore.QRect(90, 100, 351, 41)) font = QtGui.QFont() font.setPointSize(20) font.setBold(True) font.setItalic(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.AnnotationText = QtGui.QLineEdit(Dialog) self.AnnotationText.setGeometry(QtCore.QRect(90, 340, 411, 27)) self.AnnotationText.setObjectName(_fromUtf8("AnnotationText")) self.AnnotationText.editingFinished.connect(self.saveFileAnnotation) self.label_3 = QtGui.QLabel(Dialog) self.label_3.setGeometry(QtCore.QRect(530, 344, 68, 20)) self.label_3.setObjectName(_fromUtf8("label_3")) self.label_4 = QtGui.QLabel(Dialog) self.label_4.setGeometry(QtCore.QRect(90, 300, 81, 17)) self.label_4.setObjectName(_fromUtf8("label_4")) self.label_image = QtGui.QLabel(Dialog) self.label_image.setGeometry(QtCore.QRect(190, 300, 68, 17)) self.label_image.setObjectName(_fromUtf8("label_image")) self.Next = QtGui.QPushButton(Dialog) self.Next.setGeometry(QtCore.QRect(90, 390, 99, 27)) self.Next.setObjectName(_fromUtf8("Next")) self.Next.clicked.connect(self.nextImage) self.Previous = QtGui.QPushButton(Dialog) self.Previous.setGeometry(QtCore.QRect(210, 390, 99, 27)) self.Previous.setObjectName(_fromUtf8("Previous")) self.Previous.clicked.connect(self.previousImage) self.Delete = QtGui.QPushButton(Dialog) self.Delete.setGeometry(QtCore.QRect(330, 390, 99, 27)) self.Delete.setObjectName(_fromUtf8("Delete")) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), self.savePosition) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) self.labe_image.setPixmap( QtGui.QPixmap(self.strFolderName + str(self.i + 1) + ".bin.png")) self.AnnotationText.setFocus() self.label_image.setText(str(self.i + 1))
def setupUi(self, ReportF007): ReportF007.setObjectName(_fromUtf8("ReportF007")) ReportF007.resize(690, 191) self.gridLayout = QtGui.QGridLayout(ReportF007) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblEndDate = QtGui.QLabel(ReportF007) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 1, 0, 1, 1) self.edtEndDate = CDateEdit(ReportF007) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.edtEndDate.sizePolicy().hasHeightForWidth()) self.edtEndDate.setSizePolicy(sizePolicy) self.edtEndDate.setCalendarPopup(True) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 1, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 4, 1, 1) self.edtBegTime = QtGui.QTimeEdit(ReportF007) self.edtBegTime.setObjectName(_fromUtf8("edtBegTime")) self.gridLayout.addWidget(self.edtBegTime, 0, 3, 1, 1) self.label = QtGui.QLabel(ReportF007) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 2, 1, 1) self.edtBegDate = CDateEdit(ReportF007) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.edtBegDate.sizePolicy().hasHeightForWidth()) self.edtBegDate.setSizePolicy(sizePolicy) self.edtBegDate.setCalendarPopup(True) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 1, 1, 1) self.lblBegDate = QtGui.QLabel(ReportF007) self.lblBegDate.setObjectName(_fromUtf8("lblBegDate")) self.gridLayout.addWidget(self.lblBegDate, 0, 0, 1, 1) self.lblOrgStructure = QtGui.QLabel(ReportF007) self.lblOrgStructure.setObjectName(_fromUtf8("lblOrgStructure")) self.gridLayout.addWidget(self.lblOrgStructure, 2, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(ReportF007) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 7, 3, 1, 2) self.cmbOrgStructure = COrgStructureComboBox(ReportF007) self.cmbOrgStructure.setObjectName(_fromUtf8("cmbOrgStructure")) self.gridLayout.addWidget(self.cmbOrgStructure, 2, 1, 1, 4) self.lblReportType = QtGui.QLabel(ReportF007) self.lblReportType.setObjectName(_fromUtf8("lblReportType")) self.gridLayout.addWidget(self.lblReportType, 4, 0, 1, 1) self.cmbReportType = QtGui.QComboBox(ReportF007) self.cmbReportType.setObjectName(_fromUtf8("cmbReportType")) self.cmbReportType.addItem(_fromUtf8("")) self.cmbReportType.addItem(_fromUtf8("")) self.cmbReportType.addItem(_fromUtf8("")) self.cmbReportType.addItem(_fromUtf8("")) self.gridLayout.addWidget(self.cmbReportType, 4, 1, 1, 4) self.chkOAR = QtGui.QCheckBox(ReportF007) self.chkOAR.setObjectName(_fromUtf8("chkOAR")) self.gridLayout.addWidget(self.chkOAR, 5, 0, 1, 3) self.chkUngroupFinance = QtGui.QCheckBox(ReportF007) self.chkUngroupFinance.setEnabled(False) self.chkUngroupFinance.setObjectName(_fromUtf8("chkUngroupFinance")) self.gridLayout.addWidget(self.chkUngroupFinance, 6, 0, 1, 4) self.lblEndDate.setBuddy(self.edtEndDate) self.lblBegDate.setBuddy(self.edtBegDate) self.retranslateUi(ReportF007) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportF007.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportF007.reject) QtCore.QMetaObject.connectSlotsByName(ReportF007)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(816, 456) self.gridLayout_3 = QtGui.QGridLayout(Dialog) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_params = QtGui.QLabel(Dialog) self.label_params.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.label_params.setObjectName(_fromUtf8("label_params")) self.verticalLayout.addWidget(self.label_params) self.pushButton_params = QtGui.QPushButton(Dialog) self.pushButton_params.setObjectName(_fromUtf8("pushButton_params")) self.verticalLayout.addWidget(self.pushButton_params) self.pushButton_choose_ref_plane = QtGui.QPushButton(Dialog) self.pushButton_choose_ref_plane.setObjectName(_fromUtf8("pushButton_choose_ref_plane")) self.verticalLayout.addWidget(self.pushButton_choose_ref_plane) self.line_2 = QtGui.QFrame(Dialog) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.verticalLayout.addWidget(self.line_2) self.pushButton_detect_corr = QtGui.QPushButton(Dialog) self.pushButton_detect_corr.setObjectName(_fromUtf8("pushButton_detect_corr")) self.verticalLayout.addWidget(self.pushButton_detect_corr) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_4 = QtGui.QLabel(Dialog) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1) self.label_corr_number = QtGui.QLabel(Dialog) self.label_corr_number.setText(_fromUtf8("")) self.label_corr_number.setObjectName(_fromUtf8("label_corr_number")) self.gridLayout_2.addWidget(self.label_corr_number, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout_2) self.label = QtGui.QLabel(Dialog) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout.addWidget(self.label) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_2 = QtGui.QLabel(Dialog) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.label_Lm = QtGui.QLabel(Dialog) self.label_Lm.setMinimumSize(QtCore.QSize(80, 0)) self.label_Lm.setText(_fromUtf8("")) self.label_Lm.setObjectName(_fromUtf8("label_Lm")) self.gridLayout.addWidget(self.label_Lm, 0, 1, 1, 1) self.label_3 = QtGui.QLabel(Dialog) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1) self.label_d = QtGui.QLabel(Dialog) self.label_d.setMinimumSize(QtCore.QSize(80, 0)) self.label_d.setText(_fromUtf8("")) self.label_d.setObjectName(_fromUtf8("label_d")) self.gridLayout.addWidget(self.label_d, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.line = QtGui.QFrame(Dialog) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout.addWidget(self.line) self.pushButton_maop = QtGui.QPushButton(Dialog) self.pushButton_maop.setObjectName(_fromUtf8("pushButton_maop")) self.verticalLayout.addWidget(self.pushButton_maop) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout_3.addWidget(self.buttonBox, 1, 1, 1, 1) self.graphicsView = CorrosionViewer(Dialog) self.graphicsView.setObjectName(_fromUtf8("graphicsView")) self.gridLayout_3.addWidget(self.graphicsView, 0, 1, 1, 1) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, RelatedTableTranslatorDialog): RelatedTableTranslatorDialog.setObjectName( _fromUtf8("RelatedTableTranslatorDialog")) RelatedTableTranslatorDialog.resize(384, 458) self.gridLayout_3 = QtGui.QGridLayout(RelatedTableTranslatorDialog) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.buttonBox = QtGui.QDialogButtonBox(RelatedTableTranslatorDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout_3.addWidget(self.buttonBox, 3, 0, 1, 1) self.groupBox = QtGui.QGroupBox(RelatedTableTranslatorDialog) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout = QtGui.QGridLayout(self.groupBox) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.txt_table_name = QtGui.QLineEdit(self.groupBox) self.txt_table_name.setMinimumSize(QtCore.QSize(0, 30)) self.txt_table_name.setStyleSheet( _fromUtf8("background-color: rgb(232, 232, 232);")) self.txt_table_name.setReadOnly(True) self.txt_table_name.setObjectName(_fromUtf8("txt_table_name")) self.gridLayout.addWidget(self.txt_table_name, 0, 1, 1, 1) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.txt_column_name = QtGui.QLineEdit(self.groupBox) self.txt_column_name.setMinimumSize(QtCore.QSize(0, 30)) self.txt_column_name.setStyleSheet( _fromUtf8("background-color: rgb(232, 232, 232);")) self.txt_column_name.setReadOnly(True) self.txt_column_name.setObjectName(_fromUtf8("txt_column_name")) self.gridLayout.addWidget(self.txt_column_name, 1, 1, 1, 1) self.gridLayout_3.addWidget(self.groupBox, 1, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(RelatedTableTranslatorDialog) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setMaximumSize(QtCore.QSize(80, 16777215)) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1) self.cbo_source_tables = QtGui.QComboBox(self.groupBox_2) self.cbo_source_tables.setMinimumSize(QtCore.QSize(0, 30)) self.cbo_source_tables.setObjectName(_fromUtf8("cbo_source_tables")) self.gridLayout_2.addWidget(self.cbo_source_tables, 0, 1, 1, 1) self.tb_source_trans_cols = ListPairTableView(self.groupBox_2) self.tb_source_trans_cols.setProperty("showDropIndicator", False) self.tb_source_trans_cols.setSelectionMode( QtGui.QAbstractItemView.SingleSelection) self.tb_source_trans_cols.setSelectionBehavior( QtGui.QAbstractItemView.SelectRows) self.tb_source_trans_cols.setObjectName( _fromUtf8("tb_source_trans_cols")) self.gridLayout_2.addWidget(self.tb_source_trans_cols, 2, 0, 1, 2) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1) self.cbo_output_column = QtGui.QComboBox(self.groupBox_2) self.cbo_output_column.setMinimumSize(QtCore.QSize(0, 30)) self.cbo_output_column.setObjectName(_fromUtf8("cbo_output_column")) self.gridLayout_2.addWidget(self.cbo_output_column, 1, 1, 1, 1) self.gridLayout_3.addWidget(self.groupBox_2, 2, 0, 1, 1) self.vl_notification = QtGui.QVBoxLayout() self.vl_notification.setObjectName(_fromUtf8("vl_notification")) self.gridLayout_3.addLayout(self.vl_notification, 0, 0, 1, 1) self.retranslateUi(RelatedTableTranslatorDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), RelatedTableTranslatorDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), RelatedTableTranslatorDialog.reject) QtCore.QMetaObject.connectSlotsByName(RelatedTableTranslatorDialog)
def setupUi(self, ViewshedAnalysis): ViewshedAnalysis.setObjectName(_fromUtf8("ViewshedAnalysis")) ViewshedAnalysis.resize(448, 622) self.tabWidget = QtGui.QTabWidget(ViewshedAnalysis) self.tabWidget.setGeometry(QtCore.QRect(10, 10, 427, 581)) self.tabWidget.setAutoFillBackground(False) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.General_tab = QtGui.QWidget() self.General_tab.setObjectName(_fromUtf8("General_tab")) self.cmbPoints = QtGui.QComboBox(self.General_tab) self.cmbPoints.setGeometry(QtCore.QRect(10, 90, 201, 22)) self.cmbPoints.setEditable(False) self.cmbPoints.setObjectName(_fromUtf8("cmbPoints")) self.label = QtGui.QLabel(self.General_tab) self.label.setGeometry(QtCore.QRect(10, 20, 111, 16)) self.label.setObjectName(_fromUtf8("label")) self.label_2 = QtGui.QLabel(self.General_tab) self.label_2.setGeometry(QtCore.QRect(10, 70, 131, 16)) self.label_2.setObjectName(_fromUtf8("label_2")) self.cmbRaster = QtGui.QComboBox(self.General_tab) self.cmbRaster.setGeometry(QtCore.QRect(10, 40, 201, 22)) self.cmbRaster.setObjectName(_fromUtf8("cmbRaster")) self.txtOutput = QtGui.QPlainTextEdit(self.General_tab) self.txtOutput.setGeometry(QtCore.QRect(220, 40, 181, 41)) self.txtOutput.setObjectName(_fromUtf8("txtOutput")) self.label_5 = QtGui.QLabel(self.General_tab) self.label_5.setGeometry(QtCore.QRect(220, 20, 91, 16)) self.label_5.setObjectName(_fromUtf8("label_5")) self.cmdBrowse = QtGui.QPushButton(self.General_tab) self.cmdBrowse.setGeometry(QtCore.QRect(320, 90, 75, 31)) self.cmdBrowse.setObjectName(_fromUtf8("cmdBrowse")) self.Output_groupBox = QtGui.QGroupBox(self.General_tab) self.Output_groupBox.setGeometry(QtCore.QRect(10, 340, 391, 91)) self.Output_groupBox.setObjectName(_fromUtf8("Output_groupBox")) self.chkBinary = QtGui.QRadioButton(self.Output_groupBox) self.chkBinary.setGeometry(QtCore.QRect(10, 30, 141, 22)) self.chkBinary.setObjectName(_fromUtf8("chkBinary")) self.chkInvisibility = QtGui.QRadioButton(self.Output_groupBox) self.chkInvisibility.setGeometry(QtCore.QRect(190, 30, 141, 22)) self.chkInvisibility.setObjectName(_fromUtf8("chkInvisibility")) self.chkIntervisibility = QtGui.QRadioButton(self.Output_groupBox) self.chkIntervisibility.setGeometry(QtCore.QRect(10, 60, 161, 17)) self.chkIntervisibility.setObjectName(_fromUtf8("chkIntervisibility")) self.chkHorizon = QtGui.QRadioButton(self.Output_groupBox) self.chkHorizon.setGeometry(QtCore.QRect(190, 60, 81, 16)) self.chkHorizon.setObjectName(_fromUtf8("chkHorizon")) self.chkHorizon_full = QtGui.QRadioButton(self.Output_groupBox) self.chkHorizon_full.setGeometry(QtCore.QRect(280, 60, 111, 17)) self.chkHorizon_full.setObjectName(_fromUtf8("chkHorizon_full")) self.groupBox_3 = QtGui.QGroupBox(self.General_tab) self.groupBox_3.setGeometry(QtCore.QRect(10, 170, 391, 167)) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.label_16 = QtGui.QLabel(self.groupBox_3) self.label_16.setGeometry(QtCore.QRect(260, 140, 121, 20)) self.label_16.setObjectName(_fromUtf8("label_16")) self.txtAdaptRadiusObs = QtGui.QLineEdit(self.groupBox_3) self.txtAdaptRadiusObs.setGeometry(QtCore.QRect(40, 140, 31, 20)) self.txtAdaptRadiusObs.setObjectName(_fromUtf8("txtAdaptRadiusObs")) self.label_15 = QtGui.QLabel(self.groupBox_3) self.label_15.setGeometry(QtCore.QRect(80, 140, 131, 20)) self.label_15.setObjectName(_fromUtf8("label_15")) self.txtAdaptRadiusTarget = QtGui.QLineEdit(self.groupBox_3) self.txtAdaptRadiusTarget.setGeometry(QtCore.QRect(220, 140, 31, 20)) self.txtAdaptRadiusTarget.setObjectName( _fromUtf8("txtAdaptRadiusTarget")) self.cmbTargetField = QtGui.QComboBox(self.groupBox_3) self.cmbTargetField.setEnabled(True) self.cmbTargetField.setGeometry(QtCore.QRect(260, 90, 121, 22)) self.cmbTargetField.setEditable(False) self.cmbTargetField.setObjectName(_fromUtf8("cmbTargetField")) self.label_10 = QtGui.QLabel(self.groupBox_3) self.label_10.setGeometry(QtCore.QRect(190, 60, 61, 20)) self.label_10.setObjectName(_fromUtf8("label_10")) self.txtObserver = QtGui.QLineEdit(self.groupBox_3) self.txtObserver.setGeometry(QtCore.QRect(130, 60, 51, 20)) self.txtObserver.setObjectName(_fromUtf8("txtObserver")) self.cmbObsField = QtGui.QComboBox(self.groupBox_3) self.cmbObsField.setGeometry(QtCore.QRect(260, 60, 121, 22)) self.cmbObsField.setEditable(False) self.cmbObsField.setObjectName(_fromUtf8("cmbObsField")) self.label_11 = QtGui.QLabel(self.groupBox_3) self.label_11.setGeometry(QtCore.QRect(190, 90, 61, 20)) self.label_11.setObjectName(_fromUtf8("label_11")) self.label_4 = QtGui.QLabel(self.groupBox_3) self.label_4.setGeometry(QtCore.QRect(10, 90, 101, 16)) self.label_4.setObjectName(_fromUtf8("label_4")) self.label_3 = QtGui.QLabel(self.groupBox_3) self.label_3.setGeometry(QtCore.QRect(10, 60, 121, 16)) self.label_3.setObjectName(_fromUtf8("label_3")) self.txtTarget = QtGui.QLineEdit(self.groupBox_3) self.txtTarget.setGeometry(QtCore.QRect(130, 90, 51, 20)) self.txtTarget.setObjectName(_fromUtf8("txtTarget")) self.label_6 = QtGui.QLabel(self.groupBox_3) self.label_6.setGeometry(QtCore.QRect(10, 120, 271, 16)) self.label_6.setObjectName(_fromUtf8("label_6")) self.txtRadius = QtGui.QLineEdit(self.groupBox_3) self.txtRadius.setGeometry(QtCore.QRect(130, 30, 51, 21)) self.txtRadius.setObjectName(_fromUtf8("txtRadius")) self.label_8 = QtGui.QLabel(self.groupBox_3) self.label_8.setGeometry(QtCore.QRect(10, 30, 91, 16)) self.label_8.setObjectName(_fromUtf8("label_8")) self.groupBox = QtGui.QGroupBox(self.General_tab) self.groupBox.setGeometry(QtCore.QRect(10, 440, 401, 111)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.chkCurvature = QtGui.QCheckBox(self.groupBox) self.chkCurvature.setGeometry(QtCore.QRect(10, 50, 161, 22)) self.chkCurvature.setObjectName(_fromUtf8("chkCurvature")) self.txtRefraction = QtGui.QLineEdit(self.groupBox) self.txtRefraction.setEnabled(False) self.txtRefraction.setGeometry(QtCore.QRect(180, 50, 51, 21)) self.txtRefraction.setObjectName(_fromUtf8("txtRefraction")) self.label_17 = QtGui.QLabel(self.groupBox) self.label_17.setGeometry(QtCore.QRect(240, 50, 161, 20)) self.label_17.setObjectName(_fromUtf8("label_17")) self.chkCumulative = QtGui.QCheckBox(self.groupBox) self.chkCumulative.setEnabled(True) self.chkCumulative.setGeometry(QtCore.QRect(10, 20, 261, 21)) self.chkCumulative.setObjectName(_fromUtf8("chkCumulative")) self.label_12 = QtGui.QLabel(self.groupBox) self.label_12.setGeometry(QtCore.QRect(10, 80, 111, 16)) self.label_12.setObjectName(_fromUtf8("label_12")) self.cmbAlgorithm = QtGui.QComboBox(self.groupBox) self.cmbAlgorithm.setGeometry(QtCore.QRect(180, 80, 121, 22)) self.cmbAlgorithm.setEditable(False) self.cmbAlgorithm.setObjectName(_fromUtf8("cmbAlgorithm")) self.cmbAlgorithm.addItem(_fromUtf8("")) self.cmbAlgorithm.addItem(_fromUtf8("")) self.cmbAlgorithm.addItem(_fromUtf8("")) self.cmbPointsTarget = QtGui.QComboBox(self.General_tab) self.cmbPointsTarget.setEnabled(True) self.cmbPointsTarget.setGeometry(QtCore.QRect(10, 140, 201, 22)) self.cmbPointsTarget.setEditable(False) self.cmbPointsTarget.setObjectName(_fromUtf8("cmbPointsTarget")) self.label_7 = QtGui.QLabel(self.General_tab) self.label_7.setGeometry(QtCore.QRect(10, 120, 191, 20)) self.label_7.setObjectName(_fromUtf8("label_7")) self.tabWidget.addTab(self.General_tab, _fromUtf8("")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.textBrowser_2 = QtGui.QTextBrowser(self.tab) self.textBrowser_2.setGeometry(QtCore.QRect(0, 0, 421, 551)) self.textBrowser_2.setOpenExternalLinks(True) self.textBrowser_2.setObjectName(_fromUtf8("textBrowser_2")) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.About_tab = QtGui.QWidget() self.About_tab.setObjectName(_fromUtf8("About_tab")) self.textBrowser = QtGui.QTextBrowser(self.About_tab) self.textBrowser.setGeometry(QtCore.QRect(0, 0, 421, 551)) self.textBrowser.setFocusPolicy(QtCore.Qt.WheelFocus) self.textBrowser.setFrameShape(QtGui.QFrame.Box) self.textBrowser.setFrameShadow(QtGui.QFrame.Sunken) self.textBrowser.setOpenExternalLinks(True) self.textBrowser.setObjectName(_fromUtf8("textBrowser")) self.tabWidget.addTab(self.About_tab, _fromUtf8("")) self.buttonBox = QtGui.QDialogButtonBox(ViewshedAnalysis) self.buttonBox.setGeometry(QtCore.QRect(270, 590, 161, 32)) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.retranslateUi(ViewshedAnalysis) self.tabWidget.setCurrentIndex(0) self.cmbAlgorithm.setCurrentIndex(1) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ViewshedAnalysis.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ViewshedAnalysis.reject) QtCore.QObject.connect(self.chkCurvature, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.txtRefraction.setEnabled) QtCore.QMetaObject.connectSlotsByName(ViewshedAnalysis)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(400, 343) self.gridLayout = QtGui.QGridLayout(Dialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.groupBox = QtGui.QGroupBox(Dialog) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1) self.magnitudeEdit = QtGui.QLineEdit(self.groupBox) self.magnitudeEdit.setText(_fromUtf8("MAG")) self.magnitudeEdit.setObjectName(_fromUtf8("magnitudeEdit")) self.gridLayout_2.addWidget(self.magnitudeEdit, 2, 1, 1, 1) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 3, 0, 1, 1) self.depthEdit = QtGui.QLineEdit(self.groupBox) self.depthEdit.setText(_fromUtf8("DEPTH")) self.depthEdit.setObjectName(_fromUtf8("depthEdit")) self.gridLayout_2.addWidget(self.depthEdit, 3, 1, 1, 1) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 4, 0, 1, 1) self.dateEdit = QtGui.QLineEdit(self.groupBox) self.dateEdit.setText(_fromUtf8("DATE")) self.dateEdit.setObjectName(_fromUtf8("dateEdit")) self.gridLayout_2.addWidget(self.dateEdit, 4, 1, 1, 1) self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 2) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2) self.groupBox_2 = QtGui.QGroupBox(Dialog) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1) self.delimiterCombo = QtGui.QComboBox(self.groupBox_2) self.delimiterCombo.setEditable(True) self.delimiterCombo.setObjectName(_fromUtf8("delimiterCombo")) self.delimiterCombo.addItem(_fromUtf8("")) self.delimiterCombo.setItemText(0, _fromUtf8(",")) self.delimiterCombo.addItem(_fromUtf8("")) self.gridLayout_3.addWidget(self.delimiterCombo, 0, 1, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_3.addWidget(self.label_6, 1, 0, 1, 1) self.longEdit = QtGui.QLineEdit(self.groupBox_2) self.longEdit.setText(_fromUtf8("LONG")) self.longEdit.setObjectName(_fromUtf8("longEdit")) self.gridLayout_3.addWidget(self.longEdit, 1, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_2) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_3.addWidget(self.label_5, 2, 0, 1, 1) self.latEdit = QtGui.QLineEdit(self.groupBox_2) self.latEdit.setText(_fromUtf8("LAT")) self.latEdit.setObjectName(_fromUtf8("latEdit")) self.gridLayout_3.addWidget(self.latEdit, 2, 1, 1, 1) self.csvToSlCheck = QtGui.QCheckBox(self.groupBox_2) self.csvToSlCheck.setChecked(True) self.csvToSlCheck.setObjectName(_fromUtf8("csvToSlCheck")) self.gridLayout_3.addWidget(self.csvToSlCheck, 3, 0, 1, 2) self.gridLayout.addWidget(self.groupBox_2, 0, 0, 1, 2) self.retranslateUi(Dialog) self.delimiterCombo.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.magnitudeEdit, self.depthEdit) Dialog.setTabOrder(self.depthEdit, self.dateEdit) Dialog.setTabOrder(self.dateEdit, self.buttonBox)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(782, 734) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8("../bin_31/bin/isro.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.groupBox = QtGui.QGroupBox(Dialog) self.groupBox.setGeometry(QtCore.QRect(10, 30, 351, 311)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.pushButton = QtGui.QPushButton(self.groupBox) self.pushButton.setGeometry(QtCore.QRect(30, 270, 291, 23)) self.pushButton.setStyleSheet( _fromUtf8("border-color: rgb(0, 85, 0);")) self.pushButton.setObjectName(_fromUtf8("pushButton")) self.pushButton_5 = QtGui.QPushButton(self.groupBox) self.pushButton_5.setGeometry(QtCore.QRect(220, 110, 75, 23)) self.pushButton_5.setObjectName(_fromUtf8("pushButton_5")) self.label = QtGui.QLabel(self.groupBox) self.label.setGeometry(QtCore.QRect(20, 50, 81, 16)) self.label.setObjectName(_fromUtf8("label")) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setGeometry(QtCore.QRect(20, 110, 171, 21)) self.label_2.setObjectName(_fromUtf8("label_2")) self.comboBox = QtGui.QComboBox(self.groupBox) self.comboBox.setGeometry(QtCore.QRect(110, 40, 211, 31)) self.comboBox.setObjectName(_fromUtf8("comboBox")) self.plainTextEdit_3 = QtGui.QPlainTextEdit(self.groupBox) self.plainTextEdit_3.setGeometry(QtCore.QRect(20, 170, 311, 31)) self.plainTextEdit_3.setObjectName(_fromUtf8("plainTextEdit_3")) self.groupBox_2 = QtGui.QGroupBox(Dialog) self.groupBox_2.setGeometry(QtCore.QRect(390, 30, 361, 311)) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.pushButton_2 = QtGui.QPushButton(self.groupBox_2) self.pushButton_2.setGeometry(QtCore.QRect(30, 270, 291, 23)) self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setGeometry(QtCore.QRect(20, 50, 91, 16)) self.label_3.setObjectName(_fromUtf8("label_3")) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setGeometry(QtCore.QRect(20, 100, 91, 20)) self.label_4.setObjectName(_fromUtf8("label_4")) self.plainTextEdit_2 = QtGui.QPlainTextEdit(self.groupBox_2) self.plainTextEdit_2.setGeometry(QtCore.QRect(120, 50, 181, 31)) self.plainTextEdit_2.setObjectName(_fromUtf8("plainTextEdit_2")) self.plainTextEdit_4 = QtGui.QPlainTextEdit(self.groupBox_2) self.plainTextEdit_4.setGeometry(QtCore.QRect(120, 100, 181, 31)) self.plainTextEdit_4.setObjectName(_fromUtf8("plainTextEdit_4")) self.groupBox_3 = QtGui.QGroupBox(Dialog) self.groupBox_3.setGeometry(QtCore.QRect(10, 360, 741, 361)) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.pushButton_3 = QtGui.QPushButton(self.groupBox_3) self.pushButton_3.setGeometry(QtCore.QRect(410, 110, 291, 23)) self.pushButton_3.setObjectName(_fromUtf8("pushButton_3")) self.pushButton_4 = QtGui.QPushButton(self.groupBox_3) self.pushButton_4.setGeometry(QtCore.QRect(410, 170, 291, 23)) self.pushButton_4.setObjectName(_fromUtf8("pushButton_4")) self.plainTextEdit = QtGui.QPlainTextEdit(self.groupBox_3) self.plainTextEdit.setEnabled(False) self.plainTextEdit.setGeometry(QtCore.QRect(40, 30, 321, 251)) self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit")) self.buttonBox = QtGui.QDialogButtonBox(self.groupBox_3) self.buttonBox.setEnabled(True) self.buttonBox.setGeometry(QtCore.QRect(570, 320, 161, 31)) self.buttonBox.setAutoFillBackground(False) self.buttonBox.setStyleSheet(_fromUtf8("")) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def show_dialog_window(self): self.setWindowTitle("Choose format for ordered list") stylesheet = """ QGroupBox { border: 1px inset lightgrey; border-radius: 5px; margin-top: 10px; font-weight: bold; } QGroupBox::title { subcontrol-origin: margin; subcontrol-position: top; padding:0 3px 0 3px; } """ groupbox = QtGui.QGroupBox("Type", self) groupbox.setStyleSheet(stylesheet) # stylesheet for the radio buttons self.setStyleSheet("QRadioButton { font-weight: bold; }") radio_button1 = QtGui.QRadioButton("1.", self) radio_button1.setChecked(True) radio_button2 = QtGui.QRadioButton("A.", self) radio_button3 = QtGui.QRadioButton("a.", self) radio_button4 = QtGui.QRadioButton("I.", self) radio_button5 = QtGui.QRadioButton("i.", self) radio_button_group = QtGui.QButtonGroup(self) radio_button_group.addButton(radio_button1) radio_button_group.setId(radio_button1, 1) radio_button_group.addButton(radio_button2) radio_button_group.setId(radio_button2, 2) radio_button_group.addButton(radio_button3) radio_button_group.setId(radio_button3, 3) radio_button_group.addButton(radio_button4) radio_button_group.setId(radio_button4, 4) radio_button_group.addButton(radio_button5) radio_button_group.setId(radio_button5, 5) radio_vbox = QtGui.QVBoxLayout(self) radio_vbox.addWidget(radio_button1) radio_vbox.addWidget(radio_button2) radio_vbox.addWidget(radio_button3) radio_vbox.addWidget(radio_button4) radio_vbox.addWidget(radio_button5) groupbox.setLayout(radio_vbox) start_label = QtGui.QLabel("<b>Start:</b>", self) spinbox = QtGui.QSpinBox(self) spinbox.setMinimum(1) spinbox.setMaximum(100) # get value with .value() spinbox_vbox = QtGui.QVBoxLayout() spinbox_vbox.addWidget(start_label) spinbox_vbox.addWidget(spinbox) spinbox_vbox.addStretch(1) button_box = QtGui.QDialogButtonBox( QtGui.QDialogButtonBox.Ok | QtGui.QDialogButtonBox.Cancel, QtCore.Qt.Horizontal, self) button_box.accepted.connect(self.accept) button_box.rejected.connect(self.reject) spinbox_vbox.addWidget(button_box) hbox = QtGui.QHBoxLayout(self) hbox.addWidget(groupbox) hbox.addLayout(spinbox_vbox) self.setLayout(hbox) if self.exec_() == QtGui.QDialog.Accepted: type_of_list = {1: "1", 2: "A", 3: "a", 4: "I", 5: "i"} choice = type_of_list.get( radio_button_group.id(radio_button_group.checkedButton()), "1") self.insert_ordered_list(choice, spinbox.value())
def setupUi(self, cadastre_parcelle_form): cadastre_parcelle_form.setObjectName( _fromUtf8("cadastre_parcelle_form")) cadastre_parcelle_form.resize(640, 612) self.verticalLayout = QtGui.QVBoxLayout(cadastre_parcelle_form) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.scrollArea = QtGui.QScrollArea(cadastre_parcelle_form) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 620, 559)) self.scrollAreaWidgetContents.setObjectName( _fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_2 = QtGui.QVBoxLayout( self.scrollAreaWidgetContents) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.groupBox = QtGui.QGroupBox(self.scrollAreaWidgetContents) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.parcelleInfo = QtGui.QTextEdit(self.groupBox) self.parcelleInfo.setUndoRedoEnabled(False) self.parcelleInfo.setReadOnly(True) self.parcelleInfo.setObjectName(_fromUtf8("parcelleInfo")) self.verticalLayout_3.addWidget(self.parcelleInfo) self.verticalLayout_2.addWidget(self.groupBox) self.groupBox_2 = QtGui.QGroupBox(self.scrollAreaWidgetContents) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.proprietairesInfo = QtGui.QTextEdit(self.groupBox_2) self.proprietairesInfo.setUndoRedoEnabled(False) self.proprietairesInfo.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.proprietairesInfo.setReadOnly(True) self.proprietairesInfo.setObjectName(_fromUtf8("proprietairesInfo")) self.verticalLayout_4.addWidget(self.proprietairesInfo) self.verticalLayout_2.addWidget(self.groupBox_2) self.groupBox_3 = QtGui.QGroupBox(self.scrollAreaWidgetContents) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.groupBox_3) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.btExportParcelle = QtGui.QPushButton(self.groupBox_3) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8(":/plugins/cadastre/icons/releve.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btExportParcelle.setIcon(icon) self.btExportParcelle.setObjectName(_fromUtf8("btExportParcelle")) self.horizontalLayout.addWidget(self.btExportParcelle) self.btExportProprietaire = QtGui.QPushButton(self.groupBox_3) self.btExportProprietaire.setIcon(icon) self.btExportProprietaire.setObjectName( _fromUtf8("btExportProprietaire")) self.horizontalLayout.addWidget(self.btExportProprietaire) self.verticalLayout_5.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.btCentrer = QtGui.QPushButton(self.groupBox_3) icon1 = QtGui.QIcon() icon1.addPixmap( QtGui.QPixmap(_fromUtf8(":/plugins/cadastre/icons/centrer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btCentrer.setIcon(icon1) self.btCentrer.setObjectName(_fromUtf8("btCentrer")) self.horizontalLayout_2.addWidget(self.btCentrer) self.btZoomer = QtGui.QPushButton(self.groupBox_3) icon2 = QtGui.QIcon() icon2.addPixmap( QtGui.QPixmap(_fromUtf8(":/plugins/cadastre/icons/zoom.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btZoomer.setIcon(icon2) self.btZoomer.setObjectName(_fromUtf8("btZoomer")) self.horizontalLayout_2.addWidget(self.btZoomer) self.btSelectionner = QtGui.QPushButton(self.groupBox_3) icon3 = QtGui.QIcon() icon3.addPixmap( QtGui.QPixmap(_fromUtf8(":/plugins/cadastre/icons/select.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.btSelectionner.setIcon(icon3) self.btSelectionner.setObjectName(_fromUtf8("btSelectionner")) self.horizontalLayout_2.addWidget(self.btSelectionner) self.verticalLayout_5.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.btParcellesProprietaire = QtGui.QPushButton(self.groupBox_3) self.btParcellesProprietaire.setIcon(icon3) self.btParcellesProprietaire.setObjectName( _fromUtf8("btParcellesProprietaire")) self.horizontalLayout_3.addWidget(self.btParcellesProprietaire) self.verticalLayout_5.addLayout(self.horizontalLayout_3) self.verticalLayout_2.addWidget(self.groupBox_3) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout.addWidget(self.scrollArea) self.buttonBox = QtGui.QDialogButtonBox(cadastre_parcelle_form) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(cadastre_parcelle_form) QtCore.QMetaObject.connectSlotsByName(cadastre_parcelle_form) cadastre_parcelle_form.setTabOrder(self.scrollArea, self.parcelleInfo) cadastre_parcelle_form.setTabOrder(self.parcelleInfo, self.proprietairesInfo) cadastre_parcelle_form.setTabOrder(self.proprietairesInfo, self.btExportParcelle) cadastre_parcelle_form.setTabOrder(self.btExportParcelle, self.btExportProprietaire) cadastre_parcelle_form.setTabOrder(self.btExportProprietaire, self.btCentrer) cadastre_parcelle_form.setTabOrder(self.btCentrer, self.btZoomer) cadastre_parcelle_form.setTabOrder(self.btZoomer, self.btSelectionner) cadastre_parcelle_form.setTabOrder(self.btSelectionner, self.buttonBox)
def setupUi(self, Dialog_Agregation): Dialog_Agregation.setObjectName(_fromUtf8("Dialog_Agregation")) Dialog_Agregation.setWindowModality(QtCore.Qt.ApplicationModal) Dialog_Agregation.resize(800, 550) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(11) Dialog_Agregation.setFont(font) self.verticalLayout = QtGui.QVBoxLayout(Dialog_Agregation) self.verticalLayout.setSpacing(30) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.groupBox_Zbr = QtGui.QGroupBox(Dialog_Agregation) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(11) font.setBold(True) font.setItalic(False) font.setWeight(75) font.setKerning(True) self.groupBox_Zbr.setFont(font) self.groupBox_Zbr.setObjectName(_fromUtf8("groupBox_Zbr")) self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_Zbr) self.horizontalLayout.setSpacing(20) self.horizontalLayout.setContentsMargins(20, 12, 30, 15) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.line_Zbr = QtGui.QLineEdit(self.groupBox_Zbr) self.line_Zbr.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.line_Zbr.sizePolicy().hasHeightForWidth()) self.line_Zbr.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(8) font.setBold(False) font.setItalic(False) font.setWeight(50) self.line_Zbr.setFont(font) self.line_Zbr.setObjectName(_fromUtf8("line_Zbr")) self.horizontalLayout.addWidget(self.line_Zbr) self.Btn_Zbr = QtGui.QToolButton(self.groupBox_Zbr) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.Btn_Zbr.sizePolicy().hasHeightForWidth()) self.Btn_Zbr.setSizePolicy(sizePolicy) self.Btn_Zbr.setMinimumSize(QtCore.QSize(70, 30)) self.Btn_Zbr.setMaximumSize(QtCore.QSize(70, 30)) self.Btn_Zbr.setAutoRaise(False) self.Btn_Zbr.setObjectName(_fromUtf8("Btn_Zbr")) self.horizontalLayout.addWidget(self.Btn_Zbr) self.verticalLayout.addWidget(self.groupBox_Zbr) self.groupBox_administratif = QtGui.QGroupBox(Dialog_Agregation) self.groupBox_administratif.setEnabled(True) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(11) font.setBold(True) font.setItalic(False) font.setWeight(75) font.setKerning(True) self.groupBox_administratif.setFont(font) self.groupBox_administratif.setObjectName( _fromUtf8("groupBox_administratif")) self.horizontalLayout_4 = QtGui.QHBoxLayout( self.groupBox_administratif) self.horizontalLayout_4.setSpacing(20) self.horizontalLayout_4.setContentsMargins(20, 12, 30, 15) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.line_DepartementPpbe = QtGui.QLineEdit( self.groupBox_administratif) self.line_DepartementPpbe.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.line_DepartementPpbe.sizePolicy().hasHeightForWidth()) self.line_DepartementPpbe.setSizePolicy(sizePolicy) self.line_DepartementPpbe.setMinimumSize(QtCore.QSize(0, 0)) self.line_DepartementPpbe.setMaximumSize( QtCore.QSize(16777215, 16777215)) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(8) font.setBold(False) font.setItalic(False) font.setWeight(50) self.line_DepartementPpbe.setFont(font) self.line_DepartementPpbe.setObjectName( _fromUtf8("line_DepartementPpbe")) self.listWidget_departementPpbe = QtGui.QListWidget( self.groupBox_administratif) self.listWidget_departementPpbe.setSelectionMode( QtGui.QAbstractItemView.SingleSelection) self.listWidget_departementPpbe.setObjectName( _fromUtf8("listWidget_departementPpbe")) self.horizontalLayout_4.addWidget(self.listWidget_departementPpbe) self.horizontalLayout_4.addWidget(self.line_DepartementPpbe) self.verticalLayout.addWidget(self.groupBox_administratif) self.groupBox_perimetre = QtGui.QGroupBox(Dialog_Agregation) self.groupBox_perimetre.setEnabled(True) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(11) font.setBold(True) font.setItalic(False) font.setWeight(75) font.setKerning(True) self.groupBox_perimetre.setFont(font) self.groupBox_perimetre.setObjectName(_fromUtf8("groupBox_perimetre")) self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_perimetre) self.horizontalLayout_2.setSpacing(20) self.horizontalLayout_2.setContentsMargins(20, 12, 30, 15) self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.line_perimetre = QtGui.QLineEdit(self.groupBox_perimetre) self.line_perimetre.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.line_perimetre.sizePolicy().hasHeightForWidth()) self.line_perimetre.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(8) font.setBold(False) font.setItalic(False) font.setWeight(50) self.line_perimetre.setFont(font) self.line_perimetre.setReadOnly(False) self.line_perimetre.setObjectName(_fromUtf8("line_perimetre")) self.horizontalLayout_2.addWidget(self.line_perimetre) self.Btn_perimetre = QtGui.QToolButton(self.groupBox_perimetre) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.Btn_perimetre.sizePolicy().hasHeightForWidth()) self.Btn_perimetre.setSizePolicy(sizePolicy) self.Btn_perimetre.setMinimumSize(QtCore.QSize(70, 30)) self.Btn_perimetre.setMaximumSize(QtCore.QSize(70, 30)) self.Btn_perimetre.setObjectName(_fromUtf8("Btn_perimetre")) self.horizontalLayout_2.addWidget(self.Btn_perimetre) self.verticalLayout.addWidget(self.groupBox_perimetre) self.groupBox_Sortie = QtGui.QGroupBox(Dialog_Agregation) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(11) font.setBold(True) font.setItalic(False) font.setWeight(75) font.setKerning(True) self.groupBox_Sortie.setFont(font) self.groupBox_Sortie.setObjectName(_fromUtf8("groupBox_Sortie")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_Sortie) self.horizontalLayout_3.setSpacing(20) self.horizontalLayout_3.setContentsMargins(20, 12, 30, 15) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.line_Sortie = QtGui.QLineEdit(self.groupBox_Sortie) self.line_Sortie.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.line_Sortie.sizePolicy().hasHeightForWidth()) self.line_Sortie.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(8) font.setBold(False) font.setItalic(False) font.setWeight(50) self.line_Sortie.setFont(font) self.line_Sortie.setAutoFillBackground(False) self.line_Sortie.setStyleSheet(_fromUtf8("")) self.line_Sortie.setObjectName(_fromUtf8("line_Sortie")) self.horizontalLayout_3.addWidget(self.line_Sortie) self.Btn_ChoixSortie = QtGui.QToolButton(self.groupBox_Sortie) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.Btn_ChoixSortie.sizePolicy().hasHeightForWidth()) self.Btn_ChoixSortie.setSizePolicy(sizePolicy) self.Btn_ChoixSortie.setMinimumSize(QtCore.QSize(70, 30)) self.Btn_ChoixSortie.setMaximumSize(QtCore.QSize(70, 30)) self.Btn_ChoixSortie.setObjectName(_fromUtf8("Btn_ChoixSortie")) self.horizontalLayout_3.addWidget(self.Btn_ChoixSortie) self.verticalLayout.addWidget(self.groupBox_Sortie) self.ButtonBox_Final = QtGui.QDialogButtonBox(Dialog_Agregation) font = QtGui.QFont() font.setFamily(_fromUtf8("Calibri Light")) font.setPointSize(11) font.setBold(True) font.setItalic(False) font.setWeight(75) font.setKerning(True) self.ButtonBox_Final.setFont(font) self.ButtonBox_Final.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Help | QtGui.QDialogButtonBox.Ok) self.ButtonBox_Final.setObjectName(_fromUtf8("ButtonBox_Final")) self.verticalLayout.addWidget(self.ButtonBox_Final) self.retranslateUi(Dialog_Agregation) QtCore.QMetaObject.connectSlotsByName(Dialog_Agregation)
def setupUi(self, StationaryF007SetupDialog): StationaryF007SetupDialog.setObjectName( _fromUtf8("StationaryF007SetupDialog")) StationaryF007SetupDialog.setWindowModality(QtCore.Qt.ApplicationModal) StationaryF007SetupDialog.resize(671, 448) StationaryF007SetupDialog.setSizeGripEnabled(True) self.gridlayout = QtGui.QGridLayout(StationaryF007SetupDialog) self.gridlayout.setMargin(4) self.gridlayout.setSpacing(4) self.gridlayout.setObjectName(_fromUtf8("gridlayout")) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridlayout.addItem(spacerItem, 2, 1, 1, 1) self.lblProfileBed = QtGui.QLabel(StationaryF007SetupDialog) self.lblProfileBed.setObjectName(_fromUtf8("lblProfileBed")) self.gridlayout.addWidget(self.lblProfileBed, 4, 0, 1, 1) self.lblEndDate = QtGui.QLabel(StationaryF007SetupDialog) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridlayout.addWidget(self.lblEndDate, 0, 0, 1, 1) self.edtBegTime = QtGui.QTimeEdit(StationaryF007SetupDialog) self.edtBegTime.setObjectName(_fromUtf8("edtBegTime")) self.gridlayout.addWidget(self.edtBegTime, 1, 2, 1, 1) self.edtEndDate = CDateEdit(StationaryF007SetupDialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.edtEndDate.sizePolicy().hasHeightForWidth()) self.edtEndDate.setSizePolicy(sizePolicy) self.edtEndDate.setCalendarPopup(True) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridlayout.addWidget(self.edtEndDate, 0, 2, 1, 1) self.chkIsHideBeds = QtGui.QCheckBox(StationaryF007SetupDialog) self.chkIsHideBeds.setObjectName(_fromUtf8("chkIsHideBeds")) self.gridlayout.addWidget(self.chkIsHideBeds, 5, 0, 1, 4) self.cmbProfileBed = CRBComboBox(StationaryF007SetupDialog) self.cmbProfileBed.setObjectName(_fromUtf8("cmbProfileBed")) self.gridlayout.addWidget(self.cmbProfileBed, 4, 2, 1, 2) self.lstOrgStructure = CRBListBox(StationaryF007SetupDialog) self.lstOrgStructure.setObjectName(_fromUtf8("lstOrgStructure")) self.gridlayout.addWidget(self.lstOrgStructure, 2, 2, 1, 2) self.chkDetailOrgStructure = QtGui.QCheckBox(StationaryF007SetupDialog) self.chkDetailOrgStructure.setObjectName( _fromUtf8("chkDetailOrgStructure")) self.gridlayout.addWidget(self.chkDetailOrgStructure, 6, 0, 1, 4) self.lblSchedule = QtGui.QLabel(StationaryF007SetupDialog) self.lblSchedule.setObjectName(_fromUtf8("lblSchedule")) self.gridlayout.addWidget(self.lblSchedule, 3, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(StationaryF007SetupDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridlayout.addWidget(self.buttonBox, 7, 0, 1, 4) self.lblOrgStructure = QtGui.QLabel(StationaryF007SetupDialog) self.lblOrgStructure.setObjectName(_fromUtf8("lblOrgStructure")) self.gridlayout.addWidget(self.lblOrgStructure, 2, 0, 1, 1) self.lblBegTime = QtGui.QLabel(StationaryF007SetupDialog) self.lblBegTime.setObjectName(_fromUtf8("lblBegTime")) self.gridlayout.addWidget(self.lblBegTime, 1, 0, 1, 1) self.cmbSchedule = QtGui.QComboBox(StationaryF007SetupDialog) self.cmbSchedule.setObjectName(_fromUtf8("cmbSchedule")) self.cmbSchedule.addItem(_fromUtf8("")) self.cmbSchedule.addItem(_fromUtf8("")) self.cmbSchedule.addItem(_fromUtf8("")) self.gridlayout.addWidget(self.cmbSchedule, 3, 2, 1, 2) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridlayout.addItem(spacerItem1, 0, 3, 1, 1) self.lblProfileBed.setBuddy(self.cmbProfileBed) self.lblEndDate.setBuddy(self.edtEndDate) self.lblSchedule.setBuddy(self.cmbSchedule) self.lblBegTime.setBuddy(self.edtBegTime) self.retranslateUi(StationaryF007SetupDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), StationaryF007SetupDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), StationaryF007SetupDialog.reject) QtCore.QMetaObject.connectSlotsByName(StationaryF007SetupDialog) StationaryF007SetupDialog.setTabOrder(self.edtEndDate, self.edtBegTime) StationaryF007SetupDialog.setTabOrder(self.edtBegTime, self.cmbSchedule) StationaryF007SetupDialog.setTabOrder(self.cmbSchedule, self.cmbProfileBed) StationaryF007SetupDialog.setTabOrder(self.cmbProfileBed, self.chkIsHideBeds) StationaryF007SetupDialog.setTabOrder(self.chkIsHideBeds, self.chkDetailOrgStructure) StationaryF007SetupDialog.setTabOrder(self.chkDetailOrgStructure, self.buttonBox)
def __init__(self, parent=None): super(TransferDialog, self).__init__(parent) self.sourceGroupBox = QtGui.QGroupBox('Source') self.sourceDropdown = QtGui.QComboBox() deviceList = parseRawBlockDevices() for deviceString in deviceList: self.sourceDropdown.addItem(deviceString) layout = QtGui.QVBoxLayout() layout.addWidget(self.sourceDropdown) self.sourceGroupBox.setLayout(layout) self.allDataButton = QtGui.QRadioButton('Entire Experiment') self.allDataButton.setChecked(True) self.allDataButton.clicked.connect(self.disableSubsetLine) self.subsetButton = QtGui.QRadioButton('Subset, from') self.subsetButton.clicked.connect(self.enableSubsetLine) self.subsetFromLine = QtGui.QLineEdit('0') self.subsetToLine = QtGui.QLineEdit('1') self.subsetFromLine.setDisabled(True) self.subsetToLine.setDisabled(True) self.experimentGroupBox = QtGui.QGroupBox('Experiment') layout = QtGui.QGridLayout() layout.addWidget(self.allDataButton, 0, 0) layout.addWidget(self.subsetButton, 1, 0) layout.addWidget(self.subsetFromLine, 1, 1) layout.addWidget(QtGui.QLabel('to'), 1, 2) layout.addWidget(self.subsetToLine, 1, 3) layout.addWidget(QtGui.QLabel('seconds'), 1, 4) self.experimentGroupBox.setLayout(layout) self.autoNameButton = QtGui.QRadioButton('Name automatically') self.autoNameButton.setChecked(True) self.autoNameButton.clicked.connect(self.disableFilenameLine) self.filenameButton = QtGui.QRadioButton('Filename:') self.filenameButton.clicked.connect(self.enableFilenameLine) dt = datetime.datetime.fromtimestamp(time.time()) strtime = '%04d%02d%02d-%02d%02d%02d' % (dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second) filename = os.path.join(config.dataDir, 'experiment_T%s.h5' % strtime) self.filenameLine = QtGui.QLineEdit(filename) self.filenameLine.setDisabled(True) self.browseButton = QtGui.QPushButton('Browse') self.browseButton.clicked.connect(self.browse) self.browseButton.setDisabled(True) self.filenameGroupBox = QtGui.QGroupBox('Filename') layout = QtGui.QGridLayout() layout.addWidget(self.autoNameButton, 0,0) layout.addWidget(self.filenameButton, 1,0) layout.addWidget(self.filenameLine, 2,0) layout.addWidget(self.browseButton, 2,1) self.filenameGroupBox.setLayout(layout) self.dialogButtons = QtGui.QDialogButtonBox( QtGui.QDialogButtonBox.Ok | QtGui.QDialogButtonBox.Cancel, QtCore.Qt.Horizontal, self) self.dialogButtons.accepted.connect(self.accept) self.dialogButtons.rejected.connect(self.reject) layout = QtGui.QVBoxLayout() layout.addWidget(self.sourceGroupBox) layout.addWidget(self.experimentGroupBox) layout.addWidget(self.filenameGroupBox) layout.addWidget(self.dialogButtons) self.setLayout(layout) self.setWindowTitle('Transfer Parameters') self.setWindowIcon(QtGui.QIcon('../img/round_logo_60x60.png'))
def setupUi(self, SegmenationMetrics): SegmenationMetrics.setObjectName(_fromUtf8("SegmenationMetrics")) SegmenationMetrics.resize(402, 319) self.buttonBox = QtGui.QDialogButtonBox(SegmenationMetrics) self.buttonBox.setGeometry(QtCore.QRect(30, 270, 341, 32)) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayoutWidget_2 = QtGui.QWidget(SegmenationMetrics) self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(30, 40, 141, 229)) self.verticalLayoutWidget_2.setObjectName(_fromUtf8("verticalLayoutWidget_2")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.id = QtGui.QCheckBox(self.verticalLayoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.id.setFont(font) self.id.setChecked(True) self.id.setObjectName(_fromUtf8("id")) self.verticalLayout_2.addWidget(self.id) self.ellipse = QtGui.QCheckBox(self.verticalLayoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.ellipse.setFont(font) self.ellipse.setChecked(True) self.ellipse.setObjectName(_fromUtf8("ellipse")) self.verticalLayout_2.addWidget(self.ellipse) self.outline = QtGui.QCheckBox(self.verticalLayoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.outline.setFont(font) self.outline.setChecked(True) self.outline.setObjectName(_fromUtf8("outline")) self.verticalLayout_2.addWidget(self.outline) self.center = QtGui.QCheckBox(self.verticalLayoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.center.setFont(font) self.center.setChecked(True) self.center.setObjectName(_fromUtf8("center")) self.verticalLayout_2.addWidget(self.center) self.directionality = QtGui.QCheckBox(self.verticalLayoutWidget_2) self.directionality.setEnabled(True) font = QtGui.QFont() font.setPointSize(10) self.directionality.setFont(font) self.directionality.setChecked(False) self.directionality.setObjectName(_fromUtf8("directionality")) self.verticalLayout_2.addWidget(self.directionality) self.direction_line = QtGui.QCheckBox(self.verticalLayoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.direction_line.setFont(font) self.direction_line.setChecked(False) self.direction_line.setObjectName(_fromUtf8("direction_line")) self.verticalLayout_2.addWidget(self.direction_line) self.gamma = QtGui.QCheckBox(self.verticalLayoutWidget_2) font = QtGui.QFont() font.setPointSize(10) self.gamma.setFont(font) self.gamma.setChecked(False) self.gamma.setObjectName(_fromUtf8("gamma")) self.verticalLayout_2.addWidget(self.gamma) self.verticalLayoutWidget = QtGui.QWidget(SegmenationMetrics) self.verticalLayoutWidget.setGeometry(QtCore.QRect(200, 40, 171, 111)) self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget")) self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setSizeConstraint(QtGui.QLayout.SetNoConstraint) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.linearity_check = QtGui.QCheckBox(self.verticalLayoutWidget) font = QtGui.QFont() font.setPointSize(10) self.linearity_check.setFont(font) self.linearity_check.setChecked(True) self.linearity_check.setObjectName(_fromUtf8("linearity_check")) self.verticalLayout.addWidget(self.linearity_check) self.convergence_check = QtGui.QCheckBox(self.verticalLayoutWidget) font = QtGui.QFont() font.setPointSize(10) self.convergence_check.setFont(font) self.convergence_check.setChecked(True) self.convergence_check.setObjectName(_fromUtf8("convergence_check")) self.verticalLayout.addWidget(self.convergence_check) self.distribution_check = QtGui.QCheckBox(self.verticalLayoutWidget) font = QtGui.QFont() font.setPointSize(10) self.distribution_check.setFont(font) self.distribution_check.setChecked(True) self.distribution_check.setObjectName(_fromUtf8("distribution_check")) self.verticalLayout.addWidget(self.distribution_check) self.label = QtGui.QLabel(SegmenationMetrics) self.label.setGeometry(QtCore.QRect(230, 20, 111, 21)) self.label.setMaximumSize(QtCore.QSize(16777191, 16777215)) font = QtGui.QFont() font.setPointSize(10) font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.label_2 = QtGui.QLabel(SegmenationMetrics) self.label_2.setGeometry(QtCore.QRect(50, 20, 91, 21)) self.label_2.setMaximumSize(QtCore.QSize(16777191, 16777215)) font = QtGui.QFont() font.setPointSize(10) font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setTextFormat(QtCore.Qt.AutoText) self.label_2.setObjectName(_fromUtf8("label_2")) self.label_3 = QtGui.QLabel(SegmenationMetrics) self.label_3.setGeometry(QtCore.QRect(260, 170, 51, 21)) self.label_3.setMaximumSize(QtCore.QSize(16777191, 16777215)) font = QtGui.QFont() font.setPointSize(10) font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayoutWidget = QtGui.QWidget(SegmenationMetrics) self.horizontalLayoutWidget.setGeometry(QtCore.QRect(200, 190, 160, 41)) self.horizontalLayoutWidget.setObjectName(_fromUtf8("horizontalLayoutWidget")) self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_4 = QtGui.QLabel(self.horizontalLayoutWidget) font = QtGui.QFont() font.setPointSize(10) self.label_4.setFont(font) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout.addWidget(self.label_4) self.scale_spin = QtGui.QDoubleSpinBox(self.horizontalLayoutWidget) self.scale_spin.setObjectName(_fromUtf8("scale_spin")) self.horizontalLayout.addWidget(self.scale_spin) self.line = QtGui.QFrame(SegmenationMetrics) self.line.setGeometry(QtCore.QRect(200, 150, 161, 16)) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.line_2 = QtGui.QFrame(SegmenationMetrics) self.line_2.setGeometry(QtCore.QRect(170, 30, 20, 241)) self.line_2.setFrameShape(QtGui.QFrame.VLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.buttonBox_2 = QtGui.QDialogButtonBox(SegmenationMetrics) self.buttonBox_2.setGeometry(QtCore.QRect(300, 290, 341, 32)) self.buttonBox_2.setOrientation(QtCore.Qt.Horizontal) self.buttonBox_2.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox_2.setObjectName(_fromUtf8("buttonBox_2")) self.retranslateUi(SegmenationMetrics) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), SegmenationMetrics.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), SegmenationMetrics.reject) QtCore.QMetaObject.connectSlotsByName(SegmenationMetrics)
def setupUi(self, ReportOperation): ReportOperation.setObjectName(_fromUtf8("ReportOperation")) ReportOperation.resize(411, 501) self.gridLayout = QtGui.QGridLayout(ReportOperation) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.btnPerson = QtGui.QRadioButton(ReportOperation) self.btnPerson.setChecked(True) self.btnPerson.setObjectName(_fromUtf8("btnPerson")) self.gridLayout.addWidget(self.btnPerson, 8, 5, 1, 1) self.cmbOrgStructure = COrgStructureComboBox(ReportOperation) self.cmbOrgStructure.setObjectName(_fromUtf8("cmbOrgStructure")) self.gridLayout.addWidget(self.cmbOrgStructure, 9, 4, 1, 5) self.lblBegDate = QtGui.QLabel(ReportOperation) self.lblBegDate.setObjectName(_fromUtf8("lblBegDate")) self.gridLayout.addWidget(self.lblBegDate, 0, 1, 1, 4) self.lblEndDate = QtGui.QLabel(ReportOperation) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 1, 1, 1, 4) self.chkOrgStructure = QtGui.QCheckBox(ReportOperation) self.chkOrgStructure.setObjectName(_fromUtf8("chkOrgStructure")) self.gridLayout.addWidget(self.chkOrgStructure, 9, 1, 1, 3) self.edtEndDate = CDateEdit(ReportOperation) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edtEndDate.sizePolicy().hasHeightForWidth()) self.edtEndDate.setSizePolicy(sizePolicy) self.edtEndDate.setCalendarPopup(True) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 1, 5, 1, 1) self.cmbPerson = CPersonComboBoxEx(ReportOperation) self.cmbPerson.setObjectName(_fromUtf8("cmbPerson")) self.gridLayout.addWidget(self.cmbPerson, 12, 4, 1, 5) self.edtBegDate = CDateEdit(ReportOperation) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edtBegDate.sizePolicy().hasHeightForWidth()) self.edtBegDate.setSizePolicy(sizePolicy) self.edtBegDate.setCalendarPopup(True) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 5, 1, 1) self.lstOrgStructure = CRBListBox(ReportOperation) self.lstOrgStructure.setObjectName(_fromUtf8("lstOrgStructure")) self.gridLayout.addWidget(self.lstOrgStructure, 10, 1, 1, 8) self.chkOperation = QtGui.QCheckBox(ReportOperation) self.chkOperation.setObjectName(_fromUtf8("chkOperation")) self.gridLayout.addWidget(self.chkOperation, 14, 1, 1, 3) self.cmbOperation = CRBComboBox(ReportOperation) self.cmbOperation.setObjectName(_fromUtf8("cmbOperation")) self.gridLayout.addWidget(self.cmbOperation, 14, 4, 1, 5) self.lstOperation = CRBListBox(ReportOperation) self.lstOperation.setObjectName(_fromUtf8("lstOperation")) self.gridLayout.addWidget(self.lstOperation, 16, 1, 1, 8) self.buttonBox = QtGui.QDialogButtonBox(ReportOperation) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 19, 8, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 8, 1, 1) self.label = QtGui.QLabel(ReportOperation) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 12, 1, 1, 1) self.label_2 = QtGui.QLabel(ReportOperation) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 8, 1, 1, 1) self.btnOrgStructure = QtGui.QRadioButton(ReportOperation) self.btnOrgStructure.setObjectName(_fromUtf8("btnOrgStructure")) self.gridLayout.addWidget(self.btnOrgStructure, 8, 8, 1, 1) self.lblAge = QtGui.QLabel(ReportOperation) self.lblAge.setObjectName(_fromUtf8("lblAge")) self.gridLayout.addWidget(self.lblAge, 2, 1, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_3 = QtGui.QLabel(ReportOperation) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout.addWidget(self.label_3) self.edtAgeFrom = QtGui.QSpinBox(ReportOperation) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edtAgeFrom.sizePolicy().hasHeightForWidth()) self.edtAgeFrom.setSizePolicy(sizePolicy) self.edtAgeFrom.setMaximum(150) self.edtAgeFrom.setObjectName(_fromUtf8("edtAgeFrom")) self.horizontalLayout.addWidget(self.edtAgeFrom) self.lblAgeTo = QtGui.QLabel(ReportOperation) self.lblAgeTo.setObjectName(_fromUtf8("lblAgeTo")) self.horizontalLayout.addWidget(self.lblAgeTo) self.edtAgeTo = QtGui.QSpinBox(ReportOperation) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.edtAgeTo.sizePolicy().hasHeightForWidth()) self.edtAgeTo.setSizePolicy(sizePolicy) self.edtAgeTo.setMaximum(150) self.edtAgeTo.setObjectName(_fromUtf8("edtAgeTo")) self.horizontalLayout.addWidget(self.edtAgeTo) self.lblAgeYears = QtGui.QLabel(ReportOperation) self.lblAgeYears.setObjectName(_fromUtf8("lblAgeYears")) self.horizontalLayout.addWidget(self.lblAgeYears) self.gridLayout.addLayout(self.horizontalLayout, 2, 5, 1, 4) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 17, 2, 1, 1) self.lblBegDate.setBuddy(self.edtBegDate) self.lblAge.setBuddy(self.edtAgeFrom) self.lblAgeTo.setBuddy(self.edtAgeTo) self.lblAgeYears.setBuddy(self.edtAgeTo) self.retranslateUi(ReportOperation) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportOperation.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportOperation.reject) QtCore.QMetaObject.connectSlotsByName(ReportOperation)
def setupUi(self, settingsDialog): settingsDialog.setObjectName(_fromUtf8("settingsDialog")) settingsDialog.resize(521, 413) self.gridLayout = QtGui.QGridLayout(settingsDialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.buttonBox = QtGui.QDialogButtonBox(settingsDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 1) self.tabWidgetSettings = QtGui.QTabWidget(settingsDialog) self.tabWidgetSettings.setObjectName(_fromUtf8("tabWidgetSettings")) self.tabUserInterface = QtGui.QWidget() self.tabUserInterface.setEnabled(True) self.tabUserInterface.setObjectName(_fromUtf8("tabUserInterface")) self.formLayout = QtGui.QFormLayout(self.tabUserInterface) self.formLayout.setObjectName(_fromUtf8("formLayout")) self.checkBoxStartOnLogon = QtGui.QCheckBox(self.tabUserInterface) self.checkBoxStartOnLogon.setObjectName( _fromUtf8("checkBoxStartOnLogon")) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.checkBoxStartOnLogon) self.groupBoxTray = QtGui.QGroupBox(self.tabUserInterface) self.groupBoxTray.setObjectName(_fromUtf8("groupBoxTray")) self.formLayoutTray = QtGui.QFormLayout(self.groupBoxTray) self.formLayoutTray.setObjectName(_fromUtf8("formLayoutTray")) self.checkBoxStartInTray = QtGui.QCheckBox(self.groupBoxTray) self.checkBoxStartInTray.setObjectName( _fromUtf8("checkBoxStartInTray")) self.formLayoutTray.setWidget(0, QtGui.QFormLayout.SpanningRole, self.checkBoxStartInTray) self.checkBoxMinimizeToTray = QtGui.QCheckBox(self.groupBoxTray) self.checkBoxMinimizeToTray.setChecked(True) self.checkBoxMinimizeToTray.setObjectName( _fromUtf8("checkBoxMinimizeToTray")) self.formLayoutTray.setWidget(1, QtGui.QFormLayout.LabelRole, self.checkBoxMinimizeToTray) self.checkBoxTrayOnClose = QtGui.QCheckBox(self.groupBoxTray) self.checkBoxTrayOnClose.setChecked(True) self.checkBoxTrayOnClose.setObjectName( _fromUtf8("checkBoxTrayOnClose")) self.formLayoutTray.setWidget(2, QtGui.QFormLayout.LabelRole, self.checkBoxTrayOnClose) self.formLayout.setWidget(1, QtGui.QFormLayout.SpanningRole, self.groupBoxTray) self.checkBoxShowTrayNotifications = QtGui.QCheckBox( self.tabUserInterface) self.checkBoxShowTrayNotifications.setObjectName( _fromUtf8("checkBoxShowTrayNotifications")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.checkBoxShowTrayNotifications) self.checkBoxPortableMode = QtGui.QCheckBox(self.tabUserInterface) self.checkBoxPortableMode.setObjectName( _fromUtf8("checkBoxPortableMode")) self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.checkBoxPortableMode) self.PortableModeDescription = QtGui.QLabel(self.tabUserInterface) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.PortableModeDescription.sizePolicy().hasHeightForWidth()) self.PortableModeDescription.setSizePolicy(sizePolicy) self.PortableModeDescription.setWordWrap(True) self.PortableModeDescription.setObjectName( _fromUtf8("PortableModeDescription")) self.formLayout.setWidget(5, QtGui.QFormLayout.SpanningRole, self.PortableModeDescription) self.checkBoxWillinglySendToMobile = QtGui.QCheckBox( self.tabUserInterface) self.checkBoxWillinglySendToMobile.setObjectName( _fromUtf8("checkBoxWillinglySendToMobile")) self.formLayout.setWidget(6, QtGui.QFormLayout.SpanningRole, self.checkBoxWillinglySendToMobile) self.checkBoxUseIdenticons = QtGui.QCheckBox(self.tabUserInterface) self.checkBoxUseIdenticons.setObjectName( _fromUtf8("checkBoxUseIdenticons")) self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.checkBoxUseIdenticons) self.checkBoxReplyBelow = QtGui.QCheckBox(self.tabUserInterface) self.checkBoxReplyBelow.setObjectName(_fromUtf8("checkBoxReplyBelow")) self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.checkBoxReplyBelow) self.groupBox = QtGui.QGroupBox(self.tabUserInterface) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.formLayout_2 = QtGui.QFormLayout(self.groupBox) self.formLayout_2.setObjectName(_fromUtf8("formLayout_2")) self.languageComboBox = LanguageBox(self.groupBox) self.languageComboBox.setMinimumSize(QtCore.QSize(100, 0)) self.languageComboBox.setObjectName(_fromUtf8("languageComboBox")) self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.languageComboBox) self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.groupBox) self.tabWidgetSettings.addTab(self.tabUserInterface, _fromUtf8("")) self.tabNetworkSettings = QtGui.QWidget() self.tabNetworkSettings.setObjectName(_fromUtf8("tabNetworkSettings")) self.gridLayout_4 = QtGui.QGridLayout(self.tabNetworkSettings) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.groupBox1 = QtGui.QGroupBox(self.tabNetworkSettings) self.groupBox1.setObjectName(_fromUtf8("groupBox1")) self.gridLayout_3 = QtGui.QGridLayout(self.groupBox1) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) #spacerItem = QtGui.QSpacerItem(125, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) #self.gridLayout_3.addItem(spacerItem, 0, 0, 1, 1) self.label = QtGui.QLabel(self.groupBox1) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1, QtCore.Qt.AlignRight) self.lineEditTCPPort = QtGui.QLineEdit(self.groupBox1) self.lineEditTCPPort.setMaximumSize(QtCore.QSize(70, 16777215)) self.lineEditTCPPort.setObjectName(_fromUtf8("lineEditTCPPort")) self.gridLayout_3.addWidget(self.lineEditTCPPort, 0, 1, 1, 1, QtCore.Qt.AlignLeft) self.labelUPnP = QtGui.QLabel(self.groupBox1) self.labelUPnP.setObjectName(_fromUtf8("labelUPnP")) self.gridLayout_3.addWidget(self.labelUPnP, 0, 2, 1, 1, QtCore.Qt.AlignRight) self.checkBoxUPnP = QtGui.QCheckBox(self.groupBox1) self.checkBoxUPnP.setObjectName(_fromUtf8("checkBoxUPnP")) self.gridLayout_3.addWidget(self.checkBoxUPnP, 0, 3, 1, 1, QtCore.Qt.AlignLeft) self.gridLayout_4.addWidget(self.groupBox1, 0, 0, 1, 1) self.groupBox_3 = QtGui.QGroupBox(self.tabNetworkSettings) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridLayout_9 = QtGui.QGridLayout(self.groupBox_3) self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_9.addItem(spacerItem1, 0, 0, 2, 1) self.label_24 = QtGui.QLabel(self.groupBox_3) self.label_24.setObjectName(_fromUtf8("label_24")) self.gridLayout_9.addWidget(self.label_24, 0, 1, 1, 1) self.lineEditMaxDownloadRate = QtGui.QLineEdit(self.groupBox_3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEditMaxDownloadRate.sizePolicy().hasHeightForWidth()) self.lineEditMaxDownloadRate.setSizePolicy(sizePolicy) self.lineEditMaxDownloadRate.setMaximumSize(QtCore.QSize(60, 16777215)) self.lineEditMaxDownloadRate.setObjectName( _fromUtf8("lineEditMaxDownloadRate")) self.gridLayout_9.addWidget(self.lineEditMaxDownloadRate, 0, 2, 1, 1) self.label_25 = QtGui.QLabel(self.groupBox_3) self.label_25.setObjectName(_fromUtf8("label_25")) self.gridLayout_9.addWidget(self.label_25, 1, 1, 1, 1) self.lineEditMaxUploadRate = QtGui.QLineEdit(self.groupBox_3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEditMaxUploadRate.sizePolicy().hasHeightForWidth()) self.lineEditMaxUploadRate.setSizePolicy(sizePolicy) self.lineEditMaxUploadRate.setMaximumSize(QtCore.QSize(60, 16777215)) self.lineEditMaxUploadRate.setObjectName( _fromUtf8("lineEditMaxUploadRate")) self.gridLayout_9.addWidget(self.lineEditMaxUploadRate, 1, 2, 1, 1) self.gridLayout_4.addWidget(self.groupBox_3, 2, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(self.tabNetworkSettings) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_2 = QtGui.QLabel(self.groupBox_2) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1) self.label_3 = QtGui.QLabel(self.groupBox_2) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_2.addWidget(self.label_3, 1, 1, 1, 1) self.lineEditSocksHostname = QtGui.QLineEdit(self.groupBox_2) self.lineEditSocksHostname.setObjectName( _fromUtf8("lineEditSocksHostname")) self.gridLayout_2.addWidget(self.lineEditSocksHostname, 1, 2, 1, 2) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 1, 4, 1, 1) self.lineEditSocksPort = QtGui.QLineEdit(self.groupBox_2) self.lineEditSocksPort.setObjectName(_fromUtf8("lineEditSocksPort")) self.gridLayout_2.addWidget(self.lineEditSocksPort, 1, 5, 1, 1) self.checkBoxAuthentication = QtGui.QCheckBox(self.groupBox_2) self.checkBoxAuthentication.setObjectName( _fromUtf8("checkBoxAuthentication")) self.gridLayout_2.addWidget(self.checkBoxAuthentication, 2, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_2) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_2.addWidget(self.label_5, 2, 2, 1, 1) self.lineEditSocksUsername = QtGui.QLineEdit(self.groupBox_2) self.lineEditSocksUsername.setEnabled(False) self.lineEditSocksUsername.setObjectName( _fromUtf8("lineEditSocksUsername")) self.gridLayout_2.addWidget(self.lineEditSocksUsername, 2, 3, 1, 1) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_2.addWidget(self.label_6, 2, 4, 1, 1) self.lineEditSocksPassword = QtGui.QLineEdit(self.groupBox_2) self.lineEditSocksPassword.setEnabled(False) self.lineEditSocksPassword.setInputMethodHints( QtCore.Qt.ImhHiddenText | QtCore.Qt.ImhNoAutoUppercase | QtCore.Qt.ImhNoPredictiveText) self.lineEditSocksPassword.setEchoMode(QtGui.QLineEdit.Password) self.lineEditSocksPassword.setObjectName( _fromUtf8("lineEditSocksPassword")) self.gridLayout_2.addWidget(self.lineEditSocksPassword, 2, 5, 1, 1) self.checkBoxSocksListen = QtGui.QCheckBox(self.groupBox_2) self.checkBoxSocksListen.setObjectName( _fromUtf8("checkBoxSocksListen")) self.gridLayout_2.addWidget(self.checkBoxSocksListen, 3, 1, 1, 4) self.comboBoxProxyType = QtGui.QComboBox(self.groupBox_2) self.comboBoxProxyType.setObjectName(_fromUtf8("comboBoxProxyType")) self.comboBoxProxyType.addItem(_fromUtf8("")) self.comboBoxProxyType.addItem(_fromUtf8("")) self.comboBoxProxyType.addItem(_fromUtf8("")) self.gridLayout_2.addWidget(self.comboBoxProxyType, 0, 1, 1, 1) self.gridLayout_4.addWidget(self.groupBox_2, 1, 0, 1, 1) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem2, 3, 0, 1, 1) self.tabWidgetSettings.addTab(self.tabNetworkSettings, _fromUtf8("")) self.tabDemandedDifficulty = QtGui.QWidget() self.tabDemandedDifficulty.setObjectName( _fromUtf8("tabDemandedDifficulty")) self.gridLayout_6 = QtGui.QGridLayout(self.tabDemandedDifficulty) self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.label_9 = QtGui.QLabel(self.tabDemandedDifficulty) self.label_9.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout_6.addWidget(self.label_9, 1, 1, 1, 1) self.label_10 = QtGui.QLabel(self.tabDemandedDifficulty) self.label_10.setWordWrap(True) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_6.addWidget(self.label_10, 2, 0, 1, 3) self.label_11 = QtGui.QLabel(self.tabDemandedDifficulty) self.label_11.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout_6.addWidget(self.label_11, 3, 1, 1, 1) self.label_8 = QtGui.QLabel(self.tabDemandedDifficulty) self.label_8.setWordWrap(True) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout_6.addWidget(self.label_8, 0, 0, 1, 3) spacerItem3 = QtGui.QSpacerItem(203, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_6.addItem(spacerItem3, 1, 0, 1, 1) self.label_12 = QtGui.QLabel(self.tabDemandedDifficulty) self.label_12.setWordWrap(True) self.label_12.setObjectName(_fromUtf8("label_12")) self.gridLayout_6.addWidget(self.label_12, 4, 0, 1, 3) self.lineEditSmallMessageDifficulty = QtGui.QLineEdit( self.tabDemandedDifficulty) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditSmallMessageDifficulty. sizePolicy().hasHeightForWidth()) self.lineEditSmallMessageDifficulty.setSizePolicy(sizePolicy) self.lineEditSmallMessageDifficulty.setMaximumSize( QtCore.QSize(70, 16777215)) self.lineEditSmallMessageDifficulty.setObjectName( _fromUtf8("lineEditSmallMessageDifficulty")) self.gridLayout_6.addWidget(self.lineEditSmallMessageDifficulty, 3, 2, 1, 1) self.lineEditTotalDifficulty = QtGui.QLineEdit( self.tabDemandedDifficulty) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEditTotalDifficulty.sizePolicy().hasHeightForWidth()) self.lineEditTotalDifficulty.setSizePolicy(sizePolicy) self.lineEditTotalDifficulty.setMaximumSize(QtCore.QSize(70, 16777215)) self.lineEditTotalDifficulty.setObjectName( _fromUtf8("lineEditTotalDifficulty")) self.gridLayout_6.addWidget(self.lineEditTotalDifficulty, 1, 2, 1, 1) spacerItem4 = QtGui.QSpacerItem(203, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_6.addItem(spacerItem4, 3, 0, 1, 1) spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_6.addItem(spacerItem5, 5, 0, 1, 1) self.tabWidgetSettings.addTab(self.tabDemandedDifficulty, _fromUtf8("")) self.tabMaxAcceptableDifficulty = QtGui.QWidget() self.tabMaxAcceptableDifficulty.setObjectName( _fromUtf8("tabMaxAcceptableDifficulty")) self.gridLayout_7 = QtGui.QGridLayout(self.tabMaxAcceptableDifficulty) self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) self.label_15 = QtGui.QLabel(self.tabMaxAcceptableDifficulty) self.label_15.setWordWrap(True) self.label_15.setObjectName(_fromUtf8("label_15")) self.gridLayout_7.addWidget(self.label_15, 0, 0, 1, 3) spacerItem6 = QtGui.QSpacerItem(102, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_7.addItem(spacerItem6, 1, 0, 1, 1) self.label_13 = QtGui.QLabel(self.tabMaxAcceptableDifficulty) self.label_13.setLayoutDirection(QtCore.Qt.LeftToRight) self.label_13.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout_7.addWidget(self.label_13, 1, 1, 1, 1) self.lineEditMaxAcceptableTotalDifficulty = QtGui.QLineEdit( self.tabMaxAcceptableDifficulty) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lineEditMaxAcceptableTotalDifficulty. sizePolicy().hasHeightForWidth()) self.lineEditMaxAcceptableTotalDifficulty.setSizePolicy(sizePolicy) self.lineEditMaxAcceptableTotalDifficulty.setMaximumSize( QtCore.QSize(70, 16777215)) self.lineEditMaxAcceptableTotalDifficulty.setObjectName( _fromUtf8("lineEditMaxAcceptableTotalDifficulty")) self.gridLayout_7.addWidget(self.lineEditMaxAcceptableTotalDifficulty, 1, 2, 1, 1) spacerItem7 = QtGui.QSpacerItem(102, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_7.addItem(spacerItem7, 2, 0, 1, 1) self.label_14 = QtGui.QLabel(self.tabMaxAcceptableDifficulty) self.label_14.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_14.setObjectName(_fromUtf8("label_14")) self.gridLayout_7.addWidget(self.label_14, 2, 1, 1, 1) self.lineEditMaxAcceptableSmallMessageDifficulty = QtGui.QLineEdit( self.tabMaxAcceptableDifficulty) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.lineEditMaxAcceptableSmallMessageDifficulty.sizePolicy( ).hasHeightForWidth()) self.lineEditMaxAcceptableSmallMessageDifficulty.setSizePolicy( sizePolicy) self.lineEditMaxAcceptableSmallMessageDifficulty.setMaximumSize( QtCore.QSize(70, 16777215)) self.lineEditMaxAcceptableSmallMessageDifficulty.setObjectName( _fromUtf8("lineEditMaxAcceptableSmallMessageDifficulty")) self.gridLayout_7.addWidget( self.lineEditMaxAcceptableSmallMessageDifficulty, 2, 2, 1, 1) spacerItem8 = QtGui.QSpacerItem(20, 147, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_7.addItem(spacerItem8, 3, 1, 1, 1) self.labelOpenCL = QtGui.QLabel(self.tabMaxAcceptableDifficulty) self.labelOpenCL.setObjectName(_fromUtf8("labelOpenCL")) self.gridLayout_7.addWidget(self.labelOpenCL, 4, 0, 1, 1) self.checkBoxOpenCL = QtGui.QCheckBox(self.tabMaxAcceptableDifficulty) self.checkBoxOpenCL.setObjectName = (_fromUtf8("checkBoxOpenCL")) self.gridLayout_7.addWidget(self.checkBoxOpenCL, 4, 1, 1, 1) self.tabWidgetSettings.addTab(self.tabMaxAcceptableDifficulty, _fromUtf8("")) self.tabNamecoin = QtGui.QWidget() self.tabNamecoin.setObjectName(_fromUtf8("tabNamecoin")) self.gridLayout_8 = QtGui.QGridLayout(self.tabNamecoin) self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_8.addItem(spacerItem9, 2, 0, 1, 1) self.label_16 = QtGui.QLabel(self.tabNamecoin) self.label_16.setWordWrap(True) self.label_16.setObjectName(_fromUtf8("label_16")) self.gridLayout_8.addWidget(self.label_16, 0, 0, 1, 3) self.label_17 = QtGui.QLabel(self.tabNamecoin) self.label_17.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_17.setObjectName(_fromUtf8("label_17")) self.gridLayout_8.addWidget(self.label_17, 2, 1, 1, 1) self.lineEditNamecoinHost = QtGui.QLineEdit(self.tabNamecoin) self.lineEditNamecoinHost.setObjectName( _fromUtf8("lineEditNamecoinHost")) self.gridLayout_8.addWidget(self.lineEditNamecoinHost, 2, 2, 1, 1) spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_8.addItem(spacerItem10, 3, 0, 1, 1) spacerItem11 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_8.addItem(spacerItem11, 4, 0, 1, 1) self.label_18 = QtGui.QLabel(self.tabNamecoin) self.label_18.setEnabled(True) self.label_18.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_18.setObjectName(_fromUtf8("label_18")) self.gridLayout_8.addWidget(self.label_18, 3, 1, 1, 1) self.lineEditNamecoinPort = QtGui.QLineEdit(self.tabNamecoin) self.lineEditNamecoinPort.setObjectName( _fromUtf8("lineEditNamecoinPort")) self.gridLayout_8.addWidget(self.lineEditNamecoinPort, 3, 2, 1, 1) spacerItem12 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_8.addItem(spacerItem12, 8, 1, 1, 1) self.labelNamecoinUser = QtGui.QLabel(self.tabNamecoin) self.labelNamecoinUser.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.labelNamecoinUser.setObjectName(_fromUtf8("labelNamecoinUser")) self.gridLayout_8.addWidget(self.labelNamecoinUser, 4, 1, 1, 1) self.lineEditNamecoinUser = QtGui.QLineEdit(self.tabNamecoin) self.lineEditNamecoinUser.setObjectName( _fromUtf8("lineEditNamecoinUser")) self.gridLayout_8.addWidget(self.lineEditNamecoinUser, 4, 2, 1, 1) spacerItem13 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_8.addItem(spacerItem13, 5, 0, 1, 1) self.labelNamecoinPassword = QtGui.QLabel(self.tabNamecoin) self.labelNamecoinPassword.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.labelNamecoinPassword.setObjectName( _fromUtf8("labelNamecoinPassword")) self.gridLayout_8.addWidget(self.labelNamecoinPassword, 5, 1, 1, 1) self.lineEditNamecoinPassword = QtGui.QLineEdit(self.tabNamecoin) self.lineEditNamecoinPassword.setInputMethodHints( QtCore.Qt.ImhHiddenText | QtCore.Qt.ImhNoAutoUppercase | QtCore.Qt.ImhNoPredictiveText) self.lineEditNamecoinPassword.setEchoMode(QtGui.QLineEdit.Password) self.lineEditNamecoinPassword.setObjectName( _fromUtf8("lineEditNamecoinPassword")) self.gridLayout_8.addWidget(self.lineEditNamecoinPassword, 5, 2, 1, 1) self.labelNamecoinTestResult = QtGui.QLabel(self.tabNamecoin) self.labelNamecoinTestResult.setText(_fromUtf8("")) self.labelNamecoinTestResult.setObjectName( _fromUtf8("labelNamecoinTestResult")) self.gridLayout_8.addWidget(self.labelNamecoinTestResult, 7, 0, 1, 2) self.pushButtonNamecoinTest = QtGui.QPushButton(self.tabNamecoin) self.pushButtonNamecoinTest.setObjectName( _fromUtf8("pushButtonNamecoinTest")) self.gridLayout_8.addWidget(self.pushButtonNamecoinTest, 7, 2, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_21 = QtGui.QLabel(self.tabNamecoin) self.label_21.setObjectName(_fromUtf8("label_21")) self.horizontalLayout.addWidget(self.label_21) self.radioButtonNamecoinNamecoind = QtGui.QRadioButton( self.tabNamecoin) self.radioButtonNamecoinNamecoind.setObjectName( _fromUtf8("radioButtonNamecoinNamecoind")) self.horizontalLayout.addWidget(self.radioButtonNamecoinNamecoind) self.radioButtonNamecoinNmcontrol = QtGui.QRadioButton( self.tabNamecoin) self.radioButtonNamecoinNmcontrol.setObjectName( _fromUtf8("radioButtonNamecoinNmcontrol")) self.horizontalLayout.addWidget(self.radioButtonNamecoinNmcontrol) self.gridLayout_8.addLayout(self.horizontalLayout, 1, 0, 1, 3) self.tabWidgetSettings.addTab(self.tabNamecoin, _fromUtf8("")) self.tabResendsExpire = QtGui.QWidget() self.tabResendsExpire.setObjectName(_fromUtf8("tabResendsExpire")) self.gridLayout_5 = QtGui.QGridLayout(self.tabResendsExpire) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.label_7 = QtGui.QLabel(self.tabResendsExpire) self.label_7.setWordWrap(True) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout_5.addWidget(self.label_7, 0, 0, 1, 3) spacerItem14 = QtGui.QSpacerItem(212, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_5.addItem(spacerItem14, 1, 0, 1, 1) self.widget = QtGui.QWidget(self.tabResendsExpire) self.widget.setMinimumSize(QtCore.QSize(231, 75)) self.widget.setObjectName(_fromUtf8("widget")) self.label_19 = QtGui.QLabel(self.widget) self.label_19.setGeometry(QtCore.QRect(10, 20, 101, 20)) self.label_19.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_19.setObjectName(_fromUtf8("label_19")) self.label_20 = QtGui.QLabel(self.widget) self.label_20.setGeometry(QtCore.QRect(30, 40, 80, 16)) self.label_20.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_20.setObjectName(_fromUtf8("label_20")) self.lineEditDays = QtGui.QLineEdit(self.widget) self.lineEditDays.setGeometry(QtCore.QRect(113, 20, 51, 20)) self.lineEditDays.setObjectName(_fromUtf8("lineEditDays")) self.lineEditMonths = QtGui.QLineEdit(self.widget) self.lineEditMonths.setGeometry(QtCore.QRect(113, 40, 51, 20)) self.lineEditMonths.setObjectName(_fromUtf8("lineEditMonths")) self.label_22 = QtGui.QLabel(self.widget) self.label_22.setGeometry(QtCore.QRect(169, 23, 61, 16)) self.label_22.setObjectName(_fromUtf8("label_22")) self.label_23 = QtGui.QLabel(self.widget) self.label_23.setGeometry(QtCore.QRect(170, 41, 71, 16)) self.label_23.setObjectName(_fromUtf8("label_23")) self.gridLayout_5.addWidget(self.widget, 1, 2, 1, 1) spacerItem15 = QtGui.QSpacerItem(20, 129, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_5.addItem(spacerItem15, 2, 1, 1, 1) self.tabWidgetSettings.addTab(self.tabResendsExpire, _fromUtf8("")) self.gridLayout.addWidget(self.tabWidgetSettings, 0, 0, 1, 1) self.retranslateUi(settingsDialog) self.tabWidgetSettings.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), settingsDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), settingsDialog.reject) QtCore.QObject.connect(self.checkBoxAuthentication, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.lineEditSocksUsername.setEnabled) QtCore.QObject.connect(self.checkBoxAuthentication, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.lineEditSocksPassword.setEnabled) QtCore.QMetaObject.connectSlotsByName(settingsDialog) settingsDialog.setTabOrder(self.tabWidgetSettings, self.checkBoxStartOnLogon) settingsDialog.setTabOrder(self.checkBoxStartOnLogon, self.checkBoxStartInTray) settingsDialog.setTabOrder(self.checkBoxStartInTray, self.checkBoxMinimizeToTray) settingsDialog.setTabOrder(self.checkBoxMinimizeToTray, self.lineEditTCPPort) settingsDialog.setTabOrder(self.lineEditTCPPort, self.comboBoxProxyType) settingsDialog.setTabOrder(self.comboBoxProxyType, self.lineEditSocksHostname) settingsDialog.setTabOrder(self.lineEditSocksHostname, self.lineEditSocksPort) settingsDialog.setTabOrder(self.lineEditSocksPort, self.checkBoxAuthentication) settingsDialog.setTabOrder(self.checkBoxAuthentication, self.lineEditSocksUsername) settingsDialog.setTabOrder(self.lineEditSocksUsername, self.lineEditSocksPassword) settingsDialog.setTabOrder(self.lineEditSocksPassword, self.checkBoxSocksListen) settingsDialog.setTabOrder(self.checkBoxSocksListen, self.buttonBox)
def setupUi(self, frmSysManageAccounts): frmSysManageAccounts.setObjectName(_fromUtf8("frmSysManageAccounts")) frmSysManageAccounts.resize(434, 380) self.gridLayout = QtGui.QGridLayout(frmSysManageAccounts) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.buttonBox = QtGui.QDialogButtonBox(frmSysManageAccounts) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 1) self.tbUserRole = QtGui.QTabWidget(frmSysManageAccounts) self.tbUserRole.setObjectName(_fromUtf8("tbUserRole")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.gridLayout_2 = QtGui.QGridLayout(self.tab) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.lstUsers = QtGui.QListView(self.tab) self.lstUsers.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) self.lstUsers.setAlternatingRowColors(True) self.lstUsers.setSelectionMode(QtGui.QAbstractItemView.SingleSelection) self.lstUsers.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.lstUsers.setObjectName(_fromUtf8("lstUsers")) self.gridLayout_2.addWidget(self.lstUsers, 0, 0, 1, 1) self.btnManageUsers = QtGui.QDialogButtonBox(self.tab) self.btnManageUsers.setOrientation(QtCore.Qt.Vertical) self.btnManageUsers.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok | QtGui.QDialogButtonBox.Save) self.btnManageUsers.setObjectName(_fromUtf8("btnManageUsers")) self.gridLayout_2.addWidget(self.btnManageUsers, 0, 1, 1, 1) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap(_fromUtf8(":/plugins/stdm/images/icons/user.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tbUserRole.addTab(self.tab, icon, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.gridLayout_3 = QtGui.QGridLayout(self.tab_2) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.lstRoles = QtGui.QListView(self.tab_2) self.lstRoles.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) self.lstRoles.setAlternatingRowColors(True) self.lstRoles.setSelectionMode(QtGui.QAbstractItemView.SingleSelection) self.lstRoles.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.lstRoles.setObjectName(_fromUtf8("lstRoles")) self.gridLayout_3.addWidget(self.lstRoles, 0, 0, 1, 1) self.btnManageRoles = QtGui.QDialogButtonBox(self.tab_2) self.btnManageRoles.setOrientation(QtCore.Qt.Vertical) self.btnManageRoles.setStandardButtons(QtGui.QDialogButtonBox.Apply | QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.btnManageRoles.setObjectName(_fromUtf8("btnManageRoles")) self.gridLayout_3.addWidget(self.btnManageRoles, 0, 1, 1, 1) self.groupBox = QtGui.QGroupBox(self.tab_2) self.groupBox.setMinimumSize(QtCore.QSize(0, 30)) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.gridLayout_4 = QtGui.QGridLayout(self.groupBox) self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.lblRoleDescription = QtGui.QLabel(self.groupBox) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.lblRoleDescription.setFont(font) self.lblRoleDescription.setText(_fromUtf8("")) self.lblRoleDescription.setObjectName(_fromUtf8("lblRoleDescription")) self.gridLayout_4.addWidget(self.lblRoleDescription, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox, 1, 0, 1, 1) icon1 = QtGui.QIcon() icon1.addPixmap( QtGui.QPixmap(_fromUtf8(":/plugins/stdm/images/icons/roles.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tbUserRole.addTab(self.tab_2, icon1, _fromUtf8("")) self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName(_fromUtf8("tab_3")) self.gridLayout_5 = QtGui.QGridLayout(self.tab_3) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.label = QtGui.QLabel(self.tab_3) self.label.setWordWrap(True) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_5.addWidget(self.label, 0, 0, 1, 2) self.lstMappingRoles = QtGui.QListView(self.tab_3) self.lstMappingRoles.setEditTriggers( QtGui.QAbstractItemView.NoEditTriggers) self.lstMappingRoles.setAlternatingRowColors(True) self.lstMappingRoles.setSelectionBehavior( QtGui.QAbstractItemView.SelectRows) self.lstMappingRoles.setObjectName(_fromUtf8("lstMappingRoles")) self.gridLayout_5.addWidget(self.lstMappingRoles, 1, 0, 1, 1) self.lstMappingUsers = QtGui.QListView(self.tab_3) self.lstMappingUsers.setEditTriggers( QtGui.QAbstractItemView.NoEditTriggers) self.lstMappingUsers.setAlternatingRowColors(True) self.lstMappingUsers.setSelectionBehavior( QtGui.QAbstractItemView.SelectRows) self.lstMappingUsers.setObjectName(_fromUtf8("lstMappingUsers")) self.gridLayout_5.addWidget(self.lstMappingUsers, 1, 1, 1, 1) icon2 = QtGui.QIcon() icon2.addPixmap( QtGui.QPixmap( _fromUtf8(":/plugins/stdm/images/icons/user_mapping.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tbUserRole.addTab(self.tab_3, icon2, _fromUtf8("")) self.gridLayout.addWidget(self.tbUserRole, 1, 0, 1, 1) self.retranslateUi(frmSysManageAccounts) self.tbUserRole.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), frmSysManageAccounts.close) QtCore.QMetaObject.connectSlotsByName(frmSysManageAccounts)
def setupUi(self, ReportUnderageMedicalExaminationSetup): ReportUnderageMedicalExaminationSetup.setObjectName( _fromUtf8("ReportUnderageMedicalExaminationSetup")) ReportUnderageMedicalExaminationSetup.setWindowModality( QtCore.Qt.ApplicationModal) ReportUnderageMedicalExaminationSetup.resize(376, 200) ReportUnderageMedicalExaminationSetup.setSizeGripEnabled(True) self.gridLayout = QtGui.QGridLayout( ReportUnderageMedicalExaminationSetup) self.gridLayout.setMargin(4) self.gridLayout.setSpacing(4) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.lblSpeciality = QtGui.QLabel( ReportUnderageMedicalExaminationSetup) self.lblSpeciality.setObjectName(_fromUtf8("lblSpeciality")) self.gridLayout.addWidget(self.lblSpeciality, 3, 0, 1, 1) self.cmbEventType = CRBComboBox(ReportUnderageMedicalExaminationSetup) self.cmbEventType.setObjectName(_fromUtf8("cmbEventType")) self.gridLayout.addWidget(self.cmbEventType, 2, 1, 1, 2) self.edtBegDate = CDateEdit(ReportUnderageMedicalExaminationSetup) self.edtBegDate.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.edtBegDate.sizePolicy().hasHeightForWidth()) self.edtBegDate.setSizePolicy(sizePolicy) self.edtBegDate.setCalendarPopup(True) self.edtBegDate.setObjectName(_fromUtf8("edtBegDate")) self.gridLayout.addWidget(self.edtBegDate, 0, 1, 1, 1) spacerItem = QtGui.QSpacerItem(19, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 2, 1, 1) self.buttonBox = QtGui.QDialogButtonBox( ReportUnderageMedicalExaminationSetup) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 9, 0, 1, 3) spacerItem1 = QtGui.QSpacerItem(21, 21, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 7, 0, 1, 1) self.lblEventType = QtGui.QLabel(ReportUnderageMedicalExaminationSetup) self.lblEventType.setObjectName(_fromUtf8("lblEventType")) self.gridLayout.addWidget(self.lblEventType, 2, 0, 1, 1) self.edtEndDate = CDateEdit(ReportUnderageMedicalExaminationSetup) self.edtEndDate.setEnabled(True) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.edtEndDate.sizePolicy().hasHeightForWidth()) self.edtEndDate.setSizePolicy(sizePolicy) self.edtEndDate.setCalendarPopup(True) self.edtEndDate.setObjectName(_fromUtf8("edtEndDate")) self.gridLayout.addWidget(self.edtEndDate, 1, 1, 1, 1) self.lblBegDae = QtGui.QLabel(ReportUnderageMedicalExaminationSetup) self.lblBegDae.setObjectName(_fromUtf8("lblBegDae")) self.gridLayout.addWidget(self.lblBegDae, 0, 0, 1, 1) self.lblEndDate = QtGui.QLabel(ReportUnderageMedicalExaminationSetup) self.lblEndDate.setObjectName(_fromUtf8("lblEndDate")) self.gridLayout.addWidget(self.lblEndDate, 1, 0, 1, 1) self.chkAttendant = QtGui.QCheckBox( ReportUnderageMedicalExaminationSetup) self.chkAttendant.setObjectName(_fromUtf8("chkAttendant")) self.gridLayout.addWidget(self.chkAttendant, 4, 0, 1, 3) self.cmbOrgStructure = COrgStructureComboBox( ReportUnderageMedicalExaminationSetup) self.cmbOrgStructure.setObjectName(_fromUtf8("cmbOrgStructure")) self.gridLayout.addWidget(self.cmbOrgStructure, 5, 1, 1, 2) self.lblSubdivision = QtGui.QLabel( ReportUnderageMedicalExaminationSetup) self.lblSubdivision.setObjectName(_fromUtf8("lblSubdivision")) self.gridLayout.addWidget(self.lblSubdivision, 5, 0, 1, 1) self.lblOrgStrucutreAttachType = QtGui.QLabel( ReportUnderageMedicalExaminationSetup) self.lblOrgStrucutreAttachType.setObjectName( _fromUtf8("lblOrgStrucutreAttachType")) self.gridLayout.addWidget(self.lblOrgStrucutreAttachType, 6, 0, 1, 1) self.cmbOrgStructureAttachType = COrgStructureComboBox( ReportUnderageMedicalExaminationSetup) self.cmbOrgStructureAttachType.setObjectName( _fromUtf8("cmbOrgStructureAttachType")) self.gridLayout.addWidget(self.cmbOrgStructureAttachType, 6, 1, 1, 2) self.cmbSpeciality = CRBComboBox(ReportUnderageMedicalExaminationSetup) self.cmbSpeciality.setObjectName(_fromUtf8("cmbSpeciality")) self.gridLayout.addWidget(self.cmbSpeciality, 3, 1, 1, 2) self.lblSpeciality.setBuddy(self.cmbEventType) self.lblEventType.setBuddy(self.cmbEventType) self.lblBegDae.setBuddy(self.edtBegDate) self.lblEndDate.setBuddy(self.edtEndDate) self.retranslateUi(ReportUnderageMedicalExaminationSetup) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), ReportUnderageMedicalExaminationSetup.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), ReportUnderageMedicalExaminationSetup.reject) QtCore.QMetaObject.connectSlotsByName( ReportUnderageMedicalExaminationSetup) ReportUnderageMedicalExaminationSetup.setTabOrder( self.edtBegDate, self.edtEndDate) ReportUnderageMedicalExaminationSetup.setTabOrder( self.edtEndDate, self.cmbEventType) ReportUnderageMedicalExaminationSetup.setTabOrder( self.cmbEventType, self.chkAttendant) ReportUnderageMedicalExaminationSetup.setTabOrder( self.chkAttendant, self.buttonBox)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(612, 377) self.verticalLayout = QtGui.QVBoxLayout(Dialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_periode = QtGui.QLabel(Dialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_periode.setFont(font) self.label_periode.setObjectName(_fromUtf8("label_periode")) self.horizontalLayout_4.addWidget(self.label_periode) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem) self.pushButton_historique = QtGui.QPushButton(Dialog) self.pushButton_historique.setObjectName( _fromUtf8("pushButton_historique")) self.horizontalLayout_4.addWidget(self.pushButton_historique) self.verticalLayout.addLayout(self.horizontalLayout_4) spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) self.verticalLayout.addItem(spacerItem1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.textEdit_explication = QtGui.QTextEdit(Dialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.textEdit_explication.sizePolicy().hasHeightForWidth()) self.textEdit_explication.setSizePolicy(sizePolicy) self.textEdit_explication.setMinimumSize(QtCore.QSize(500, 100)) self.textEdit_explication.setMaximumSize(QtCore.QSize(500, 100)) self.textEdit_explication.setObjectName( _fromUtf8("textEdit_explication")) self.horizontalLayout.addWidget(self.textEdit_explication) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout) spacerItem4 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) self.verticalLayout.addItem(spacerItem4) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.tableView = QtGui.QTableView(Dialog) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tableView.sizePolicy().hasHeightForWidth()) self.tableView.setSizePolicy(sizePolicy) self.tableView.setMinimumSize(QtCore.QSize(500, 100)) self.tableView.setMaximumSize(QtCore.QSize(500, 100)) self.tableView.setObjectName(_fromUtf8("tableView")) self.horizontalLayout_2.addWidget(self.tableView) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem6) self.verticalLayout.addLayout(self.horizontalLayout_2) spacerItem7 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) self.verticalLayout.addItem(spacerItem7) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, preferences): preferences.setObjectName("preferences") preferences.resize( QtCore.QSize(QtCore.QRect(0, 0, 400, 300).size()).expandedTo( preferences.minimumSizeHint())) self.hboxlayout = QtGui.QHBoxLayout(preferences) self.hboxlayout.setObjectName("hboxlayout") self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName("vboxlayout") self.tabWidget = QtGui.QTabWidget(preferences) self.tabWidget.setObjectName("tabWidget") self.tab = QtGui.QWidget() self.tab.setObjectName("tab") self.hboxlayout1 = QtGui.QHBoxLayout(self.tab) self.hboxlayout1.setObjectName("hboxlayout1") self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName("gridlayout") self.label = QtGui.QLabel(self.tab) self.label.setObjectName("label") self.gridlayout.addWidget(self.label, 0, 0, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridlayout.addItem(spacerItem, 0, 1, 1, 1) self.lineEdit = QtGui.QLineEdit(self.tab) self.lineEdit.setObjectName("lineEdit") self.gridlayout.addWidget(self.lineEdit, 0, 2, 1, 1) self.label_2 = QtGui.QLabel(self.tab) self.label_2.setObjectName("label_2") self.gridlayout.addWidget(self.label_2, 1, 0, 1, 1) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridlayout.addItem(spacerItem1, 1, 1, 1, 1) self.lineEdit_2 = QtGui.QLineEdit(self.tab) self.lineEdit_2.setObjectName("lineEdit_2") self.gridlayout.addWidget(self.lineEdit_2, 1, 2, 1, 1) self.hboxlayout1.addLayout(self.gridlayout) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName("tab_2") self.editorFontButton = QtGui.QPushButton(self.tab_2) self.editorFontButton.setGeometry(QtCore.QRect(10, 20, 151, 29)) self.editorFontButton.setObjectName("editorFontButton") self.tabWidget.addTab(self.tab_2, "") self.vboxlayout.addWidget(self.tabWidget) self.buttonBox = QtGui.QDialogButtonBox(preferences) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.NoButton | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.vboxlayout.addWidget(self.buttonBox) self.hboxlayout.addLayout(self.vboxlayout) self.retranslateUi(preferences) self.tabWidget.setCurrentIndex(1) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), preferences.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), preferences.reject) QtCore.QMetaObject.connectSlotsByName(preferences)