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