コード例 #1
0
ファイル: eliteOCRGUI.py プロジェクト: wolverine2710/EliteOCR
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1131, 788)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/icon.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setAnimated(True)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.widget = QtGui.QWidget(self.centralwidget)
        self.widget.setMaximumSize(QtCore.QSize(16777215, 200))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout_9.setMargin(0)
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_7 = QtGui.QLabel(self.widget)
        self.label_7.setMinimumSize(QtCore.QSize(150, 0))
        self.label_7.setMaximumSize(QtCore.QSize(16777215, 20))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout_4.addWidget(self.label_7)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.add_button = QtGui.QToolButton(self.widget)
        self.add_button.setMaximumSize(QtCore.QSize(16777215, 20))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/plus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.add_button.setIcon(icon1)
        self.add_button.setObjectName(_fromUtf8("add_button"))
        self.horizontalLayout_7.addWidget(self.add_button)
        self.remove_button = QtGui.QToolButton(self.widget)
        self.remove_button.setEnabled(False)
        self.remove_button.setMaximumSize(QtCore.QSize(16777215, 20))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/minus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.remove_button.setIcon(icon2)
        self.remove_button.setObjectName(_fromUtf8("remove_button"))
        self.horizontalLayout_7.addWidget(self.remove_button)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout_4.addLayout(self.horizontalLayout_7)
        self.file_list = QtGui.QListWidget(self.widget)
        self.file_list.setMinimumSize(QtCore.QSize(150, 0))
        self.file_list.setMaximumSize(QtCore.QSize(16777215, 200))
        self.file_list.setObjectName(_fromUtf8("file_list"))
        self.verticalLayout_4.addWidget(self.file_list)
        self.horizontalLayout_9.addLayout(self.verticalLayout_4)
        self.line_3 = QtGui.QFrame(self.widget)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.horizontalLayout_9.addWidget(self.line_3)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_8 = QtGui.QLabel(self.widget)
        self.label_8.setMaximumSize(QtCore.QSize(30, 25))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.horizontalLayout.addWidget(self.label_8)
        self.file_label = QtGui.QLabel(self.widget)
        self.file_label.setMaximumSize(QtCore.QSize(16777215, 25))
        self.file_label.setObjectName(_fromUtf8("file_label"))
        self.horizontalLayout.addWidget(self.file_label)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.ocr_button = QtGui.QPushButton(self.widget)
        self.ocr_button.setEnabled(False)
        self.ocr_button.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.ocr_button.setObjectName(_fromUtf8("ocr_button"))
        self.horizontalLayout_8.addWidget(self.ocr_button)
        self.ocr_all = QtGui.QPushButton(self.widget)
        self.ocr_all.setEnabled(False)
        self.ocr_all.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.ocr_all.setObjectName(_fromUtf8("ocr_all"))
        self.horizontalLayout_8.addWidget(self.ocr_all)
        spacerItem1 = QtGui.QSpacerItem(40, 5, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_8)
        self.line = QtGui.QFrame(self.widget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout_2.addWidget(self.line)
        self.label_5 = QtGui.QLabel(self.widget)
        self.label_5.setMinimumSize(QtCore.QSize(0, 0))
        self.label_5.setMaximumSize(QtCore.QSize(16777215, 20))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout_2.addWidget(self.label_5)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setSpacing(6)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.station_name_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(6)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.station_name_img.sizePolicy().hasHeightForWidth())
        self.station_name_img.setSizePolicy(sizePolicy)
        self.station_name_img.setMinimumSize(QtCore.QSize(0, 20))
        self.station_name_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.station_name_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.station_name_img.setObjectName(_fromUtf8("station_name_img"))
        self.horizontalLayout_5.addWidget(self.station_name_img)
        self.station_name = QtGui.QComboBox(self.widget)
        self.station_name.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.station_name.sizePolicy().hasHeightForWidth())
        self.station_name.setSizePolicy(sizePolicy)
        self.station_name.setMinimumSize(QtCore.QSize(0, 20))
        self.station_name.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.station_name.setAcceptDrops(False)
        self.station_name.setStyleSheet(_fromUtf8(""))
        self.station_name.setEditable(True)
        self.station_name.setIconSize(QtCore.QSize(16, 16))
        self.station_name.setFrame(True)
        self.station_name.setObjectName(_fromUtf8("station_name"))
        self.horizontalLayout_5.addWidget(self.station_name)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setHorizontalSpacing(6)
        self.gridLayout.setVerticalSpacing(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.demand_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_img.sizePolicy().hasHeightForWidth())
        self.demand_img.setSizePolicy(sizePolicy)
        self.demand_img.setMinimumSize(QtCore.QSize(0, 20))
        self.demand_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.demand_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.demand_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.demand_img.setObjectName(_fromUtf8("demand_img"))
        self.gridLayout.addWidget(self.demand_img, 1, 3, 1, 1)
        self.supply_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_img.sizePolicy().hasHeightForWidth())
        self.supply_img.setSizePolicy(sizePolicy)
        self.supply_img.setMinimumSize(QtCore.QSize(0, 20))
        self.supply_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.supply_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.supply_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.supply_img.setObjectName(_fromUtf8("supply_img"))
        self.gridLayout.addWidget(self.supply_img, 1, 5, 1, 1)
        self.supply_text_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_text_img.sizePolicy().hasHeightForWidth())
        self.supply_text_img.setSizePolicy(sizePolicy)
        self.supply_text_img.setMinimumSize(QtCore.QSize(0, 20))
        self.supply_text_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.supply_text_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.supply_text_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.supply_text_img.setObjectName(_fromUtf8("supply_text_img"))
        self.gridLayout.addWidget(self.supply_text_img, 1, 6, 1, 1)
        self.demand_text_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_text_img.sizePolicy().hasHeightForWidth())
        self.demand_text_img.setSizePolicy(sizePolicy)
        self.demand_text_img.setMinimumSize(QtCore.QSize(0, 20))
        self.demand_text_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.demand_text_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.demand_text_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.demand_text_img.setObjectName(_fromUtf8("demand_text_img"))
        self.gridLayout.addWidget(self.demand_text_img, 1, 4, 1, 1)
        self.buy_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buy_img.sizePolicy().hasHeightForWidth())
        self.buy_img.setSizePolicy(sizePolicy)
        self.buy_img.setMinimumSize(QtCore.QSize(0, 20))
        self.buy_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.buy_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.buy_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.buy_img.setObjectName(_fromUtf8("buy_img"))
        self.gridLayout.addWidget(self.buy_img, 1, 2, 1, 1)
        self.name_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.name_img.sizePolicy().hasHeightForWidth())
        self.name_img.setSizePolicy(sizePolicy)
        self.name_img.setMinimumSize(QtCore.QSize(0, 20))
        self.name_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.name_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.name_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.name_img.setObjectName(_fromUtf8("name_img"))
        self.gridLayout.addWidget(self.name_img, 1, 0, 1, 1)
        self.sell_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sell_img.sizePolicy().hasHeightForWidth())
        self.sell_img.setSizePolicy(sizePolicy)
        self.sell_img.setMinimumSize(QtCore.QSize(0, 20))
        self.sell_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.sell_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.sell_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.sell_img.setObjectName(_fromUtf8("sell_img"))
        self.gridLayout.addWidget(self.sell_img, 1, 1, 1, 1)
        self.label = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 0, 2, 1, 1)
        self.label_4 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 0, 3, 1, 1)
        self.label_6 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 5, 1, 1)
        self.name = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(43)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.name.sizePolicy().hasHeightForWidth())
        self.name.setSizePolicy(sizePolicy)
        self.name.setMinimumSize(QtCore.QSize(0, 20))
        self.name.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.name.setStyleSheet(_fromUtf8(""))
        self.name.setEditable(True)
        self.name.setObjectName(_fromUtf8("name"))
        self.gridLayout.addWidget(self.name, 3, 0, 1, 1)
        self.sell = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sell.sizePolicy().hasHeightForWidth())
        self.sell.setSizePolicy(sizePolicy)
        self.sell.setMinimumSize(QtCore.QSize(0, 20))
        self.sell.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.sell.setStyleSheet(_fromUtf8(""))
        self.sell.setEditable(True)
        self.sell.setObjectName(_fromUtf8("sell"))
        self.gridLayout.addWidget(self.sell, 3, 1, 1, 1)
        self.buy = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buy.sizePolicy().hasHeightForWidth())
        self.buy.setSizePolicy(sizePolicy)
        self.buy.setMinimumSize(QtCore.QSize(0, 20))
        self.buy.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.buy.setStyleSheet(_fromUtf8(""))
        self.buy.setEditable(True)
        self.buy.setObjectName(_fromUtf8("buy"))
        self.gridLayout.addWidget(self.buy, 3, 2, 1, 1)
        self.demand_num = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_num.sizePolicy().hasHeightForWidth())
        self.demand_num.setSizePolicy(sizePolicy)
        self.demand_num.setMinimumSize(QtCore.QSize(0, 20))
        self.demand_num.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.demand_num.setStyleSheet(_fromUtf8(""))
        self.demand_num.setEditable(True)
        self.demand_num.setObjectName(_fromUtf8("demand_num"))
        self.gridLayout.addWidget(self.demand_num, 3, 3, 1, 1)
        self.demand = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand.sizePolicy().hasHeightForWidth())
        self.demand.setSizePolicy(sizePolicy)
        self.demand.setMinimumSize(QtCore.QSize(0, 20))
        self.demand.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.demand.setStyleSheet(_fromUtf8(""))
        self.demand.setEditable(True)
        self.demand.setObjectName(_fromUtf8("demand"))
        self.gridLayout.addWidget(self.demand, 3, 4, 1, 1)
        self.supply_num = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_num.sizePolicy().hasHeightForWidth())
        self.supply_num.setSizePolicy(sizePolicy)
        self.supply_num.setMinimumSize(QtCore.QSize(0, 20))
        self.supply_num.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.supply_num.setStyleSheet(_fromUtf8(""))
        self.supply_num.setEditable(True)
        self.supply_num.setObjectName(_fromUtf8("supply_num"))
        self.gridLayout.addWidget(self.supply_num, 3, 5, 1, 1)
        self.supply = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply.sizePolicy().hasHeightForWidth())
        self.supply.setSizePolicy(sizePolicy)
        self.supply.setMinimumSize(QtCore.QSize(0, 20))
        self.supply.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.supply.setStyleSheet(_fromUtf8(""))
        self.supply.setEditable(True)
        self.supply.setObjectName(_fromUtf8("supply"))
        self.gridLayout.addWidget(self.supply, 3, 6, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.skip_button = QtGui.QPushButton(self.widget)
        self.skip_button.setEnabled(False)
        self.skip_button.setObjectName(_fromUtf8("skip_button"))
        self.verticalLayout_3.addWidget(self.skip_button)
        self.save_button = QtGui.QPushButton(self.widget)
        self.save_button.setEnabled(False)
        self.save_button.setObjectName(_fromUtf8("save_button"))
        self.verticalLayout_3.addWidget(self.save_button)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_9.addLayout(self.verticalLayout_2)
        self.verticalLayout_5.addWidget(self.widget)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setEnabled(True)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.verticalLayout_5.addWidget(self.line_2)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.splitter = QtGui.QSplitter(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setFrameShape(QtGui.QFrame.NoFrame)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.preview = QtGui.QGraphicsView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(88)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.preview.sizePolicy().hasHeightForWidth())
        self.preview.setSizePolicy(sizePolicy)
        self.preview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setObjectName(_fromUtf8("preview"))
        self.result_table = CustomQTableWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(80)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.result_table.sizePolicy().hasHeightForWidth())
        self.result_table.setSizePolicy(sizePolicy)
        self.result_table.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.result_table.setObjectName(_fromUtf8("result_table"))
        self.result_table.setColumnCount(0)
        self.result_table.setRowCount(0)
        self.horizontalLayout_4.addWidget(self.splitter)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.clear_table = QtGui.QPushButton(self.centralwidget)
        self.clear_table.setEnabled(False)
        self.clear_table.setObjectName(_fromUtf8("clear_table"))
        self.horizontalLayout_2.addWidget(self.clear_table)
        self.export_button = QtGui.QPushButton(self.centralwidget)
        self.export_button.setEnabled(False)
        self.export_button.setMaximumSize(QtCore.QSize(16777215, 25))
        self.export_button.setObjectName(_fromUtf8("export_button"))
        self.horizontalLayout_2.addWidget(self.export_button)
        self.verticalLayout_5.addLayout(self.horizontalLayout_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1131, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSettings = QtGui.QMenu(self.menubar)
        self.menuSettings.setObjectName(_fromUtf8("menuSettings"))
        MainWindow.setMenuBar(self.menubar)
        self.actionHow_to_use = QtGui.QAction(MainWindow)
        self.actionHow_to_use.setObjectName(_fromUtf8("actionHow_to_use"))
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionOpen = QtGui.QAction(MainWindow)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionCalibrate = QtGui.QAction(MainWindow)
        self.actionCalibrate.setObjectName(_fromUtf8("actionCalibrate"))
        self.actionPreferences = QtGui.QAction(MainWindow)
        self.actionPreferences.setObjectName(_fromUtf8("actionPreferences"))
        self.menuHelp.addAction(self.actionHow_to_use)
        self.menuHelp.addAction(self.actionAbout)
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionExit)
        self.menuSettings.addAction(self.actionCalibrate)
        self.menuSettings.addAction(self.actionPreferences)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSettings.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.actionExit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "EliteOCR", None))
        self.label_7.setText(_translate("MainWindow", "Files", None))
        self.add_button.setText(_translate("MainWindow", "...", None))
        self.remove_button.setText(_translate("MainWindow", "...", None))
        self.label_8.setText(_translate("MainWindow", "File: ", None))
        self.file_label.setText(_translate("MainWindow", "-", None))
        self.ocr_button.setText(_translate("MainWindow", "OCR", None))
        self.ocr_all.setText(_translate("MainWindow", "OCR All", None))
        self.label_5.setText(_translate("MainWindow", "Station", None))
        self.label.setText(_translate("MainWindow", "commodity", None))
        self.label_2.setText(_translate("MainWindow", "sell", None))
        self.label_3.setText(_translate("MainWindow", "buy", None))
        self.label_4.setText(_translate("MainWindow", "demand", None))
        self.label_6.setText(_translate("MainWindow", "supply", None))
        self.skip_button.setText(_translate("MainWindow", "Skip", None))
        self.save_button.setText(_translate("MainWindow", "Add and Next", None))
        self.clear_table.setText(_translate("MainWindow", "Clear Table", None))
        self.export_button.setText(_translate("MainWindow", "CSV Export", None))
        self.menuHelp.setTitle(_translate("MainWindow", "Help", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuSettings.setTitle(_translate("MainWindow", "Settings", None))
        self.actionHow_to_use.setText(_translate("MainWindow", "How to use", None))
        self.actionAbout.setText(_translate("MainWindow", "About", None))
        self.actionOpen.setText(_translate("MainWindow", "Open", None))
        self.actionExit.setText(_translate("MainWindow", "Exit", None))
        self.actionCalibrate.setText(_translate("MainWindow", "Calibrate", None))
        self.actionPreferences.setText(_translate("MainWindow", "Preferences", None))
コード例 #2
0
ファイル: eliteOCRGUI.py プロジェクト: pksmall/EliteOCR
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1110, 625)
        MainWindow.setFocusPolicy(QtCore.Qt.TabFocus)
        MainWindow.setWindowTitle(_fromUtf8("EliteOCR"))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/icon.ico")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_4.setContentsMargins(-1, 1, -1, -1)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setSpacing(1)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_2 = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMaximumSize(QtCore.QSize(16777215, 18))
        self.label_2.setTextFormat(QtCore.Qt.RichText)
        self.label_2.setOpenExternalLinks(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_6.addWidget(self.label_2)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setSpacing(1)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.add_button = QtGui.QToolButton(self.centralwidget)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/plus.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.add_button.setIcon(icon1)
        self.add_button.setShortcut(_fromUtf8("Alt+Q"))
        self.add_button.setObjectName(_fromUtf8("add_button"))
        self.horizontalLayout_5.addWidget(self.add_button)
        self.remove_button = QtGui.QToolButton(self.centralwidget)
        self.remove_button.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/minus.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.remove_button.setIcon(icon2)
        self.remove_button.setShortcut(_fromUtf8("Alt+D"))
        self.remove_button.setObjectName(_fromUtf8("remove_button"))
        self.horizontalLayout_5.addWidget(self.remove_button)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.add_all_button = QtGui.QPushButton(self.centralwidget)
        self.add_all_button.setShortcut(_fromUtf8("Alt+W"))
        self.add_all_button.setObjectName(_fromUtf8("add_all_button"))
        self.horizontalLayout_3.addWidget(self.add_all_button)
        self.remove_all_button = QtGui.QPushButton(self.centralwidget)
        self.remove_all_button.setEnabled(False)
        self.remove_all_button.setShortcut(_fromUtf8("Alt+F"))
        self.remove_all_button.setObjectName(_fromUtf8("remove_all_button"))
        self.horizontalLayout_3.addWidget(self.remove_all_button)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.file_list = QtGui.QListWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.file_list.sizePolicy().hasHeightForWidth())
        self.file_list.setSizePolicy(sizePolicy)
        self.file_list.setMinimumSize(QtCore.QSize(0, 0))
        self.file_list.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.file_list.setObjectName(_fromUtf8("file_list"))
        self.verticalLayout_2.addWidget(self.file_list)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout.addWidget(self.line)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(2)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.ocr_button = QtGui.QPushButton(self.centralwidget)
        self.ocr_button.setEnabled(False)
        self.ocr_button.setShortcut(_fromUtf8("Alt+E"))
        self.ocr_button.setObjectName(_fromUtf8("ocr_button"))
        self.horizontalLayout_7.addWidget(self.ocr_button)
        self.ocr_all = QtGui.QPushButton(self.centralwidget)
        self.ocr_all.setEnabled(False)
        self.ocr_all.setShortcut(_fromUtf8("Alt+R"))
        self.ocr_all.setObjectName(_fromUtf8("ocr_all"))
        self.horizontalLayout_7.addWidget(self.ocr_all)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.verticalLayout_3.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_8.addWidget(self.label_3)
        self.system_name = QtGui.QLineEdit(self.centralwidget)
        self.system_name.setMinimumSize(QtCore.QSize(0, 30))
        self.system_name.setObjectName(_fromUtf8("system_name"))
        self.horizontalLayout_8.addWidget(self.system_name)
        self.verticalLayout_3.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_9.addWidget(self.label_4)
        self.station_name_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.station_name_img.sizePolicy().hasHeightForWidth())
        self.station_name_img.setSizePolicy(sizePolicy)
        self.station_name_img.setMinimumSize(QtCore.QSize(0, 30))
        self.station_name_img.setMaximumSize(QtCore.QSize(16777215, 30))
        self.station_name_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.station_name_img.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setAlignment(QtCore.Qt.AlignLeading
                                           | QtCore.Qt.AlignLeft
                                           | QtCore.Qt.AlignVCenter)
        self.station_name_img.setObjectName(_fromUtf8("station_name_img"))
        self.horizontalLayout_9.addWidget(self.station_name_img)
        self.station_name = QtGui.QLineEdit(self.centralwidget)
        self.station_name.setMinimumSize(QtCore.QSize(0, 30))
        self.station_name.setObjectName(_fromUtf8("station_name"))
        self.horizontalLayout_9.addWidget(self.station_name)
        self.verticalLayout_3.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(
            _fromUtf8("horizontalLayout_10"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setVerticalSpacing(2)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_7 = QtGui.QLabel(self.centralwidget)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout.addWidget(self.label_7, 0, 2, 1, 1)
        self.label_10 = QtGui.QLabel(self.centralwidget)
        self.label_10.setAlignment(QtCore.Qt.AlignCenter)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout.addWidget(self.label_10, 0, 5, 1, 1)
        self.name_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.name_img.sizePolicy().hasHeightForWidth())
        self.name_img.setSizePolicy(sizePolicy)
        self.name_img.setMinimumSize(QtCore.QSize(0, 30))
        self.name_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.name_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.name_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                   | QtCore.Qt.AlignVCenter)
        self.name_img.setObjectName(_fromUtf8("name_img"))
        self.gridLayout.addWidget(self.name_img, 1, 0, 1, 1)
        self.label_8 = QtGui.QLabel(self.centralwidget)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout.addWidget(self.label_8, 0, 3, 1, 1)
        self.demand = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.demand.sizePolicy().hasHeightForWidth())
        self.demand.setSizePolicy(sizePolicy)
        self.demand.setMinimumSize(QtCore.QSize(0, 30))
        self.demand.setObjectName(_fromUtf8("demand"))
        self.gridLayout.addWidget(self.demand, 2, 4, 1, 1)
        self.supply = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.supply.sizePolicy().hasHeightForWidth())
        self.supply.setSizePolicy(sizePolicy)
        self.supply.setMinimumSize(QtCore.QSize(0, 30))
        self.supply.setObjectName(_fromUtf8("supply"))
        self.gridLayout.addWidget(self.supply, 2, 6, 1, 1)
        self.supply_text_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.supply_text_img.sizePolicy().hasHeightForWidth())
        self.supply_text_img.setSizePolicy(sizePolicy)
        self.supply_text_img.setMinimumSize(QtCore.QSize(0, 30))
        self.supply_text_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.supply_text_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.supply_text_img.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignVCenter)
        self.supply_text_img.setObjectName(_fromUtf8("supply_text_img"))
        self.gridLayout.addWidget(self.supply_text_img, 1, 6, 1, 1)
        self.sell = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sell.sizePolicy().hasHeightForWidth())
        self.sell.setSizePolicy(sizePolicy)
        self.sell.setMinimumSize(QtCore.QSize(0, 30))
        self.sell.setObjectName(_fromUtf8("sell"))
        self.gridLayout.addWidget(self.sell, 2, 1, 1, 1)
        self.name = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(43)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.name.sizePolicy().hasHeightForWidth())
        self.name.setSizePolicy(sizePolicy)
        self.name.setMinimumSize(QtCore.QSize(0, 30))
        self.name.setObjectName(_fromUtf8("name"))
        self.gridLayout.addWidget(self.name, 2, 0, 1, 1)
        self.buy = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buy.sizePolicy().hasHeightForWidth())
        self.buy.setSizePolicy(sizePolicy)
        self.buy.setMinimumSize(QtCore.QSize(0, 30))
        self.buy.setObjectName(_fromUtf8("buy"))
        self.gridLayout.addWidget(self.buy, 2, 2, 1, 1)
        self.demand_num = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.demand_num.sizePolicy().hasHeightForWidth())
        self.demand_num.setSizePolicy(sizePolicy)
        self.demand_num.setMinimumSize(QtCore.QSize(0, 30))
        self.demand_num.setObjectName(_fromUtf8("demand_num"))
        self.gridLayout.addWidget(self.demand_num, 2, 3, 1, 1)
        self.demand_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.demand_img.sizePolicy().hasHeightForWidth())
        self.demand_img.setSizePolicy(sizePolicy)
        self.demand_img.setMinimumSize(QtCore.QSize(0, 30))
        self.demand_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.demand_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.demand_img.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setAlignment(QtCore.Qt.AlignLeading
                                     | QtCore.Qt.AlignLeft
                                     | QtCore.Qt.AlignVCenter)
        self.demand_img.setObjectName(_fromUtf8("demand_img"))
        self.gridLayout.addWidget(self.demand_img, 1, 3, 1, 1)
        self.demand_text_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.demand_text_img.sizePolicy().hasHeightForWidth())
        self.demand_text_img.setSizePolicy(sizePolicy)
        self.demand_text_img.setMinimumSize(QtCore.QSize(0, 30))
        self.demand_text_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.demand_text_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.demand_text_img.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setAlignment(QtCore.Qt.AlignLeading
                                          | QtCore.Qt.AlignLeft
                                          | QtCore.Qt.AlignVCenter)
        self.demand_text_img.setObjectName(_fromUtf8("demand_text_img"))
        self.gridLayout.addWidget(self.demand_text_img, 1, 4, 1, 1)
        self.supply_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.supply_img.sizePolicy().hasHeightForWidth())
        self.supply_img.setSizePolicy(sizePolicy)
        self.supply_img.setMinimumSize(QtCore.QSize(0, 30))
        self.supply_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.supply_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.supply_img.setVerticalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setAlignment(QtCore.Qt.AlignLeading
                                     | QtCore.Qt.AlignLeft
                                     | QtCore.Qt.AlignVCenter)
        self.supply_img.setObjectName(_fromUtf8("supply_img"))
        self.gridLayout.addWidget(self.supply_img, 1, 5, 1, 1)
        self.label_6 = QtGui.QLabel(self.centralwidget)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)
        self.sell_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.sell_img.sizePolicy().hasHeightForWidth())
        self.sell_img.setSizePolicy(sizePolicy)
        self.sell_img.setMinimumSize(QtCore.QSize(0, 30))
        self.sell_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.sell_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.sell_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                   | QtCore.Qt.AlignVCenter)
        self.sell_img.setObjectName(_fromUtf8("sell_img"))
        self.gridLayout.addWidget(self.sell_img, 1, 1, 1, 1)
        self.buy_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buy_img.sizePolicy().hasHeightForWidth())
        self.buy_img.setSizePolicy(sizePolicy)
        self.buy_img.setMinimumSize(QtCore.QSize(0, 30))
        self.buy_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.buy_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.buy_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft
                                  | QtCore.Qt.AlignVCenter)
        self.buy_img.setObjectName(_fromUtf8("buy_img"))
        self.gridLayout.addWidget(self.buy_img, 1, 2, 1, 1)
        self.supply_num = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.supply_num.sizePolicy().hasHeightForWidth())
        self.supply_num.setSizePolicy(sizePolicy)
        self.supply_num.setMinimumSize(QtCore.QSize(0, 30))
        self.supply_num.setObjectName(_fromUtf8("supply_num"))
        self.gridLayout.addWidget(self.supply_num, 2, 5, 1, 1)
        self.horizontalLayout_10.addLayout(self.gridLayout)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.save_button = QtGui.QPushButton(self.centralwidget)
        self.save_button.setEnabled(False)
        self.save_button.setShortcut(_fromUtf8("Alt+A"))
        self.save_button.setObjectName(_fromUtf8("save_button"))
        self.verticalLayout.addWidget(self.save_button)
        self.skip_button = QtGui.QPushButton(self.centralwidget)
        self.skip_button.setEnabled(False)
        self.skip_button.setShortcut(_fromUtf8("Alt+S"))
        self.skip_button.setObjectName(_fromUtf8("skip_button"))
        self.verticalLayout.addWidget(self.skip_button)
        self.continue_button = QtGui.QPushButton(self.centralwidget)
        self.continue_button.setEnabled(False)
        self.continue_button.setShortcut(_fromUtf8("Alt+C"))
        self.continue_button.setObjectName(_fromUtf8("continue_button"))
        self.verticalLayout.addWidget(self.continue_button)
        self.horizontalLayout_10.addLayout(self.verticalLayout)
        self.verticalLayout_3.addLayout(self.horizontalLayout_10)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_12 = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setMinimumSize(QtCore.QSize(0, 15))
        self.label_12.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_2.addWidget(self.label_12)
        self.file_label = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.file_label.sizePolicy().hasHeightForWidth())
        self.file_label.setSizePolicy(sizePolicy)
        self.file_label.setMinimumSize(QtCore.QSize(0, 15))
        self.file_label.setMaximumSize(QtCore.QSize(16777215, 15))
        self.file_label.setObjectName(_fromUtf8("file_label"))
        self.horizontalLayout_2.addWidget(self.file_label)
        self.system_not_found = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.system_not_found.sizePolicy().hasHeightForWidth())
        self.system_not_found.setSizePolicy(sizePolicy)
        self.system_not_found.setMinimumSize(QtCore.QSize(0, 15))
        self.system_not_found.setMaximumSize(QtCore.QSize(16777215, 15))
        self.system_not_found.setStyleSheet(_fromUtf8("color: #d00"))
        self.system_not_found.setWordWrap(True)
        self.system_not_found.setObjectName(_fromUtf8("system_not_found"))
        self.horizontalLayout_2.addWidget(self.system_not_found)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.splitter = QtGui.QSplitter(self.centralwidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.preview = QtGui.QGraphicsView(self.splitter)
        self.preview.setFocusPolicy(QtCore.Qt.NoFocus)
        self.preview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setDragMode(QtGui.QGraphicsView.ScrollHandDrag)
        self.preview.setObjectName(_fromUtf8("preview"))
        self.result_table = CustomQTableWidget(self.splitter)
        self.result_table.setObjectName(_fromUtf8("result_table"))
        self.result_table.setColumnCount(12)
        self.result_table.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(9, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(10, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(11, item)
        self.verticalLayout_4.addWidget(self.splitter)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.factor = QtGui.QDoubleSpinBox(self.centralwidget)
        self.factor.setMinimum(1.0)
        self.factor.setMaximum(5.0)
        self.factor.setSingleStep(0.25)
        self.factor.setObjectName(_fromUtf8("factor"))
        self.horizontalLayout_4.addWidget(self.factor)
        self.zoom_button = QtGui.QPushButton(self.centralwidget)
        self.zoom_button.setObjectName(_fromUtf8("zoom_button"))
        self.horizontalLayout_4.addWidget(self.zoom_button)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem2)
        self.clear_table = QtGui.QPushButton(self.centralwidget)
        self.clear_table.setEnabled(False)
        self.clear_table.setObjectName(_fromUtf8("clear_table"))
        self.horizontalLayout_4.addWidget(self.clear_table)
        self.export_button = QtGui.QPushButton(self.centralwidget)
        self.export_button.setEnabled(False)
        self.export_button.setObjectName(_fromUtf8("export_button"))
        self.horizontalLayout_4.addWidget(self.export_button)
        self.bpc_button = QtGui.QPushButton(self.centralwidget)
        self.bpc_button.setEnabled(False)
        self.bpc_button.setObjectName(_fromUtf8("bpc_button"))
        self.horizontalLayout_4.addWidget(self.bpc_button)
        self.eddn_button = QtGui.QPushButton(self.centralwidget)
        self.eddn_button.setEnabled(False)
        self.eddn_button.setObjectName(_fromUtf8("eddn_button"))
        self.horizontalLayout_4.addWidget(self.eddn_button)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.progress_bar = QtGui.QProgressBar(self.centralwidget)
        self.progress_bar.setMaximumSize(QtCore.QSize(16777215, 10))
        self.progress_bar.setProperty("value", 0)
        self.progress_bar.setTextVisible(False)
        self.progress_bar.setObjectName(_fromUtf8("progress_bar"))
        self.verticalLayout_4.addWidget(self.progress_bar)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1110, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSettings = QtGui.QMenu(self.menubar)
        self.menuSettings.setObjectName(_fromUtf8("menuSettings"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionOpen = QtGui.QAction(MainWindow)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setMenuRole(QtGui.QAction.QuitRole)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionPreferences = QtGui.QAction(MainWindow)
        self.actionPreferences.setCheckable(False)
        self.actionPreferences.setMenuRole(QtGui.QAction.PreferencesRole)
        self.actionPreferences.setObjectName(_fromUtf8("actionPreferences"))
        self.actionCommodity_Editor = QtGui.QAction(MainWindow)
        self.actionCommodity_Editor.setObjectName(
            _fromUtf8("actionCommodity_Editor"))
        self.actionPublic_Mode = QtGui.QAction(MainWindow)
        self.actionPublic_Mode.setCheckable(True)
        self.actionPublic_Mode.setObjectName(_fromUtf8("actionPublic_Mode"))
        self.actionHelp = QtGui.QAction(MainWindow)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.actionUpdate = QtGui.QAction(MainWindow)
        self.actionUpdate.setObjectName(_fromUtf8("actionUpdate"))
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setMenuRole(QtGui.QAction.AboutRole)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionSetup_Wizard = QtGui.QAction(MainWindow)
        self.actionSetup_Wizard.setObjectName(_fromUtf8("actionSetup_Wizard"))
        self.actionColor_Calibration = QtGui.QAction(MainWindow)
        self.actionColor_Calibration.setObjectName(
            _fromUtf8("actionColor_Calibration"))
        self.actionLearning_Wizard = QtGui.QAction(MainWindow)
        self.actionLearning_Wizard.setObjectName(
            _fromUtf8("actionLearning_Wizard"))
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionExit)
        self.menuSettings.addAction(self.actionPreferences)
        self.menuSettings.addAction(self.actionCommodity_Editor)
        self.menuSettings.addAction(self.actionSetup_Wizard)
        self.menuSettings.addAction(self.actionColor_Calibration)
        self.menuSettings.addAction(self.actionLearning_Wizard)
        self.menuSettings.addAction(self.actionPublic_Mode)
        self.menuHelp.addAction(self.actionHelp)
        self.menuHelp.addAction(self.actionUpdate)
        self.menuHelp.addAction(self.actionAbout)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSettings.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.actionExit,
                               QtCore.SIGNAL(_fromUtf8("triggered()")),
                               MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.add_button, self.remove_button)
        MainWindow.setTabOrder(self.remove_button, self.add_all_button)
        MainWindow.setTabOrder(self.add_all_button, self.remove_all_button)
        MainWindow.setTabOrder(self.remove_all_button, self.file_list)
        MainWindow.setTabOrder(self.file_list, self.ocr_button)
        MainWindow.setTabOrder(self.ocr_button, self.ocr_all)
        MainWindow.setTabOrder(self.ocr_all, self.system_name)
        MainWindow.setTabOrder(self.system_name, self.station_name)
        MainWindow.setTabOrder(self.station_name, self.name)
        MainWindow.setTabOrder(self.name, self.sell)
        MainWindow.setTabOrder(self.sell, self.buy)
        MainWindow.setTabOrder(self.buy, self.demand_num)
        MainWindow.setTabOrder(self.demand_num, self.demand)
        MainWindow.setTabOrder(self.demand, self.supply_num)
        MainWindow.setTabOrder(self.supply_num, self.supply)
        MainWindow.setTabOrder(self.supply, self.save_button)
        MainWindow.setTabOrder(self.save_button, self.skip_button)
        MainWindow.setTabOrder(self.skip_button, self.continue_button)
        MainWindow.setTabOrder(self.continue_button, self.clear_table)
        MainWindow.setTabOrder(self.clear_table, self.export_button)
        MainWindow.setTabOrder(self.export_button, self.bpc_button)
        MainWindow.setTabOrder(self.bpc_button, self.eddn_button)
        MainWindow.setTabOrder(self.eddn_button, self.factor)
        MainWindow.setTabOrder(self.factor, self.zoom_button)
        MainWindow.setTabOrder(self.zoom_button, self.result_table)

    def retranslateUi(self, MainWindow):
        self.label_2.setText(
            _translate(
                "MainWindow",
                "<html><head/><body><p>If you have any problems please <span style=\" font-weight:600; text-decoration: underline;\">read &quot;Help&quot;</span>. Please post any bug reports, issues or suggestions on <a href=\"https://github.com/Marginal/EliteOCR/issues\"><span style=\" text-decoration: underline; color:#0000ff;\">GitHub</span></a> or in the <a href=\"https://forums.frontier.co.uk/showthread.php?t=225840\"><span style=\" text-decoration: underline; color:#0000ff;\">forum.</span></a></p></body></html>",
                None))
        self.add_button.setText(_translate("MainWindow", "...", None))
        self.remove_button.setText(_translate("MainWindow", "...", None))
        self.add_all_button.setText(_translate("MainWindow", "Add all", None))
        self.remove_all_button.setText(
            _translate("MainWindow", "Remove all", None))
        self.ocr_button.setText(_translate("MainWindow", "OCR", None))
        self.ocr_all.setText(_translate("MainWindow", "OCR All", None))
        self.label_3.setText(_translate("MainWindow", "System ", None))
        self.label_4.setText(_translate("MainWindow", "Station", None))
        self.label_7.setText(_translate("MainWindow", "Buy", None))
        self.label_10.setText(_translate("MainWindow", "Supply", None))
        self.label_8.setText(_translate("MainWindow", "Demand", None))
        self.label_6.setText(_translate("MainWindow", "Sell", None))
        self.label_5.setText(_translate("MainWindow", "Commodity", None))
        self.save_button.setText(_translate("MainWindow", "Add", None))
        self.skip_button.setText(_translate("MainWindow", "Skip", None))
        self.continue_button.setText(
            _translate("MainWindow", "Next File", None))
        self.label_12.setText(_translate("MainWindow", "File:", None))
        self.file_label.setText(_translate("MainWindow", "-", None))
        item = self.result_table.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Station", None))
        item = self.result_table.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Commodity", None))
        item = self.result_table.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Sell", None))
        item = self.result_table.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Buy", None))
        item = self.result_table.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Demand", None))
        item = self.result_table.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Dem. Level", None))
        item = self.result_table.horizontalHeaderItem(6)
        item.setText(_translate("MainWindow", "Supply", None))
        item = self.result_table.horizontalHeaderItem(7)
        item.setText(_translate("MainWindow", "Sup. Level", None))
        item = self.result_table.horizontalHeaderItem(8)
        item.setText(_translate("MainWindow", "Timestamp", None))
        item = self.result_table.horizontalHeaderItem(9)
        item.setText(_translate("MainWindow", "System", None))
        item = self.result_table.horizontalHeaderItem(10)
        item.setText(_translate("MainWindow", "Img. Height", None))
        item = self.result_table.horizontalHeaderItem(11)
        item.setText(_translate("MainWindow", "EDDN Sent", None))
        self.zoom_button.setText(_translate("MainWindow", "Zoom", None))
        self.clear_table.setText(_translate("MainWindow", "Clear Table", None))
        self.export_button.setText(
            _translate("MainWindow", "Export to CSV", None))
        self.bpc_button.setText(_translate("MainWindow", "Export to BPC",
                                           None))
        self.eddn_button.setText(
            _translate("MainWindow", "Export to EDDN", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuSettings.setTitle(_translate("MainWindow", "Settings", None))
        self.menuHelp.setTitle(_translate("MainWindow", "Help", None))
        self.actionOpen.setText(_translate("MainWindow", "Open", None))
        self.actionExit.setText(_translate("MainWindow", "Exit", None))
        self.actionPreferences.setText(
            _translate("MainWindow", "Preferences", None))
        self.actionCommodity_Editor.setText(
            _translate("MainWindow", "Commodity Editor", None))
        self.actionPublic_Mode.setText(
            _translate("MainWindow", "Public Mode", None))
        self.actionHelp.setText(_translate("MainWindow", "Help", None))
        self.actionUpdate.setText(_translate("MainWindow", "Update", None))
        self.actionAbout.setText(_translate("MainWindow", "About", None))
        self.actionSetup_Wizard.setText(
            _translate("MainWindow", "Setup Wizard", None))
        self.actionColor_Calibration.setText(
            _translate("MainWindow", "Color Calibration", None))
        self.actionLearning_Wizard.setText(
            _translate("MainWindow", "Learning Wizard", None))
コード例 #3
0
ファイル: eliteOCRGUI.py プロジェクト: AlexSatrapa/EliteOCR
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1110, 625)
        MainWindow.setFocusPolicy(QtCore.Qt.TabFocus)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/icon.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtGui.QWidget(MainWindow)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Consolas"))
        font.setPointSize(10)
        self.centralwidget.setFont(font)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_4.setContentsMargins(-1, 1, -1, -1)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setSpacing(1)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_2 = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label_2.setTextFormat(QtCore.Qt.RichText)
        self.label_2.setOpenExternalLinks(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_6.addWidget(self.label_2)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setSpacing(1)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.add_button = QtGui.QToolButton(self.centralwidget)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/plus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.add_button.setIcon(icon1)
        self.add_button.setObjectName(_fromUtf8("add_button"))
        self.horizontalLayout_5.addWidget(self.add_button)
        self.remove_button = QtGui.QToolButton(self.centralwidget)
        self.remove_button.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/minus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.remove_button.setIcon(icon2)
        self.remove_button.setObjectName(_fromUtf8("remove_button"))
        self.horizontalLayout_5.addWidget(self.remove_button)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.add_all_button = QtGui.QPushButton(self.centralwidget)
        self.add_all_button.setObjectName(_fromUtf8("add_all_button"))
        self.horizontalLayout_3.addWidget(self.add_all_button)
        self.remove_all_button = QtGui.QPushButton(self.centralwidget)
        self.remove_all_button.setEnabled(False)
        self.remove_all_button.setObjectName(_fromUtf8("remove_all_button"))
        self.horizontalLayout_3.addWidget(self.remove_all_button)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.file_list = QtGui.QListWidget(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.file_list.sizePolicy().hasHeightForWidth())
        self.file_list.setSizePolicy(sizePolicy)
        self.file_list.setMinimumSize(QtCore.QSize(0, 0))
        self.file_list.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.file_list.setObjectName(_fromUtf8("file_list"))
        self.verticalLayout_2.addWidget(self.file_list)
        self.horizontalLayout.addLayout(self.verticalLayout_2)
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.horizontalLayout.addWidget(self.line)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(2)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.ocr_button = QtGui.QPushButton(self.centralwidget)
        self.ocr_button.setEnabled(False)
        self.ocr_button.setObjectName(_fromUtf8("ocr_button"))
        self.horizontalLayout_7.addWidget(self.ocr_button)
        self.ocr_all = QtGui.QPushButton(self.centralwidget)
        self.ocr_all.setEnabled(False)
        self.ocr_all.setObjectName(_fromUtf8("ocr_all"))
        self.horizontalLayout_7.addWidget(self.ocr_all)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.verticalLayout_3.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_3 = QtGui.QLabel(self.centralwidget)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_8.addWidget(self.label_3)
        self.system_name = QtGui.QLineEdit(self.centralwidget)
        self.system_name.setMinimumSize(QtCore.QSize(0, 30))
        self.system_name.setObjectName(_fromUtf8("system_name"))
        self.horizontalLayout_8.addWidget(self.system_name)
        self.verticalLayout_3.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label_4 = QtGui.QLabel(self.centralwidget)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_9.addWidget(self.label_4)
        self.station_name_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.station_name_img.sizePolicy().hasHeightForWidth())
        self.station_name_img.setSizePolicy(sizePolicy)
        self.station_name_img.setMinimumSize(QtCore.QSize(0, 30))
        self.station_name_img.setMaximumSize(QtCore.QSize(16777215, 30))
        self.station_name_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.station_name_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.station_name_img.setObjectName(_fromUtf8("station_name_img"))
        self.horizontalLayout_9.addWidget(self.station_name_img)
        self.station_name = QtGui.QLineEdit(self.centralwidget)
        self.station_name.setMinimumSize(QtCore.QSize(0, 30))
        self.station_name.setObjectName(_fromUtf8("station_name"))
        self.horizontalLayout_9.addWidget(self.station_name)
        self.verticalLayout_3.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setVerticalSpacing(2)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_7 = QtGui.QLabel(self.centralwidget)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout.addWidget(self.label_7, 0, 2, 1, 1)
        self.label_10 = QtGui.QLabel(self.centralwidget)
        self.label_10.setAlignment(QtCore.Qt.AlignCenter)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout.addWidget(self.label_10, 0, 5, 1, 1)
        self.name_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.name_img.sizePolicy().hasHeightForWidth())
        self.name_img.setSizePolicy(sizePolicy)
        self.name_img.setMinimumSize(QtCore.QSize(0, 30))
        self.name_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.name_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.name_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.name_img.setObjectName(_fromUtf8("name_img"))
        self.gridLayout.addWidget(self.name_img, 1, 0, 1, 1)
        self.label_8 = QtGui.QLabel(self.centralwidget)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.gridLayout.addWidget(self.label_8, 0, 3, 1, 1)
        self.demand = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand.sizePolicy().hasHeightForWidth())
        self.demand.setSizePolicy(sizePolicy)
        self.demand.setMinimumSize(QtCore.QSize(0, 30))
        self.demand.setObjectName(_fromUtf8("demand"))
        self.gridLayout.addWidget(self.demand, 2, 4, 1, 1)
        self.supply = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply.sizePolicy().hasHeightForWidth())
        self.supply.setSizePolicy(sizePolicy)
        self.supply.setMinimumSize(QtCore.QSize(0, 30))
        self.supply.setObjectName(_fromUtf8("supply"))
        self.gridLayout.addWidget(self.supply, 2, 6, 1, 1)
        self.supply_text_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_text_img.sizePolicy().hasHeightForWidth())
        self.supply_text_img.setSizePolicy(sizePolicy)
        self.supply_text_img.setMinimumSize(QtCore.QSize(0, 30))
        self.supply_text_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.supply_text_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.supply_text_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.supply_text_img.setObjectName(_fromUtf8("supply_text_img"))
        self.gridLayout.addWidget(self.supply_text_img, 1, 6, 1, 1)
        self.sell = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sell.sizePolicy().hasHeightForWidth())
        self.sell.setSizePolicy(sizePolicy)
        self.sell.setMinimumSize(QtCore.QSize(0, 30))
        self.sell.setObjectName(_fromUtf8("sell"))
        self.gridLayout.addWidget(self.sell, 2, 1, 1, 1)
        self.name = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(43)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.name.sizePolicy().hasHeightForWidth())
        self.name.setSizePolicy(sizePolicy)
        self.name.setMinimumSize(QtCore.QSize(0, 30))
        self.name.setObjectName(_fromUtf8("name"))
        self.gridLayout.addWidget(self.name, 2, 0, 1, 1)
        self.buy = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buy.sizePolicy().hasHeightForWidth())
        self.buy.setSizePolicy(sizePolicy)
        self.buy.setMinimumSize(QtCore.QSize(0, 30))
        self.buy.setObjectName(_fromUtf8("buy"))
        self.gridLayout.addWidget(self.buy, 2, 2, 1, 1)
        self.demand_num = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_num.sizePolicy().hasHeightForWidth())
        self.demand_num.setSizePolicy(sizePolicy)
        self.demand_num.setMinimumSize(QtCore.QSize(0, 30))
        self.demand_num.setObjectName(_fromUtf8("demand_num"))
        self.gridLayout.addWidget(self.demand_num, 2, 3, 1, 1)
        self.demand_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_img.sizePolicy().hasHeightForWidth())
        self.demand_img.setSizePolicy(sizePolicy)
        self.demand_img.setMinimumSize(QtCore.QSize(0, 30))
        self.demand_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.demand_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.demand_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.demand_img.setObjectName(_fromUtf8("demand_img"))
        self.gridLayout.addWidget(self.demand_img, 1, 3, 1, 1)
        self.demand_text_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_text_img.sizePolicy().hasHeightForWidth())
        self.demand_text_img.setSizePolicy(sizePolicy)
        self.demand_text_img.setMinimumSize(QtCore.QSize(0, 30))
        self.demand_text_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.demand_text_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.demand_text_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.demand_text_img.setObjectName(_fromUtf8("demand_text_img"))
        self.gridLayout.addWidget(self.demand_text_img, 1, 4, 1, 1)
        self.supply_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_img.sizePolicy().hasHeightForWidth())
        self.supply_img.setSizePolicy(sizePolicy)
        self.supply_img.setMinimumSize(QtCore.QSize(0, 30))
        self.supply_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.supply_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.supply_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.supply_img.setObjectName(_fromUtf8("supply_img"))
        self.gridLayout.addWidget(self.supply_img, 1, 5, 1, 1)
        self.label_6 = QtGui.QLabel(self.centralwidget)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.centralwidget)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)
        self.sell_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sell_img.sizePolicy().hasHeightForWidth())
        self.sell_img.setSizePolicy(sizePolicy)
        self.sell_img.setMinimumSize(QtCore.QSize(0, 30))
        self.sell_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.sell_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.sell_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.sell_img.setObjectName(_fromUtf8("sell_img"))
        self.gridLayout.addWidget(self.sell_img, 1, 1, 1, 1)
        self.buy_img = QtGui.QGraphicsView(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buy_img.sizePolicy().hasHeightForWidth())
        self.buy_img.setSizePolicy(sizePolicy)
        self.buy_img.setMinimumSize(QtCore.QSize(0, 30))
        self.buy_img.setMaximumSize(QtCore.QSize(16777215, 25))
        self.buy_img.setFocusPolicy(QtCore.Qt.NoFocus)
        self.buy_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.buy_img.setObjectName(_fromUtf8("buy_img"))
        self.gridLayout.addWidget(self.buy_img, 1, 2, 1, 1)
        self.supply_num = QtGui.QLineEdit(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_num.sizePolicy().hasHeightForWidth())
        self.supply_num.setSizePolicy(sizePolicy)
        self.supply_num.setMinimumSize(QtCore.QSize(0, 30))
        self.supply_num.setObjectName(_fromUtf8("supply_num"))
        self.gridLayout.addWidget(self.supply_num, 2, 5, 1, 1)
        self.horizontalLayout_10.addLayout(self.gridLayout)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.save_button = QtGui.QPushButton(self.centralwidget)
        self.save_button.setEnabled(False)
        self.save_button.setObjectName(_fromUtf8("save_button"))
        self.verticalLayout.addWidget(self.save_button)
        self.skip_button = QtGui.QPushButton(self.centralwidget)
        self.skip_button.setEnabled(False)
        self.skip_button.setObjectName(_fromUtf8("skip_button"))
        self.verticalLayout.addWidget(self.skip_button)
        self.continue_button = QtGui.QPushButton(self.centralwidget)
        self.continue_button.setEnabled(False)
        self.continue_button.setObjectName(_fromUtf8("continue_button"))
        self.verticalLayout.addWidget(self.continue_button)
        self.horizontalLayout_10.addLayout(self.verticalLayout)
        self.verticalLayout_3.addLayout(self.horizontalLayout_10)
        self.horizontalLayout.addLayout(self.verticalLayout_3)
        self.verticalLayout_4.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_12 = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setMinimumSize(QtCore.QSize(0, 15))
        self.label_12.setMaximumSize(QtCore.QSize(16777215, 15))
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_2.addWidget(self.label_12)
        self.file_label = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.file_label.sizePolicy().hasHeightForWidth())
        self.file_label.setSizePolicy(sizePolicy)
        self.file_label.setMinimumSize(QtCore.QSize(0, 15))
        self.file_label.setMaximumSize(QtCore.QSize(16777215, 15))
        self.file_label.setObjectName(_fromUtf8("file_label"))
        self.horizontalLayout_2.addWidget(self.file_label)
        self.system_not_found = QtGui.QLabel(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.system_not_found.sizePolicy().hasHeightForWidth())
        self.system_not_found.setSizePolicy(sizePolicy)
        self.system_not_found.setMinimumSize(QtCore.QSize(0, 15))
        self.system_not_found.setMaximumSize(QtCore.QSize(16777215, 15))
        self.system_not_found.setStyleSheet(_fromUtf8("color: #d00"))
        self.system_not_found.setWordWrap(True)
        self.system_not_found.setObjectName(_fromUtf8("system_not_found"))
        self.horizontalLayout_2.addWidget(self.system_not_found)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.splitter = QtGui.QSplitter(self.centralwidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.preview = QtGui.QGraphicsView(self.splitter)
        self.preview.setFocusPolicy(QtCore.Qt.NoFocus)
        self.preview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setDragMode(QtGui.QGraphicsView.ScrollHandDrag)
        self.preview.setObjectName(_fromUtf8("preview"))
        self.result_table = CustomQTableWidget(self.splitter)
        self.result_table.setObjectName(_fromUtf8("result_table"))
        self.result_table.setColumnCount(12)
        self.result_table.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(9, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(10, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(11, item)
        self.verticalLayout_4.addWidget(self.splitter)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.factor = QtGui.QDoubleSpinBox(self.centralwidget)
        self.factor.setMinimum(1.0)
        self.factor.setMaximum(5.0)
        self.factor.setSingleStep(0.25)
        self.factor.setObjectName(_fromUtf8("factor"))
        self.horizontalLayout_4.addWidget(self.factor)
        self.zoom_button = QtGui.QPushButton(self.centralwidget)
        self.zoom_button.setObjectName(_fromUtf8("zoom_button"))
        self.horizontalLayout_4.addWidget(self.zoom_button)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem2)
        self.clear_table = QtGui.QPushButton(self.centralwidget)
        self.clear_table.setEnabled(False)
        self.clear_table.setObjectName(_fromUtf8("clear_table"))
        self.horizontalLayout_4.addWidget(self.clear_table)
        self.export_button = QtGui.QPushButton(self.centralwidget)
        self.export_button.setEnabled(False)
        self.export_button.setObjectName(_fromUtf8("export_button"))
        self.horizontalLayout_4.addWidget(self.export_button)
        self.bpc_button = QtGui.QPushButton(self.centralwidget)
        self.bpc_button.setEnabled(False)
        self.bpc_button.setObjectName(_fromUtf8("bpc_button"))
        self.horizontalLayout_4.addWidget(self.bpc_button)
        self.eddn_button = QtGui.QPushButton(self.centralwidget)
        self.eddn_button.setEnabled(False)
        self.eddn_button.setObjectName(_fromUtf8("eddn_button"))
        self.horizontalLayout_4.addWidget(self.eddn_button)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.progress_bar = QtGui.QProgressBar(self.centralwidget)
        self.progress_bar.setMaximumSize(QtCore.QSize(16777215, 10))
        self.progress_bar.setProperty("value", 0)
        self.progress_bar.setTextVisible(False)
        self.progress_bar.setObjectName(_fromUtf8("progress_bar"))
        self.verticalLayout_4.addWidget(self.progress_bar)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1110, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSettings = QtGui.QMenu(self.menubar)
        self.menuSettings.setObjectName(_fromUtf8("menuSettings"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionOpen = QtGui.QAction(MainWindow)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionPreferences = QtGui.QAction(MainWindow)
        self.actionPreferences.setCheckable(False)
        self.actionPreferences.setObjectName(_fromUtf8("actionPreferences"))
        self.actionCommodity_Editor = QtGui.QAction(MainWindow)
        self.actionCommodity_Editor.setObjectName(_fromUtf8("actionCommodity_Editor"))
        self.actionPublic_Mode = QtGui.QAction(MainWindow)
        self.actionPublic_Mode.setCheckable(True)
        self.actionPublic_Mode.setObjectName(_fromUtf8("actionPublic_Mode"))
        self.actionHelp = QtGui.QAction(MainWindow)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.actionUpdate = QtGui.QAction(MainWindow)
        self.actionUpdate.setObjectName(_fromUtf8("actionUpdate"))
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionSetup_Wizard = QtGui.QAction(MainWindow)
        self.actionSetup_Wizard.setObjectName(_fromUtf8("actionSetup_Wizard"))
        self.actionColor_Calibration = QtGui.QAction(MainWindow)
        self.actionColor_Calibration.setObjectName(_fromUtf8("actionColor_Calibration"))
        self.actionLearning_Wizard = QtGui.QAction(MainWindow)
        self.actionLearning_Wizard.setObjectName(_fromUtf8("actionLearning_Wizard"))
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionExit)
        self.menuSettings.addAction(self.actionPreferences)
        self.menuSettings.addAction(self.actionCommodity_Editor)
        self.menuSettings.addAction(self.actionSetup_Wizard)
        self.menuSettings.addAction(self.actionColor_Calibration)
        self.menuSettings.addAction(self.actionLearning_Wizard)
        self.menuSettings.addAction(self.actionPublic_Mode)
        self.menuHelp.addAction(self.actionHelp)
        self.menuHelp.addAction(self.actionUpdate)
        self.menuHelp.addAction(self.actionAbout)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSettings.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.actionExit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.add_button, self.remove_button)
        MainWindow.setTabOrder(self.remove_button, self.add_all_button)
        MainWindow.setTabOrder(self.add_all_button, self.remove_all_button)
        MainWindow.setTabOrder(self.remove_all_button, self.file_list)
        MainWindow.setTabOrder(self.file_list, self.ocr_button)
        MainWindow.setTabOrder(self.ocr_button, self.ocr_all)
        MainWindow.setTabOrder(self.ocr_all, self.system_name)
        MainWindow.setTabOrder(self.system_name, self.station_name)
        MainWindow.setTabOrder(self.station_name, self.name)
        MainWindow.setTabOrder(self.name, self.sell)
        MainWindow.setTabOrder(self.sell, self.buy)
        MainWindow.setTabOrder(self.buy, self.demand_num)
        MainWindow.setTabOrder(self.demand_num, self.demand)
        MainWindow.setTabOrder(self.demand, self.supply_num)
        MainWindow.setTabOrder(self.supply_num, self.supply)
        MainWindow.setTabOrder(self.supply, self.save_button)
        MainWindow.setTabOrder(self.save_button, self.skip_button)
        MainWindow.setTabOrder(self.skip_button, self.continue_button)
        MainWindow.setTabOrder(self.continue_button, self.clear_table)
        MainWindow.setTabOrder(self.clear_table, self.export_button)
        MainWindow.setTabOrder(self.export_button, self.bpc_button)
        MainWindow.setTabOrder(self.bpc_button, self.eddn_button)
        MainWindow.setTabOrder(self.eddn_button, self.factor)
        MainWindow.setTabOrder(self.factor, self.zoom_button)
        MainWindow.setTabOrder(self.zoom_button, self.result_table)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "EliteOCR", None))
        self.label_2.setText(_translate("MainWindow", "<html><head/><body><p>If you have any problems please <span style=\" font-weight:600; text-decoration: underline;\">read &quot;Help&quot;</span>. Please send any bug reports, issues or suggestions to [email protected] or post them in the <a href=\"https://forums.frontier.co.uk/showthread.php?t=68771\"><span style=\" text-decoration: underline; color:#0000ff;\">forum.</span></a></p></body></html>", None))
        self.add_button.setText(_translate("MainWindow", "...", None))
        self.add_button.setShortcut(_translate("MainWindow", "Alt+Q", None))
        self.remove_button.setText(_translate("MainWindow", "...", None))
        self.remove_button.setShortcut(_translate("MainWindow", "Alt+D", None))
        self.add_all_button.setText(_translate("MainWindow", "Add all", None))
        self.add_all_button.setShortcut(_translate("MainWindow", "Alt+W", None))
        self.remove_all_button.setText(_translate("MainWindow", "Remove all", None))
        self.remove_all_button.setShortcut(_translate("MainWindow", "Alt+F", None))
        self.ocr_button.setText(_translate("MainWindow", "OCR", None))
        self.ocr_button.setShortcut(_translate("MainWindow", "Alt+E", None))
        self.ocr_all.setText(_translate("MainWindow", "OCR All", None))
        self.ocr_all.setShortcut(_translate("MainWindow", "Alt+R", None))
        self.label_3.setText(_translate("MainWindow", "System ", None))
        self.label_4.setText(_translate("MainWindow", "Station", None))
        self.label_7.setText(_translate("MainWindow", "Buy", None))
        self.label_10.setText(_translate("MainWindow", "Supply", None))
        self.label_8.setText(_translate("MainWindow", "Demand", None))
        self.label_6.setText(_translate("MainWindow", "Sell", None))
        self.label_5.setText(_translate("MainWindow", "Commodity", None))
        self.save_button.setText(_translate("MainWindow", "Add", None))
        self.save_button.setShortcut(_translate("MainWindow", "Alt+A", None))
        self.skip_button.setText(_translate("MainWindow", "Skip", None))
        self.skip_button.setShortcut(_translate("MainWindow", "Alt+S", None))
        self.continue_button.setText(_translate("MainWindow", "Next File", None))
        self.continue_button.setShortcut(_translate("MainWindow", "Alt+C", None))
        self.label_12.setText(_translate("MainWindow", "File:", None))
        self.file_label.setText(_translate("MainWindow", "-", None))
        item = self.result_table.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Station", None))
        item = self.result_table.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Commodity", None))
        item = self.result_table.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Sell", None))
        item = self.result_table.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Buy", None))
        item = self.result_table.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Demand", None))
        item = self.result_table.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Dem. Level", None))
        item = self.result_table.horizontalHeaderItem(6)
        item.setText(_translate("MainWindow", "Supply", None))
        item = self.result_table.horizontalHeaderItem(7)
        item.setText(_translate("MainWindow", "Sup. Level", None))
        item = self.result_table.horizontalHeaderItem(8)
        item.setText(_translate("MainWindow", "Timestamp", None))
        item = self.result_table.horizontalHeaderItem(9)
        item.setText(_translate("MainWindow", "System", None))
        item = self.result_table.horizontalHeaderItem(10)
        item.setText(_translate("MainWindow", "Img. Height", None))
        item = self.result_table.horizontalHeaderItem(11)
        item.setText(_translate("MainWindow", "EDDN Sent", None))
        self.zoom_button.setText(_translate("MainWindow", "Zoom", None))
        self.clear_table.setText(_translate("MainWindow", "Clear Table", None))
        self.export_button.setText(_translate("MainWindow", "Export", None))
        self.bpc_button.setText(_translate("MainWindow", "Export to BPC", None))
        self.eddn_button.setText(_translate("MainWindow", "Export to EDDN", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuSettings.setTitle(_translate("MainWindow", "Settings", None))
        self.menuHelp.setTitle(_translate("MainWindow", "Help", None))
        self.actionOpen.setText(_translate("MainWindow", "Open", None))
        self.actionExit.setText(_translate("MainWindow", "Exit", None))
        self.actionPreferences.setText(_translate("MainWindow", "Preferences", None))
        self.actionCommodity_Editor.setText(_translate("MainWindow", "Commodity Editor", None))
        self.actionPublic_Mode.setText(_translate("MainWindow", "Public Mode", None))
        self.actionHelp.setText(_translate("MainWindow", "Help", None))
        self.actionUpdate.setText(_translate("MainWindow", "Update", None))
        self.actionAbout.setText(_translate("MainWindow", "About", None))
        self.actionSetup_Wizard.setText(_translate("MainWindow", "Setup Wizard", None))
        self.actionColor_Calibration.setText(_translate("MainWindow", "Color Calibration", None))
        self.actionLearning_Wizard.setText(_translate("MainWindow", "Learning Wizard", None))
コード例 #4
0
ファイル: eliteOCRGUI.py プロジェクト: beldougie/EliteOCR
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(1197, 822)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/icon.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        MainWindow.setWindowIcon(icon)
        MainWindow.setAnimated(True)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.widget = QtGui.QWidget(self.centralwidget)
        self.widget.setMaximumSize(QtCore.QSize(16777215, 200))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout_9 = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout_9.setMargin(0)
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.verticalLayout_4 = QtGui.QVBoxLayout()
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_7 = QtGui.QLabel(self.widget)
        self.label_7.setMinimumSize(QtCore.QSize(150, 0))
        self.label_7.setMaximumSize(QtCore.QSize(16777215, 20))
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout_4.addWidget(self.label_7)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.add_button = QtGui.QToolButton(self.widget)
        self.add_button.setMaximumSize(QtCore.QSize(16777215, 20))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/plus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.add_button.setIcon(icon1)
        self.add_button.setObjectName(_fromUtf8("add_button"))
        self.horizontalLayout_7.addWidget(self.add_button)
        self.add_all_button = QtGui.QPushButton(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.add_all_button.sizePolicy().hasHeightForWidth())
        self.add_all_button.setSizePolicy(sizePolicy)
        self.add_all_button.setMinimumSize(QtCore.QSize(70, 0))
        self.add_all_button.setMaximumSize(QtCore.QSize(50, 16777215))
        self.add_all_button.setObjectName(_fromUtf8("add_all_button"))
        self.horizontalLayout_7.addWidget(self.add_all_button)
        self.remove_button = QtGui.QToolButton(self.widget)
        self.remove_button.setEnabled(False)
        self.remove_button.setMaximumSize(QtCore.QSize(16777215, 20))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/ico/minus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.remove_button.setIcon(icon2)
        self.remove_button.setObjectName(_fromUtf8("remove_button"))
        self.horizontalLayout_7.addWidget(self.remove_button)
        self.remove_all_button = QtGui.QPushButton(self.widget)
        self.remove_all_button.setEnabled(False)
        self.remove_all_button.setMaximumSize(QtCore.QSize(70, 16777215))
        self.remove_all_button.setObjectName(_fromUtf8("remove_all_button"))
        self.horizontalLayout_7.addWidget(self.remove_all_button)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout_4.addLayout(self.horizontalLayout_7)
        self.file_list = QtGui.QListWidget(self.widget)
        self.file_list.setMinimumSize(QtCore.QSize(150, 0))
        self.file_list.setMaximumSize(QtCore.QSize(16777215, 200))
        self.file_list.setObjectName(_fromUtf8("file_list"))
        self.verticalLayout_4.addWidget(self.file_list)
        self.horizontalLayout_9.addLayout(self.verticalLayout_4)
        self.line_3 = QtGui.QFrame(self.widget)
        self.line_3.setFrameShape(QtGui.QFrame.VLine)
        self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_3.setObjectName(_fromUtf8("line_3"))
        self.horizontalLayout_9.addWidget(self.line_3)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_8 = QtGui.QLabel(self.widget)
        self.label_8.setMaximumSize(QtCore.QSize(30, 25))
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.horizontalLayout.addWidget(self.label_8)
        self.file_label = QtGui.QLabel(self.widget)
        self.file_label.setMaximumSize(QtCore.QSize(16777215, 25))
        self.file_label.setObjectName(_fromUtf8("file_label"))
        self.horizontalLayout.addWidget(self.file_label)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.ocr_button = QtGui.QPushButton(self.widget)
        self.ocr_button.setEnabled(False)
        self.ocr_button.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.ocr_button.setObjectName(_fromUtf8("ocr_button"))
        self.horizontalLayout_8.addWidget(self.ocr_button)
        self.ocr_all = QtGui.QPushButton(self.widget)
        self.ocr_all.setEnabled(False)
        self.ocr_all.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.ocr_all.setObjectName(_fromUtf8("ocr_all"))
        self.horizontalLayout_8.addWidget(self.ocr_all)
        spacerItem1 = QtGui.QSpacerItem(40, 5, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_8)
        self.line = QtGui.QFrame(self.widget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.verticalLayout_2.addWidget(self.line)
        self.system_not_found = QtGui.QLabel(self.widget)
        self.system_not_found.setStyleSheet(_fromUtf8("QLabel {color: red; }"))
        self.system_not_found.setText(_fromUtf8(""))
        self.system_not_found.setObjectName(_fromUtf8("system_not_found"))
        self.verticalLayout_2.addWidget(self.system_not_found)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setSpacing(10)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_9 = QtGui.QLabel(self.widget)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout_6.addWidget(self.label_9)
        self.system_name = QtGui.QLineEdit(self.widget)
        self.system_name.setMinimumSize(QtCore.QSize(0, 25))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.system_name.setFont(font)
        self.system_name.setObjectName(_fromUtf8("system_name"))
        self.horizontalLayout_6.addWidget(self.system_name)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.label_5 = QtGui.QLabel(self.widget)
        self.label_5.setMinimumSize(QtCore.QSize(0, 0))
        self.label_5.setMaximumSize(QtCore.QSize(16777215, 20))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout_2.addWidget(self.label_5)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setSpacing(6)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.station_name_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(6)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.station_name_img.sizePolicy().hasHeightForWidth())
        self.station_name_img.setSizePolicy(sizePolicy)
        self.station_name_img.setMinimumSize(QtCore.QSize(0, 20))
        self.station_name_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.station_name_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.station_name_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.station_name_img.setObjectName(_fromUtf8("station_name_img"))
        self.horizontalLayout_5.addWidget(self.station_name_img)
        self.station_name = QtGui.QComboBox(self.widget)
        self.station_name.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(4)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.station_name.sizePolicy().hasHeightForWidth())
        self.station_name.setSizePolicy(sizePolicy)
        self.station_name.setMinimumSize(QtCore.QSize(0, 25))
        self.station_name.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.station_name.setFont(font)
        self.station_name.setAcceptDrops(False)
        self.station_name.setStyleSheet(_fromUtf8(""))
        self.station_name.setEditable(True)
        self.station_name.setIconSize(QtCore.QSize(16, 16))
        self.station_name.setFrame(True)
        self.station_name.setObjectName(_fromUtf8("station_name"))
        self.horizontalLayout_5.addWidget(self.station_name)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setSizeConstraint(QtGui.QLayout.SetFixedSize)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setHorizontalSpacing(6)
        self.gridLayout.setVerticalSpacing(0)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.demand_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_img.sizePolicy().hasHeightForWidth())
        self.demand_img.setSizePolicy(sizePolicy)
        self.demand_img.setMinimumSize(QtCore.QSize(0, 20))
        self.demand_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.demand_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.demand_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.demand_img.setObjectName(_fromUtf8("demand_img"))
        self.gridLayout.addWidget(self.demand_img, 1, 3, 1, 1)
        self.supply_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_img.sizePolicy().hasHeightForWidth())
        self.supply_img.setSizePolicy(sizePolicy)
        self.supply_img.setMinimumSize(QtCore.QSize(0, 20))
        self.supply_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.supply_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.supply_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.supply_img.setObjectName(_fromUtf8("supply_img"))
        self.gridLayout.addWidget(self.supply_img, 1, 5, 1, 1)
        self.supply_text_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_text_img.sizePolicy().hasHeightForWidth())
        self.supply_text_img.setSizePolicy(sizePolicy)
        self.supply_text_img.setMinimumSize(QtCore.QSize(0, 20))
        self.supply_text_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.supply_text_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.supply_text_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.supply_text_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.supply_text_img.setObjectName(_fromUtf8("supply_text_img"))
        self.gridLayout.addWidget(self.supply_text_img, 1, 6, 1, 1)
        self.demand_text_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_text_img.sizePolicy().hasHeightForWidth())
        self.demand_text_img.setSizePolicy(sizePolicy)
        self.demand_text_img.setMinimumSize(QtCore.QSize(0, 20))
        self.demand_text_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.demand_text_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.demand_text_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.demand_text_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.demand_text_img.setObjectName(_fromUtf8("demand_text_img"))
        self.gridLayout.addWidget(self.demand_text_img, 1, 4, 1, 1)
        self.buy_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buy_img.sizePolicy().hasHeightForWidth())
        self.buy_img.setSizePolicy(sizePolicy)
        self.buy_img.setMinimumSize(QtCore.QSize(0, 20))
        self.buy_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.buy_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.buy_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.buy_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.buy_img.setObjectName(_fromUtf8("buy_img"))
        self.gridLayout.addWidget(self.buy_img, 1, 2, 1, 1)
        self.name_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.name_img.sizePolicy().hasHeightForWidth())
        self.name_img.setSizePolicy(sizePolicy)
        self.name_img.setMinimumSize(QtCore.QSize(0, 20))
        self.name_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.name_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.name_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.name_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.name_img.setObjectName(_fromUtf8("name_img"))
        self.gridLayout.addWidget(self.name_img, 1, 0, 1, 1)
        self.sell_img = QtGui.QGraphicsView(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sell_img.sizePolicy().hasHeightForWidth())
        self.sell_img.setSizePolicy(sizePolicy)
        self.sell_img.setMinimumSize(QtCore.QSize(0, 20))
        self.sell_img.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.sell_img.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.sell_img.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.sell_img.setRenderHints(QtGui.QPainter.SmoothPixmapTransform|QtGui.QPainter.TextAntialiasing)
        self.sell_img.setObjectName(_fromUtf8("sell_img"))
        self.gridLayout.addWidget(self.sell_img, 1, 1, 1, 1)
        self.label = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.label_2 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
        self.label_3 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 0, 2, 1, 1)
        self.label_4 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 0, 3, 1, 1)
        self.label_6 = QtGui.QLabel(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout.addWidget(self.label_6, 0, 5, 1, 1)
        self.name = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(43)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.name.sizePolicy().hasHeightForWidth())
        self.name.setSizePolicy(sizePolicy)
        self.name.setMinimumSize(QtCore.QSize(0, 25))
        self.name.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.name.setFont(font)
        self.name.setStyleSheet(_fromUtf8(""))
        self.name.setEditable(True)
        self.name.setObjectName(_fromUtf8("name"))
        self.gridLayout.addWidget(self.name, 3, 0, 1, 1)
        self.sell = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sell.sizePolicy().hasHeightForWidth())
        self.sell.setSizePolicy(sizePolicy)
        self.sell.setMinimumSize(QtCore.QSize(0, 25))
        self.sell.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.sell.setFont(font)
        self.sell.setStyleSheet(_fromUtf8(""))
        self.sell.setEditable(True)
        self.sell.setObjectName(_fromUtf8("sell"))
        self.gridLayout.addWidget(self.sell, 3, 1, 1, 1)
        self.buy = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(12)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buy.sizePolicy().hasHeightForWidth())
        self.buy.setSizePolicy(sizePolicy)
        self.buy.setMinimumSize(QtCore.QSize(0, 25))
        self.buy.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.buy.setFont(font)
        self.buy.setStyleSheet(_fromUtf8(""))
        self.buy.setEditable(True)
        self.buy.setObjectName(_fromUtf8("buy"))
        self.gridLayout.addWidget(self.buy, 3, 2, 1, 1)
        self.demand_num = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand_num.sizePolicy().hasHeightForWidth())
        self.demand_num.setSizePolicy(sizePolicy)
        self.demand_num.setMinimumSize(QtCore.QSize(0, 25))
        self.demand_num.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.demand_num.setFont(font)
        self.demand_num.setStyleSheet(_fromUtf8(""))
        self.demand_num.setEditable(True)
        self.demand_num.setObjectName(_fromUtf8("demand_num"))
        self.gridLayout.addWidget(self.demand_num, 3, 3, 1, 1)
        self.demand = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.demand.sizePolicy().hasHeightForWidth())
        self.demand.setSizePolicy(sizePolicy)
        self.demand.setMinimumSize(QtCore.QSize(0, 25))
        self.demand.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.demand.setFont(font)
        self.demand.setStyleSheet(_fromUtf8(""))
        self.demand.setEditable(True)
        self.demand.setObjectName(_fromUtf8("demand"))
        self.gridLayout.addWidget(self.demand, 3, 4, 1, 1)
        self.supply_num = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(14)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply_num.sizePolicy().hasHeightForWidth())
        self.supply_num.setSizePolicy(sizePolicy)
        self.supply_num.setMinimumSize(QtCore.QSize(0, 25))
        self.supply_num.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.supply_num.setFont(font)
        self.supply_num.setStyleSheet(_fromUtf8(""))
        self.supply_num.setEditable(True)
        self.supply_num.setObjectName(_fromUtf8("supply_num"))
        self.gridLayout.addWidget(self.supply_num, 3, 5, 1, 1)
        self.supply = QtGui.QComboBox(self.widget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(3)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.supply.sizePolicy().hasHeightForWidth())
        self.supply.setSizePolicy(sizePolicy)
        self.supply.setMinimumSize(QtCore.QSize(0, 25))
        self.supply.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setPointSize(11)
        self.supply.setFont(font)
        self.supply.setStyleSheet(_fromUtf8(""))
        self.supply.setEditable(True)
        self.supply.setObjectName(_fromUtf8("supply"))
        self.gridLayout.addWidget(self.supply, 3, 6, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.horizontalLayout_3.addLayout(self.verticalLayout)
        self.verticalLayout_3 = QtGui.QVBoxLayout()
        self.verticalLayout_3.setSpacing(0)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.skip_button = QtGui.QPushButton(self.widget)
        self.skip_button.setEnabled(False)
        self.skip_button.setObjectName(_fromUtf8("skip_button"))
        self.verticalLayout_3.addWidget(self.skip_button)
        self.save_button = QtGui.QPushButton(self.widget)
        self.save_button.setEnabled(False)
        self.save_button.setObjectName(_fromUtf8("save_button"))
        self.verticalLayout_3.addWidget(self.save_button)
        self.continue_button = QtGui.QPushButton(self.widget)
        self.continue_button.setEnabled(False)
        self.continue_button.setObjectName(_fromUtf8("continue_button"))
        self.verticalLayout_3.addWidget(self.continue_button)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_9.addLayout(self.verticalLayout_2)
        self.verticalLayout_5.addWidget(self.widget)
        self.line_2 = QtGui.QFrame(self.centralwidget)
        self.line_2.setEnabled(True)
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.verticalLayout_5.addWidget(self.line_2)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
        self.factor = QtGui.QDoubleSpinBox(self.centralwidget)
        self.factor.setMinimum(1.0)
        self.factor.setMaximum(5.0)
        self.factor.setSingleStep(0.25)
        self.factor.setObjectName(_fromUtf8("factor"))
        self.horizontalLayout_10.addWidget(self.factor)
        self.zoom_button = QtGui.QPushButton(self.centralwidget)
        self.zoom_button.setEnabled(False)
        self.zoom_button.setObjectName(_fromUtf8("zoom_button"))
        self.horizontalLayout_10.addWidget(self.zoom_button)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_10.addItem(spacerItem2)
        self.verticalLayout_5.addLayout(self.horizontalLayout_10)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.splitter = QtGui.QSplitter(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
        self.splitter.setSizePolicy(sizePolicy)
        self.splitter.setFrameShape(QtGui.QFrame.NoFrame)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.preview = QtGui.QGraphicsView(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(88)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.preview.sizePolicy().hasHeightForWidth())
        self.preview.setSizePolicy(sizePolicy)
        self.preview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.preview.setDragMode(QtGui.QGraphicsView.ScrollHandDrag)
        self.preview.setObjectName(_fromUtf8("preview"))
        self.result_table = CustomQTableWidget(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(80)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.result_table.sizePolicy().hasHeightForWidth())
        self.result_table.setSizePolicy(sizePolicy)
        self.result_table.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.result_table.setColumnCount(12)
        self.result_table.setObjectName(_fromUtf8("result_table"))
        self.result_table.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(7, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(8, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(9, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(10, item)
        item = QtGui.QTableWidgetItem()
        self.result_table.setHorizontalHeaderItem(11, item)
        self.horizontalLayout_4.addWidget(self.splitter)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem3)
        self.clear_table = QtGui.QPushButton(self.centralwidget)
        self.clear_table.setEnabled(False)
        self.clear_table.setObjectName(_fromUtf8("clear_table"))
        self.horizontalLayout_2.addWidget(self.clear_table)
        self.export_button = QtGui.QPushButton(self.centralwidget)
        self.export_button.setEnabled(False)
        self.export_button.setMaximumSize(QtCore.QSize(16777215, 25))
        self.export_button.setObjectName(_fromUtf8("export_button"))
        self.horizontalLayout_2.addWidget(self.export_button)
        self.bpc_button = QtGui.QPushButton(self.centralwidget)
        self.bpc_button.setEnabled(False)
        self.bpc_button.setObjectName(_fromUtf8("bpc_button"))
        self.horizontalLayout_2.addWidget(self.bpc_button)
        self.eddn_button = QtGui.QPushButton(self.centralwidget)
        self.eddn_button.setEnabled(False)
        self.eddn_button.setObjectName(_fromUtf8("eddn_button"))
        self.horizontalLayout_2.addWidget(self.eddn_button)
        self.verticalLayout_5.addLayout(self.horizontalLayout_2)
        self.progress_bar = QtGui.QProgressBar(self.centralwidget)
        self.progress_bar.setMaximumSize(QtCore.QSize(16777215, 10))
        self.progress_bar.setMaximum(1)
        self.progress_bar.setProperty("value", 0)
        self.progress_bar.setTextVisible(False)
        self.progress_bar.setObjectName(_fromUtf8("progress_bar"))
        self.verticalLayout_5.addWidget(self.progress_bar)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1197, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuHelp = QtGui.QMenu(self.menubar)
        self.menuHelp.setObjectName(_fromUtf8("menuHelp"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuSettings = QtGui.QMenu(self.menubar)
        self.menuSettings.setObjectName(_fromUtf8("menuSettings"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.actionAbout = QtGui.QAction(MainWindow)
        self.actionAbout.setObjectName(_fromUtf8("actionAbout"))
        self.actionOpen = QtGui.QAction(MainWindow)
        self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
        self.actionExit = QtGui.QAction(MainWindow)
        self.actionExit.setObjectName(_fromUtf8("actionExit"))
        self.actionPreferences = QtGui.QAction(MainWindow)
        self.actionPreferences.setObjectName(_fromUtf8("actionPreferences"))
        self.actionCommodity_Editor = QtGui.QAction(MainWindow)
        self.actionCommodity_Editor.setObjectName(_fromUtf8("actionCommodity_Editor"))
        self.actionHelp = QtGui.QAction(MainWindow)
        self.actionHelp.setObjectName(_fromUtf8("actionHelp"))
        self.actionUpdate = QtGui.QAction(MainWindow)
        self.actionUpdate.setObjectName(_fromUtf8("actionUpdate"))
        self.actionPublic_Mode = QtGui.QAction(MainWindow)
        self.actionPublic_Mode.setCheckable(True)
        self.actionPublic_Mode.setObjectName(_fromUtf8("actionPublic_Mode"))
        self.menuHelp.addAction(self.actionHelp)
        self.menuHelp.addAction(self.actionUpdate)
        self.menuHelp.addAction(self.actionAbout)
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionExit)
        self.menuSettings.addAction(self.actionPreferences)
        self.menuSettings.addAction(self.actionCommodity_Editor)
        self.menuSettings.addAction(self.actionPublic_Mode)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuSettings.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.actionExit, QtCore.SIGNAL(_fromUtf8("triggered()")), MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "EliteOCR", None))
        self.label_7.setText(_translate("MainWindow", "Files", None))
        self.add_button.setText(_translate("MainWindow", "...", None))
        self.add_button.setShortcut(_translate("MainWindow", "Alt+Q", None))
        self.add_all_button.setText(_translate("MainWindow", "Add all", None))
        self.add_all_button.setShortcut(_translate("MainWindow", "Alt+W", None))
        self.remove_button.setText(_translate("MainWindow", "...", None))
        self.remove_button.setShortcut(_translate("MainWindow", "Alt+D", None))
        self.remove_all_button.setText(_translate("MainWindow", "Remove all", None))
        self.remove_all_button.setShortcut(_translate("MainWindow", "Alt+F", None))
        self.label_8.setText(_translate("MainWindow", "File: ", None))
        self.file_label.setText(_translate("MainWindow", "-", None))
        self.ocr_button.setText(_translate("MainWindow", "OCR", None))
        self.ocr_button.setShortcut(_translate("MainWindow", "Alt+E", None))
        self.ocr_all.setText(_translate("MainWindow", "OCR All", None))
        self.ocr_all.setShortcut(_translate("MainWindow", "Alt+R", None))
        self.label_9.setText(_translate("MainWindow", "System Name", None))
        self.label_5.setText(_translate("MainWindow", "Station", None))
        self.label.setText(_translate("MainWindow", "Commodity", None))
        self.label_2.setText(_translate("MainWindow", "Sell", None))
        self.label_3.setText(_translate("MainWindow", "Buy", None))
        self.label_4.setText(_translate("MainWindow", "Demand", None))
        self.label_6.setText(_translate("MainWindow", "Supply", None))
        self.skip_button.setText(_translate("MainWindow", "&Skip", None))
        self.save_button.setText(_translate("MainWindow", "&Add and Next", None))
        self.continue_button.setText(_translate("MainWindow", "&Continue to next file", None))
        self.zoom_button.setText(_translate("MainWindow", "Zoom", None))
        item = self.result_table.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "Station", None))
        item = self.result_table.horizontalHeaderItem(1)
        item.setText(_translate("MainWindow", "Commodity", None))
        item = self.result_table.horizontalHeaderItem(2)
        item.setText(_translate("MainWindow", "Sell", None))
        item = self.result_table.horizontalHeaderItem(3)
        item.setText(_translate("MainWindow", "Buy", None))
        item = self.result_table.horizontalHeaderItem(4)
        item.setText(_translate("MainWindow", "Demand", None))
        item = self.result_table.horizontalHeaderItem(5)
        item.setText(_translate("MainWindow", "Dem. Level", None))
        item = self.result_table.horizontalHeaderItem(6)
        item.setText(_translate("MainWindow", "Supply", None))
        item = self.result_table.horizontalHeaderItem(7)
        item.setText(_translate("MainWindow", "Sup. Level", None))
        item = self.result_table.horizontalHeaderItem(8)
        item.setText(_translate("MainWindow", "Timestamp", None))
        item = self.result_table.horizontalHeaderItem(9)
        item.setText(_translate("MainWindow", "System", None))
        item = self.result_table.horizontalHeaderItem(10)
        item.setText(_translate("MainWindow", "Img. Height", None))
        item = self.result_table.horizontalHeaderItem(11)
        item.setText(_translate("MainWindow", "EDDN Sent", None))
        self.clear_table.setText(_translate("MainWindow", "Clear Table", None))
        self.export_button.setText(_translate("MainWindow", "Export", None))
        self.bpc_button.setText(_translate("MainWindow", "Export to BPC", None))
        self.eddn_button.setText(_translate("MainWindow", "Export to EDDN", None))
        self.menuHelp.setTitle(_translate("MainWindow", "Help", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuSettings.setTitle(_translate("MainWindow", "Settings", None))
        self.actionAbout.setText(_translate("MainWindow", "About", None))
        self.actionOpen.setText(_translate("MainWindow", "Open", None))
        self.actionExit.setText(_translate("MainWindow", "Exit", None))
        self.actionPreferences.setText(_translate("MainWindow", "Preferences", None))
        self.actionCommodity_Editor.setText(_translate("MainWindow", "Commodity Editor", None))
        self.actionHelp.setText(_translate("MainWindow", "Help", None))
        self.actionUpdate.setText(_translate("MainWindow", "Update", None))
        self.actionPublic_Mode.setText(_translate("MainWindow", "Public Mode", None))