summaryrefslogtreecommitdiff
path: root/cad/src/ne1_ui/ToolTipText_for_CommandToolbars.py
blob: acc7907ba0999bde557f4c684b6bb470ab759290 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright 2004-2007 Nanorex, Inc.  See LICENSE file for details.
"""
ToolTipText_for_CommandToolbars.py

This file provides functions for setting the "Tooltip" text
for widgets (typically QActions) in the Command Toolbar.

@author: Mark
@version:$Id$
@copyright: 2004-2007 Nanorex, Inc.  See LICENSE file for details.
"""

# Try to keep this list in order (by appearance in Command Toolbar). --Mark

# Build command toolbars ####################

def toolTipTextForAtomsCommandToolbar(commandToolbar):
    """
    "ToolTip" text for widgets in the Build Atoms Command Toolbar.

    @note: This is a placeholder function. Currenly, all the tooltip text is
           defined in BuildAtoms_Command.py.
    """
    return

def toolTipTextForDnaCommandToolbar(commandToolbar):
    """
    "ToolTip" text for the Build DNA Command Toolbar
    """
    commandToolbar.dnaDuplexAction.setToolTip("Insert DNA")
    commandToolbar.breakStrandAction.setToolTip("Break Strands")
    commandToolbar.joinStrandsAction.setToolTip("Join Strands")
    commandToolbar.dnaOrigamiAction.setToolTip("Origami")
    commandToolbar.convertDnaAction.setToolTip("Convert DNA")
    commandToolbar.orderDnaAction.setToolTip("Order DNA")
    commandToolbar.editDnaDisplayStyleAction.setToolTip("Edit DNA Display Style")

    return

def toolTipTextForProteinCommandToolbar(commandToolbar):
    """
    "ToolTip" text for the Build Protein Command Toolbar
    """
    commandToolbar.modelProteinAction.setToolTip("Model Protein")
    commandToolbar.simulateProteinAction.setToolTip("Simulate Protein using Rosetta")

    commandToolbar.buildPeptideAction.setToolTip("Insert Peptide")
    commandToolbar.compareProteinsAction.setToolTip("Compare Proteins")
    commandToolbar.displayProteinStyleAction.setToolTip("Edit Protein Display Style")

    commandToolbar.rosetta_fixedbb_design_Action.setToolTip("Fixed Backbone Protein Sequence Design")
    commandToolbar.rosetta_backrub_Action.setToolTip("Backrub Motion")
    commandToolbar.editResiduesAction.setToolTip("Edit Residues")
    commandToolbar.rosetta_score_Action.setToolTip("Compute Rosetta Score")
    return

def toolTipTextForNanotubeCommandToolbar(commandToolbar):
    """
    "ToolTip" text for widgets in the Build Nanotube Command Toolbar.
    """
    commandToolbar.insertNanotubeAction.setToolTip("Insert Nanotube")
    return

def toolTipTextForCrystalCommandToolbar(commandToolbar):
    """
    "Tool Tip" text for widgets in the Build Crystal Command Toolbar.
    """
    commandToolbar.polygonShapeAction.setToolTip( "Polygon (P)")
    commandToolbar.circleShapeAction.setToolTip( "Circle (C)")
    commandToolbar.squareShapeAction.setToolTip( "Square (S)")
    commandToolbar.rectCtrShapeAction.setToolTip( "Rectangular (R)")
    commandToolbar.rectCornersShapeAction.setToolTip( "Rectangle Corners (Shift+R)")
    commandToolbar.triangleShapeAction.setToolTip( "Triangle (T)")
    commandToolbar.diamondShapeAction.setToolTip( "Diamond (D)")
    commandToolbar.hexagonShapeAction.setToolTip( "Hexagon (H)")
    commandToolbar.lassoShapeAction.setToolTip( "Lasso (L)")
    return

# Move command toolbar ####################

def toolTipTextForMoveCommandToolbar(commandToolbar):
    """
    "ToolTip" text for widgets in the Move Command Toolbar.
    """
    return

def toolTipTextForMovieCommandToolbar(commandToolbar):
    """
    "ToolTip" text for widgets in the Movie Command Toolbar.
    """
    return