summaryrefslogtreecommitdiff
path: root/cad/src/outtakes/depositMode.py
blob: 1d57f8e31cd11236595fc0d0df751e6695af1bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2004-2008 Nanorex, Inc.  See LICENSE file for details.
"""
depositMode.py -- Build Atoms mode.

@version: $Id$
@copyright: 2004-2008 Nanorex, Inc.  See LICENSE file for details.

TODO: As of 2007-01-04
- Items listed in BuildAtoms_GraphicsMode
- Items listed in Select_GraphicsMode.py

History:
depositMode.py Originally by Josh Hall and then significantly modified by
several developers.

In January 2008, the old depositMode class was split into new Command and
GraphicsMode parts and the these classes were moved into their own module
[ See BuildAtoms_Command.py and BuildAtoms_GraphicsMode.py]
"""

from commands.BuildAtoms.BuildAtoms_Command import BuildAtoms_basicCommand
from commands.BuildAtoms.BuildAtoms_GraphicsMode import BuildAtoms_basicGraphicsMode

class depositMode( BuildAtoms_basicCommand,
                   BuildAtoms_basicGraphicsMode):
    # this class (and file) is no longer needed except by testmode [as of before 080812]
    """
    Build Atoms Mode (hybrid object which encompasses both - command and
    graphicsMode objects as self)
    """
    def __init__(self, commandSequencer):
        glpane = commandSequencer.assy.glpane

        BuildAtoms_basicCommand.__init__(self, commandSequencer)
            # was just basicCommand in original

        BuildAtoms_basicGraphicsMode.__init__(self, glpane)
            # was just basicGraphicsMode in original
        return

    # (the rest would come from basicMode if post-inheriting it worked,
    #  or we could split it out of basicMode as a post-mixin to use there
    #  and here)

    def __get_command(self):
        return self

    command = property(__get_command)

    def __get_graphicsMode(self):
        return self

    graphicsMode = property(__get_graphicsMode)