Helpviewer/Sync/SyncAssistantDialog.py

Fri, 17 Feb 2012 19:39:37 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 17 Feb 2012 19:39:37 +0100
changeset 1626
a77c8ea8582c
child 1628
52cf35f6b26a
permissions
-rw-r--r--

Added capability to synchronise bookmarks, history, passwords and user agent settings via an FTP server.

# -*- 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 .SyncHostTypePage import SyncHostTypePage
from .SyncFtpSettingsPage import SyncFtpSettingsPage
from .SyncCheckPage import SyncCheckPage

from . import SyncGlobals

import UI.PixmapCache


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.PageType, SyncHostTypePage(self))
        self.setPage(SyncGlobals.PageFTPSettings, SyncFtpSettingsPage(self))
        self.setPage(SyncGlobals.PageCheck, SyncCheckPage(self))
        
        self.setPixmap(QWizard.LogoPixmap, UI.PixmapCache.getPixmap("ericWeb48.png"))
        
        self.resize(600, 400)

eric ide

mercurial