Example #1
0
class Ui_SetupWizard(object):
    def setupUi(self, SetupWizard):
        SetupWizard.setObjectName(_fromUtf8("SetupWizard"))
        SetupWizard.resize(554, 519)
        SetupWizard.setWizardStyle(QtGui.QWizard.ModernStyle)
        self.wizardPage1 = CustomQWizardPage()
        self.wizardPage1.setObjectName(_fromUtf8("wizardPage1"))
        self.verticalLayout = QtGui.QVBoxLayout(self.wizardPage1)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.wizardPage1)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label.setFont(font)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        SetupWizard.addPage(self.wizardPage1)
        self.wizardPage2 = CustomQWizardPage()
        self.wizardPage2.setObjectName(_fromUtf8("wizardPage2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.wizardPage2)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_2 = QtGui.QLabel(self.wizardPage2)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        spacerItem = QtGui.QSpacerItem(10, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.wizardPage2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.label_4 = QtGui.QLabel(self.wizardPage2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 2, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.wizardPage2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1)
        self.operating_system = QtGui.QLabel(self.wizardPage2)
        self.operating_system.setObjectName(_fromUtf8("operating_system"))
        self.gridLayout.addWidget(self.operating_system, 0, 1, 1, 1)
        self.standard_path = QtGui.QLabel(self.wizardPage2)
        self.standard_path.setObjectName(_fromUtf8("standard_path"))
        self.gridLayout.addWidget(self.standard_path, 3, 1, 1, 1)
        self.label_7 = QtGui.QLabel(self.wizardPage2)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout.addWidget(self.label_7, 0, 0, 1, 1)
        self.label_9 = QtGui.QLabel(self.wizardPage2)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout.addWidget(self.label_9, 4, 0, 1, 1)
        self.custom_path = QtGui.QLabel(self.wizardPage2)
        self.custom_path.setObjectName(_fromUtf8("custom_path"))
        self.gridLayout.addWidget(self.custom_path, 4, 1, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.path_input = QtGui.QLineEdit(self.wizardPage2)
        self.path_input.setObjectName(_fromUtf8("path_input"))
        self.horizontalLayout.addWidget(self.path_input)
        self.browse_log_path = QtGui.QPushButton(self.wizardPage2)
        self.browse_log_path.setObjectName(_fromUtf8("browse_log_path"))
        self.horizontalLayout.addWidget(self.browse_log_path)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_6 = QtGui.QLabel(self.wizardPage2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_8.addWidget(self.label_6)
        self.valid_path = QtGui.QLabel(self.wizardPage2)
        self.valid_path.setObjectName(_fromUtf8("valid_path"))
        self.horizontalLayout_8.addWidget(self.valid_path)
        self.verticalLayout_2.addLayout(self.horizontalLayout_8)
        SetupWizard.addPage(self.wizardPage2)
        self.wizardPage3 = CustomQWizardPage()
        self.wizardPage3.setObjectName(_fromUtf8("wizardPage3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.wizardPage3)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_11 = QtGui.QLabel(self.wizardPage3)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_11.setFont(font)
        self.label_11.setWordWrap(True)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.verticalLayout_3.addWidget(self.label_11)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_12 = QtGui.QLabel(self.wizardPage3)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_2.addWidget(self.label_12)
        self.appconf_found = QtGui.QLabel(self.wizardPage3)
        self.appconf_found.setObjectName(_fromUtf8("appconf_found"))
        self.horizontalLayout_2.addWidget(self.appconf_found)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_14 = QtGui.QLabel(self.wizardPage3)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.horizontalLayout_3.addWidget(self.label_14)
        self.verbose_enabled = QtGui.QLabel(self.wizardPage3)
        self.verbose_enabled.setObjectName(_fromUtf8("verbose_enabled"))
        self.horizontalLayout_3.addWidget(self.verbose_enabled)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.verbose_button = QtGui.QPushButton(self.wizardPage3)
        self.verbose_button.setEnabled(False)
        self.verbose_button.setObjectName(_fromUtf8("verbose_button"))
        self.horizontalLayout_4.addWidget(self.verbose_button)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.label_16 = QtGui.QLabel(self.wizardPage3)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_16.setFont(font)
        self.label_16.setTextFormat(QtCore.Qt.RichText)
        self.label_16.setWordWrap(True)
        self.label_16.setOpenExternalLinks(True)
        self.label_16.setObjectName(_fromUtf8("label_16"))
        self.verticalLayout_3.addWidget(self.label_16)
        SetupWizard.addPage(self.wizardPage3)
        self.wizardPage4 = CustomQWizardPage()
        self.wizardPage4.setObjectName(_fromUtf8("wizardPage4"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.wizardPage4)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_17 = QtGui.QLabel(self.wizardPage4)
        self.label_17.setWordWrap(True)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.verticalLayout_4.addWidget(self.label_17)
        self.label_18 = QtGui.QLabel(self.wizardPage4)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.verticalLayout_4.addWidget(self.label_18)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.screenshot_dir = QtGui.QLineEdit(self.wizardPage4)
        self.screenshot_dir.setObjectName(_fromUtf8("screenshot_dir"))
        self.horizontalLayout_5.addWidget(self.screenshot_dir)
        self.screenshot_dir_browse = QtGui.QPushButton(self.wizardPage4)
        self.screenshot_dir_browse.setObjectName(_fromUtf8("screenshot_dir_browse"))
        self.horizontalLayout_5.addWidget(self.screenshot_dir_browse)
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
        self.label_19 = QtGui.QLabel(self.wizardPage4)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.verticalLayout_4.addWidget(self.label_19)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.export_dir = QtGui.QLineEdit(self.wizardPage4)
        self.export_dir.setObjectName(_fromUtf8("export_dir"))
        self.horizontalLayout_6.addWidget(self.export_dir)
        self.export_dir_browse = QtGui.QPushButton(self.wizardPage4)
        self.export_dir_browse.setObjectName(_fromUtf8("export_dir_browse"))
        self.horizontalLayout_6.addWidget(self.export_dir_browse)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        SetupWizard.addPage(self.wizardPage4)
        self.wizardPage5 = CustomQWizardPage()
        self.wizardPage5.setObjectName(_fromUtf8("wizardPage5"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.wizardPage5)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.label_23 = QtGui.QLabel(self.wizardPage5)
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.verticalLayout_7.addWidget(self.label_23)
        self.summary = QtGui.QLabel(self.wizardPage5)
        self.summary.setText(_fromUtf8(""))
        self.summary.setWordWrap(True)
        self.summary.setObjectName(_fromUtf8("summary"))
        self.verticalLayout_7.addWidget(self.summary)
        SetupWizard.addPage(self.wizardPage5)

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

    def retranslateUi(self, SetupWizard):
        SetupWizard.setWindowTitle(_translate("SetupWizard", "EliteOCR Wizard", None))
        self.wizardPage1.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage1.setSubTitle(_translate("SetupWizard", "This wizard will help you set up EliteOCR to work properly with your Elite: Dangerous installation and market screenshots.", None))
        self.label.setText(_translate("SetupWizard", "Welcome to EliteOCR.\n"
"\n"
"This wizard will help with the following tasks:\n"
"- Set the log directory path for automatic system and station name retrieval\n"
"- Enable verbose logging in the games configuration\n"
"- Set the screenshot directory path for fast selection of files\n"
"- Set the export directory path\n"
"\n"
"Please read all the instructions very carefully. You can run this wizard at any time from the settings menu.", None))
        self.wizardPage2.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage2.setSubTitle(_translate("SetupWizard", "Log Path Setiup", None))
        self.label_2.setText(_translate("SetupWizard", "In this step EliteOCR tries to find the location of your games log directory. If the path cannot be found automatically (e.g. network share) you can choose it manually. If you don\'t set this path EliteOCR will not be able to find the system name and you will need to fill it automatically.", None))
        self.label_3.setText(_translate("SetupWizard", "Location", None))
        self.label_4.setText(_translate("SetupWizard", "Found", None))
        self.label_5.setText(_translate("SetupWizard", "Standard Path", None))
        self.operating_system.setText(_translate("SetupWizard", "-", None))
        self.standard_path.setText(_translate("SetupWizard", "-", None))
        self.label_7.setText(_translate("SetupWizard", "Operating system:", None))
        self.label_9.setText(_translate("SetupWizard", "Custom Install Path", None))
        self.custom_path.setText(_translate("SetupWizard", "-", None))
        self.browse_log_path.setText(_translate("SetupWizard", "Choose location", None))
        self.label_6.setText(_translate("SetupWizard", "Valid path selected:", None))
        self.valid_path.setText(_translate("SetupWizard", "-", None))
        self.wizardPage3.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage3.setSubTitle(_translate("SetupWizard", "Verbose Logging", None))
        self.label_11.setText(_translate("SetupWizard", "In order to automatically receive system and station names it is necessary to enable verbose logging in games settings files.", None))
        self.label_12.setText(_translate("SetupWizard", "AppConfig.xml", None))
        self.appconf_found.setText(_translate("SetupWizard", "-", None))
        self.label_14.setText(_translate("SetupWizard", "Verbose Logging", None))
        self.verbose_enabled.setText(_translate("SetupWizard", "-", None))
        self.verbose_button.setText(_translate("SetupWizard", "Enable Verbose Logging", None))
        self.label_16.setText(_translate("SetupWizard", "<html><head/><body><p>After enabling verbose logging in ED <span style=\" font-weight:600; text-decoration: underline;\">restart the game</span> and make some good market screenshots for calibration. You make the screenshots by pressing F10 in the game. DO NOT use ALT+F10.<br/><br/>Exaple of a <a href=\"http://i.imgur.com/n2UPagt.jpg\"><span style=\" text-decoration: underline; color:#0000ff;\">good screenshot</span></a> and an exaple of a <a href=\"http://i.imgur.com/MZTmTON.jpg\"><span style=\" text-decoration: underline; color:#0000ff;\">bad screenshot</span></a>.<br/><br/>Please note the selected line and the glow on the top of the market frame. You have to make sure they are not present on your screenshots. You can achieve this by moving the mouse to the right on the field with commodity description or by pressing right on your jostick/gamepad until this field is selected.</p><p>(You can keep this wizard open while you make the screenshots.)</p></body></html>", None))
        self.wizardPage4.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage4.setSubTitle(_translate("SetupWizard", "Screenshot and Export paths", None))
        self.label_17.setText(_translate("SetupWizard", "In this step you choose where EliteOCR should look for screenshots and where you want it to export your results.", None))
        self.label_18.setText(_translate("SetupWizard", "Schreenshot directory:", None))
        self.screenshot_dir_browse.setText(_translate("SetupWizard", "Browse", None))
        self.label_19.setText(_translate("SetupWizard", "Export directory:", None))
        self.export_dir_browse.setText(_translate("SetupWizard", "Browse", None))
        self.wizardPage5.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage5.setSubTitle(_translate("SetupWizard", "Results", None))
        self.label_23.setText(_translate("SetupWizard", "Setup Wizard finished with following results:", None))
Example #2
0
class Ui_Wizard(object):
    def setupUi(self, Wizard):
        Wizard.setObjectName(_fromUtf8("Wizard"))
        Wizard.resize(788, 483)
        Wizard.setWizardStyle(QtGui.QWizard.ModernStyle)
        self.wizardPage1 = QtGui.QWizardPage()
        self.wizardPage1.setObjectName(_fromUtf8("wizardPage1"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.wizardPage1)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_2 = QtGui.QLabel(self.wizardPage1)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_4.addWidget(self.label_2)
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.verticalLayout_4.addItem(spacerItem)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.label_3 = QtGui.QLabel(self.wizardPage1)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_5.addWidget(self.label_3)
        self.base_data_label = QtGui.QLabel(self.wizardPage1)
        self.base_data_label.setWordWrap(True)
        self.base_data_label.setObjectName(_fromUtf8("base_data_label"))
        self.horizontalLayout_5.addWidget(self.base_data_label)
        self.horizontalLayout_5.setStretch(0, 1)
        self.horizontalLayout_5.setStretch(1, 100)
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_4 = QtGui.QLabel(self.wizardPage1)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_6.addWidget(self.label_4)
        self.user_data_label = QtGui.QLabel(self.wizardPage1)
        self.user_data_label.setWordWrap(True)
        self.user_data_label.setObjectName(_fromUtf8("user_data_label"))
        self.horizontalLayout_6.addWidget(self.user_data_label)
        self.horizontalLayout_6.setStretch(0, 1)
        self.horizontalLayout_6.setStretch(1, 100)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        self.delete_images_button = QtGui.QPushButton(self.wizardPage1)
        self.delete_images_button.setEnabled(False)
        self.delete_images_button.setObjectName(_fromUtf8("delete_images_button"))
        self.verticalLayout_4.addWidget(self.delete_images_button)
        spacerItem2 = QtGui.QSpacerItem(20, 281, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem2)
        self.verticalLayout_4.setStretch(0, 1)
        self.verticalLayout_4.setStretch(2, 1)
        self.verticalLayout_4.setStretch(3, 1)
        self.verticalLayout_4.setStretch(4, 1)
        self.verticalLayout_4.setStretch(6, 10)
        Wizard.addPage(self.wizardPage1)
        self.wizardPage2 = CustomQWizardPage()
        self.wizardPage2.setObjectName(_fromUtf8("wizardPage2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.wizardPage2)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label = QtGui.QLabel(self.wizardPage2)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_2.addWidget(self.label)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.file_list = QtGui.QListWidget(self.wizardPage2)
        self.file_list.setMaximumSize(QtCore.QSize(16777215, 100))
        self.file_list.setObjectName(_fromUtf8("file_list"))
        self.horizontalLayout.addWidget(self.file_list)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.add_files_button = QtGui.QPushButton(self.wizardPage2)
        self.add_files_button.setObjectName(_fromUtf8("add_files_button"))
        self.verticalLayout.addWidget(self.add_files_button)
        self.remove_file_button = QtGui.QPushButton(self.wizardPage2)
        self.remove_file_button.setObjectName(_fromUtf8("remove_file_button"))
        self.verticalLayout.addWidget(self.remove_file_button)
        self.ocr_button = QtGui.QPushButton(self.wizardPage2)
        self.ocr_button.setObjectName(_fromUtf8("ocr_button"))
        self.verticalLayout.addWidget(self.ocr_button)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.label_5 = QtGui.QLabel(self.wizardPage2)
        self.label_5.setWordWrap(True)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout_2.addWidget(self.label_5)
        self.snippet_preview = QtGui.QGraphicsView(self.wizardPage2)
        self.snippet_preview.setMaximumSize(QtCore.QSize(16777215, 45))
        self.snippet_preview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.snippet_preview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.snippet_preview.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.snippet_preview.setObjectName(_fromUtf8("snippet_preview"))
        self.verticalLayout_2.addWidget(self.snippet_preview)
        self.field_holder = QtGui.QHBoxLayout()
        self.field_holder.setObjectName(_fromUtf8("field_holder"))
        self.grid = QtGui.QGridLayout()
        self.grid.setSizeConstraint(QtGui.QLayout.SetMinimumSize)
        self.grid.setObjectName(_fromUtf8("grid"))
        self.field_holder.addLayout(self.grid)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.field_holder.addItem(spacerItem3)
        self.field_holder.setStretch(1, 100)
        self.verticalLayout_2.addLayout(self.field_holder)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.prev_button = QtGui.QPushButton(self.wizardPage2)
        self.prev_button.setEnabled(False)
        self.prev_button.setObjectName(_fromUtf8("prev_button"))
        self.horizontalLayout_4.addWidget(self.prev_button)
        self.next_button = QtGui.QPushButton(self.wizardPage2)
        self.next_button.setEnabled(False)
        self.next_button.setObjectName(_fromUtf8("next_button"))
        self.horizontalLayout_4.addWidget(self.next_button)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem4)
        self.notifier = QtGui.QLabel(self.wizardPage2)
        self.notifier.setAlignment(QtCore.Qt.AlignCenter)
        self.notifier.setObjectName(_fromUtf8("notifier"))
        self.verticalLayout_2.addWidget(self.notifier)
        self.verticalLayout_2.setStretch(6, 100)
        Wizard.addPage(self.wizardPage2)
        self.wizardPage3 = CustomQWizardPage()
        self.wizardPage3.setObjectName(_fromUtf8("wizardPage3"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.wizardPage3)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.label_6 = QtGui.QLabel(self.wizardPage3)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.verticalLayout_5.addWidget(self.label_6)
        self.summary_label = QtGui.QLabel(self.wizardPage3)
        self.summary_label.setWordWrap(True)
        self.summary_label.setObjectName(_fromUtf8("summary_label"))
        self.verticalLayout_5.addWidget(self.summary_label)
        self.save_button = QtGui.QPushButton(self.wizardPage3)
        self.save_button.setObjectName(_fromUtf8("save_button"))
        self.verticalLayout_5.addWidget(self.save_button)
        spacerItem5 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.verticalLayout_5.addItem(spacerItem5)
        self.label_7 = QtGui.QLabel(self.wizardPage3)
        self.label_7.setWordWrap(True)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout_5.addWidget(self.label_7)
        self.train_button = QtGui.QPushButton(self.wizardPage3)
        self.train_button.setEnabled(False)
        self.train_button.setObjectName(_fromUtf8("train_button"))
        self.verticalLayout_5.addWidget(self.train_button)
        self.loader = QtGui.QLabel(self.wizardPage3)
        self.loader.setText(_fromUtf8(""))
        self.loader.setAlignment(QtCore.Qt.AlignCenter)
        self.loader.setObjectName(_fromUtf8("loader"))
        self.verticalLayout_5.addWidget(self.loader)
        self.training_summary = QtGui.QLabel(self.wizardPage3)
        self.training_summary.setText(_fromUtf8(""))
        self.training_summary.setWordWrap(True)
        self.training_summary.setObjectName(_fromUtf8("training_summary"))
        self.verticalLayout_5.addWidget(self.training_summary)
        self.details = QtGui.QTextEdit(self.wizardPage3)
        self.details.setObjectName(_fromUtf8("details"))
        self.verticalLayout_5.addWidget(self.details)
        spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem6)
        self.verticalLayout_5.setStretch(0, 1)
        self.verticalLayout_5.setStretch(1, 1)
        self.verticalLayout_5.setStretch(2, 1)
        self.verticalLayout_5.setStretch(3, 1)
        self.verticalLayout_5.setStretch(4, 1)
        self.verticalLayout_5.setStretch(5, 1)
        self.verticalLayout_5.setStretch(9, 100)
        Wizard.addPage(self.wizardPage3)

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

    def retranslateUi(self, Wizard):
        Wizard.setWindowTitle(_translate("Wizard", "Wizard", None))
        self.label_2.setText(_translate("Wizard", "This is the learning module. You can improve your OCR accuracy by training OCR with your images. Following learning images are available. You can add more by processing your screenshots in the next step. If you want to restart learning from scratch you can always delete user\'s training images. Base images will not be deleted as they are necessary for proper training.", None))
        self.label_3.setText(_translate("Wizard", "Base learning images:", None))
        self.base_data_label.setText(_translate("Wizard", "-", None))
        self.label_4.setText(_translate("Wizard", "User\'s learning images:", None))
        self.user_data_label.setText(_translate("Wizard", "-", None))
        self.delete_images_button.setText(_translate("Wizard", "Delete user\'s training images", None))
        self.label.setText(_translate("Wizard", "Select Files to use for learning and click OCR. The images will be cut in single characters for training. Check every single one if it is recognized properly and correct if needed.", None))
        self.add_files_button.setText(_translate("Wizard", "Add Files", None))
        self.remove_file_button.setText(_translate("Wizard", "Remove File", None))
        self.ocr_button.setText(_translate("Wizard", "OCR", None))
        self.label_5.setText(_translate("Wizard", "Dot and comma are the same for learning.\n"
"If two letters are recognized as one use empty text field so it will be ignored while learning.", None))
        self.prev_button.setText(_translate("Wizard", "Previous", None))
        self.next_button.setText(_translate("Wizard", "Next", None))
        self.notifier.setText(_translate("Wizard", "You did not add and OCR any images yet.", None))
        self.label_6.setText(_translate("Wizard", "You collected following new images:", None))
        self.summary_label.setText(_translate("Wizard", "-", None))
        self.save_button.setText(_translate("Wizard", "Add those images to user\'s training images", None))
        self.label_7.setText(_translate("Wizard", "Base training data and user\'s training data will be used for OCR training. Click the button above to add just analyzed data to user\'s images. Please note: Learning process can take several minutes to finish! Summary will be shown when the training is completed.", None))
        self.train_button.setText(_translate("Wizard", "Perform training", None))
Example #3
0
class Ui_SetupWizard(object):
    def setupUi(self, SetupWizard):
        SetupWizard.setObjectName(_fromUtf8("SetupWizard"))
        SetupWizard.resize(560, 545)
        SetupWizard.setWizardStyle(QtGui.QWizard.ModernStyle)
        self.wizardPage1 = CustomQWizardPage()
        self.wizardPage1.setObjectName(_fromUtf8("wizardPage1"))
        self.verticalLayout = QtGui.QVBoxLayout(self.wizardPage1)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(self.wizardPage1)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label.setFont(font)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        SetupWizard.addPage(self.wizardPage1)
        self.wizardPage2 = CustomQWizardPage()
        self.wizardPage2.setObjectName(_fromUtf8("wizardPage2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.wizardPage2)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_2 = QtGui.QLabel(self.wizardPage2)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_2.setFont(font)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        spacerItem = QtGui.QSpacerItem(10, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.wizardPage2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.label_4 = QtGui.QLabel(self.wizardPage2)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 2, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.wizardPage2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 3, 0, 1, 1)
        self.operating_system = QtGui.QLabel(self.wizardPage2)
        self.operating_system.setObjectName(_fromUtf8("operating_system"))
        self.gridLayout.addWidget(self.operating_system, 0, 1, 1, 1)
        self.standard_path = QtGui.QLabel(self.wizardPage2)
        self.standard_path.setObjectName(_fromUtf8("standard_path"))
        self.gridLayout.addWidget(self.standard_path, 3, 1, 1, 1)
        self.label_7 = QtGui.QLabel(self.wizardPage2)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout.addWidget(self.label_7, 0, 0, 1, 1)
        self.label_9 = QtGui.QLabel(self.wizardPage2)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.gridLayout.addWidget(self.label_9, 4, 0, 1, 1)
        self.custom_path = QtGui.QLabel(self.wizardPage2)
        self.custom_path.setObjectName(_fromUtf8("custom_path"))
        self.gridLayout.addWidget(self.custom_path, 4, 1, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.path_input = QtGui.QLineEdit(self.wizardPage2)
        self.path_input.setObjectName(_fromUtf8("path_input"))
        self.horizontalLayout.addWidget(self.path_input)
        self.browse_log_path = QtGui.QPushButton(self.wizardPage2)
        self.browse_log_path.setObjectName(_fromUtf8("browse_log_path"))
        self.horizontalLayout.addWidget(self.browse_log_path)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_6 = QtGui.QLabel(self.wizardPage2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.horizontalLayout_8.addWidget(self.label_6)
        self.valid_path = QtGui.QLabel(self.wizardPage2)
        self.valid_path.setObjectName(_fromUtf8("valid_path"))
        self.horizontalLayout_8.addWidget(self.valid_path)
        self.verticalLayout_2.addLayout(self.horizontalLayout_8)
        SetupWizard.addPage(self.wizardPage2)
        self.wizardPage3 = CustomQWizardPage()
        self.wizardPage3.setObjectName(_fromUtf8("wizardPage3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.wizardPage3)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label_11 = QtGui.QLabel(self.wizardPage3)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.label_11.setFont(font)
        self.label_11.setWordWrap(True)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.verticalLayout_3.addWidget(self.label_11)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.appconf = QtGui.QLabel(self.wizardPage3)
        self.appconf.setObjectName(_fromUtf8("appconf"))
        self.horizontalLayout_2.addWidget(self.appconf)
        self.appconf_found = QtGui.QLabel(self.wizardPage3)
        self.appconf_found.setObjectName(_fromUtf8("appconf_found"))
        self.horizontalLayout_2.addWidget(self.appconf_found)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_14 = QtGui.QLabel(self.wizardPage3)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.horizontalLayout_3.addWidget(self.label_14)
        self.verbose_enabled = QtGui.QLabel(self.wizardPage3)
        self.verbose_enabled.setObjectName(_fromUtf8("verbose_enabled"))
        self.horizontalLayout_3.addWidget(self.verbose_enabled)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.verbose_button = QtGui.QPushButton(self.wizardPage3)
        self.verbose_button.setEnabled(False)
        self.verbose_button.setObjectName(_fromUtf8("verbose_button"))
        self.horizontalLayout_4.addWidget(self.verbose_button)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.advice = QtGui.QLabel(self.wizardPage3)
        font = QtGui.QFont()
        font.setPointSize(12)
        self.advice.setFont(font)
        self.advice.setTextFormat(QtCore.Qt.RichText)
        self.advice.setWordWrap(True)
        self.advice.setOpenExternalLinks(True)
        self.advice.setObjectName(_fromUtf8("advice"))
        self.verticalLayout_3.addWidget(self.advice)
        SetupWizard.addPage(self.wizardPage3)
        self.wizardPage4 = CustomQWizardPage()
        self.wizardPage4.setObjectName(_fromUtf8("wizardPage4"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.wizardPage4)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_17 = QtGui.QLabel(self.wizardPage4)
        self.label_17.setWordWrap(True)
        self.label_17.setObjectName(_fromUtf8("label_17"))
        self.verticalLayout_4.addWidget(self.label_17)
        self.label_18 = QtGui.QLabel(self.wizardPage4)
        self.label_18.setObjectName(_fromUtf8("label_18"))
        self.verticalLayout_4.addWidget(self.label_18)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.screenshot_dir = QtGui.QLineEdit(self.wizardPage4)
        self.screenshot_dir.setObjectName(_fromUtf8("screenshot_dir"))
        self.horizontalLayout_5.addWidget(self.screenshot_dir)
        self.screenshot_dir_browse = QtGui.QPushButton(self.wizardPage4)
        self.screenshot_dir_browse.setObjectName(_fromUtf8("screenshot_dir_browse"))
        self.horizontalLayout_5.addWidget(self.screenshot_dir_browse)
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
        self.label_19 = QtGui.QLabel(self.wizardPage4)
        self.label_19.setObjectName(_fromUtf8("label_19"))
        self.verticalLayout_4.addWidget(self.label_19)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.export_dir = QtGui.QLineEdit(self.wizardPage4)
        self.export_dir.setObjectName(_fromUtf8("export_dir"))
        self.horizontalLayout_6.addWidget(self.export_dir)
        self.export_dir_browse = QtGui.QPushButton(self.wizardPage4)
        self.export_dir_browse.setObjectName(_fromUtf8("export_dir_browse"))
        self.horizontalLayout_6.addWidget(self.export_dir_browse)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        SetupWizard.addPage(self.wizardPage4)
        self.wizardPage5 = CustomQWizardPage()
        self.wizardPage5.setObjectName(_fromUtf8("wizardPage5"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.wizardPage5)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.label_23 = QtGui.QLabel(self.wizardPage5)
        self.label_23.setObjectName(_fromUtf8("label_23"))
        self.verticalLayout_7.addWidget(self.label_23)
        self.summary = QtGui.QLabel(self.wizardPage5)
        self.summary.setText(_fromUtf8(""))
        self.summary.setWordWrap(True)
        self.summary.setObjectName(_fromUtf8("summary"))
        self.verticalLayout_7.addWidget(self.summary)
        SetupWizard.addPage(self.wizardPage5)

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

    def retranslateUi(self, SetupWizard):
        SetupWizard.setWindowTitle(_translate("SetupWizard", "EliteOCR Wizard", None))
        self.wizardPage1.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage1.setSubTitle(_translate("SetupWizard", "This wizard will help you set up EliteOCR to work properly with your Elite: Dangerous installation and market screenshots.", None))
        self.label.setText(_translate("SetupWizard", "Welcome to EliteOCR.\n"
"\n"
"This wizard will help with the following tasks:\n"
"- Set the log directory path for automatic system and station name retrieval\n"
"- Enable verbose logging in the games configuration\n"
"- Set the screenshot directory path for fast selection of files\n"
"- Set the export directory path\n"
"\n"
"Please read all the instructions very carefully. You can run this wizard at any time from the settings menu.", None))
        self.wizardPage2.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage2.setSubTitle(_translate("SetupWizard", "Log Path Setup", None))
        self.label_2.setText(_translate("SetupWizard", "In this step EliteOCR tries to find the location of your games log directory. If the path cannot be found automatically (e.g. network share) you can choose it manually. If you don\'t set this path EliteOCR will not be able to find the system name and you will need to fill it automatically.", None))
        self.label_3.setText(_translate("SetupWizard", "Location", None))
        self.label_4.setText(_translate("SetupWizard", "Found", None))
        self.label_5.setText(_translate("SetupWizard", "Standard Path", None))
        self.operating_system.setText(_translate("SetupWizard", "-", None))
        self.standard_path.setText(_translate("SetupWizard", "-", None))
        self.label_7.setText(_translate("SetupWizard", "Operating system:", None))
        self.label_9.setText(_translate("SetupWizard", "Custom Install Path", None))
        self.custom_path.setText(_translate("SetupWizard", "-", None))
        self.browse_log_path.setText(_translate("SetupWizard", "Choose location", None))
        self.label_6.setText(_translate("SetupWizard", "Valid path selected:", None))
        self.valid_path.setText(_translate("SetupWizard", "-", None))
        self.wizardPage3.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage3.setSubTitle(_translate("SetupWizard", "Verbose Logging", None))
        self.label_11.setText(_translate("SetupWizard", "In order to automatically receive system and station names it is necessary to enable verbose logging in games settings files.", None))
        self.appconf.setText(_translate("SetupWizard", "AppConfig.xml", None))
        self.appconf_found.setText(_translate("SetupWizard", "-", None))
        self.label_14.setText(_translate("SetupWizard", "Verbose Logging", None))
        self.verbose_enabled.setText(_translate("SetupWizard", "-", None))
        self.verbose_button.setText(_translate("SetupWizard", "Enable Verbose Logging", None))
        self.advice.setText(_translate("SetupWizard", "<html><head/><body><p>After enabling verbose logging in ED <span style=\" font-weight:600; text-decoration: underline;\">restart the game</span> and make some good market screenshots for calibration. You make the screenshots by pressing %1 in the game. DO NOT use Alt-%1. %2</p><p>Example of a <a href=\"http://i.imgur.com/n2UPagt.jpg\"><span style=\" text-decoration: underline; color:#0000ff;\">good screenshot</span></a> and an example of a <a href=\"http://i.imgur.com/MZTmTON.jpg\"><span style=\" text-decoration: underline; color:#0000ff;\">bad screenshot</span></a>.</p><p>Please note the selected line and the glow on the top of the market frame. You have to make sure they are not present on your screenshots. You can achieve this by moving the mouse to the right on the field with commodity description or by pressing right on your joystick/gamepad until this field is selected.</p><p>(You can keep this wizard open while you make the screenshots.)</p></body></html>", None))
        self.wizardPage4.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage4.setSubTitle(_translate("SetupWizard", "Screenshot and Export paths", None))
        self.label_17.setText(_translate("SetupWizard", "In this step you choose where EliteOCR should look for screenshots and where you want it to export your results.", None))
        self.label_18.setText(_translate("SetupWizard", "Screenshot directory:", None))
        self.screenshot_dir_browse.setText(_translate("SetupWizard", "Browse", None))
        self.label_19.setText(_translate("SetupWizard", "Export directory:", None))
        self.export_dir_browse.setText(_translate("SetupWizard", "Browse", None))
        self.wizardPage5.setTitle(_translate("SetupWizard", "Setup Wizard", None))
        self.wizardPage5.setSubTitle(_translate("SetupWizard", "Results", None))
        self.label_23.setText(_translate("SetupWizard", "Setup Wizard finished with following results:", None))
Example #4
0
class Ui_Wizard(object):
    def setupUi(self, Wizard):
        Wizard.setObjectName(_fromUtf8("Wizard"))
        Wizard.resize(788, 483)
        Wizard.setWizardStyle(QtGui.QWizard.ModernStyle)
        self.wizardPage1 = QtGui.QWizardPage()
        self.wizardPage1.setObjectName(_fromUtf8("wizardPage1"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.wizardPage1)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.label_2 = QtGui.QLabel(self.wizardPage1)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_4.addWidget(self.label_2)
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.verticalLayout_4.addItem(spacerItem)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.label_3 = QtGui.QLabel(self.wizardPage1)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.horizontalLayout_5.addWidget(self.label_3)
        self.base_data_label = QtGui.QLabel(self.wizardPage1)
        self.base_data_label.setWordWrap(True)
        self.base_data_label.setObjectName(_fromUtf8("base_data_label"))
        self.horizontalLayout_5.addWidget(self.base_data_label)
        self.horizontalLayout_5.setStretch(0, 1)
        self.horizontalLayout_5.setStretch(1, 100)
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.label_4 = QtGui.QLabel(self.wizardPage1)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_6.addWidget(self.label_4)
        self.user_data_label = QtGui.QLabel(self.wizardPage1)
        self.user_data_label.setWordWrap(True)
        self.user_data_label.setObjectName(_fromUtf8("user_data_label"))
        self.horizontalLayout_6.addWidget(self.user_data_label)
        self.horizontalLayout_6.setStretch(0, 1)
        self.horizontalLayout_6.setStretch(1, 100)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        self.delete_images_button = QtGui.QPushButton(self.wizardPage1)
        self.delete_images_button.setEnabled(False)
        self.delete_images_button.setObjectName(_fromUtf8("delete_images_button"))
        self.verticalLayout_4.addWidget(self.delete_images_button)
        spacerItem2 = QtGui.QSpacerItem(20, 281, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem2)
        self.verticalLayout_4.setStretch(0, 1)
        self.verticalLayout_4.setStretch(2, 1)
        self.verticalLayout_4.setStretch(3, 1)
        self.verticalLayout_4.setStretch(4, 1)
        self.verticalLayout_4.setStretch(6, 10)
        Wizard.addPage(self.wizardPage1)
        self.wizardPage2 = CustomQWizardPage()
        self.wizardPage2.setObjectName(_fromUtf8("wizardPage2"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.wizardPage2)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.label = QtGui.QLabel(self.wizardPage2)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout_3.addWidget(self.label)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.file_list = QtGui.QListWidget(self.wizardPage2)
        self.file_list.setMaximumSize(QtCore.QSize(16777215, 100))
        self.file_list.setObjectName(_fromUtf8("file_list"))
        self.horizontalLayout.addWidget(self.file_list)
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.add_files_button = QtGui.QPushButton(self.wizardPage2)
        self.add_files_button.setObjectName(_fromUtf8("add_files_button"))
        self.verticalLayout.addWidget(self.add_files_button)
        self.remove_file_button = QtGui.QPushButton(self.wizardPage2)
        self.remove_file_button.setObjectName(_fromUtf8("remove_file_button"))
        self.verticalLayout.addWidget(self.remove_file_button)
        self.ocr_button = QtGui.QPushButton(self.wizardPage2)
        self.ocr_button.setObjectName(_fromUtf8("ocr_button"))
        self.verticalLayout.addWidget(self.ocr_button)
        self.horizontalLayout.addLayout(self.verticalLayout)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_5 = QtGui.QLabel(self.wizardPage2)
        self.label_5.setWordWrap(True)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout_2.addWidget(self.label_5)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.g18 = QtGui.QGraphicsView(self.wizardPage2)
        self.g18.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g18.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g18.setObjectName(_fromUtf8("g18"))
        self.gridLayout.addWidget(self.g18, 2, 7, 1, 1)
        self.g17 = QtGui.QGraphicsView(self.wizardPage2)
        self.g17.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g17.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g17.setObjectName(_fromUtf8("g17"))
        self.gridLayout.addWidget(self.g17, 2, 6, 1, 1)
        self.g11 = QtGui.QGraphicsView(self.wizardPage2)
        self.g11.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g11.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g11.setObjectName(_fromUtf8("g11"))
        self.gridLayout.addWidget(self.g11, 2, 0, 1, 1)
        self.g9 = QtGui.QGraphicsView(self.wizardPage2)
        self.g9.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g9.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g9.setObjectName(_fromUtf8("g9"))
        self.gridLayout.addWidget(self.g9, 0, 8, 1, 1)
        self.g19 = QtGui.QGraphicsView(self.wizardPage2)
        self.g19.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g19.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g19.setObjectName(_fromUtf8("g19"))
        self.gridLayout.addWidget(self.g19, 2, 8, 1, 1)
        self.g10 = QtGui.QGraphicsView(self.wizardPage2)
        self.g10.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g10.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g10.setObjectName(_fromUtf8("g10"))
        self.gridLayout.addWidget(self.g10, 0, 9, 1, 1)
        self.g13 = QtGui.QGraphicsView(self.wizardPage2)
        self.g13.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g13.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g13.setObjectName(_fromUtf8("g13"))
        self.gridLayout.addWidget(self.g13, 2, 2, 1, 1)
        self.g14 = QtGui.QGraphicsView(self.wizardPage2)
        self.g14.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g14.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g14.setObjectName(_fromUtf8("g14"))
        self.gridLayout.addWidget(self.g14, 2, 3, 1, 1)
        self.g15 = QtGui.QGraphicsView(self.wizardPage2)
        self.g15.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g15.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g15.setObjectName(_fromUtf8("g15"))
        self.gridLayout.addWidget(self.g15, 2, 4, 1, 1)
        self.g16 = QtGui.QGraphicsView(self.wizardPage2)
        self.g16.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g16.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g16.setObjectName(_fromUtf8("g16"))
        self.gridLayout.addWidget(self.g16, 2, 5, 1, 1)
        self.g7 = QtGui.QGraphicsView(self.wizardPage2)
        self.g7.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g7.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g7.setObjectName(_fromUtf8("g7"))
        self.gridLayout.addWidget(self.g7, 0, 6, 1, 1)
        self.g12 = QtGui.QGraphicsView(self.wizardPage2)
        self.g12.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g12.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g12.setObjectName(_fromUtf8("g12"))
        self.gridLayout.addWidget(self.g12, 2, 1, 1, 1)
        self.g8 = QtGui.QGraphicsView(self.wizardPage2)
        self.g8.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g8.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g8.setObjectName(_fromUtf8("g8"))
        self.gridLayout.addWidget(self.g8, 0, 7, 1, 1)
        self.g20 = QtGui.QGraphicsView(self.wizardPage2)
        self.g20.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g20.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g20.setObjectName(_fromUtf8("g20"))
        self.gridLayout.addWidget(self.g20, 2, 9, 1, 1)
        self.g6 = QtGui.QGraphicsView(self.wizardPage2)
        self.g6.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g6.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g6.setObjectName(_fromUtf8("g6"))
        self.gridLayout.addWidget(self.g6, 0, 5, 1, 1)
        self.e3 = QtGui.QLineEdit(self.wizardPage2)
        self.e3.setAlignment(QtCore.Qt.AlignCenter)
        self.e3.setObjectName(_fromUtf8("e3"))
        self.gridLayout.addWidget(self.e3, 1, 2, 1, 1)
        self.e2 = QtGui.QLineEdit(self.wizardPage2)
        self.e2.setAlignment(QtCore.Qt.AlignCenter)
        self.e2.setObjectName(_fromUtf8("e2"))
        self.gridLayout.addWidget(self.e2, 1, 1, 1, 1)
        self.e4 = QtGui.QLineEdit(self.wizardPage2)
        self.e4.setAlignment(QtCore.Qt.AlignCenter)
        self.e4.setObjectName(_fromUtf8("e4"))
        self.gridLayout.addWidget(self.e4, 1, 3, 1, 1)
        self.e5 = QtGui.QLineEdit(self.wizardPage2)
        self.e5.setAlignment(QtCore.Qt.AlignCenter)
        self.e5.setObjectName(_fromUtf8("e5"))
        self.gridLayout.addWidget(self.e5, 1, 4, 1, 1)
        self.g1 = QtGui.QGraphicsView(self.wizardPage2)
        self.g1.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g1.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g1.setObjectName(_fromUtf8("g1"))
        self.gridLayout.addWidget(self.g1, 0, 0, 1, 1)
        self.g2 = QtGui.QGraphicsView(self.wizardPage2)
        self.g2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g2.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g2.setObjectName(_fromUtf8("g2"))
        self.gridLayout.addWidget(self.g2, 0, 1, 1, 1)
        self.e1 = QtGui.QLineEdit(self.wizardPage2)
        self.e1.setAlignment(QtCore.Qt.AlignCenter)
        self.e1.setObjectName(_fromUtf8("e1"))
        self.gridLayout.addWidget(self.e1, 1, 0, 1, 1)
        self.g3 = QtGui.QGraphicsView(self.wizardPage2)
        self.g3.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g3.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g3.setObjectName(_fromUtf8("g3"))
        self.gridLayout.addWidget(self.g3, 0, 2, 1, 1)
        self.g4 = QtGui.QGraphicsView(self.wizardPage2)
        self.g4.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g4.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g4.setObjectName(_fromUtf8("g4"))
        self.gridLayout.addWidget(self.g4, 0, 3, 1, 1)
        self.g5 = QtGui.QGraphicsView(self.wizardPage2)
        self.g5.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g5.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.g5.setObjectName(_fromUtf8("g5"))
        self.gridLayout.addWidget(self.g5, 0, 4, 1, 1)
        self.e11 = QtGui.QLineEdit(self.wizardPage2)
        self.e11.setAlignment(QtCore.Qt.AlignCenter)
        self.e11.setObjectName(_fromUtf8("e11"))
        self.gridLayout.addWidget(self.e11, 3, 0, 1, 1)
        self.e12 = QtGui.QLineEdit(self.wizardPage2)
        self.e12.setAlignment(QtCore.Qt.AlignCenter)
        self.e12.setObjectName(_fromUtf8("e12"))
        self.gridLayout.addWidget(self.e12, 3, 1, 1, 1)
        self.e13 = QtGui.QLineEdit(self.wizardPage2)
        self.e13.setAlignment(QtCore.Qt.AlignCenter)
        self.e13.setObjectName(_fromUtf8("e13"))
        self.gridLayout.addWidget(self.e13, 3, 2, 1, 1)
        self.e14 = QtGui.QLineEdit(self.wizardPage2)
        self.e14.setAlignment(QtCore.Qt.AlignCenter)
        self.e14.setObjectName(_fromUtf8("e14"))
        self.gridLayout.addWidget(self.e14, 3, 3, 1, 1)
        self.e15 = QtGui.QLineEdit(self.wizardPage2)
        self.e15.setAlignment(QtCore.Qt.AlignCenter)
        self.e15.setObjectName(_fromUtf8("e15"))
        self.gridLayout.addWidget(self.e15, 3, 4, 1, 1)
        self.e16 = QtGui.QLineEdit(self.wizardPage2)
        self.e16.setAlignment(QtCore.Qt.AlignCenter)
        self.e16.setObjectName(_fromUtf8("e16"))
        self.gridLayout.addWidget(self.e16, 3, 5, 1, 1)
        self.e17 = QtGui.QLineEdit(self.wizardPage2)
        self.e17.setAlignment(QtCore.Qt.AlignCenter)
        self.e17.setObjectName(_fromUtf8("e17"))
        self.gridLayout.addWidget(self.e17, 3, 6, 1, 1)
        self.e18 = QtGui.QLineEdit(self.wizardPage2)
        self.e18.setAlignment(QtCore.Qt.AlignCenter)
        self.e18.setObjectName(_fromUtf8("e18"))
        self.gridLayout.addWidget(self.e18, 3, 7, 1, 1)
        self.e19 = QtGui.QLineEdit(self.wizardPage2)
        self.e19.setAlignment(QtCore.Qt.AlignCenter)
        self.e19.setObjectName(_fromUtf8("e19"))
        self.gridLayout.addWidget(self.e19, 3, 8, 1, 1)
        self.e20 = QtGui.QLineEdit(self.wizardPage2)
        self.e20.setAlignment(QtCore.Qt.AlignCenter)
        self.e20.setObjectName(_fromUtf8("e20"))
        self.gridLayout.addWidget(self.e20, 3, 9, 1, 1)
        self.e6 = QtGui.QLineEdit(self.wizardPage2)
        self.e6.setAlignment(QtCore.Qt.AlignCenter)
        self.e6.setObjectName(_fromUtf8("e6"))
        self.gridLayout.addWidget(self.e6, 1, 5, 1, 1)
        self.e7 = QtGui.QLineEdit(self.wizardPage2)
        self.e7.setAlignment(QtCore.Qt.AlignCenter)
        self.e7.setObjectName(_fromUtf8("e7"))
        self.gridLayout.addWidget(self.e7, 1, 6, 1, 1)
        self.e8 = QtGui.QLineEdit(self.wizardPage2)
        self.e8.setAlignment(QtCore.Qt.AlignCenter)
        self.e8.setObjectName(_fromUtf8("e8"))
        self.gridLayout.addWidget(self.e8, 1, 7, 1, 1)
        self.e9 = QtGui.QLineEdit(self.wizardPage2)
        self.e9.setAlignment(QtCore.Qt.AlignCenter)
        self.e9.setObjectName(_fromUtf8("e9"))
        self.gridLayout.addWidget(self.e9, 1, 8, 1, 1)
        self.e10 = QtGui.QLineEdit(self.wizardPage2)
        self.e10.setAlignment(QtCore.Qt.AlignCenter)
        self.e10.setObjectName(_fromUtf8("e10"))
        self.gridLayout.addWidget(self.e10, 1, 9, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.prev_button = QtGui.QPushButton(self.wizardPage2)
        self.prev_button.setEnabled(False)
        self.prev_button.setObjectName(_fromUtf8("prev_button"))
        self.horizontalLayout_4.addWidget(self.prev_button)
        self.next_button = QtGui.QPushButton(self.wizardPage2)
        self.next_button.setEnabled(False)
        self.next_button.setObjectName(_fromUtf8("next_button"))
        self.horizontalLayout_4.addWidget(self.next_button)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem3)
        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 1)
        self.verticalLayout_2.setStretch(2, 1)
        self.verticalLayout_2.setStretch(3, 100)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.horizontalLayout_2.setStretch(0, 2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem4)
        self.verticalLayout_3.setStretch(0, 1)
        self.verticalLayout_3.setStretch(1, 1)
        self.verticalLayout_3.setStretch(2, 1)
        self.verticalLayout_3.setStretch(3, 100)
        Wizard.addPage(self.wizardPage2)
        self.wizardPage3 = CustomQWizardPage()
        self.wizardPage3.setObjectName(_fromUtf8("wizardPage3"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.wizardPage3)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.label_6 = QtGui.QLabel(self.wizardPage3)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.verticalLayout_5.addWidget(self.label_6)
        self.summary_label = QtGui.QLabel(self.wizardPage3)
        self.summary_label.setWordWrap(True)
        self.summary_label.setObjectName(_fromUtf8("summary_label"))
        self.verticalLayout_5.addWidget(self.summary_label)
        self.save_button = QtGui.QPushButton(self.wizardPage3)
        self.save_button.setObjectName(_fromUtf8("save_button"))
        self.verticalLayout_5.addWidget(self.save_button)
        spacerItem5 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        self.verticalLayout_5.addItem(spacerItem5)
        self.label_7 = QtGui.QLabel(self.wizardPage3)
        self.label_7.setWordWrap(True)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.verticalLayout_5.addWidget(self.label_7)
        self.train_button = QtGui.QPushButton(self.wizardPage3)
        self.train_button.setEnabled(False)
        self.train_button.setObjectName(_fromUtf8("train_button"))
        self.verticalLayout_5.addWidget(self.train_button)
        self.loader = QtGui.QLabel(self.wizardPage3)
        self.loader.setText(_fromUtf8(""))
        self.loader.setAlignment(QtCore.Qt.AlignCenter)
        self.loader.setObjectName(_fromUtf8("loader"))
        self.verticalLayout_5.addWidget(self.loader)
        self.training_summary = QtGui.QLabel(self.wizardPage3)
        self.training_summary.setText(_fromUtf8(""))
        self.training_summary.setWordWrap(True)
        self.training_summary.setObjectName(_fromUtf8("training_summary"))
        self.verticalLayout_5.addWidget(self.training_summary)
        self.details = QtGui.QTextEdit(self.wizardPage3)
        self.details.setObjectName(_fromUtf8("details"))
        self.verticalLayout_5.addWidget(self.details)
        spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem6)
        self.verticalLayout_5.setStretch(0, 1)
        self.verticalLayout_5.setStretch(1, 1)
        self.verticalLayout_5.setStretch(2, 1)
        self.verticalLayout_5.setStretch(3, 1)
        self.verticalLayout_5.setStretch(4, 1)
        self.verticalLayout_5.setStretch(5, 1)
        self.verticalLayout_5.setStretch(9, 100)
        Wizard.addPage(self.wizardPage3)

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

    def retranslateUi(self, Wizard):
        Wizard.setWindowTitle(_translate("Wizard", "Wizard", None))
        self.label_2.setText(_translate("Wizard", "This is the learning module. You can improve your OCR accuracy by training OCR with your images. Following learning images are available. You can add more by processing your screenshots in the next step. If you want to restart learning from scratch you can always delete user\'s training images. Base images will not be deleted as they are necessary for proper training.", None))
        self.label_3.setText(_translate("Wizard", "Base learning images:", None))
        self.base_data_label.setText(_translate("Wizard", "-", None))
        self.label_4.setText(_translate("Wizard", "User\'s learning images:", None))
        self.user_data_label.setText(_translate("Wizard", "-", None))
        self.delete_images_button.setText(_translate("Wizard", "Delete user\'s training images", None))
        self.label.setText(_translate("Wizard", "Select Files", None))
        self.add_files_button.setText(_translate("Wizard", "Add Files", None))
        self.remove_file_button.setText(_translate("Wizard", "Remove File", None))
        self.ocr_button.setText(_translate("Wizard", "OCR", None))
        self.label_5.setText(_translate("Wizard", "Dot and comma are the same for learning.\n"
"If two letters are recognized as one use empty text field so it will be ignored while learning.", None))
        self.prev_button.setText(_translate("Wizard", "Previous", None))
        self.next_button.setText(_translate("Wizard", "Next", None))
        self.label_6.setText(_translate("Wizard", "You collected following new images:", None))
        self.summary_label.setText(_translate("Wizard", "-", None))
        self.save_button.setText(_translate("Wizard", "Add those images to user\'s training images", None))
        self.label_7.setText(_translate("Wizard", "Base training data and user\'s training data will be used for OCR training. Click the button above to add just analyzed data to user\'s images. Please note: Learning process can take several minutes to finish! Summary will be show when the training is completed.", None))
        self.train_button.setText(_translate("Wizard", "Perform training", None))
Example #5
0
class Ui_ColorCalibrationWizard(object):
    def setupUi(self, ColorCalibrationWizard):
        ColorCalibrationWizard.setObjectName(_fromUtf8("ColorCalibrationWizard"))
        ColorCalibrationWizard.resize(539, 520)
        ColorCalibrationWizard.setWizardStyle(QtGui.QWizard.ModernStyle)
        self.wizardPage1 = CustomQWizardPage()
        self.wizardPage1.setObjectName(_fromUtf8("wizardPage1"))
        self.verticalLayout = QtGui.QVBoxLayout(self.wizardPage1)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_20 = QtGui.QLabel(self.wizardPage1)
        self.label_20.setWordWrap(True)
        self.label_20.setObjectName(_fromUtf8("label_20"))
        self.verticalLayout.addWidget(self.label_20)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.add_screenshots = QtGui.QPushButton(self.wizardPage1)
        self.add_screenshots.setObjectName(_fromUtf8("add_screenshots"))
        self.horizontalLayout_7.addWidget(self.add_screenshots)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_7)
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label_8 = QtGui.QLabel(self.wizardPage1)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.horizontalLayout_9.addWidget(self.label_8)
        self.ocr_language = QtGui.QComboBox(self.wizardPage1)
        self.ocr_language.setObjectName(_fromUtf8("ocr_language"))
        self.ocr_language.addItem(_fromUtf8(""))
        self.ocr_language.addItem(_fromUtf8(""))
        self.ocr_language.addItem(_fromUtf8(""))
        self.horizontalLayout_9.addWidget(self.ocr_language)
        self.verticalLayout.addLayout(self.horizontalLayout_9)
        self.screenshot_list = QtGui.QListWidget(self.wizardPage1)
        self.screenshot_list.setObjectName(_fromUtf8("screenshot_list"))
        self.verticalLayout.addWidget(self.screenshot_list)
        ColorCalibrationWizard.addPage(self.wizardPage1)
        self.wizardPage2 = CustomQWizardPage()
        self.wizardPage2.setObjectName(_fromUtf8("wizardPage2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.wizardPage2)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.label_21 = QtGui.QLabel(self.wizardPage2)
        self.label_21.setWordWrap(True)
        self.label_21.setObjectName(_fromUtf8("label_21"))
        self.verticalLayout_2.addWidget(self.label_21)
        self.analyzing_progress = QtGui.QProgressBar(self.wizardPage2)
        self.analyzing_progress.setMaximum(0)
        self.analyzing_progress.setProperty("value", 0)
        self.analyzing_progress.setTextVisible(False)
        self.analyzing_progress.setObjectName(_fromUtf8("analyzing_progress"))
        self.verticalLayout_2.addWidget(self.analyzing_progress)
        self.horizontalLayout_11 = QtGui.QHBoxLayout()
        self.horizontalLayout_11.setObjectName(_fromUtf8("horizontalLayout_11"))
        self.label_13 = QtGui.QLabel(self.wizardPage2)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.horizontalLayout_11.addWidget(self.label_13)
        self.time_left = QtGui.QLabel(self.wizardPage2)
        self.time_left.setObjectName(_fromUtf8("time_left"))
        self.horizontalLayout_11.addWidget(self.time_left)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_11)
        self.scr_result = QtGui.QPlainTextEdit(self.wizardPage2)
        self.scr_result.setReadOnly(True)
        self.scr_result.setObjectName(_fromUtf8("scr_result"))
        self.verticalLayout_2.addWidget(self.scr_result)
        ColorCalibrationWizard.addPage(self.wizardPage2)

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

    def retranslateUi(self, ColorCalibrationWizard):
        ColorCalibrationWizard.setWindowTitle(_translate("ColorCalibrationWizard", "Color Calibration Wizard", None))
        self.wizardPage1.setTitle(_translate("ColorCalibrationWizard", "Color Calibration Wizard", None))
        self.wizardPage1.setSubTitle(_translate("ColorCalibrationWizard", "Screenshot selection", None))
        self.label_20.setText(_translate("ColorCalibrationWizard", "EliteOCR will evaluate your screenshots for their compatibility with OCR. It will measure if the text size is sufficient for the process and tell you what you can do in case it isn\'t.\n"
"\n"
"Always run this wizard after changing resolution, hud color or other game settings which change the appearance of the screenshots. Even the smallest change can reduce OCR accuracy.\n"
"\n"
"First select between 3 and 5 screenshots.", None))
        self.add_screenshots.setText(_translate("ColorCalibrationWizard", "Add Screenshots", None))
        self.label_8.setText(_translate("ColorCalibrationWizard", "Screenshot language:", None))
        self.ocr_language.setItemText(0, _translate("ColorCalibrationWizard", "English", None))
        self.ocr_language.setItemText(1, _translate("ColorCalibrationWizard", "German", None))
        self.ocr_language.setItemText(2, _translate("ColorCalibrationWizard", "French", None))
        self.wizardPage2.setTitle(_translate("ColorCalibrationWizard", "Color Calibration Wizard", None))
        self.wizardPage2.setSubTitle(_translate("ColorCalibrationWizard", "Screenshot evaluation", None))
        self.label_21.setText(_translate("ColorCalibrationWizard", "Now EliteOCR will calibrate itself to your HUD color. It is necessary in order to maximize the OCR accuracy. When finished it will inform you about quality of your screenshots and the accuracy you can expect. \n"
"Please wait. This process can take some time.", None))
        self.label_13.setText(_translate("ColorCalibrationWizard", "Time left:", None))
        self.time_left.setText(_translate("ColorCalibrationWizard", "calculating", None))