# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details. """ WhatsThisText_for_PreferencesDialog.py This file provides functions for setting the "What's This" and tooltip text for widgets in the NE1 Preferences dialog only. Edit WhatsThisText_for_MainWindow.py to set "What's This" and tooltip text for widgets in the Main Window. @version: $Id$ @copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details. """ import sys def whatsThis_PreferencesDialog(preferencesDialog): """ Assigning the I{What's This} text for the Preferences dialog. """ _pd = preferencesDialog if sys.platform == 'darwin': # TODO: figure out how to get fix_whatsthis_text_and_links to handle # this for us (like it does for most whatsthis text). # For more info see comments from today in other files. # [bruce 081209 comment] _keyString = "(Cmd + C and Cmd + V) respectively" else: _keyString = "(Ctrl + C and Ctrl + V) respectively" #General preference _text = """Offset scale factor for pasting chunks

When one or more chunks, that are placed as independent nodes in the Model Tree, are copied and then pasted using the modifier keys %s, this scale factor determines the offset of the pasted chunks from the original chunks. Note that if the copied selection includes any DNA objects such as DNA segments, strands etc, the program will use an offset scale that is used for pasting the DNA objects instead of this offset scale)

"""%(_keyString) _pd.pasteOffsetScaleFactorForChunks_doubleSpinBox.setWhatsThis(_text) _pd.pasteOffsetForChunks_lable.setWhatsThis(_text) _text = """Offset scale factor for pasting Dna objects

When one or more DNA objects such as DNA segments, strands etc, are copied and then pasted using the modifier keys %s, this scale factor determines the offset of the pasted DNA objects from the original ones. Note that this also applies to pasting chunks within a group in the Model Tree.

"""%(_keyString) _pd.pasteOffsetScaleFactorForDnaObjects_doubleSpinBox.setWhatsThis(_text) _pd.pasteOffsetForDna_lable.setWhatsThis(_text) # Bond line thickness _text = \ "Bond line thickness"\ "

"\ "Sets the line thickness to n pixels wheneven bonds "\ "are rendered as lines (i.e. when the global display style is set to "\ "Lines display style)."\ "

" _pd.bond_line_thickness_spinbox.setWhatsThis(_text) # nice! _pd.textLabel1.setWhatsThis(_text) # and What's This text for all the others widgets (yuk!) _pd.display_origin_axis_checkbox.setWhatsThis( """

Display origin axis

Shows/Hides the origin axis""") _pd.display_pov_axis_checkbox.setWhatsThis( """

Display point of view axis

Shows/Hides the point of view axis""") _text = \ """

Display compass

Shows/Hides the display compass""" _pd.compassGroupBox.setWhatsThis(_text) _pd.display_compass_labels_checkbox.setWhatsThis( """Shows/Hides the display compass axis labels.""") _pd.watch_motion_groupbox.setWhatsThis( """

Watch motion in real time

Enables/disables realtime graphical updates during adjust operations when using Adjust All or Adjust Selection""") _text = \ """Changes the location of the display compass.""" _pd.textLabel1_4.setWhatsThis(_text) _pd.compass_position_combox.setWhatsThis(_text) _text = \ """Update every n units.

Specify how often to update the model during the adjustment. This allows the user to monitor results during adjustments.

""" _pd.update_number_spinbox.setWhatsThis(_text) _pd.update_units_combobox.setWhatsThis(_text) _pd.update_every_rbtn.setWhatsThis( """Update every n units.

Specify how often to update the model during the adjustment. This allows the user to monitor results during adjustments.

""") _pd.update_asap_rbtn.setWhatsThis( """Update as fast as possible

Update every 2 seconds, or faster (up to 20x/sec)if it doesn't slow adjustments by more than 20%

""") _text = \ """EndRMS

Continue until this RMS force is reached.

""" _pd.endrms_lbl.setWhatsThis(_text) _pd.endRmsDoubleSpinBox.setWhatsThis(_text) _text = \ """EndMax

Continue until no interaction exceeds this force.

""" _pd.endmax_lbl.setWhatsThis(_text) _pd.endMaxDoubleSpinBox.setWhatsThis(_text) _text = \ """CutoverMax

Use steepest descent until no interaction exceeds this force.

""" _pd.cutovermax_lbl.setWhatsThis(_text) _pd.cutoverMaxDoubleSpinBox.setWhatsThis(_text) _text = \ """CutoverRMS

