src/eric7/WebBrowser/Sync/SyncAssistantDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
15 15
16 class SyncAssistantDialog(QWizard): 16 class SyncAssistantDialog(QWizard):
17 """ 17 """
18 Class implementing a wizard dialog to enter the synchronization data. 18 Class implementing a wizard dialog to enter the synchronization data.
19 """ 19 """
20
20 def __init__(self, parent=None): 21 def __init__(self, parent=None):
21 """ 22 """
22 Constructor 23 Constructor
23 24
24 @param parent reference to the parent widget (QWidget) 25 @param parent reference to the parent widget (QWidget)
25 """ 26 """
26 super().__init__(parent) 27 super().__init__(parent)
27 28
28 from . import SyncGlobals 29 from . import SyncGlobals
29 30
30 from .SyncDataPage import SyncDataPage 31 from .SyncDataPage import SyncDataPage
31 from .SyncEncryptionPage import SyncEncryptionPage 32 from .SyncEncryptionPage import SyncEncryptionPage
32 from .SyncHostTypePage import SyncHostTypePage 33 from .SyncHostTypePage import SyncHostTypePage
36 37
37 self.setPage(SyncGlobals.PageData, SyncDataPage(self)) 38 self.setPage(SyncGlobals.PageData, SyncDataPage(self))
38 self.setPage(SyncGlobals.PageEncryption, SyncEncryptionPage(self)) 39 self.setPage(SyncGlobals.PageEncryption, SyncEncryptionPage(self))
39 self.setPage(SyncGlobals.PageType, SyncHostTypePage(self)) 40 self.setPage(SyncGlobals.PageType, SyncHostTypePage(self))
40 self.setPage(SyncGlobals.PageFTPSettings, SyncFtpSettingsPage(self)) 41 self.setPage(SyncGlobals.PageFTPSettings, SyncFtpSettingsPage(self))
41 self.setPage(SyncGlobals.PageDirectorySettings, 42 self.setPage(SyncGlobals.PageDirectorySettings, SyncDirectorySettingsPage(self))
42 SyncDirectorySettingsPage(self))
43 self.setPage(SyncGlobals.PageCheck, SyncCheckPage(self)) 43 self.setPage(SyncGlobals.PageCheck, SyncCheckPage(self))
44 44
45 self.setPixmap(QWizard.WizardPixmap.LogoPixmap, 45 self.setPixmap(
46 UI.PixmapCache.getPixmap("ericWeb48")) 46 QWizard.WizardPixmap.LogoPixmap, UI.PixmapCache.getPixmap("ericWeb48")
47 self.setPixmap(QWizard.WizardPixmap.WatermarkPixmap, 47 )
48 UI.PixmapCache.getPixmap("eric256")) 48 self.setPixmap(
49 self.setPixmap(QWizard.WizardPixmap.BackgroundPixmap, 49 QWizard.WizardPixmap.WatermarkPixmap, UI.PixmapCache.getPixmap("eric256")
50 UI.PixmapCache.getPixmap("eric256")) 50 )
51 51 self.setPixmap(
52 QWizard.WizardPixmap.BackgroundPixmap, UI.PixmapCache.getPixmap("eric256")
53 )
54
52 self.setMinimumSize(650, 450) 55 self.setMinimumSize(650, 450)
53 if Globals.isWindowsPlatform(): 56 if Globals.isWindowsPlatform():
54 self.setWizardStyle(QWizard.WizardStyle.ModernStyle) 57 self.setWizardStyle(QWizard.WizardStyle.ModernStyle)
55 58
56 self.setOption(QWizard.WizardOption.NoCancelButtonOnLastPage, True) 59 self.setOption(QWizard.WizardOption.NoCancelButtonOnLastPage, True)

eric ide

mercurial