Ejemplo n.º 1
0
    def setupUi(self, frmFormats):
        frmFormats.setObjectName("frmFormats")
        frmFormats.setWindowModality(QtCore.Qt.WindowModal)
        frmFormats.resize(658, 362)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/caloriestracker/books.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        frmFormats.setWindowIcon(icon)
        frmFormats.setModal(True)
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout(frmFormats)
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.lbl = QtWidgets.QLabel(frmFormats)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lbl.setFont(font)
        self.lbl.setStyleSheet("color: rgb(0, 128, 0);")
        self.lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl.setObjectName("lbl")
        self.verticalLayout_3.addWidget(self.lbl)
        self.tblFormats = mqtwObjects(frmFormats)
        self.tblFormats.setObjectName("tblFormats")
        self.verticalLayout_3.addWidget(self.tblFormats)
        self.bb = QtWidgets.QDialogButtonBox(frmFormats)
        self.bb.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                   | QtWidgets.QDialogButtonBox.Ok)
        self.bb.setObjectName("bb")
        self.verticalLayout_3.addWidget(self.bb)
        self.horizontalLayout_16.addLayout(self.verticalLayout_3)
        self.actionFormatNew = QtWidgets.QAction(frmFormats)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/caloriestracker/add.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFormatNew.setIcon(icon1)
        self.actionFormatNew.setObjectName("actionFormatNew")
        self.actionFormatDelete = QtWidgets.QAction(frmFormats)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/caloriestracker/list-remove.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFormatDelete.setIcon(icon2)
        self.actionFormatDelete.setObjectName("actionFormatDelete")
        self.actionFormatEdit = QtWidgets.QAction(frmFormats)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/caloriestracker/document-edit.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFormatEdit.setIcon(icon3)
        self.actionFormatEdit.setObjectName("actionFormatEdit")

        self.retranslateUi(frmFormats)
        QtCore.QMetaObject.connectSlotsByName(frmFormats)
Ejemplo n.º 2
0
    def setupUi(self, wdgUsers):
        wdgUsers.setObjectName("wdgUsers")
        wdgUsers.resize(1012, 669)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(wdgUsers)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.lbl = QtWidgets.QLabel(wdgUsers)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lbl.setFont(font)
        self.lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl.setObjectName("lbl")
        self.verticalLayout_3.addWidget(self.lbl)
        self.tblUsers = mqtwObjects(wdgUsers)
        self.tblUsers.setObjectName("tblUsers")
        self.verticalLayout_3.addWidget(self.tblUsers)
        self.lblFound = QtWidgets.QLabel(wdgUsers)
        self.lblFound.setObjectName("lblFound")
        self.verticalLayout_3.addWidget(self.lblFound)
        self.horizontalLayout_2.addLayout(self.verticalLayout_3)
        self.actionUserNew = QtWidgets.QAction(wdgUsers)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/caloriestracker/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionUserNew.setIcon(icon)
        self.actionUserNew.setObjectName("actionUserNew")
        self.actionUserDelete = QtWidgets.QAction(wdgUsers)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/caloriestracker/list-remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionUserDelete.setIcon(icon1)
        self.actionUserDelete.setObjectName("actionUserDelete")
        self.actionUserEdit = QtWidgets.QAction(wdgUsers)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/caloriestracker/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionUserEdit.setIcon(icon2)
        self.actionUserEdit.setObjectName("actionUserEdit")

        self.retranslateUi(wdgUsers)
        QtCore.QMetaObject.connectSlotsByName(wdgUsers)
