# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details. """ WhatsThisText_for_CommandToolbars.py This file provides functions for setting the "What's This" 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 # Command Toolbar Menus (i.e. Build, Tools, Move and Simulation ###### def whatsThisTextForCommandToolbarBuildButton(button): """ "What's This" text for the Build button (menu). """ button.setWhatsThis( """Build

The NanoEngineer-1 Build commands for constructing structures interactively.

""") return def whatsThisTextForCommandToolbarInsertButton(button): """ "What's This" text for the Insert button (menu). """ button.setWhatsThis( """Insert

The NanoEngineer-1 Insert commands for inserting reference geometry, part files or other external structures into the current model.

""") return def whatsThisTextForCommandToolbarToolsButton(button): """ Menu of Build tools. """ button.setWhatsThis( """Tools

This is a drop down Tool menu. Clicking on the Tool button will add these tools to the Command Toolbar.

""") return def whatsThisTextForCommandToolbarMoveButton(button): """ "What's This" text for the Move button (menu). """ button.setWhatsThis( """Move

This is a drop down menu of Move commands. Clicking on the Move button will add these commands to the Command Toolbar.

""") return def whatsThisTextForCommandToolbarSimulationButton(button): """ "What's This" text for the Simulation button (menu). """ button.setWhatsThis( """Simulation

This is a drop down menu containing Simulation modes (Run Dynamics and Play Movie). The menu also contains the associated simulation jigs. Clicking on the Simulation button will add these items to the Command Explorer

""") return # Build command toolbars #################### def whatsThisTextForAtomsCommandToolbar(commandToolbar): """ "What's This" text for widgets in the Build Chunks Command Toolbar. @note: This is a placeholder function. Currenly, all the tooltip text is defined in BuildAtoms_Command.py. """ return def whatsThisTextForProteinCommandToolbar(commandToolbar): """ "What's This" text for the Build Protein Command Toolbar """ commandToolbar.exitProteinAction.setWhatsThis( """Exit Protein

Exits Build Protein.

""") commandToolbar.buildPeptideAction.setWhatsThis( """Insert Peptide

Insert a peptide into the 3D graphics area.

""") commandToolbar.displayProteinStyleAction.setWhatsThis( """Edit (Protein Display) Style

Edit the Protein Display Style settings used whenever the Global Display Style is set to Protein.

""") return def whatsThisTextForDnaCommandToolbar(commandToolbar): """ "What's This" text for the Build DNA Command Toolbar """ commandToolbar.exitDnaAction.setWhatsThis( """Exit DNA

Exits Build DNA.

""") commandToolbar.dnaDuplexAction.setWhatsThis( """Insert DNA

Insert a double stranded (ds) DNA helix by clicking two points in the 3D graphics area.

""") commandToolbar.breakStrandAction.setWhatsThis( """Break Strands

Enters Break Strand Mode where left clicking on a bond between DNA pseudo-atoms breaks the bond.

""") commandToolbar.joinStrandsAction.setWhatsThis( """Join Strands

Enters Join Strand Mode where strands may be joined by dragging and dropping strand arrow heads on to their strand conjugate i.e. 3' on to 5' and vice versa.

""") commandToolbar.dnaOrigamiAction.setWhatsThis( """Origami

Enters DNA Origami mode- currently not implemented

""") commandToolbar.convertPAM3to5Action.setWhatsThis( """Convert PAM3 to PAM5

Converts the selected DNA from PAM3 to PAM5.

""") commandToolbar.convertPAM5to3Action.setWhatsThis( """Convert PAM5 to PAM3

Converts the selected DNA from PAM5 to PAM3.

""") commandToolbar.orderDnaAction.setWhatsThis( """Order DNA

Produces a text file containing the DNA strands and their assigned base pair sequences for the all strands in the selected node.

""") commandToolbar.editDnaDisplayStyleAction.setWhatsThis( """Edit (DNA Display) Style

Edit the DNA Display Style settings used whenever the Global Display Style is set to DNA Cylinder. These settings also apply to DNA strands and segments that have had their display style set to DNA Cylinder.

""") commandToolbar.makeCrossoversAction.setWhatsThis( """Make Crossovers

Enters the interative Make Crossovers command.
To create crossovers, select the DNA Segments to be searched for potential crossover sites. The crossover sites get updated as you, for instance, rotate a DNA segment around its axis or translate it etc. The crossover sites are shown as transparent green spheres. Clicking on a white colored cylinder pair (if one exists) in the 3D-Workspace creates that crossover.

""") return def whatsThisTextForNanotubeCommandToolbar(commandToolbar): """ "What's This" text for widgets in the Build Nanotube Command Toolbar. """ commandToolbar.exitNanotubeAction.setWhatsThis( """Exit Nanotube

Exits Build Nanotube.

""") commandToolbar.insertNanotubeAction.setWhatsThis( """Insert Nanotube

Displays the Insert Nanotube Property Manager

""") return def whatsThisTextForCrystalCommandToolbar(commandToolbar): """ "Tool Tip" text for widgets in the Build Crystal (Cookie) Command Toolbar. """ return # Move command toolbar #################### def whatsThisTextForMoveCommandToolbar(commandToolbar): """ "What's This" text for widgets in the Move Command Toolbar. """ return def whatsThisTextForMovieCommandToolbar(commandToolbar): """ "What's This" text for widgets in the Movie Command Toolbar. """ return