Use steepest descent until this RMS force is reached.

""" _pd.cutoverRmsDoubleSpinBox.setWhatsThis(_text) _pd.cutoverrms_lbl.setWhatsThis(_text) # Sponsor Logos Download Permission _pd.sponsorLogosGroupBox.setWhatsThis( """Sponsor logos download permission

This group of buttons sets the permission for downloading sponsor logos.

""") _pd.logoAlwaysAskRadioBtn.setWhatsThis( """Always ask before downloading

When sponsor logos have been updated, ask permission to download them.

""") _pd.logoNeverAskRadioBtn.setWhatsThis( """Never ask before downloading

When sponsor logos have been updated, download them without asking permission to do so.

""") _pd.logoNeverDownLoadRadioBtn.setWhatsThis( """Never download

Don't ask permission to download sponsor logos and don't download them.

""") _pd.animate_views_checkbox.setWhatsThis( """

Animate between views

Enables/disables animation when switching between the current view and a new view.

""") _text = \ """

View animation speed

Sets the animation speed when animating between views (i.e. Front view to Right view). It is recommended that this be set to Fast when working on large models.

""" _pd.textLabel1_5.setWhatsThis(_text) _pd.animation_speed_slider.setWhatsThis(_text) _text = \ """

Mouse rotation speed

Specifies the speed factor to use when rotating the view by dragging the mouse (i.e. during the Rotate command or when using the middle mouse button).

""" _pd.mouseSpeedDuringRotation_slider.setWhatsThis(_text) _pd.rotationSensitivity_txtlbl.setWhatsThis(_text) _text = \ """

Level of detail

Sets the level of detail for atoms and bonds.

High = Best graphics quality (slowest rendering speed)
Medium = Good graphics quality
Low = Poor graphics quality (fastest rendering speed)
Variable automatically switches between High, Medium and Low based on the model size (number of atoms).

""" _pd.textLabel1_7.setWhatsThis(_text) _pd.level_of_detail_combox.setWhatsThis(_text) _pd.textLabel1_3_2.setWhatsThis( """

Ball and stick atom scale

Sets the ball and stick atom scale factor. It is best to change the scale factor while the current model is displayed in ball and stick mode.""") _pd.ballStickAtomScaleFactorSpinBox.setWhatsThis( """

Ball and stick atom scale

Sets the atom scale factor for ball and stick display style. It is best to change the scale factor while the global display style is set to ball and stick.""") _pd.textLabel1_3_2_2.setWhatsThis( """

CPK atom scale

Changes the CPK atom scale factor. It is best to change the scale factor while in CPK display mode so you can see the graphical effect of changing the scale.""") _pd.cpkAtomScaleFactorDoubleSpinBox.setWhatsThis( """

CPK atom scale

Set the atom scale factor for CPK display style. It is best to change the scale factor while the global display style is set to CPK so you can see the graphical effect of changing the scale.""") _pd.reset_cpk_scale_factor_btn.setWhatsThis( """Restore the default value of the CPK scale factor""") _pd.reset_ballstick_scale_factor_btn.setWhatsThis( """Restore the default value of the ball and stick scale factor.""") _pd.haloWidthResetButton.setWhatsThis( """Restore the default value of halo width.""") _pd.multCyl_radioButton.setWhatsThis( """

Multiple cylinders

High order bonds are displayed using multiple cylinders.

Double bonds are drawn with two cylinders.
Triple bonds are drawn with three cylinders.
Aromatic bonds are drawn as a single cylinder with a short green cylinder in the middle.""") _pd.vanes_radioButton.setWhatsThis( """

Vanes

High order bonds are displayed using Vanes.

Vanes represent pi systems in high order bonds and are rendered as rectangular polygons. The orientation of the vanes approximates the orientation of the pi system(s).

Create an acetylene or ethene molecule and select this option to see how vanes are rendered.

""") _pd.ribbons_radioButton.setWhatsThis( """

Ribbons

High order bonds are displayed using Ribbons.

Ribbons represent pi systems in high order bonds and are rendered as ribbons. The orientation of the ribbons approximates the orientation of the pi system.

Create an acetylene or ethene molecule and select this option to see how ribbons are rendered.

""") _pd.show_bond_labels_checkbox.setWhatsThis( """

Show bond type letters

Shows/Hides bond type letters (labels) on top of bonds.

