Пример #1
0
    def setupUi(self, SendMailDialog):
        SendMailDialog.setObjectName(_fromUtf8("SendMailDialog"))
        SendMailDialog.setWindowModality(QtCore.Qt.ApplicationModal)
        SendMailDialog.resize(451, 307)
        SendMailDialog.setSizeGripEnabled(True)
        SendMailDialog.setModal(True)
        self.gridlayout = QtGui.QGridLayout(SendMailDialog)
        self.gridlayout.setMargin(4)
        self.gridlayout.setSpacing(4)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.lblRecipient = QtGui.QLabel(SendMailDialog)
        self.lblRecipient.setObjectName(_fromUtf8("lblRecipient"))
        self.gridlayout.addWidget(self.lblRecipient, 0, 0, 1, 1)
        self.edtRecipient = QtGui.QLineEdit(SendMailDialog)
        self.edtRecipient.setObjectName(_fromUtf8("edtRecipient"))
        self.gridlayout.addWidget(self.edtRecipient, 0, 1, 1, 1)
        self.lblSubject = QtGui.QLabel(SendMailDialog)
        self.lblSubject.setObjectName(_fromUtf8("lblSubject"))
        self.gridlayout.addWidget(self.lblSubject, 1, 0, 1, 1)
        self.edtSubject = QtGui.QLineEdit(SendMailDialog)
        self.edtSubject.setObjectName(_fromUtf8("edtSubject"))
        self.gridlayout.addWidget(self.edtSubject, 1, 1, 1, 1)
        self.lblText = QtGui.QLabel(SendMailDialog)
        self.lblText.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignTop)
        self.lblText.setObjectName(_fromUtf8("lblText"))
        self.gridlayout.addWidget(self.lblText, 2, 0, 1, 1)
        self.edtText = QtGui.QTextEdit(SendMailDialog)
        self.edtText.setObjectName(_fromUtf8("edtText"))
        self.gridlayout.addWidget(self.edtText, 2, 1, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(SendMailDialog)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.NoButton
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridlayout.addWidget(self.buttonBox, 4, 0, 1, 2)
        self.label = QtGui.QLabel(SendMailDialog)
        self.label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                | QtCore.Qt.AlignTop)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridlayout.addWidget(self.label, 3, 0, 1, 1)
        self.tblAttach = CTableView(SendMailDialog)
        self.tblAttach.setObjectName(_fromUtf8("tblAttach"))
        self.gridlayout.addWidget(self.tblAttach, 3, 1, 1, 1)
        self.lblRecipient.setBuddy(self.edtRecipient)
        self.lblSubject.setBuddy(self.edtSubject)
        self.lblText.setBuddy(self.edtText)

        self.retranslateUi(SendMailDialog)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               SendMailDialog.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               SendMailDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(SendMailDialog)
        SendMailDialog.setTabOrder(self.edtRecipient, self.edtSubject)
        SendMailDialog.setTabOrder(self.edtSubject, self.edtText)
        SendMailDialog.setTabOrder(self.edtText, self.buttonBox)
Пример #2
0
    def setupUi(self, ItemsListDialog):
        ItemsListDialog.setObjectName(_fromUtf8("ItemsListDialog"))
        ItemsListDialog.setWindowModality(QtCore.Qt.ApplicationModal)
        ItemsListDialog.resize(689, 450)
        ItemsListDialog.setSizeGripEnabled(True)
        ItemsListDialog.setModal(True)
        self.gridLayout = QtGui.QGridLayout(ItemsListDialog)
        self.gridLayout.setMargin(4)
        self.gridLayout.setSpacing(4)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.tblItems = CTableView(ItemsListDialog)
        self.tblItems.setTabKeyNavigation(False)
        self.tblItems.setAlternatingRowColors(True)
        self.tblItems.setObjectName(_fromUtf8("tblItems"))
        self.gridLayout.addWidget(self.tblItems, 0, 0, 1, 2)
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.label = QtGui.QLabel(ItemsListDialog)
        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.gridLayout.addLayout(self.hboxlayout, 1, 0, 1, 1)
        self.buttonBox = QtGui.QDialogButtonBox(ItemsListDialog)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.gridLayout.addWidget(self.buttonBox, 1, 1, 1, 1)
        self.statusBar = QtGui.QStatusBar(ItemsListDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.statusBar.sizePolicy().hasHeightForWidth())
        self.statusBar.setSizePolicy(sizePolicy)
        self.statusBar.setSizeGripEnabled(False)
        self.statusBar.setObjectName(_fromUtf8("statusBar"))
        self.gridLayout.addWidget(self.statusBar, 2, 0, 1, 2)

        self.retranslateUi(ItemsListDialog)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               ItemsListDialog.close)
        QtCore.QMetaObject.connectSlotsByName(ItemsListDialog)
Пример #3
0
    def setupUi(self, DbfViewDialog):
        DbfViewDialog.setObjectName(_fromUtf8("DbfViewDialog"))
        DbfViewDialog.setWindowModality(QtCore.Qt.ApplicationModal)
        DbfViewDialog.resize(593, 450)
        DbfViewDialog.setSizeGripEnabled(True)
        DbfViewDialog.setModal(True)
        self.gridlayout = QtGui.QGridLayout(DbfViewDialog)
        self.gridlayout.setMargin(4)
        self.gridlayout.setSpacing(4)
        self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
        self.tblDbf = CTableView(DbfViewDialog)
        self.tblDbf.setWhatsThis(_fromUtf8(""))
        self.tblDbf.setTabKeyNavigation(False)
        self.tblDbf.setAlternatingRowColors(True)
        self.tblDbf.setObjectName(_fromUtf8("tblDbf"))
        self.gridlayout.addWidget(self.tblDbf, 0, 0, 1, 1)
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(4)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.statusBar = QtGui.QStatusBar(DbfViewDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.statusBar.sizePolicy().hasHeightForWidth())
        self.statusBar.setSizePolicy(sizePolicy)
        self.statusBar.setToolTip(_fromUtf8(""))
        self.statusBar.setWhatsThis(_fromUtf8(""))
        self.statusBar.setSizeGripEnabled(False)
        self.statusBar.setObjectName(_fromUtf8("statusBar"))
        self.hboxlayout.addWidget(self.statusBar)
        self.btnCancel = QtGui.QPushButton(DbfViewDialog)
        self.btnCancel.setObjectName(_fromUtf8("btnCancel"))
        self.hboxlayout.addWidget(self.btnCancel)
        self.gridlayout.addLayout(self.hboxlayout, 1, 0, 1, 1)

        self.retranslateUi(DbfViewDialog)
        QtCore.QObject.connect(self.btnCancel, QtCore.SIGNAL(_fromUtf8("clicked()")), DbfViewDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(DbfViewDialog)
        DbfViewDialog.setTabOrder(self.tblDbf, self.btnCancel)