Package Camelot :: Package camelot :: Package view :: Package wizard :: Module new |
[frames] | no frames]

# Source Code for Module Camelot.camelot.view.wizard.new

     1  #  ============================================================================
     2  #
     3  #  Copyright (C) 2007-2008 Conceptive Engineering bvba. All rights reserved.
     4  #  www.conceptive.be / project-camelot@conceptive.be
     5  #
     6  #  This file is part of the Camelot Library.
     7  #
     8  #  This file may be used under the terms of the GNU General Public
     9  #  License version 2.0 as published by the Free Software Foundation
    10  #  and appearing in the file LICENSE.GPL included in the packaging of
    11  #  this file.  Please review the following information to ensure GNU
    12  #  General Public Licensing requirements will be met:
    13  #  http://www.trolltech.com/products/qt/opensource.html
    14  #
    15  #  If you are unsure which license is appropriate for your use, please
    16  #  review the following information:
    17  #  http://www.trolltech.com/products/qt/licensing.html or contact
    18  #  project-camelot@conceptive.be.
    19  #
    20  #  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    21  #  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    22  #
    23  #  For use of this library in commercial applications, please contact
    24  #  project-camelot@conceptive.be
    25  #
    26  #  ============================================================================
    27
    28  """Wizard and wizard pages to assist in the creation of new objects"""
    29
    30  from PyQt4 import QtGui, QtCore
    31
    32 -class SelectSubclassPage(QtGui.QWizardPage):
    33      """Page for a wizard that allows the selection of a subclass"""
    34
    35 -    def __init__(self, parent, admin):
    36          super(SelectSubclassPage, self).__init__(parent)
    37          from camelot.view.controls.inheritance import SubclassTree
    38  #    self.setTitle('Dossiers to synchronize')
    39  #    self.setSubTitle('Either synchronize all dossiers in the selected cabinets (more complete), or select a single dossier (faster).')
    40          layout = QtGui.QVBoxLayout()
    41          layout.addWidget(SubclassTree(admin, self))
    42          layout.addStretch(1)
    43          self.setLayout(layout)
    44
    45 -class NewObjectWizard(QtGui.QWizard):
    46
    47 -    def __init__(self, parent, admin):
    48          super(NewObjectWizard, self).__init__(parent)
    49          self.addPage(SelectSubclassPage(self, admin))
    50