src/eric7/WebBrowser/Sync/SyncAssistantDialog.py

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8881
54e42bc2437a
child 9221
bf71ee032bb4
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2012 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a wizard dialog to enter the synchronization data.
8 """
9
10 from PyQt6.QtWidgets import QWizard
11
12 import UI.PixmapCache
13 import Globals
14
15
16 class SyncAssistantDialog(QWizard):
17 """
18 Class implementing a wizard dialog to enter the synchronization data.
19 """
20 def __init__(self, parent=None):
21 """
22 Constructor
23
24 @param parent reference to the parent widget (QWidget)
25 """
26 super().__init__(parent)
27
28 from . import SyncGlobals
29
30 from .SyncDataPage import SyncDataPage
31 from .SyncEncryptionPage import SyncEncryptionPage
32 from .SyncHostTypePage import SyncHostTypePage
33 from .SyncFtpSettingsPage import SyncFtpSettingsPage
34 from .SyncDirectorySettingsPage import SyncDirectorySettingsPage
35 from .SyncCheckPage import SyncCheckPage
36
37 self.setPage(SyncGlobals.PageData, SyncDataPage(self))
38 self.setPage(SyncGlobals.PageEncryption, SyncEncryptionPage(self))
39 self.setPage(SyncGlobals.PageType, SyncHostTypePage(self))
40 self.setPage(SyncGlobals.PageFTPSettings, SyncFtpSettingsPage(self))
41 self.setPage(SyncGlobals.PageDirectorySettings,
42 SyncDirectorySettingsPage(self))
43 self.setPage(SyncGlobals.PageCheck, SyncCheckPage(self))
44
45 self.setPixmap(QWizard.WizardPixmap.LogoPixmap,
46 UI.PixmapCache.getPixmap("ericWeb48"))
47 self.setPixmap(QWizard.WizardPixmap.WatermarkPixmap,
48 UI.PixmapCache.getPixmap("eric256"))
49 self.setPixmap(QWizard.WizardPixmap.BackgroundPixmap,
50 UI.PixmapCache.getPixmap("eric256"))
51
52 self.setMinimumSize(650, 450)
53 if Globals.isWindowsPlatform():
54 self.setWizardStyle(QWizard.WizardStyle.ModernStyle)
55
56 self.setOption(QWizard.WizardOption.NoCancelButtonOnLastPage, True)

eric ide

mercurial