Helpviewer/Sync/SyncAssistantDialog.py

Sat, 31 Mar 2012 12:52:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 31 Mar 2012 12:52:45 +0200
changeset 1745
74c05a1ca2bc
parent 1718
1901b1e24746
child 2302
f29e9405c851
permissions
-rw-r--r--

Fixed an issue with the new error log dialog.

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

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

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

from PyQt4.QtGui import QWizard

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

from . import SyncGlobals

import UI.PixmapCache
import Globals


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)
        
        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.LogoPixmap, UI.PixmapCache.getPixmap("ericWeb48.png"))
        self.setPixmap(QWizard.WatermarkPixmap, UI.PixmapCache.getPixmap("eric256.png"))
        self.setPixmap(QWizard.BackgroundPixmap, UI.PixmapCache.getPixmap("eric256.png"))
        
        self.setMinimumSize(650, 450)
        if Globals.isWindowsPlatform():
            self.setWizardStyle(QWizard.ModernStyle)

eric ide

mercurial