# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details. """ depositMode.py -- Build Atoms mode. @version: $Id$ @copyright: 2004-2007 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 utilities.debug import print_compact_traceback from utilities.constants import GLPANE_IS_COMMAND_SEQUENCER from commands.BuildAtoms.BuildAtoms_Command import BuildAtoms_basicCommand from commands.BuildAtoms.BuildAtoms_GraphicsMode import BuildAtoms_basicGraphicsMode class depositMode( BuildAtoms_basicCommand, BuildAtoms_basicGraphicsMode): """ Build Atoms Mode (hybrid object which encompasses both - command and graphicsMode objects as self) """ def __init__(self, glpane): assert GLPANE_IS_COMMAND_SEQUENCER commandSequencer = 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) def _get_hover_highlighting_enabled(self): return self.command.hover_highlighting_enabled def _set_hover_highlighting_enabled(self, val): self.command.hover_highlighting_enabled = val def _get_highlight_singlets(self): return self.command.highlight_singlets def _set_highlight_singlets(self, val): self.command.highlight_singlets = val