Ejemplo n.º 1
0
    def __init__(self, db, parent):
        QWizardPage.__init__(self, parent)
        self.db = db
        self.register = parent.register
        self.setupUi(self)

        self.do_init()
Ejemplo n.º 2
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     try:
         self.um_label.setText(self.um_label.text() % localize_user_manual_link('https://manual.calibre-ebook.com'))
     except TypeError:
         pass  # link already localized
Ejemplo n.º 3
0
    def __init__(self, db, parent):
        QWizardPage.__init__(self, parent)
        self.db = db
        self.register = parent.register
        self.setupUi(self)

        self.do_init()
Ejemplo n.º 4
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     try:
         self.um_label.setText(self.um_label.text() % localize_user_manual_link('https://manual.calibre-ebook.com'))
     except TypeError:
         pass  # link already localized
Ejemplo n.º 5
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.registerField('library_location', self.location)
     self.button_change.clicked.connect(self.change)
     self.init_languages()
     self.language.currentIndexChanged[int].connect(self.change_language)
     self.location.textChanged.connect(self.location_text_changed)
Ejemplo n.º 6
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.registerField('library_location', self.location)
     self.button_change.clicked.connect(self.change)
     self.init_languages()
     self.language.currentIndexChanged[int].connect(self.change_language)
     self.location.textChanged.connect(self.location_text_changed)
Ejemplo n.º 7
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     try:
         self.instructions.setText(self.instructions.text() % localize_user_manual_link(
             'https://manual.calibre-ebook.com/faq.html#how-do-i-use-calibre-with-my-ipad-iphone-ipod-touch'))
     except TypeError:
         pass  # user manual link was already replaced
     self.instructions.setOpenExternalLinks(True)
     self.content_server.stateChanged[(int)].connect(self.set_port)
Ejemplo n.º 8
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     try:
         self.instructions.setText(self.instructions.text() % localize_user_manual_link(
             'https://manual.calibre-ebook.com/faq.html#how-do-i-use-calibre-with-my-ipad-iphone-ipod-touch'))
     except TypeError:
         pass  # user manual link was already replaced
     self.instructions.setOpenExternalLinks(True)
     self.content_server.stateChanged[(int)].connect(self.set_port)
Ejemplo n.º 9
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.made_dirs = []
     self.initial_library_location = None
     self.setupUi(self)
     self.registerField('library_location', self.location)
     self.button_change.clicked.connect(self.change)
     self.init_languages()
     self.language.currentIndexChanged[int].connect(self.change_language)
     self.location.textChanged.connect(self.location_text_changed)
     self.set_move_lib_label_text()
Ejemplo n.º 10
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.registerField('library_location', self.location)
     self.button_change.clicked.connect(self.change)
     self.init_languages()
     self.language.currentIndexChanged[int].connect(self.change_language)
     self.location.textChanged.connect(self.location_text_changed)
     self.move_lib_label.setText(_(
         'If you are moving calibre from an old computer to a new one,'
         ' please read <a href="{0}">the instructions</a>.').format(
             localize_user_manual_link(
     'https://manual.calibre-ebook.com/faq.html#how-do-i-move-my-calibre-data-from-one-computer-to-another')))
Ejemplo n.º 11
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.registerField('library_location', self.location)
     self.button_change.clicked.connect(self.change)
     self.init_languages()
     self.language.currentIndexChanged[int].connect(self.change_language)
     self.location.textChanged.connect(self.location_text_changed)
     self.move_lib_label.setText(_(
         'If you are moving calibre from an old computer to a new one,'
         ' please read <a href="{0}">the instructions</a>.').format(
             localize_user_manual_link(
     'https://manual.calibre-ebook.com/faq.html#how-do-i-move-my-calibre-data-from-one-computer-to-another')))
Ejemplo n.º 12
0
    def user_info(self):
        page = QWizardPage()
        page.setTitle("Your details")
        page.setSubTitle("Complete the form and click next")
        layout = QGridLayout(page)
        first_name_label = QLabel("First Name      ")
        self.first_name_edit = QLineEdit()
        self.first_name_edit.setStyleSheet(
            "QLineEdit { background-color : white; color : black; }")
        surname_label = QLabel("Surname         ")
        self.surname_edit = QLineEdit()
        self.surname_edit.setStyleSheet(
            "QLineEdit { background-color : white; color : black; }")
        email_label = QLabel("Email Address   ")
        self.email_edit = QLineEdit()
        self.email_edit.setStyleSheet(
            "QLineEdit { background-color : white; color : black; }")

        layout.addWidget(first_name_label, 1, 0)
        layout.addWidget(self.first_name_edit, 1, 1)
        layout.addWidget(surname_label, 2, 0)
        layout.addWidget(self.surname_edit, 2, 1)
        layout.addWidget(email_label, 3, 0)
        layout.addWidget(self.email_edit, 3, 1)

        return page
Ejemplo n.º 13
0
    def complete():
        page = QWizardPage()
        page.setTitle("Settings Complete")
        page.setSubTitle("All Done! (That was easy, wasn't it?)")

        label = QLabel("Click finish and start MQT")
        label.setWordWrap(True)

        layout = QGridLayout(page)
        layout.addWidget(label)

        return page
Ejemplo n.º 14
0
    def intro():
        page = QWizardPage()
        page.setTitle("Welcome to My Query Tutor")
        page.setSubTitle("The best tool to learn SQL")
        welcome_label = QLabel('''
I can see that this is the first time
you have run My Query Tutor.

We will now set everything up and you
won't have to see this again :-D
''')
        description_label = QLabel('')

        layout = QGridLayout(page)
        layout.addWidget(welcome_label)
        layout.addWidget(description_label)

        return page
Ejemplo n.º 15
0
    def server_details(self):
        page = QWizardPage()
        page.setTitle("Server Details")
        page.setSubTitle("Optional server details (for syncing progress)")
        layout = QGridLayout(page)
        server_address_label = QLabel("Server Address    ")
        self.server_address_edit = QLineEdit()
        class_key_label = QLabel("Class Key         ")
        self.class_key_edit = QLineEdit()
        ssl_label = QLabel("SSL               ")
        self.ssl_checkbox = QCheckBox()

        layout.addWidget(server_address_label, 1, 0)
        layout.addWidget(self.server_address_edit, 1, 1)
        layout.addWidget(class_key_label, 2, 0)
        layout.addWidget(self.class_key_edit, 2, 1)
        layout.addWidget(ssl_label, 3, 0)
        layout.addWidget(self.ssl_checkbox, 3, 1)

        return page
Ejemplo n.º 16
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.content_server.stateChanged[(int)].connect(self.set_port)
Ejemplo n.º 17
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.registerField("manufacturer", self.manufacturer_view)
     self.registerField("device", self.device_view)
Ejemplo n.º 18
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
Ejemplo n.º 19
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.registerField("manufacturer", self.manufacturer_view)
     self.registerField("device", self.device_view)
Ejemplo n.º 20
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)
     self.content_server.stateChanged[(int)].connect(self.set_port)
Ejemplo n.º 21
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setupUi(self)