Ejemplo n.º 3
0
 def on_actionCompanyProducts_triggered(self):
     d=QDialog(self)
     d.resize(self.mem.settings.value("wdgCompanies/frmCompanyProducts", QSize(800, 600)))
     title=self.tr("Products of {}").format(self.companies.selected.name)
     d.setWindowTitle(title)
     lay = QVBoxLayout(d)
     font = QFont()
     font.setPointSize(14)
     font.setBold(True)
     font.setWeight(75)
     lbl=QLabel(d)
     lbl.setText(title)
     lbl.setFont(font)
     lbl.setAlignment(Qt.AlignCenter)
     lay.addWidget(lbl)
     companyproducts=self.mem.data.products.ProductAllManager_of_same_company(self.companies.selected)
     table=mqtwObjects(d)
     table.setSettings(self.mem.settings, "wdgCompanies", "tblCompanyProducts")
     companyproducts.qtablewidget(table)
     lay.addWidget(table)
     d.exec_()
     self.mem.settings.setValue("wdgCompanies/frmCompanyProducts", d.size())
    def setupUi(self, wdgProductsDataMove):
        wdgProductsDataMove.setObjectName("wdgProductsDataMove")
        wdgProductsDataMove.setWindowModality(QtCore.Qt.WindowModal)
        wdgProductsDataMove.resize(634, 358)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(wdgProductsDataMove)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.lblTitle = QtWidgets.QLabel(wdgProductsDataMove)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lblTitle.setFont(font)
        self.lblTitle.setText("")
        self.lblTitle.setAlignment(QtCore.Qt.AlignCenter)
        self.lblTitle.setObjectName("lblTitle")
        self.verticalLayout.addWidget(self.lblTitle)
        self.lblExplanation = QtWidgets.QLabel(wdgProductsDataMove)
        self.lblExplanation.setAlignment(QtCore.Qt.AlignCenter)
        self.lblExplanation.setWordWrap(True)
        self.lblExplanation.setObjectName("lblExplanation")
        self.verticalLayout.addWidget(self.lblExplanation)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.wdg = mqtwObjects(wdgProductsDataMove)
        self.wdg.setObjectName("wdg")
        self.horizontalLayout.addWidget(self.wdg)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.bb = QtWidgets.QDialogButtonBox(wdgProductsDataMove)
        self.bb.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                   | QtWidgets.QDialogButtonBox.Ok)
        self.bb.setObjectName("bb")
        self.verticalLayout.addWidget(self.bb)
        self.horizontalLayout_2.addLayout(self.verticalLayout)

        self.retranslateUi(wdgProductsDataMove)
        QtCore.QMetaObject.connectSlotsByName(wdgProductsDataMove)