Bond type letters:
2 = Double bond
3 = Triple bond
A = Aromatic bond
G = Graphitic bond
""") _pd.show_valence_errors_checkbox.setWhatsThis( """

Show valence errors

Enables/Disables valence error checker.

When enabled, atoms with valence errors are displayed with a pink wireframe sphere. This indicates that one or more of the atom's bonds are not of the correct order (type), or that the atom has the wrong number of bonds, or (for PAM DNA pseudoatoms) that there is some error in bond directions or in which PAM elements are bonded. The error details can be seen in the tooltip for the atom.""") _text = \ """

Ball and stick bond scale

Set scale (size) factor for the cylinder representing bonds in ball and stick display mode""" _pd.textLabel1_3.setWhatsThis(_text) _pd.cpk_cylinder_rad_spinbox.setWhatsThis(_text) _pd.autobond_checkbox.setWhatsThis( """

Default setting for Autobonding at startup (enabled/disabled)

""") _pd.water_checkbox.setWhatsThis( """

Default setting for Water (surface) at startup (enabled/disabled)

""") _pd.buildmode_select_atoms_checkbox.setWhatsThis( """Auto select atoms of deposited object

When depositing atoms, clipboard chunks or library parts, their atoms will automatically be selected.""") _pd.buildmode_highlighting_checkbox.setWhatsThis( """

Default setting for Hover highlighting at startup (enabled/disabled)

""") _pd.gromacs_label.setWhatsThis( """Enable GROMACS and choose the mdrun executable path to use.""") _pd.gromacs_checkbox.setWhatsThis( """This enables GROMACS as a plug-in. GROMACS is a free rendering program available from http://www.gromacs.org/. GROMACS must be installed on your computer before you can enable the GROMACS plug-in. Check this and choose the the path to the mdrun executable from your GROMACS distribution.""") _pd.gromacs_path_lineedit.setWhatsThis( """The full path to the mdrun executable file for GROMACS.""") _pd.gromacs_choose_btn.setWhatsThis( """This opens up a file chooser dialog so that you can specify the location of the GROMACS executable (mdrun).""") _text = \ """Specify the C-preprocessor (cpp) for GROMACS to use.""" _pd.cpp_label.setWhatsThis(_text) _pd.cpp_checkbox.setWhatsThis(_text) _pd.cpp_path_lineedit.setWhatsThis( """The full path to the C-preprocessor (cpp) executable file for GROMACS to use.""") _pd.cpp_choose_btn.setWhatsThis( """Allows you to choose the path to the C-preprocessor (cpp) executable file for GROMACS to use.""") _text = \ """This enables POV-Ray as a plug-in. POV-Ray is a free raytracing program available from http://www.povray.org/. POV-Ray must be installed on your computer before you can enable the POV-Ray plug-in. """ _pd.povray_checkbox.setWhatsThis(_text) _pd.povray_lbl.setWhatsThis(_text) _text = \ """This enables QuteMolX as a plug-in. QuteMolX is available for download from http://nanoengineer-1.com/QuteMolX. QuteMolX must be installed on your computer before you can enable this plug-in.""" _pd.qutemol_lbl.setWhatsThis(_text) _pd.qutemol_checkbox.setWhatsThis(_text) _text = \ """This enables Nano-Hive as a plug-in. Nano-Hive is available for download from http://www.nano-hive.com/. Nano-Hive must be installed on your computer before you can enable the Nano-Hive plug-in.""" _pd.nanohive_lbl.setWhatsThis(_text) _pd.nanohive_checkbox.setWhatsThis(_text) _pd.povray_path_lineedit.setWhatsThis( """The full path to the POV-Ray executable file.""") _pd.qutemol_path_lineedit.setWhatsThis( """The full path to the QuteMolX executable file.""") _pd.nanohive_path_lineedit.setWhatsThis( """The full path to the Nano-Hive executable file.""") _text = \ """

This enables PC-GAMESS (Windows) or GAMESS (Linux or MacOS) as a plug-in.

For Windows users, PC-GAMESS is available for download from http://classic.chem.msu.su/gran/gamess/. PC-GAMESS must be installed on your computer before you can enable the PC-GAMESS plug-in.

For Linux and MacOS users, GAMESS is available for download from http://www.msg.ameslab.gov/GAMESS/GAMESS.html. GAMESS must be installed on your computer before you can enable the GAMESS plug-in.

