src/eric7/WebBrowser/Sync/SyncAssistantDialog.py

Fri, 04 Nov 2022 13:52:26 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 04 Nov 2022 13:52:26 +0100
branch
eric7
changeset 9473
3f23dbf37dbe
parent 9413
80c06d472826
child 9482
a2bc06a54d9d
permissions
-rw-r--r--

Resorted the import statements using isort.

# -*- coding: utf-8 -*-

# Copyright (c) 2012 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing a wizard dialog to enter the synchronization data.
"""

from PyQt6.QtWidgets import QWizard

from eric7 import Globals
from eric7.EricGui import EricPixmapCache


class SyncAssistantDialog(QWizard):
    """
    Class implementing a wizard dialog to enter the synchronization data.
    """

    def __init__(self, parent=None):
        """
        Constructor

        @param parent reference to the parent widget (QWidget)
        """
        super().__init__(parent)

        from . import SyncGlobals
        from .SyncCheckPage import SyncCheckPage
        from .SyncDataPage import SyncDataPage
        from .SyncDirectorySettingsPage import SyncDirectorySettingsPage
        from .SyncEncryptionPage import SyncEncryptionPage
        from .SyncFtpSettingsPage import SyncFtpSettingsPage
        from .SyncHostTypePage import SyncHostTypePage

        self.setPage(SyncGlobals.PageData, SyncDataPage(self))
        self.setPage(SyncGlobals.PageEncryption, SyncEncryptionPage(self))
        self.setPage(SyncGlobals.PageType, SyncHostTypePage(self))
        self.setPage(SyncGlobals.PageFTPSettings, SyncFtpSettingsPage(self))
        self.setPage(SyncGlobals.PageDirectorySettings, SyncDirectorySettingsPage(self))
        self.setPage(SyncGlobals.PageCheck, SyncCheckPage(self))

        self.setPixmap(
            QWizard.WizardPixmap.LogoPixmap, EricPixmapCache.getPixmap("ericWeb48")
        )
        self.setPixmap(
            QWizard.WizardPixmap.WatermarkPixmap, EricPixmapCache.getPixmap("eric256")
        )
        self.setPixmap(
            QWizard.WizardPixmap.BackgroundPixmap, EricPixmapCache.getPixmap("eric256")
        )

        self.setMinimumSize(650, 450)
        if Globals.isWindowsPlatform():
            self.setWizardStyle(QWizard.WizardStyle.ModernStyle)

        self.setOption(QWizard.WizardOption.NoCancelButtonOnLastPage, True)

eric ide

mercurial