summaryrefslogtreecommitdiff
path: root/cad/src/protein/commands/BuildProtein/ModelProtein_Command.py
blob: 6e46fbe140c846503c9550ba7a4c736f9656aafc (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
# Copyright 2008 Nanorex, Inc.  See LICENSE file for details. 
"""

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

"""
from utilities.debug import print_compact_stack, print_compact_traceback
from protein.commands.BuildProtein.BuildProtein_Command import BuildProtein_Command

_superclass = BuildProtein_Command
class ModelProtein_Command(BuildProtein_Command):
    """
    Class for modeling proteins
    """
    
    FlyoutToolbar_class = None
    
    featurename = 'Model and Simulate Protein Mode/Model Protein'
    commandName = 'MODEL_PROTEIN'
    
    command_should_resume_prevMode = True
    #Urmi 20080806: We may want it to have its own PM
    command_has_its_own_PM = False
    
    _currentActiveTool = 'MODEL_PROTEIN'
    from utilities.constants import CL_SUBCOMMAND

    #class constants for the NEW COMMAND API -- 2008-07-30
    command_level = CL_SUBCOMMAND
    command_parent = 'BUILD_PROTEIN'
    
    def command_entered(self):
        """
        Extends superclass method. 
        @see: baseCommand.command_entered() for documentation
        """
        _superclass.command_entered(self)
        msg = "Select <b>Insert Peptide</b> to create a peptide chain or "\
            "select another modeling tool to modify an existing "\
            "peptide/protein sequence."
        self.propMgr.updateMessage(msg)