""" _pd.gamess_lbl.setWhatsThis(_text) _pd.gamess_checkbox.setWhatsThis(_text) _pd.megapov_path_lineedit.setWhatsThis( """The full path to the MegaPOV executable file (megapov.exe).""") _text = \ """This enables MegaPOV as a plug-in. MegaPOV is a free addon raytracing program available from http://megapov.inetart.net/. Both MegaPOV and POV-Ray must be installed on your computer before you can enable the MegaPOV plug-in. MegaPOV allows rendering to happen silently on Windows (i.e. no POV_Ray GUI is displayed while rendering).""" _pd.megapov_checkbox.setWhatsThis(_text) _pd.megapov_lbl.setWhatsThis(_text) _pd.gamess_path_lineedit.setWhatsThis( """The gamess executable file. Usually it's called gamess.??.x or ??gamess.exe.""") _pd.povdir_lineedit.setWhatsThis( """Specify a directory for where to find POV-Ray or MegaPOV include files such as transforms.inc.""") _pd.qutemol_choose_btn.setWhatsThis( """This opens up a file chooser dialog so that you can specify the location of the QuteMolX executable.""") _pd.nanohive_choose_btn.setWhatsThis( """This opens up a file chooser dialog so that you can specify the location of the Nano-Hive executable.""") _pd.povray_choose_btn.setWhatsThis( """This opens up a file chooser dialog so that you can specify the location of the POV-Ray executable.""") _pd.megapov_choose_btn.setWhatsThis( """This opens up a file chooser dialog so that you can specify the location of the MegaPOV executable (megapov.exe).""") _pd.gamess_choose_btn.setWhatsThis( """This opens up a file chooser dialog so that you can specify the location of the GAMESS or PC-GAMESS executable.""") _pd.povdir_checkbox.setWhatsThis( """Select a user-customized directory for POV-Ray and MegaPOV include files, such as transforms.inc.""") _pd.undo_automatic_checkpoints_checkbox.setWhatsThis( """

Automatic checkpoints

Specifies whether automatic checkpointing is enabled/disabled during program startup only. It does not enable/disable automatic checkpointing when the program is running.

Automatic checkpointing can be enabled/disabled by the user at any time from Edit > Automatic checkpointing. When enabled, the program maintains the undo stack automatically. When disabled, the user is required to manually set undo checkpoints using the set checkpoint button in the Edit Toolbar/Menu.

Automatic checkpointing can impact program performance. By disabling automatic checkpointing, the program will run faster.

Remember to you must set your own undo checkpoints manually when automatic checkpointing is disabled.

""") _pd.undo_restore_view_checkbox.setWhatsThis( """

Restore view when undoing structural changes

When checked, the current view is stored along with each structural change on the undo stack. The view is then restored when the user undoes a structural change.

Structural changes include any operation that modifies the model. Examples include adding, deleting or moving an atom, chunk or jig.

Selection (picking/unpicking) and view changes are examples of operations that do not modify the model (i.e. are not structural changes).

""") _pd.groupBox3.setWhatsThis( """Format prefix and suffix text the delimits the part name in the caption in window border.""") _text = \ """Saves the main window's current position and size for the next time the program starts.""" _pd.save_current_btn.setWhatsThis(_text) _pd.restore_saved_size_btn.setWhatsThis( """Restores the main window's current position from the last time the program was closed""") _text = \ """Sets background color from preset list or choose to customize your own background color""" _pd.label_8.setWhatsThis(_text) _pd.backgroundColorComboBox.setWhatsThis(_text) _pd.hoverHighlightingStyleGroupBox.setWhatsThis( """

Hover highlighting style

Creates a highlight surrounding an object that the cursor is placed over. The highlight shows what would be selected if the mouse was clicked. Has options to view the highlighting in many ways as well as choose the color of the highlight.

""") _pd.selectionColorStyleGroupBox.setWhatsThis( """

Selection style

When an object or objects have been selected they become highlighted. The highlighting has many textures and colors that may be changed.

""") _text = \ """Sets the width of the colored halo if colored halo is chosen as a highlighting style or selection style.""" _pd.label_25.setWhatsThis(_text) _pd.haloWidthSpinBox.setWhatsThis(_text) _text = \ """Changes the appearance of any objects in the work place.""" _pd.label_9.setWhatsThis(_text) _pd.globalDisplayStyleStartupComboBox.setWhatsThis(_text) return