Source code for sas.qtgui.MainWindow.UI.CategoryManagerUI
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\src\sas\qtgui\MainWindow\UI\CategoryManagerUI.ui'
#
# Created by: PyQt5 UI code generator 5.12.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
[docs]class Ui_CategoryManagerUI(object):
[docs] def setupUi(self, CategoryManagerUI):
CategoryManagerUI.setObjectName("CategoryManagerUI")
CategoryManagerUI.resize(548, 717)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(CategoryManagerUI.sizePolicy().hasHeightForWidth())
CategoryManagerUI.setSizePolicy(sizePolicy)
self.gridLayout_2 = QtWidgets.QGridLayout(CategoryManagerUI)
self.gridLayout_2.setObjectName("gridLayout_2")
self.CategoryManagerGroup = QtWidgets.QGroupBox(CategoryManagerUI)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CategoryManagerGroup.sizePolicy().hasHeightForWidth())
self.CategoryManagerGroup.setSizePolicy(sizePolicy)
self.CategoryManagerGroup.setMinimumSize(QtCore.QSize(300, 150))
self.CategoryManagerGroup.setCheckable(False)
self.CategoryManagerGroup.setObjectName("CategoryManagerGroup")
self.gridLayout = QtWidgets.QGridLayout(self.CategoryManagerGroup)
self.gridLayout.setObjectName("gridLayout")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.chkEnable = QtWidgets.QCheckBox(self.CategoryManagerGroup)
self.chkEnable.setObjectName("chkEnable")
self.horizontalLayout_3.addWidget(self.chkEnable)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label = QtWidgets.QLabel(self.CategoryManagerGroup)
self.label.setObjectName("label")
self.horizontalLayout_2.addWidget(self.label)
self.txtSearch = QtWidgets.QLineEdit(self.CategoryManagerGroup)
self.txtSearch.setText("")
self.txtSearch.setObjectName("txtSearch")
self.horizontalLayout_2.addWidget(self.txtSearch)
self.horizontalLayout_3.addLayout(self.horizontalLayout_2)
self.gridLayout.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
self.lstCategory = QtWidgets.QTableView(self.CategoryManagerGroup)
self.lstCategory.setEnabled(True)
self.lstCategory.setEditTriggers(QtWidgets.QAbstractItemView.AllEditTriggers)
self.lstCategory.setAlternatingRowColors(True)
self.lstCategory.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
self.lstCategory.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.lstCategory.setObjectName("lstCategory")
self.gridLayout.addWidget(self.lstCategory, 1, 0, 1, 1)
self.gridLayout_2.addWidget(self.CategoryManagerGroup, 0, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem1 = QtWidgets.QSpacerItem(78, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.cmdModify = QtWidgets.QPushButton(CategoryManagerUI)
self.cmdModify.setObjectName("cmdModify")
self.horizontalLayout.addWidget(self.cmdModify)
self.cmdReset = QtWidgets.QPushButton(CategoryManagerUI)
self.cmdReset.setObjectName("cmdReset")
self.horizontalLayout.addWidget(self.cmdReset)
self.cmdOK = QtWidgets.QPushButton(CategoryManagerUI)
self.cmdOK.setAutoDefault(True)
self.cmdOK.setObjectName("cmdOK")
self.horizontalLayout.addWidget(self.cmdOK)
self.cmdHelp = QtWidgets.QPushButton(CategoryManagerUI)
self.cmdHelp.setAutoDefault(True)
self.cmdHelp.setObjectName("cmdHelp")
self.horizontalLayout.addWidget(self.cmdHelp)
self.gridLayout_2.addLayout(self.horizontalLayout, 1, 0, 1, 1)
self.retranslateUi(CategoryManagerUI)
QtCore.QMetaObject.connectSlotsByName(CategoryManagerUI)
[docs] def retranslateUi(self, CategoryManagerUI):
_translate = QtCore.QCoreApplication.translate
CategoryManagerUI.setWindowTitle(_translate("CategoryManagerUI", "Category Manager"))
self.CategoryManagerGroup.setTitle(_translate("CategoryManagerUI", "Category Manager"))
self.chkEnable.setText(_translate("CategoryManagerUI", "Enable/Disable all"))
self.label.setText(_translate("CategoryManagerUI", "Search"))
self.cmdModify.setToolTip(_translate("CategoryManagerUI", "Add/Remove categories for the selected model."))
self.cmdModify.setText(_translate("CategoryManagerUI", "Modify"))
self.cmdReset.setToolTip(_translate("CategoryManagerUI", "Reset categories for selected models."))
self.cmdReset.setText(_translate("CategoryManagerUI", "Reset"))
self.cmdOK.setText(_translate("CategoryManagerUI", "OK"))
self.cmdHelp.setText(_translate("CategoryManagerUI", "Help"))