Ejemplo n.º 5
0
    def setupUi(self, wdgMeals):
        wdgMeals.setObjectName("wdgMeals")
        wdgMeals.resize(1012, 669)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(wdgMeals)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.lbl = QtWidgets.QLabel(wdgMeals)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lbl.setFont(font)
        self.lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl.setObjectName("lbl")
        self.verticalLayout_2.addWidget(self.lbl)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.calendar = QtWidgets.QCalendarWidget(wdgMeals)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.calendar.sizePolicy().hasHeightForWidth())
        self.calendar.setSizePolicy(sizePolicy)
        self.calendar.setVerticalHeaderFormat(QtWidgets.QCalendarWidget.NoVerticalHeader)
        self.calendar.setObjectName("calendar")
        self.horizontalLayout.addWidget(self.calendar)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.tab = QtWidgets.QTabWidget(wdgMeals)
        self.tab.setObjectName("tab")
        self.tab_8 = QtWidgets.QWidget()
        self.tab_8.setObjectName("tab_8")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab_8)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.tblMeals = mqtwObjects(self.tab_8)
        self.tblMeals.setObjectName("tblMeals")
        self.verticalLayout.addWidget(self.tblMeals)
        self.lblFound = QtWidgets.QLabel(self.tab_8)
        self.lblFound.setObjectName("lblFound")
        self.verticalLayout.addWidget(self.lblFound)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/caloriestracker/meals.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tab.addTab(self.tab_8, icon, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_2)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.wdgPieMeals = VCPie(self.tab_2)
        self.wdgPieMeals.setObjectName("wdgPieMeals")
        self.horizontalLayout_5.addWidget(self.wdgPieMeals)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/caloriestracker/pie.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tab.addTab(self.tab_2, icon1, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab_3)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.wdgPieFoodtypes = VCPie(self.tab_3)
        self.wdgPieFoodtypes.setObjectName("wdgPieFoodtypes")
        self.horizontalLayout_4.addWidget(self.wdgPieFoodtypes)
        self.tab.addTab(self.tab_3, icon1, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.tab_4)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.wdgTS = VCTemporalSeries(self.tab_4)
        self.wdgTS.setObjectName("wdgTS")
        self.horizontalLayout_6.addWidget(self.wdgTS)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/caloriestracker/investment.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tab.addTab(self.tab_4, icon2, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.tab_5)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.wdgPieFulfillment = VCPie(self.tab_5)
        self.wdgPieFulfillment.setObjectName("wdgPieFulfillment")
        self.horizontalLayout_7.addWidget(self.wdgPieFulfillment)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/caloriestracker/button_ok.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tab.addTab(self.tab_5, icon3, "")
        self.verticalLayout_2.addWidget(self.tab)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.actionMealNew = QtWidgets.QAction(wdgMeals)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/caloriestracker/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMealNew.setIcon(icon4)
        self.actionMealNew.setObjectName("actionMealNew")
        self.actionMealDelete = QtWidgets.QAction(wdgMeals)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/caloriestracker/list-remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMealDelete.setIcon(icon5)
        self.actionMealDelete.setObjectName("actionMealDelete")
        self.actionMealEdit = QtWidgets.QAction(wdgMeals)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/caloriestracker/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMealEdit.setIcon(icon6)
        self.actionMealEdit.setObjectName("actionMealEdit")
        self.actionProductEdit = QtWidgets.QAction(wdgMeals)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/caloriestracker/books.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductEdit.setIcon(icon7)
        self.actionProductEdit.setObjectName("actionProductEdit")
        self.actionMealDeleteDay = QtWidgets.QAction(wdgMeals)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/caloriestracker/button_cancel.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMealDeleteDay.setIcon(icon8)
        self.actionMealDeleteDay.setObjectName("actionMealDeleteDay")
        self.actionMealCopy = QtWidgets.QAction(wdgMeals)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/caloriestracker/copy.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMealCopy.setIcon(icon9)
        self.actionMealCopy.setObjectName("actionMealCopy")
        self.actionMealPaste = QtWidgets.QAction(wdgMeals)
        icon10 = QtGui.QIcon()
        icon10.addPixmap(QtGui.QPixmap(":/caloriestracker/paste.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionMealPaste.setIcon(icon10)
        self.actionMealPaste.setObjectName("actionMealPaste")

        self.retranslateUi(wdgMeals)
        self.tab.setCurrentIndex(2)
        QtCore.QMetaObject.connectSlotsByName(wdgMeals)
Ejemplo n.º 6
0
    def setupUi(self, wdgProducts):
        wdgProducts.setObjectName("wdgProducts")
        wdgProducts.resize(866, 459)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(wdgProducts)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.lbl = QtWidgets.QLabel(wdgProducts)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lbl.setFont(font)
        self.lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl.setObjectName("lbl")
        self.verticalLayout_3.addWidget(self.lbl)
        self.groupBox = QtWidgets.QGroupBox(wdgProducts)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.txt = QtWidgets.QLineEdit(self.groupBox)
        self.txt.setClearButtonEnabled(True)
        self.txt.setObjectName("txt")
        self.horizontalLayout.addWidget(self.txt)
        self.cmb = QtWidgets.QComboBox(self.groupBox)
        self.cmb.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
        self.cmb.setObjectName("cmb")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/caloriestracker/star.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cmb.addItem(icon, "")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/caloriestracker/meal.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cmb.addItem(icon1, "")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/caloriestracker/cooking.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cmb.addItem(icon2, "")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/caloriestracker/books.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cmb.addItem(icon3, "")
        self.horizontalLayout.addWidget(self.cmb)
        self.cmd = QtWidgets.QToolButton(self.groupBox)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/caloriestracker/search.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cmd.setIcon(icon4)
        self.cmd.setObjectName("cmd")
        self.horizontalLayout.addWidget(self.cmd)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_3.addWidget(self.groupBox)
        self.tblProducts = mqtwObjects(wdgProducts)
        self.tblProducts.setObjectName("tblProducts")
        self.verticalLayout_3.addWidget(self.tblProducts)
        self.lblFound = QtWidgets.QLabel(wdgProducts)
        self.lblFound.setObjectName("lblFound")
        self.verticalLayout_3.addWidget(self.lblFound)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.actionProductNew = QtWidgets.QAction(wdgProducts)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/caloriestracker/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductNew.setIcon(icon5)
        self.actionProductNew.setObjectName("actionProductNew")
        self.actionProductDelete = QtWidgets.QAction(wdgProducts)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/caloriestracker/list-remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductDelete.setIcon(icon6)
        self.actionProductDelete.setObjectName("actionProductDelete")
        self.actionProductEdit = QtWidgets.QAction(wdgProducts)
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap(":/caloriestracker/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductEdit.setIcon(icon7)
        self.actionProductEdit.setObjectName("actionProductEdit")
        self.actionFormats = QtWidgets.QAction(wdgProducts)
        icon8 = QtGui.QIcon()
        icon8.addPixmap(QtGui.QPixmap(":/caloriestracker/cube.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionFormats.setIcon(icon8)
        self.actionFormats.setObjectName("actionFormats")
        self.actionProductPersonalMerge = QtWidgets.QAction(wdgProducts)
        icon9 = QtGui.QIcon()
        icon9.addPixmap(QtGui.QPixmap(":/caloriestracker/compare.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductPersonalMerge.setIcon(icon9)
        self.actionProductPersonalMerge.setObjectName("actionProductPersonalMerge")

        self.retranslateUi(wdgProducts)
        self.cmb.setCurrentIndex(-1)
        QtCore.QMetaObject.connectSlotsByName(wdgProducts)
        wdgProducts.setTabOrder(self.txt, self.cmd)
Ejemplo n.º 7
0
    def setupUi(self, wdgBiometrics):
        wdgBiometrics.setObjectName("wdgBiometrics")
        wdgBiometrics.resize(1012, 669)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(wdgBiometrics)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.lbl = QtWidgets.QLabel(wdgBiometrics)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lbl.setFont(font)
        self.lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl.setObjectName("lbl")
        self.verticalLayout_6.addWidget(self.lbl)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.groupBox = QtWidgets.QGroupBox(wdgBiometrics)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.rad20days = QtWidgets.QRadioButton(self.groupBox)
        self.rad20days.setChecked(True)
        self.rad20days.setAutoExclusive(True)
        self.rad20days.setObjectName("rad20days")
        self.verticalLayout.addWidget(self.rad20days)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.radMonth = QtWidgets.QRadioButton(self.groupBox)
        self.radMonth.setObjectName("radMonth")
        self.horizontalLayout.addWidget(self.radMonth)
        self.wdgYM = wdgYearMonth(self.groupBox)
        self.wdgYM.setObjectName("wdgYM")
        self.horizontalLayout.addWidget(self.wdgYM)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_3.addLayout(self.verticalLayout)
        self.verticalLayout_4.addWidget(self.groupBox)
        self.tblBiometrics = mqtwObjects(wdgBiometrics)
        self.tblBiometrics.setObjectName("tblBiometrics")
        self.verticalLayout_4.addWidget(self.tblBiometrics)
        self.lblFound = QtWidgets.QLabel(wdgBiometrics)
        self.lblFound.setObjectName("lblFound")
        self.verticalLayout_4.addWidget(self.lblFound)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.line = QtWidgets.QFrame(wdgBiometrics)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_4.addWidget(self.line)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.layTab = QtWidgets.QVBoxLayout()
        self.layTab.setObjectName("layTab")
        self.tab = QtWidgets.QTabWidget(wdgBiometrics)
        self.tab.setObjectName("tab")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_4)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.wdgTSWeight = VCWeight(self.tab_4)
        self.wdgTSWeight.setObjectName("wdgTSWeight")
        self.verticalLayout_2.addWidget(self.wdgTSWeight)
        self.tab.addTab(self.tab_4, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.tab_2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.wdgTSHeight = VCHeight(self.tab_2)
        self.wdgTSHeight.setObjectName("wdgTSHeight")
        self.horizontalLayout_2.addWidget(self.wdgTSHeight)
        self.tab.addTab(self.tab_2, "")
        self.layTab.addWidget(self.tab)
        self.verticalLayout_5.addLayout(self.layTab)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.label = QtWidgets.QLabel(wdgBiometrics)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label)
        self.cmbChart = QtWidgets.QComboBox(wdgBiometrics)
        self.cmbChart.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
        self.cmbChart.setObjectName("cmbChart")
        self.cmbChart.addItem("")
        self.cmbChart.addItem("")
        self.cmbChart.addItem("")
        self.horizontalLayout_3.addWidget(self.cmbChart)
        self.verticalLayout_5.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4.addLayout(self.verticalLayout_5)
        self.verticalLayout_6.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5.addLayout(self.verticalLayout_6)
        self.actionBiometricsNew = QtWidgets.QAction(wdgBiometrics)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/caloriestracker/add.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionBiometricsNew.setIcon(icon)
        self.actionBiometricsNew.setObjectName("actionBiometricsNew")
        self.actionBiometricsDelete = QtWidgets.QAction(wdgBiometrics)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/caloriestracker/list-remove.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionBiometricsDelete.setIcon(icon1)
        self.actionBiometricsDelete.setObjectName("actionBiometricsDelete")
        self.actionBiometricsEdit = QtWidgets.QAction(wdgBiometrics)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/caloriestracker/document-edit.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionBiometricsEdit.setIcon(icon2)
        self.actionBiometricsEdit.setObjectName("actionBiometricsEdit")

        self.retranslateUi(wdgBiometrics)
        self.tab.setCurrentIndex(0)
        self.cmbChart.setCurrentIndex(-1)
        QtCore.QMetaObject.connectSlotsByName(wdgBiometrics)
Ejemplo n.º 8
0
    def setupUi(self, frmProductsElaboratedAdd):
        frmProductsElaboratedAdd.setObjectName("frmProductsElaboratedAdd")
        frmProductsElaboratedAdd.setWindowModality(QtCore.Qt.WindowModal)
        frmProductsElaboratedAdd.resize(600, 577)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/caloriestracker/books.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        frmProductsElaboratedAdd.setWindowIcon(icon)
        frmProductsElaboratedAdd.setModal(True)
        self.horizontalLayout = QtWidgets.QHBoxLayout(frmProductsElaboratedAdd)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.lbl = QtWidgets.QLabel(frmProductsElaboratedAdd)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lbl.setFont(font)
        self.lbl.setStyleSheet("color: rgb(0, 128, 0);")
        self.lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl.setObjectName("lbl")
        self.verticalLayout_3.addWidget(self.lbl)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.label_15 = QtWidgets.QLabel(frmProductsElaboratedAdd)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_14.addWidget(self.label_15)
        self.txtName = QtWidgets.QLineEdit(frmProductsElaboratedAdd)
        self.txtName.setObjectName("txtName")
        self.horizontalLayout_14.addWidget(self.txtName)
        self.verticalLayout_3.addLayout(self.horizontalLayout_14)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_3 = QtWidgets.QLabel(frmProductsElaboratedAdd)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_4.addWidget(self.label_3)
        self.cmbFoodtypes = QtWidgets.QComboBox(frmProductsElaboratedAdd)
        self.cmbFoodtypes.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
        self.cmbFoodtypes.setObjectName("cmbFoodtypes")
        self.horizontalLayout_4.addWidget(self.cmbFoodtypes)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
        self.label_16 = QtWidgets.QLabel(frmProductsElaboratedAdd)
        self.label_16.setObjectName("label_16")
        self.horizontalLayout_17.addWidget(self.label_16)
        self.spnFinalAmount = myQDoubleSpinBox(frmProductsElaboratedAdd)
        self.spnFinalAmount.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.spnFinalAmount.setDecimals(1)
        self.spnFinalAmount.setMinimum(1.0)
        self.spnFinalAmount.setMaximum(1000000.0)
        self.spnFinalAmount.setSingleStep(100.0)
        self.spnFinalAmount.setProperty("value", 1.0)
        self.spnFinalAmount.setObjectName("spnFinalAmount")
        self.horizontalLayout_17.addWidget(self.spnFinalAmount)
        self.verticalLayout_3.addLayout(self.horizontalLayout_17)
        self.chkObsolete = QtWidgets.QCheckBox(frmProductsElaboratedAdd)
        self.chkObsolete.setObjectName("chkObsolete")
        self.verticalLayout_3.addWidget(self.chkObsolete)
        self.tblProductsIn = mqtwObjects(frmProductsElaboratedAdd)
        self.tblProductsIn.setObjectName("tblProductsIn")
        self.verticalLayout_3.addWidget(self.tblProductsIn)
        self.bb = QtWidgets.QDialogButtonBox(frmProductsElaboratedAdd)
        self.bb.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.bb.setObjectName("bb")
        self.verticalLayout_3.addWidget(self.bb)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.actionProductInNew = QtWidgets.QAction(frmProductsElaboratedAdd)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/caloriestracker/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductInNew.setIcon(icon1)
        self.actionProductInNew.setObjectName("actionProductInNew")
        self.actionProductInDelete = QtWidgets.QAction(frmProductsElaboratedAdd)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/caloriestracker/list-remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductInDelete.setIcon(icon2)
        self.actionProductInDelete.setObjectName("actionProductInDelete")
        self.actionProductInEdit = QtWidgets.QAction(frmProductsElaboratedAdd)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/caloriestracker/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductInEdit.setIcon(icon3)
        self.actionProductInEdit.setObjectName("actionProductInEdit")
        self.actionProductEdit = QtWidgets.QAction(frmProductsElaboratedAdd)
        self.actionProductEdit.setIcon(icon)
        self.actionProductEdit.setObjectName("actionProductEdit")

        self.retranslateUi(frmProductsElaboratedAdd)
        QtCore.QMetaObject.connectSlotsByName(frmProductsElaboratedAdd)
Ejemplo n.º 9
0
    def setupUi(self, wdgProductsElaborated):
        wdgProductsElaborated.setObjectName("wdgProductsElaborated")
        wdgProductsElaborated.resize(892, 654)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(wdgProductsElaborated)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.lbl = QtWidgets.QLabel(wdgProductsElaborated)
        font = QtGui.QFont()
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.lbl.setFont(font)
        self.lbl.setAlignment(QtCore.Qt.AlignCenter)
        self.lbl.setObjectName("lbl")
        self.verticalLayout_3.addWidget(self.lbl)
        self.groupBox = QtWidgets.QGroupBox(wdgProductsElaborated)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.txt = QtWidgets.QLineEdit(self.groupBox)
        self.txt.setObjectName("txt")
        self.horizontalLayout.addWidget(self.txt)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.line = QtWidgets.QFrame(self.groupBox)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        self.cmd = QtWidgets.QToolButton(self.groupBox)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/caloriestracker/search.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.cmd.setIcon(icon)
        self.cmd.setObjectName("cmd")
        self.horizontalLayout_3.addWidget(self.cmd)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setEnabled(False)
        self.label_2.setText("")
        self.label_2.setObjectName("label_2")
        self.verticalLayout_2.addWidget(self.label_2)
        self.verticalLayout_3.addWidget(self.groupBox)
        self.tblProductsElaborated = mqtwObjects(wdgProductsElaborated)
        self.tblProductsElaborated.setObjectName("tblProductsElaborated")
        self.verticalLayout_3.addWidget(self.tblProductsElaborated)
        self.lblFound = QtWidgets.QLabel(wdgProductsElaborated)
        self.lblFound.setObjectName("lblFound")
        self.verticalLayout_3.addWidget(self.lblFound)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.actionProductNew = QtWidgets.QAction(wdgProductsElaborated)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/caloriestracker/add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductNew.setIcon(icon1)
        self.actionProductNew.setObjectName("actionProductNew")
        self.actionProductDelete = QtWidgets.QAction(wdgProductsElaborated)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/caloriestracker/list-remove.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductDelete.setIcon(icon2)
        self.actionProductDelete.setObjectName("actionProductDelete")
        self.actionProductEdit = QtWidgets.QAction(wdgProductsElaborated)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/caloriestracker/document-edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actionProductEdit.setIcon(icon3)
        self.actionProductEdit.setObjectName("actionProductEdit")

        self.retranslateUi(wdgProductsElaborated)
        QtCore.QMetaObject.connectSlotsByName(wdgProductsElaborated)