summaryrefslogtreecommitdiff
path: root/cad/src/ne1_ui/WhatsThisText_for_MainWindow.py
blob: 68859379935757134162433d3b7bbfcf6c981e5d (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
# Copyright 2004-2008 Nanorex, Inc.  See LICENSE file for details. 
"""
WhatsThisText_for_MainWindow.py

This file provides functions for setting the "What's This" and tooltip text
for widgets in the NE1 Main Window, except widgets in Property Managers.

Edit WhatsThisText_for_PropertyManagers.py to set "What's This" and tooltip
text for widgets in the NE1 Property Managers.

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

Note: bruce 080210 split whatsthis_utilities.py out of this file
into their own new file. 

To do:
- Change the heading for all Display Style actions from "Display <ds>" to
"Apply <ds> Display Style to the selection". Change tooltips and wiki help
pages as well.
- Replace current text string name with "_text" (like "Open File" example)
"""

from PyQt4.Qt import QWhatsThis
    
def createWhatsThisTextForMainWindowWidgets(win):
    """
    Adds the "What's This" help text to items found in the NE1 mainwindow
    toolbars and menus .
    
    @param win: NE1's mainwindow object.
    @type  win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>}
    
    @note: Property Managers specify "What's This" text for their own widgets, 
           usually in a method called add_whats_this_text(), not in this file. 
    """
    
    #
    # File Toolbar
    #

    # Open File
    
    _text = \
        "<u><b>Open File</b></u> (Ctrl + O)"\
        "<p><img source=\"ui/actions/File/Open.png\"><br> "\
        "Opens a new file."\
        "</p>"

    win.fileOpenAction.setWhatsThis( _text )
    # Import File

    fileImportText = \
        "<u><b>Open Babel</b></u>"\
        "<p>"\
        "Imports a file of any chemical file format supported by "\
        "<b>Open Babel</b> into the current Part."\
        "</p>"

    win.fileImportOpenBabelAction.setWhatsThis(fileImportText)
    
    
    # Close File
    fileCloseAction = \
        "<b>Close and begin a new model</b>"\
        "<p>"\
        "Close the .mmp file currently being edited and loads a new one "\
        "</p>"

    win.fileCloseAction.setWhatsThis(fileCloseAction)
    
    
    #Export File 
    fileExportText = \
        "<u><b>Open Babel</b></u>"\
        "<p>"\
        "Exports the current part in any chemical file format "\
        "supported by <b>Open Babel</b>. Note that exclusive "\
        "features of NanoEngineer-1 are not saved to the exported file."\
        "</p>"

    win.fileExportOpenBabelAction.setWhatsThis(fileExportText)

    # Save File

    fileSaveText = \
        "<u><b>Save File</b></u>     (Ctrl + S) "\
        "<p>"\
        "<img source=\"ui/actions/File/Save.png\"><br> "\
        "Saves the current file."\
        "</p>"

    win.fileSaveAction.setWhatsThis( fileSaveText )
    
    # Save File As

    fileSaveAsText = \
        "<b>Save File As</b>"\
        "<p>"\
        "Allows the user to save the current .mmp file with a new name or."\
        "in a different location"\
        "</p>"

    win.fileSaveAsAction.setWhatsThis( fileSaveAsText )
    
    # Import Molecular Machine Part

    fileInsertMmpActionText = \
        "<b> Molecular Machine Part</b>"\
        "<p>"\
        "<img source=\"ui/actions/Insert/Molecular_Machine_Part.png\"><br> "\
        "Inserts an existing .mmp file into the current part."\
        "</p>"

    win.fileInsertMmpAction.setWhatsThis( fileInsertMmpActionText )
    
    # Import Protein Data Bank File

    fileInsertPdbActionText = \
        "<b> Protein Databank File</b>"\
        "<p>"\
        "Inserts an existing .pdb file into the current part."\
        "</p>"

    win.fileInsertPdbAction.setWhatsThis( fileInsertPdbActionText )
    
    # Import AMBER .in file

    fileInsertInActionText = \
        "<b> AMBER .in file fragment</b>"\
        "<p>"\
        "Inserts a fragment of an AMBER .in file into the current part.<p>"\
        "The fragment should just contain the lines defining the actual z-matrix.  "\
        "Loop closure bonds are not created, nor are bond orders inferred."\
        "</p>"

    win.fileInsertInAction.setWhatsThis( fileInsertInActionText )
    
    # Export Protein Data Bank File

    fileExportPdbActionText = \
        "<b> Export Protein Databank File</b>"\
        "<p>"\
        "Saves the current .mmp model as a Protein Databank File"\
        "</p>"

    win.fileExportPdbAction.setWhatsThis( fileExportPdbActionText )

 # Export Jpeg File

    fileExportJpgActionText = \
        "<b> Export JPEG File</b>"\
        "<p>"\
        "Saves the current .mmp model as a JPEG File"\
        "</p>"

    win.fileExportJpgAction.setWhatsThis( fileExportJpgActionText )

    # Export PNG File

    fileExportPngActionText = \
        "<b> Export PNG File</b>"\
        "<p>"\
        "Saves the current .mmp model as a PNG File"\
        "</p>"

    win.fileExportPngAction.setWhatsThis( fileExportPngActionText )

    # Export POV-ray File

    fileExportPovActionText = \
        "<b> Export POV-Ray File</b>"\
        "<p>"\
        "Saves the current .mmp model as a POV-Ray File"\
        "</p>"

    win.fileExportPovAction.setWhatsThis( fileExportPovActionText )
    
    # Export POV-ray File

    fileExportAmdlActionText = \
        "<b> Export Animation Master Model</b>"\
        "<p>"\
        "Saves the current .mmp model as an Animation Master Model File"\
        "</p>"

    win.fileExportAmdlAction.setWhatsThis( fileExportAmdlActionText )
    
    # Exit

    fileExitActionText = \
        "<b> Exit NanoEngineer-1</b>"\
        "<p>"\
        "Closes NanoEngineer-1"\
        "<p>"\
        "You will be prompted to save any current changes to the .mmp file"\
        "</p>"

    win.fileExitAction.setWhatsThis( fileExitActionText )



    #
    # Edit Toolbar
    #

    # Make Checkpoint ###

    editMakeCheckpointText = \
        "<u><b>Make Checkpoint</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Edit/Make_CheckPoint.png\"><br> "\
        "Make Undo checkpoint."\
        "</p>"

    win.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText )

    # Automatic Checkpointing ### [minor changes, bruce 060319]

    editAutoCheckpointingText = \
        "<u><b>Automatic Checkpointing</b></u>"\
        "<p>"\
        "Enables/Disables <b>Automatic Checkpointing</b>. When enabled, "\
        "the program maintains the Undo stack automatically.  When disabled, "\
        "the user is required to manually create Undo checkpoints using the "\
        "<b>Make Checkpoint</b> button: "\
        "</p>"\
        "<p><img source=\"ui/actions/Edit/Make_CheckPoint.png\">"\
        "</p>"\
        "<p><b>Automatic Checkpointing</b> can impact program performance. "\
        "By disabling Automatic Checkpointing, the program will run faster. "\
        "</p>"\
        "<p><b><i>Remember that you must make your own Undo checkpoints "\
        "manually when Automatic Checkpointing is disabled.</i></b>"\
        "</p>"

    win.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText )

    # Clear Undo Stack ### [minor changes, bruce 060319]

    editClearUndoStackText = \
        "<u><b>Clear Undo Stack</b></u>"\
        "<p>"\
        "Clears all checkpoints on the Undo and Redo "\
        "stacks, freeing up memory."\
        "</p>"

    win.editClearUndoStackAction.setWhatsThis( editClearUndoStackText )

    # Undo

    editUndoText = \
        "<u><b>Undo</b></u>     (Ctrl + Z) "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Undo.png\"><br> "\
        "Reverses the last edit or command which changed structure "\
        "or selection. "\
        "</p>" 
    #bruce 060317 revised this text to reflect 
    #what it does in A7; 060320 added 1421-not-fixed warning

    win.editUndoAction.setWhatsThis( editUndoText )

    win.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in 
                                    #Undo whatsthis wiki help link

    # Redo

    from platform_dependent.PlatformDependent import is_macintosh
    if is_macintosh():
        redo_accel = "(Ctrl + Shift + Z)" # note: this is further 
                                          #modified (Ctrl -> Cmd) by other code
        # changing this is partly redundant with code in undo*.py, 
        #but as of 060317 it's desirable in editRedoText too
    else:
        redo_accel = "(Ctrl + Y)"

    editRedoText = \
        "<u><b>Redo</b></u>     %s<br> "\
        "<img source=\"ui/actions/Edit/Redo.png\"> <br>"\
        "Restores a change which was undone using the Undo command."\
        "<br><font color=\"#808080\">"\
        "</p>" \
        % redo_accel
    
    # This "known bug" (below) is no longer a bug, at least it works on Windows.
    # I'll ask someone with a MacOSX machine to test. --Mark 2008-05-05.
    
        #"Known bug: the link to wiki help for Redo "\
        #"only works if you got this popup from the Edit menu item "\
        #"for Redo, not from the Redo toolbutton. </font>"\
        #"</p>" \
        #% redo_accel
        #bruce 060317 revised this text to be more accurate, and split 
        #out redo_accel; 060320 added 1421-not-fixed warning

    win.editRedoAction.setWhatsThis( editRedoText )

    win.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 
                                    #in Redo whatsthis wiki help link

    # Cut

    editCutText =  \
        "<u><b>Cut</b></u>     (Ctrl + X) "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Cut.png\"><br> "\
        "Removes the selected object(s) and stores the cut data on the"\
        "clipboard."\
        "</p>"

    win.editCutAction.setWhatsThis( editCutText )

    # Copy

    editCopyText = \
        "<u><b>Copy</b></u>     (Ctrl + C) "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Copy.png\"><br> "\
        "Places a copy of the selected chunk(s) on the clipboard "\
        "while leaving the original chunk(s) unaffected."\
        "</p>"

    win.editCopyAction.setWhatsThis( editCopyText )

    # Paste

    editPasteText = \
        "<u><b>Paste</b></u>     (Ctrl + V) "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Paste_On.png\"><br> "\
        "<b>Paste</b> places the user in <b>Build</b> mode "\
        "where copied chunks on the clipboard can be pasted into "\
        "the model by double clicking in empty space. If the "\
        "current clipboard chunk has a <b><i>hotspot</i></b>, "\
        "it can be bonded to another chunk by single clicking on "\
        "one of the chunk's bondpoints."\
        "</p>"\
        "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a "\
        "clipboard chunk indicating it will be the active "\
        "bondpoint which will connect to another chunk's bondpoint. "\
        "To specify a hotspot on the clipboard chunk, click on one "\
        "of its bondpoints in the <b><i>MMKit's Thumbview</i></b>."\
        "</p>"

    win.editPasteAction.setWhatsThis( editPasteText )

    # Paste From Clipboard
    
    pasteFromClipboardText = \
        "<u><b>Paste From Clipboard</b></u> "\
        "<p>"\
        "<img source=\"ui/actions/properties manager/clipboard-full.png\">"\
        "<br> "\
        "Allows the user to preview the contents of the "\
        "clipboard and past items into the Workspace."\
        "The preview window also allows the user to set "\
        "hot spots on chunks."\
        "</p>"
     
    win.pasteFromClipboardAction.setWhatsThis( pasteFromClipboardText )
    
    win.editDnaDisplayStyleAction.setWhatsThis(
        """<b>Edit DNA Display Style</b>
        <p>
        <img source=\"ui/actions/Edit/EditDnaDisplayStyle.png\">
        <br>
        Edit the DNA Display Style settings used whenever the <b>Global Display
        Style</b> is set to <i>DNA Cylinder</i>. These settings also apply
        to DNA strands and segments that have had their display style set
        to <i>DNA Cylinder</i>.
        </p>""")
    
    win.editProteinDisplayStyleAction.setWhatsThis(
        """<b>Edit Protein Display Style</b>
        <p>
        <img source=\"ui/actions/Edit/EditProteinDisplayStyle.png\">
        <br>
        Edit the Protein Display Style settings used whenever the <b>Global Display
        Style</b> is set to <i>Protein</i>.
        </p>""") 
   
    #Rename (deprecated by Rename Selection)
    EditrenameActionText = \
        "<u><b>Rename</b></u> "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Rename.png\">"\
        "<br> "\
        "Allows the user to rename the selected chunk "\
        "</p>"
     
    win.editRenameAction.setWhatsThis( EditrenameActionText )
    
    #Rename selection
    _text = \
        "<u><b>Rename Selection</b></u> "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Rename.png\">"\
        "<br> "\
        "Rename the selected object(s). Only leaf nodes in the model tree are "\
        "renamed. Specifically, group nodes are not renamed, even if they are "\
        "selected)."\
        "</p>"\
        "To uniquely name multiple objects, include the <b>#</b> character "\
        "at the end of the name. This (re)numbers the selected objects."\
        "</p>"
     
    win.editRenameSelectionAction.setWhatsThis( _text )
    
    #editAddSuffixAction
    EditeditAddSuffixActionActionText = \
        "<u><b>Add Suffix</b></u> "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Add_Suffix.png\">"\
        "<br> "\
        "Add suffix to the name of the selected object(s)."\
        "</p>"
     
    win.editAddSuffixAction.setWhatsThis( EditeditAddSuffixActionActionText )
    
    # Delete

    editDeleteText =  \
        "<u><b>Delete</b></u>     (DEL) "\
        "<p>"\
        "<img source=\"ui/actions/Edit/Delete.png\"><br> "\
        "Deletes the selected object(s).  "\
        "For this Alpha release, deleted objects may "\
        "be permanently lost, or they might be recoverable "\
        "using Undo."\
        "</p>"
        #bruce 060212 revised above text (and fixed spelling error); 
        #should be revised again before A7 release

    win.editDeleteAction.setWhatsThis( editDeleteText )

    
    # Color Scheme
    
    _text = \
        "<u><b>Color Scheme</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/ColorScheme.png\"><br> "\
        "Edit and save/restore favorite NanoEngineer-1 color schemes "\
        "including background color, selection/highlight color, etc."\
        "</p>"
    win.colorSchemeAction.setWhatsThis( _text )
    
    # Lighting Scheme
    
    _text = \
        "<u><b>Lighting Scheme</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/LightingScheme.png\"><br> "\
        "Edit and save/restore favorite NanoEngineer-1 lighting schemes."\
        "</p>"
    win.lightingSchemeAction.setWhatsThis( _text )
    
    #Preferences Dialog

    editPrefsText = \
        "<u><b>Preferences Dialog</b></u>"\
        "<p>"\
        "Allows you to edit various user preferences "\
        "such as changing atom, bond display properties,"\
        "lighting, background color, window position and"\
        "size, plugins etc. </p>"
    win.editPrefsAction.setWhatsThis( editPrefsText )
    
    #
    # View Toolbar
    #

    # Home View

    setViewHomeActionText = \
        "<u><b>Home</b></u>     (Home)"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/Home.png\"><br>"\
        "When you create a new model, it appears in a "\
        "default view orientation (FRONT view). When you "\
        "open an existing model, it appears in the "\
        "orientation it was last saved.  You can change the "\
        "default orientation by selecting <b>Set Home View "\
        "to Current View</b> from the <b>View</b> menu."\
        "</p>"

    win.setViewHomeAction.setWhatsThis( setViewHomeActionText )

    # Zoom to fit

    setViewFitToWindowActionText = \
        "<u><b>Zoom to Fit</b></u>"\
        "<p><img source=\"ui/actions/View/Modify/Zoom_To_Fit.png\"><br> "\
        "Refits the model to the screen so you can "\
        "view the entire model."\
        "</p>"

    win.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText )   

    # Recenter

    setViewRecenterActionText = \
        "<u><b>Recenter</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/Recenter.png\"><br> "\
        "Changes the view center and zoom factor so "\
        "that the origin is in the center of the view "\
        "and you can view the entire model."\
        "</p>"

    win.setViewRecenterAction.setWhatsThis( setViewRecenterActionText )       

    # Zoom to Area (used to be Zoom Tool). Mark 2008-01-29.

    setzoomToAreaActionText = \
        "<u><b>Zoom to Area</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/ZoomToArea.png\"><br> "\
        "Allows the user to zoom into a specific area of "\
        "the model by specifying a rectangular area. "\
        "The area is specified by holding down the left button, "\
        "dragging the mouse, and then releasing the mouse button."\
        "</p>"\
        "Pressing the <b>Escape</b> key exits Zoom to Area and returns to the"\
        "previous command."\
        "</p>"\
        "<p>A mouse with a mouse wheel can also be used to "\
        "zoom in/out."\
        "</p>"\
        "<p>The keyboard can also be used to zoom in/out:"\
        "<br>- <b>Zoom in</b> by pressing the 'period' key ( '.' )."\
        "<br>- <b>Zoom out</b> by pressing the 'comma' key ( ',' )."\
        "</p>"

    win.zoomToAreaAction.setWhatsThis( setzoomToAreaActionText )
    
    # Zoom (In/Out)

    setzoomInOutActionText = \
        "<u><b>Zoom In/Out</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/Zoom_In_Out.png\"><br> "\
        "Enters a temporary zoom mode that allows the user to zoom in or out "\
        "using the mouse. Press ESC or click this button again to exit "\
        "temporary zoom mode and return to the previous command."\
        "</p>"\
        "<p>- <b>Zoom in</b> by holding down the mouse button and pulling "\
        "the mouse closer (cursor moves down)."\
        "<br>- <b>Zoom out</b> by holding the mouse button and pushing "\
        "the mouse away (cursor moves up)."\
        "</p>"\
        "<p>A mouse with a mouse wheel can also be used to "\
        "zoom in/out."\
        "</p>"\
        "<p>The keyboard can also be used to zoom in/out:"\
        "<br>- <b>Zoom in</b> by pressing the 'period' key ( '.' )."\
        "<br>- <b>Zoom out</b> by pressing the 'comma' key ( ',' )."\
        "</p>"

    win.zoomInOutAction.setWhatsThis( setzoomInOutActionText )
    
    #Zoom To Selection
    
    setViewZoomtoSelectionActionText = \
        "<u><b>Zoom to Selection</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/Zoom_To_Selection.png\"><br> "\
        " Zooms view to selected atoms or chunks. "\
        "</p>"
    
    win.setViewZoomtoSelectionAction.setWhatsThis\
       ( setViewZoomtoSelectionActionText )

    # Pan Tool

    setpanToolActionText = \
        "<u><b>Pan Tool</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/Pan.png\"><br> "\
        "Allows X-Y panning using the left mouse button."\
        "</p>"\
        "Pressing the <b>Escape</b> key exits Pan Tool and returns to the"\
        "previous command."\
        "</p>"\
        "<p>Users with a 3-button mouse can pan the model at "\
        "any time by pressing the middle mouse button while "\
        "holding down the Shift key."\
        "</p>"

    win.panToolAction.setWhatsThis( setpanToolActionText )

    # Rotate Tool

    setrotateToolActionText = \
        "<u><b>Rotate Tool</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/Rotate.png\"><br> "\
        "Allows free rotation using the left mouse button."\
        "</p>"\
        "<p>Holding down the <b>A</b> key activates auto-rotation, which will "\
        "continue rotation after releasing the mouse button (try it!)."\
        "Pressing the <b>Escape</b> key exits Rotate Tool and returns to the"\
        "previous command."\
        "</p>"\
        "<p>Users with a 3-button mouse can rotate the "\
        "model at any time by pressing "\
        "the middle mouse button and dragging "\
        "the mouse."\
        "</p>"

    win.rotateToolAction.setWhatsThis( setrotateToolActionText )
    
    #Standard Views
    
    standardViews_btnText = \
        "<u><b>Standard Views</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Standard_Views.png\"><br> "\
        "Displays the Standards Views Menu "\
        "</p>"

    win.standardViews_btn.setWhatsThis( standardViews_btnText )
    
    # Orthographic Projection
    
    setViewOrthoActionText = \
        "<u><b>Orthographic Projection</b></u>"\
        "<p>"\
        "Sets nonperspective (or parallel) projection, "\
        "with no foreshortening."\
        "</p>"

    win.setViewOrthoAction.setWhatsThis( setViewOrthoActionText )

    # Perspective Projection

    setViewPerspecActionText = \
        "<u><b>Perspective Projection</b></u>"\
        "<p>"\
        "Set perspective projection, drawing objects "\
        "slightly larger that are closer to the viewer."\
        "</p>"

    win.setViewPerspecAction.setWhatsThis( setViewPerspecActionText )

    # Normal To

    viewNormalToActionText = \
        "<u><b>Set View Normal To</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Set_View_Normal_To/\"><br> "\
        "Orients view to the normal vector of the plane "\
        "defined by 3 or more selected atoms, or a jig's "\
        "axis."\
        "</p>"

    win.viewNormalToAction.setWhatsThis( viewNormalToActionText )

    # Parallel To

    _text = \
        "<u><b>Set View Parallel To</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Set_View_Parallel_To.png\"><br> "\
        "Orients view parallel to the vector defined by "\
        "2 selected atoms."\
        "</p>"

    win.viewParallelToAction.setWhatsThis( _text ) 

    # Save Named View

    _text = \
        "<u><b>Save Named View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Modify/Save_Named_View.png\"><br> "\
        "Saves the current view as a custom "\
        "<b>named view</b> and places it in "\
        "the Model Tree."\
        "</p>" \
        "<p>The view can be restored by selecting "\
        "<b>Change View</b> from its context "\
        "menu in the Model Tree."\
        "</p>"

    win.saveNamedViewAction.setWhatsThis( _text ) 

    # Front View

    _text = \
        "<u><b>Front View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Front.png\"><br> "\
        "Orients the view to the Front View."\
        "</p>"

    win.viewFrontAction.setWhatsThis( _text )  

    # Back View

    _text = \
        "<u><b>Back View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Back.png\"><br> "\
        "Orients the view to the Back View."\
        "</p>"

    win.viewBackAction.setWhatsThis( _text )     

    # Top View

    _text = \
        "<u><b>Top View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Top.png\"><br> "\
        "Orients the view to the Top View."\
        "</p>"

    win.viewTopAction.setWhatsThis( _text )      

    # Bottom View

    _text = \
        "<u><b>Bottom View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Bottom.png\"><br> "\
        "Orients the view to the Bottom View."\
        "</p>"

    win.viewBottomAction.setWhatsThis( _text )  

    # Left View

    _text = \
        "<u><b>Left View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Left.png\"><br> "\
        "Orients the view to the Left View."\
        "</p>"

    win.viewLeftAction.setWhatsThis( _text )

    # Right View

    _text = \
        "<u><b>Right View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Right.png\"><br> "\
        "Orients the view to the Right View."\
        "</p>"

    win.viewRightAction.setWhatsThis( _text )

    #Isometric View 

    _text = \
        "<u><b>IsometricView</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Isometric.png\"><br> "\
        "Orients the view to the Isometric View."\
        "</p>"

    win.viewIsometricAction.setWhatsThis( _text )

    # Flip View Vertically

    _text = \
        "<u><b>Flip View Vertically</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/FlipViewVert.png\"><br> "\
        "Flip the view vertically."\
        "</p>"

    win.viewFlipViewVertAction.setWhatsThis( _text )
    
    # Flip View Horizontally

    _text = \
        "<u><b>Flip View Horizontally</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/FlipViewHorz.png\"><br> "\
        "Flip the view horizontally."\
        "</p>"

    win.viewFlipViewHorzAction.setWhatsThis( _text )

    # Rotate View +90

    _text = \
        """<u><b>Rotate View +90</b></u>
        <p>
        <img source=\"ui/actions/View/Rotate_View_+90.png\"><br> 
        Increment the current view by 90 degrees 
        around the vertical axis.
        </p>"""

    win.viewRotatePlus90Action.setWhatsThis( _text )

    # Rotate View -90

    _text = \
        """<u><b>Rotate View -90</b></u>
        <p>
        <img source=\"ui/actions/View/Rotate_View_-90.png\"><br> 
        Decrement the current view by 90 degrees 
        around the vertical axis.
        </p>"""

    win.viewRotateMinus90Action.setWhatsThis( _text )
    
    # Standard Views Menu (on View toolbar)
    
    _text = \
        """<u><b>Standard Views</b></u>
        <p>
        <img source=\"ui/actions/View/Standard_Views.png\"><br> 
        Menu of standard views.
        </p>"""
    
    win.standardViewsAction.setWhatsThis( _text)

    # View Manager (was Orientation Window)
    
    _text = \
        """<u><b>Orientation View Manager</b></u> (Space)
        <p>
        <img source=\"ui/actions/View/Modify/Orientation.png\"><br> 
        Opens the Orientation view manager window which provides a convenient way to 
        quickly access standard and custom views. It is also used to manage 
        <a href=Feature:Save_Named_View>Named Views</a>.
        </p>"""

    win.viewOrientationAction.setWhatsThis( _text ) 
    
    # Set Current View to Home View
    
    _text = \
        """<b>Replace Home View with current view</b>
        <p>
        Replaces the Home View with the current view.</p>
        <p>
        <img source=\"ui/whatsthis/HotTip.png\"><br>
        <b>Hot Tip:</b> 
        Press the <b>Home key</b> to switch to the Home View at any time.
        </p>"""

    win.setViewHomeToCurrentAction.setWhatsThis( _text )
    
    # Semi-Full Screen view 
    
    viewSemiFullScreenActionText = \
        "<b>Semi-Full Screen</b>"\
        "<p>"\
        "Sets display to semi-full screen. "\
        "</p>"

    win.viewSemiFullScreenAction.setWhatsThis( viewSemiFullScreenActionText )
    
    # Display Rulers
    
    viewRulersActionText = \
        "<b>Display Rulers</b>"\
        "<p>"\
        "Turns on/off the rulers."\
        "</p>"

    win.viewRulersAction.setWhatsThis( viewRulersActionText )
    
    # Display Reports
    
    viewReportsActionText = \
        "<b>Display Reports</b>"\
        "<p>"\
        "Toggles the display of the report window"\
        "</p>"

    win.viewReportsAction.setWhatsThis( viewReportsActionText )
    
    # Full Screen view 
    
    viewFullScreenActionText = \
        "<b>Full Screen</b>"\
        "<p>"\
        "Sets display to Full Screen "\
        "</p>"

    win.viewFullScreenAction.setWhatsThis( viewFullScreenActionText )
    

    # QuteMolX

    viewQuteMolActionText = \
        "<u><b>QuteMolX</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/QuteMol.png\"><br> "\
        "Opens the QuteMolX Properties Manager where the user can "\
        "alter rendering styles and launch QutemolX."\
        "</p>" \
        "QuteMolX must be installed and enabled as a "\
        "plug-in from <b>Preferences > Plug-ins</b> for "\
        "this feature to work." \
        "</p>"

    win.viewQuteMolAction.setWhatsThis( viewQuteMolActionText )

    # POV-Ray (was Raytrace Scene)

    viewRaytraceSceneActionText = \
        "<u><b>POV-Ray</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\
        "Raytrace the current scene using POV-Ray. "\
        "</p>" \
        "POV-Ray must be installed and enabled as "\
        "a plug-in from <b>Preferences > Plug-ins</b> "\
        "for this feature to work." \
        "</p>"

    win.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText )
   
    # Stereo View
    
    viewStereoViewActionText = \
        "<u><b>Stereo View</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Stereo_View.png\"><br> "\
        "Displays the Stereo View Property Manager "\
        "</p>"
    
    win.setStereoViewAction.setWhatsThis(viewStereoViewActionText)
   
    #
    # Insert toolbar
    #

    # Graphene

    _text = \
        """<u><b>Build Graphene</b></u>
        <p>
        <img source=\"ui/actions/Tools/Build Structures/Graphene.png\"><br> 
        Inserts a 2D sheet of graphene (centered at 0, 0, 0) based on the 
        current parameters in the <a href=Property_Manager>property manager</a>. 
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> Since this command <i>is not interactive</i>
        like most other modeling commands, the user must press the 
        <b>Preview</b> button to insert the graphene structure into the model.  
        The <b>Preview</b> button is located at the top of the 
        <a href=Property_Manager>property manager</a> and looks like this: <br>
        <img source=\"ui/whatsthis/PreviewButton.png\"> 
        </p>"""

    win.insertGrapheneAction.setWhatsThis( _text )

        
    # Build Nanotube 

    _text = \
        "<u><b>Build Nanotube</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Structures/Nanotube.png\"> <br>"\
        "Enters the carbon nanotube modeling sub-system. Nanotube modeling "\
        "sub-commands are presented in the flyout area of the "\
        "<a href=Command_Toolbar>command toolbar</a>."\
        "</p>"

    win.buildNanotubeAction.setWhatsThis( _text )

    # Build DNA

    _text = \
        "<u><b>Build DNA</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Structures/DNA.png\"><br> "\
        "Enters the DNA modeling sub-system. DNA modeling sub-commands are "\
        "presented in the flyout area of the "\
        "<a href=Command_Toolbar>command toolbar</a>."\
        "</p>"

    win.buildDnaAction.setWhatsThis( _text )


   # Build Protein
   
    _text = \
        "<u><b>Build Protein</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Structures/Protein.png\"><br> "\
        "Enters the protein/peptide modeling sub-system. Protein/peptide "\
        "modeling sub-commands are presented in the flyout area of the "\
        "<a href=Command_Toolbar>command toolbar</a>."\
        "</p>"

    win.buildProteinAction.setWhatsThis( _text )
    
    # POV-Ray Scene

    insertPovraySceneActionText = \
        "<u><b>POV-Ray Scene</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/POV-Ray_Scene.png\"><br> "\
        "Inserts a POV-Ray Scene file based on the "\
        "current model and viewpoint. "\
        "</p>"

    win.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText )

    # Part Library
    
    _text = \
        "<u><b>Part Library</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Insert/Part_Library.png\"><br> "\
        "Prompts the user to select an .mmp file from the NanoEngineer-1 "\
        "Part Library to be inserted into the current part. "\
        "</p>"
    win.partLibAction.setWhatsThis( _text )
    
    # Comment

    _text = \
        """<u><b>Comment</b></u>
        <p>
        <img source=\"ui/actions/Insert/Comment.png\"><br> 
        Inserts a comment in the current part.
        </p>"""

    win.insertCommentAction.setWhatsThis( _text )
    
    # Plane
    
    _text = \
        """<u><b>Plane</b></u>
        <p>
        <img source=\"ui/actions/Insert/Reference Geometry/Plane.png\"><br> 
        Inserts a plane into the <a href=Graphics_Area>graphics area</a>. 
        </p>"""

    win.referencePlaneAction.setWhatsThis( _text )
    

    #
    # Display toolbar
    #

    # Display Default 

    dispDefaultActionText = \
        "<u><b>Display Default</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Default.png\"><br> "\
        "Changes the <i>display setting</i> of the selection (i.e. selected "\
        "atoms, chunks, DNA, etc.) to <b>Default</b>. Objects with their "\
        "display setting set to <b>Default</b> are rendered in the "\
        "<b>Global Display Style</b>. "\
        "</p>"\
        "<p>The current <b>Global Display Style</b> is displayed in the "\
        "status bar in the lower right corner of the main window and can "\
        "be changed from there."\
        "</p>"

    win.dispDefaultAction.setWhatsThis(dispDefaultActionText )

    # Display Invisible

    dispInvisActionText = \
        "<u><b>Display Invisible</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Invisible.png\"><br> "\
        "Changes the <i>display setting</i> of selected atoms "\
        "or chunks to <b>Invisible</b>, making them invisible."\
        "</p>"\
        "<p>If no atoms or chunks are selected, then this "\
        "action will change the <b>Current Display Mode</b> "\
        "of the 3D workspace to <b>Invisible</b>. All chunks "\
        "with their display setting set to <b>Default</b> will"\
        " inherit this display property."\
        "</p>"

    win.dispInvisAction.setWhatsThis(dispInvisActionText )       

    # Display Lines
    dispLinesActionText = \
        "<u><b>Display Lines</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Lines.png\"><br> "\
        "Changes the <i>display setting</i> of the selection (i.e. selected "\
        "atoms, chunks, DNA, etc.) to <b>Lines</b> display style. "\
        "Only bonds are rendered as colored lines. "\
        "</p>"\
        "<p>The thickness of bond lines can be changed from the <b>Bonds</b> "\
        "page of the <b>Preferences</b> dialog."\
        "</p>"

    win.dispLinesAction.setWhatsThis(dispLinesActionText )  

    # Display Tubes

    dispTubesActionText = \
        "<u><b>Display Tubes</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Tubes.png\"><br> "\
        "Changes the <i>display setting</i> of the selection (i.e. selected "\
        "atoms, chunks, DNA, etc.) to <b>Tubes</b> display style. "\
        "Atoms and bonds are rendered as colored tubes."\
        "</p>"
    
    win.dispTubesAction.setWhatsThis(dispTubesActionText )  

    # Display Ball and Stick

    dispBallActionText = \
        "<u><b>Display Ball and Stick</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Ball_and_Stick.png\"><br> "\
        "Changes the <i>display setting</i> of the selection (i.e. selected "\
        "atoms, chunks, DNA, etc.) to <b>Ball and Stick</b> display style. "\
        "Atoms are rendered as spheres and bonds are rendered as narrow "\
        "cylinders."\
        "</p>"\
        "<p>The scale of the spheres and cylinders can be "\
        "changed from the <b>Atoms</b> and <b>Bonds</b> pages "\
        "of the <b>Preferences</b> dialog."\
        "</p>"

    win.dispBallAction.setWhatsThis(dispBallActionText ) 

    # Display CPK # [bruce extended and slightly corrected text, 060307]

    _text = \
        "<u><b>Display CPK</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/CPK.png\"><br> "\
        "Changes the <i>display setting</i> of the selection (i.e. selected "\
        "atoms, chunks, DNA, etc.) to <b>CPK</b> display style.  Atoms are "\
        "rendered as spheres with a size equal to 0.775 of their VdW radius, "\
        "corresponding to a contact force of approximately 0.1 nN with "\
        "neighboring nonbonded atoms. Bonds are not rendered."\
        "</p>"\
        "<p>The scale of the spheres can be changed from the "\
        "<b>Atoms</b> page of the <b>Preferences</b> dialog."\
        "</p>"

    win.dispCPKAction.setWhatsThis( _text )
    
    # DNA Cylinder
    
    _text = \
        "<u><b>Display DNA Cylinder</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/DNACylinder.png\"><br> "\
        "Changes the <i>display setting</i> of the selection (i.e. selected "\
        "DNA, etc.) to <b>DNA Cylinder</b> display style.  DNA are rendered "\
        "based on the settings found in the <b>DNA Cylinder Display Style "\
        "Options</b> in the <b>DNA</b> page of the <b>Preferences</b> dialog."\
        "</p>"\
        "<p>Atoms and bonds are not rendered. This is considered a bug that "\
        "will be fixed soon."\
        "</p>"

    win.dispDnaCylinderAction.setWhatsThis( _text )
    
    # Hide (Selection)

    _text = \
        "<u><b>Hide</b></u>    "\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Hide.png\"><br> "\
        "Hides the current selection. Works on atoms, chunks and/or any "\
        "other object that can be hidden."\
        "</p>"

    win.dispHideAction.setWhatsThis( _text )
    
    # Unhide (Selection)

    unhideActionText = \
        "<u><b>Unhide</b></u>    "\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Unhide.png\"><br> "\
        "Unhides the current selection. Works on atoms, chunks and/or any "\
        "other object that can be hidden.</p>"\
        "<p>"\
        "If a selected chunk is both hidden <i>and</i> contains invisible "\
        "atoms, then the first unhide operation will unhide the chunk and "\
        "the second unhide operation will unhide the invisible atoms inside "\
        "the chunk."\
        "</p>"

    win.dispUnhideAction.setWhatsThis(unhideActionText)

    # Display Cylinder

    dispCylinderActionText = \
        "<u><b>Display Cylinder</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\
        "Changes the <i>display setting</i> of selected "\
        "chunks to <b>Cylinder</b> mode.  Chunks are "\
        "rendered as cylinders. "\
        "</p>"\
        "<p>If no chunks are selected, then this action "\
        "will change the <b>Current Display Mode</b> of "\
        "the 3D workspace to <b>Cylinder</b>. All chunks "\
        "with their display setting set to <b>Default</b> "\
        "will inherit this display property."\
        "</p>"

    win.dispCylinderAction.setWhatsThis(dispCylinderActionText )

    # Display Surface

    dispSurfaceActionText = \
        "<u><b>Display Surface</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/View/Display/Surface.png\"><br> "\
        "Changes the <i>display setting</i> of selected "\
        "chunks to <b>Surface</b> mode.  Chunks are "\
        "rendered  as a smooth surface."\
        "</p>"\
        "<p>If no chunks are selected, then this action "\
        "will change the <b>Current Display Mode</b> of "\
        "the 3D workspace to <b>Surface</b>. All chunks "\
        "with their display setting set to <b>Default</b>"\
        " will inherit this display property."\
        "</p>"

    win.dispSurfaceAction.setWhatsThis(dispSurfaceActionText )

    # Reset Chunk Color
    
    dispResetChunkColorText = \
        "<u><b>Reset Chunk Color</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Edit/Reset_Chunk_Color.png\"><br> "\
        "Resets (removes) the user defined color of all selected chunks. "\
        "All atoms and bonds in the chunk are rendered in their normal "\
        "element colors."\
        "</p>"

    win.resetChunkColorAction.setWhatsThis(dispResetChunkColorText )

    # Reset Atoms Display

    dispResetAtomsDisplayText = \
        "<u><b>Reset Atoms Display</b></u>"\
        "Renders the  selected atoms (or the atoms in the"\
        "selected chunks) with the same display style as "\
        "that of their parent chunk"

    win.dispResetAtomsDisplayAction.setWhatsThis(dispResetAtomsDisplayText)

    # Show Invisible Atoms

    dispShowInvisAtomsText = \
        "<u><b>Show Invisible Atoms</b></u>"\
        "Renders the  selected atoms (or the atoms in the "\
        "selected chunks)  with the same display style as "\
        " their parent chunk. However, if the parent chunk "\
        "is set as invisible, this feature will not work." 

    win.dispShowInvisAtomsAction.setWhatsThis(dispShowInvisAtomsText)

    #Element Color Settings Dialog

    dispElementColorSettingsText = \
        "<u><b>Element Color Settings Dialog</b></u>"\
        "Element colors can be manually changed " \
        "using this dialog. Also, the user can load"\
        "or save the element colors"

    win.dispElementColorSettingsAction.setWhatsThis\
       (dispElementColorSettingsText)

    #
    # Select toolbar
    #

    # Select All

    selectAllActionText = \
        "<u><b>Select All</b></u> (Ctrl + A)"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Select/Select_All.png\"><br> "\
        "When in <b>Build</b> mode, this will select all the "\
        "atoms in the model.  Otherwise, this will select all "\
        "the chunks in the model."\
        "</p>"

    win.selectAllAction.setWhatsThis(selectAllActionText )

    # Select None

    selectNoneActionText = \
        "<u><b>Select None</b></u></p>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Select/Select_None.png\"><br> "\
        "Unselects everything currently selected. "\
        "</p>"

    win.selectNoneAction.setWhatsThis(selectNoneActionText )

    # InvertSelection

    selectInvertActionText = \
        "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Select/Select_Invert.png\"><br> "\
        "Inverts the current selection."\
        "</p>"

    win.selectInvertAction.setWhatsThis(selectInvertActionText )

    # Select Connected

    selectConnectedActionText = \
        "<u><b>Select Connected</b></u> (Ctrl + Shift + C)"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Select/Select_Connected.png\"><br> "\
        "Selects all the atoms that can be reached by "\
        "the currently selected atom via an unbroken "\
        "chain of bonds. </p>"\
        "<p>"\
        "<p>You can also select all connected atoms by "\
        "double clicking on an atom or bond while in "\
        "<b>Build</b> mode.</p>"

    win.selectConnectedAction.setWhatsThis(selectConnectedActionText )

    # Select Doubly

    selectDoublyActionText = \
        "<u><b>Select Doubly</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Select/Select_Doubly.png\"><br> "\
        "Selects all the atoms that can be reached from a "\
        "currently selected atom through two disjoint "\
        "unbroken chains of bonds.  Atoms singly connected "\
        "to this group and unconnected to anything else "\
        "are also included in the selection."\
        "</p>"

    win.selectDoublyAction.setWhatsThis(selectDoublyActionText )

    # Expand Selection

    selectExpandActionText = \
        "<u><b>Expand Selection</b></u>    (Ctrl + D)"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Select/Expand.png\"><br> "\
        "Selects any atom that is a neighbor of a "\
        "currently selected atom."\
        "</p>"

    win.selectExpandAction.setWhatsThis(selectExpandActionText )

    # Contract Selection

    selectContractActionText = \
        "<u><b>Contract Selection</b></u>    "\
        "(Ctrl + Shift + D)"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Select/Contract.png\"><br> "\
        "Deselects any atom that is a neighbor of a "\
        "non-picked atom or has a bondpoint."\
        "</p>"

    win.selectContractAction.setWhatsThis(selectContractActionText )
    
    # Selection Lock

    _text = \
        """<u><b>Selection Lock</b></u> (Ctrl + L)
        <p>
        <img source=\"ui/actions/Tools/Select/Selection_Unlocked.png\"> 
        (off) 
        <img source=\"ui/actions/Tools/Select/Selection_Locked.png\"> 
        (on)<br>
        Toggles the mouse <i>Selection Lock</i> on and off. </p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> 
        When enabled, selection operations using the mouse (i.e. clicks and 
        region selections) are disabled in the <a href=Graphics_Area>graphics area</a>. 
        All other selection commands available via toolbars, menus, 
        the model tree and keyboard shortcuts are not affected when the 
        Selection Lock is turned on.
        </p>"""

    win.selectLockAction.setWhatsThis( _text )
    
    #
    # Modify Toolbar
    #

    # Adjust Selection

    modifyAdjustSelActionText = \
        "<u><b>Adjust Selection</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Adjust_Selection.png\"><br> "\
        "Adjusts the atom and bond positions (<i>of the "\
        "selection</i>) to make the geometry more "\
        "realistic. The operations used to move the "\
        "atoms and bonds approximate molecular mechanics"\
        " methods."\
        "</p>"

    win.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText )

    # Adjust All

    modifyAdjustAllActionText = \
        "<u><b>Adjust All</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Adjust_All.png\"><br> "\
        "Adjusts the atom and bond positions (<i>of the"\
        " entire part</i>) to make the geometry of the "\
        " part more realistic. The operations used to "\
        "move the atoms and bonds approximate molecular "\
        "mechanics methods."\
        "</p>"

    win.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText )

    # Hydrogenate

    modifyHydrogenateActionText = \
        "<u><b>Hydrogenate</b></u>"\
        "<P>"\
        "<img source=\"ui/actions/Tools/Build Tools/Hydrogenate.png\"><br> "\
        "Adds hydrogen atoms to all the bondpoints in "\
        "the selection.</p>"

    win.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText )

    # Dehydrogenate

    modifyDehydrogenateActionText = \
        "<u><b>Dehydrogenate</b></u>"\
        "<P>"\
        "<img source=\"ui/actions/Tools/Build Tools/Dehydrogenate.png\"><br> "\
        "Removes all hydrogen atoms from the "\
        "selection.</p>"

    win.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText )     

    # Passivate

    modifyPassivateActionText = \
        "<u><b>Passivate</b></u>"\
        "<P>"\
        "<img source=\"ui/actions/Tools/Build Tools/Passivate.png\"><br> "\
        "Changes the types of incompletely bonded atoms "\
        "to atoms with the right number of bonds, using"\
        " atoms with the best atomic radius."\
        "</p>"

    win.modifyPassivateAction.setWhatsThis(modifyPassivateActionText )

    # Stretch

    modifyStretchActionText = \
        "<u><b>Stretch</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\
        "Stretches the bonds of the selected chunk(s).</p>"

    win.modifyStretchAction.setWhatsThis(modifyStretchActionText )

    # Delete Bonds

    modifyDeleteBondsActionText = \
        "<u><b>Cut Bonds</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/Delete_Bonds.png\"><br> "\
        "Delete all bonds between selected and unselected atoms or chunks.</p>"

    win.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText )  

    # Separate/New Chunk

    modifySeparateActionText = \
        "<u><b>Separate</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/Separate.png\"><br> "\
        "Creates a new chunk(s) from the currently "\
        "selected atoms. If the selected atoms belong to different "\
        "chunks, multiple new chunks are created.</p>"

    win.modifySeparateAction.setWhatsThis(modifySeparateActionText )  

    # New Chunk

    makeChunkFromSelectedAtomsActionText = \
        "<u><b>New Chunk</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/New_Chunk.png\"><br>  "\
        "Creates a new chunk from the currently selected atoms. "\
        "All atoms end up in a single chunk.</p>"

    win.makeChunkFromSelectedAtomsAction.setWhatsThis\
       (makeChunkFromSelectedAtomsActionText ) 

    # Combine Chunks

    modifyMergeActionText = \
        "<u><b>Combine Chunks</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/Combine_Chunks.png\"><br> "\
        "Combines two or more chunks into a single chunk.</p>"

    win.modifyMergeAction.setWhatsThis(modifyMergeActionText )  

    # Invert Chunks

    modifyInvertActionText = \
        "<u><b>Invert</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\
        "Inverts the atoms of the selected chunks.</p>"

    win.modifyInvertAction.setWhatsThis(modifyInvertActionText )  

    # Mirror Selected Chunks

    #Note that the the feature name is intentionally kept "Mirror" instead of 
    #"Mirror Chunks" because 
    # in future we will support mirrroing atoms as well. -- ninad060814
    modifyMirrorActionText = \
        "<u><b>Mirror</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/Mirror.png\"><br> "\
        "Mirrors the selected <b> chunks </b> about a "\
        "reference Grid or Plane.<br>"

    win.modifyMirrorAction.setWhatsThis(modifyMirrorActionText )  
    
    win.toolsMoveMoleculeAction.setWhatsThis(
        """<u><b>Translate</b></u>
        <p>
        <img source=\"ui/actions/Command Toolbar/MoveCommands/Translate.png\"><br>
        Translate the selection interactively. Special translation options 
        are provided in the <a href=Property_Manager>property manager</a>.</p>
        """)

    win.rotateComponentsAction.setWhatsThis(
        """<u><b>Rotate</b></u>
        <p>
        <img source=\"ui/actions/Command Toolbar/MoveCommands/Rotate.png\"><br>
        Rotate the selection interactively. Special rotation options 
        are provided in the <a href=Property_Manager>property manager</a>.</p>
        """)

    # Align to Common Axis

    modifyAlignCommonAxisActionText = \
        "<u><b>Align To Common Axis</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Tools/"\
        "AlignToCommonAxis.png\"><br> "\
        "Aligns one or more chunks to the axis of the first selected chunk. "\
        "You must select two or more chunks before using this feature."\
        "</p>"

    win.modifyAlignCommonAxisAction.setWhatsThis\
       ( modifyAlignCommonAxisActionText )

    #Center on Common Axis 
    modifyCenterCommonAxisActionText = \
        "<u><b>Center On Common Axis</b></u>"\
        "<p>"\
        "<b> Moves</b> all selected chunks to "\
        "the center of  the <b> first </b> "\
        "selected chunk and also <b>aligns</b> "\
        "them to the axis of the first one . You "\
        "must select two or more chunks before "\
        "using this feature. </p>" 

    win.modifyCenterCommonAxisAction.setWhatsThis\
       (modifyCenterCommonAxisActionText)

    #
    # Tools Toolbar
    #

    # Select Chunks

    toolsSelectMoleculesActionText = \
        "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] -->"\
        "<p>"\
        "<img source=\"ui/cursors/SelectArrowCursor.png\"><br> "\
        "<b>Select Chunks</b> allows you to select/unselect chunks with the "\
        "mouse.</p>"\
        "<p>"\
        "<b><u>Mouse/Key Combinations</u></b></p>"\
        "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\
        "<p>"\
        "<b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\
        "<p>"\
        "<b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\
        "</p>"

    win.toolsSelectMoleculesAction.setWhatsThis\
       ( toolsSelectMoleculesActionText )

    # Build Atoms

    toolsDepositAtomActionText = \
        "<u><b>Build Atoms</b></u><!-- [[Feature:Build Atoms]] -->"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Structures/BuildAtoms.png\"><br> "\
        "Enters the atom modeling sub-system for building/editing molecular "\
        "structures. Atom (and bond) modeling sub-commands are presented in the "\
        "flyout area of the <a href=Command_Toolbar>command toolbar</a>."\
        "</p>"

    win.toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText )

    # Build Crystal 

    toolsCookieCutActionText = \
        "<u><b>Build Crystal</b></u><!-- [[Feature:Build Crystal Mode]] -->"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Build Structures/Cookie_Cutter.png\"><br>"\
        "Enters the Crystal modeling sub-system which provides an interactive "\
        "modeling environment for cutting out multi-layered shapes from slabs "\
        "of diamond or lonsdaleite 3D lattice. Crystal modeling sub-commands "\
        "are presented in the flyout area of the "\
        "<a href=Command_Toolbar>command toolbar</a>."\
        "</p>"

    win.buildCrystalAction.setWhatsThis( toolsCookieCutActionText )

    # Extrude

    _text = \
        """<u><b>Extrude</b></u><!-- [[Feature:Extrude Mode]] --><br>
        <p>
        <img source=\"ui/actions/Insert/Features/Extrude.png\"><br> 
        Creates rod or ring structures from one or more (selected) molecular 
        fragments as a <i>repeating unit</i>. Extrude can also be used to 
        create linear (rod) or circular (ring) patterns from the current 
        selection.</p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> Something must be selected (i.e. the repeating unit) 
        before entering this command.
        </p>"""

    win.toolsExtrudeAction.setWhatsThis( _text )

    # Fuse Chunks

    _text = \
        """<u><b>Fuse Chunks Mode</b></u> <!-- [[Feature:Fuse Chunks Mode]] -->
        <p>
        <img source=\"ui/actions/Tools/Build Tools/Fuse_Chunks.png\"><br> 
        Fuses two or more chunks. Two fusing options are supported:</[>
        <p>
        <b>Make Bonds</b>:<br>
        creates bonds between <a href=Bondpoints>bondpoints</a>
        of the selected chunk and any other chunks within bonding distance.  
        Bondpoints are highlighted and lines are drawn (and undrawn) as chunks 
        are moved interactively to indicate bonding relationships between bondpoints. 
        Bondpoints with too many bonding relationships are highlighted in 
        magenta and will not make bonds.</p>
        <p>
        <b>Fuse Atoms</b>:<br>
        fuses pairs of overlapping atoms between chunks. 
        The overlapping atoms in the selected chunk(s) are highlighted in 
        green while the atoms that will be deleted in non-selected chunks 
        are highlighted in dark red. </p>
        <p>
        <img source=\"ui/whatsthis/HotTip.png\"><br>
        <b>Hot Tip:</b>
        This command can be very slow for large models with lots of atoms. 
        To improve preformance, use <b>Hide</b> to hide everything 
        you don't need before entering this command. After you are done, 
        select all nodes in the model tree (or click <b>Select All</b>) 
        and click <b>Unhide</b>.
        </p>"""

    win.toolsFuseChunksAction.setWhatsThis( _text )

    #
    # Simulator Toolbar
    #

    # Minimize Energy

    simMinimizeEnergyActionText = \
        "<u><b>Minimize Energy</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Simulation/Minimize_Energy.png\"><br> "\
        "The potential energy of a chemical structure "\
        "is a function of the relative positions of "\
        "its atoms. To obtain this energy with "\
        "complete accuracy involves a lot of computer "\
        "time spent on quantum mechanical "\
        "calculations, which cannot be practically "\
        "done on a desktop computer. To get an "\
        "approximate potential energy without all "\
        "that, we represent the energy as a series "\
        "of terms involving geometric properties of "\
        "the structure: lengths of chemical bonds, "\
        "angles between pairs and triples of chemical "\
        "bonds, etc. </p>" \
        "<p>" \
        "As is generally the case with physical "\
        "systems, the gradient of the potential "\
        "energy represents the forces acting on "\
        "various particles. The atoms want to move in "\
        "the direction that most reduces the "\
        "potential energy. Energy minimization is a "\
        "process of adjusting the atom positions to "\
        "try to find a global minimum of the "\
        "potential energy. Each atom "\
        "contributes three variables (its x, y, and z"\
        " coordinates) so the search space is "\
        "multi-dimensional. The global minimum is the "\
        "configuration that the atoms will settle "\
        "into if lowered to zero Kelvin. </p>"

    win.simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText )

    checkAtomTypesActionText = \
        "<u><b>Check AMBER AtomTypes</b></u>"\
        "<p>"\
        "Shows which AtomTypes will be assigned to each atom when the AMBER force field is in use."\
        "</p>"

    win.checkAtomTypesAction.setWhatsThis( checkAtomTypesActionText )

    # Change Chunk Color
    
    dispObjectColorActionText = \
        "<u><b>Edit Color</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Edit/Edit_Color.png\"><br> "\
        "Allows the user to change the color of all selected chunks and/or "\
        "jigs (i.e. rotary and linear motors)."\
        "</p>"
    
    win.dispObjectColorAction.setWhatsThis(  dispObjectColorActionText )

    # Run Dynamics (was NanoDynamics-1). Mark 060807.

    _text = \
        """<u><b>Run Dynamics</b></u>
        <p>
        <img source=\"ui/actions/Simulation/RunDynamics.png\"><br> 
        Opens the dialog for running <b>NanoDynamics-1</b>, the native
        molecular dynamics simulator for NanoEngineer-1.
        <b>NanoDynamics-1</b> creates a trajectory (movie) file by 
        calculating the inter-atomic potentials and bonding 
        of the entire model.</p>
        """
    win. simSetupAction.setWhatsThis( _text )

    # Simulation Jigs
    
    simulationJigsActionText = \
        "<u><b>Simulation Jigs</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Simulation/SimulationJigs.png\"><br> "\
        "Drop down menu for adding rotary motors, linear motors and "\
        "other jigs used to simulate structures"\
        "</p>"
    win.simulationJigsAction.setWhatsThis( simulationJigsActionText )
    
    # Play Movie (was Movie Player) Mark 060807.

    _text = \
        """<u><b>Play Movie</b></u>
        <p>
        <img source=\"ui/actions/Simulation/PlayMovie.png\"><br> 
        Plays the most recent trajectory (movie) file created by the 
        NanoEngineer-1 molecular dynamics simulator. To create a movie file, 
        select <b>Run Dynamics</b>.</p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> You must first have created a movie file to play it.
        </p>"""

    win. simMoviePlayerAction.setWhatsThis( _text )

    # Make Graphs (was Plot Tool) Mark 060807.

    _text = \
        """<u><b>Plot Graphs</b></u>
        <p>
        <img source=\"ui/actions/Simulation/PlotGraphs.png\"><br> 
        Plot a graph from a NanoDynamics-1 simulation trace file using GNUplot.</p>
        <p>
        The following list of jigs write data to the trace file:</p>
        <p>
        <b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br> 
        <b>Linear Motors:</b> displacement (pm)<br>
        <b>Anchors:</b> torque (nn-nm)<br>
        <b>Thermostats:</b> energy added (zJ)<br>
        <b>Thermometer:</b> temperature (K)<br>
        <b>Measure Distance:</b> distance (angstroms)<br>
        <b>Measure Angle:</b> angle (degrees)<br>
        <b>Measure Dihedral:</b> dihedral (degrees)<br>
        </p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> A NanoDynamics-1 simulation must have been run to 
        create and plot a trace file <i><b>and</b></i> the part must have at 
        least one of the jigs listed above which writes data to the trace file.
        </p>"""

    win. simPlotToolAction.setWhatsThis( _text )
    
    #
    # Jigs
    #

    # Anchor

    _text = \
        """<u><b>Anchor</b></u>
        <p>
        <img source=\"ui/actions/Simulation/Anchor.png\"><br> 
        Attaches an <b>Anchor</b> to the selected atoms. Anchors, 
        AKA <i>grounds</i> in other molecular dynamics programs, 
        constrains an atom's motion during minimization 
        or simulation runs.</p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> You must be in the <b>Build Atoms</b> command to 
        create anchors since this is the only command that allows the user 
        to select individual atoms. Simply select the atom(s) you want to 
        anchor and then select this command. Anchors are drawn as a black 
        wireframe box around each selected atom.</p>
        """

    win.jigsAnchorAction.setWhatsThis( _text )  

    # Rotary Motor

    _text = \
        """<u><b>Rotary Motor</b></u>
        <p>
        <img source=\"ui/actions/Simulation/RotaryMotor.png\"><br> 
        Attaches a <b>Rotary Motor</b> to the selected atoms. 
        The Rotary Motor is used by the simulator to 
        apply rotary motion to a set of atoms during a 
        simulation run.  You may specify the <b>torque 
        (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor.</p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> You must be in the <b>Build Atoms</b> command to 
        create motors since this is the only command that allows the user 
        to select individual atoms. Simply select the atoms you want to 
        attach a motor to and then select this command.</p>
        """

    win.jigsMotorAction.setWhatsThis( _text )  

    # Linear Motor

    _text = \
        """<u><b>Linear Motor</b></u>
        <p>
        <img source=\"ui/actions/Simulation/LinearMotor.png\"><br> 
        Attaches a <b>Linear Motor</b> to the selected 
        atoms.  The Linear Motor is used by the 
        simulator to apply linear motion to a set of 
        atoms during a simulation run.  You may specify
        the <b>force (in nN*nm)</b> and <b>stiffness 
        (in N/m)</b> of the motor.</p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> You must be in the <b>Build Atoms</b> command to 
        create motors since this is the only command that allows the user 
        to select individual atoms. Simply select the atoms you want to 
        attach a motor to and then select this command.</p>
        """

    win.jigsLinearMotorAction.setWhatsThis( _text )  

    # Thermostat

    _text = \
        """<u><b>Thermostat</b></u>
        <p>
        <img source=\"ui/actions/Simulation/Thermostat.png\"><br> 
        Attaches a <b>Langevin Thermostat</b> to a single 
        selected atom, thereby associating the thermostat to 
        the entire molecule of which the selected atom is a 
        member. The user specifies the temperature (in Kelvin).</p>
        <p>
        The Langevin Thermostat is used to set and hold the temperature of 
        a molecule during a simulation run.</p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> You must be in the <b>Build Atoms</b> command to 
        create a Langevin Thermostat since this is the only command that allows the user 
        to select individual atoms. Simply select a single atom you want to 
        attach the thermostat to and then select this command.
        The thermostat is drawn as a blue wireframe box around the 
        selected atom.</p>
        """

    win.jigsStatAction.setWhatsThis( _text ) 

    # Thermometer

    _text = \
        """<u><b>Thermometer</b></u>
        <p>
        <img source=\"ui/actions/Simulation/Measurements/Thermometer.png\"><br> "\
        Attaches a <b>Thermometer</b> to a single selected atom,
        thereby associating the themometer to the entire molecule 
        of which the selected atom is a member.</p>
        <p>
        The temperature of the molecule will be recorded and written to a 
        trace file during a simulation run.</p>
        <p>
        <img source=\"ui/whatsthis/Remember.png\"><br>
        <b>Remember:</b> You must be in the <b>Build Atoms</b> command to 
        create a Thermometer since this is the only command that allows the user 
        to select individual atoms. Simply select a single atom you want to 
        attach the thermometer to and then select this command.
        The thermometer is drawn as a dark red wireframe 
        box around the selected atom.</p>
        """

    win.jigsThermoAction.setWhatsThis( _text )

    # ESP Image

    jigsESPImageActionText = \
        "<u><b>ESP Image</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Simulation/ESP_Image.png\"><br> "\
        "An <b>ESP Image</b> allows the user to visualize "\
        "the electrostatic potential of points on the face "\
        "of a square 2D surface. Nano-Hive's MPQC ESP "\
        "Plane plug-in is used to calculate the "\
        "electrostatic potential."\
        "</p>"\
        "<p>To create an ESP Image, enter <b>Build</b> "\
        "mode, select three or more atoms and then select "\
        "this jig. The ESP Image is drawn as a plane with "\
        "a bounding volume."\
        "</p>"

    win.jigsESPImageAction.setWhatsThis(jigsESPImageActionText )

    # Atom Set

    jigsAtomSetActionText = \
        "<u><b>Atom Set</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Tools/Atom_Set.png\"><br> "\
        "An <b>Atom Set</b> jig provides a convienient way "\
        "to save an atom selection which can be reselected "\
        "later."\
        "</p>"\
        "<p>To create an Atom Set, enter <b>Build</b> mode, "\
        "select any number of atoms and then select this "\
        "jig. The Atom Set is drawn as a set of wireframe "\
        "boxes around each atom in the selection."\
        "</p>"\
        "<p>To reselect the atoms in an Atom Set, select "\
        "it's context menu in the Model Tree and click the "\
        "menu item that states "\
        "<b>Select this jig's atoms</b>."\
        "</p>"

    win.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText )

    # Measure Distance

    jigsDistanceActionText = \
        "<u><b>Measure Distance Jig</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Simulation/Measurements/"\
        "Measure_Distance.png\">"\
        "<br> "\
        "A <b>Measure Distance Jig</b> functions as a "\
        "dimension to display the distance between two "\
        "atoms."\
        "</p>"\
        "<p>To create the Measure Distance Jig, enter "\
        "<b>Build</b> mode, select two atoms and then "\
        "select this jig. The Measure Distance Jig is "\
        "drawn as a pair of wireframe boxes around each "\
        "atom connected by a line and a pair of numbers. "\
        "The first number is the distance between the "\
        "VdW radii (this can be a negative number for "\
        "atoms that are close together). The second number "\
        "is the distance between the nuclei."\
        "</p>"\
        "<p>The Measure Distance Jig will write the two "\
        "distance values to the trace file for each frame "\
        "of a simulation run and can be plotted using the "\
        "Plot Tool."\
        "</p>"

    win.jigsDistanceAction.setWhatsThis(jigsDistanceActionText )

    # Measure Angle

    jigsAngleActionText = \
        "<u><b>Measure Angle Jig</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Simulation/Measurements/" \
        "Measure_Angle.png\"><br> "\
        "A <b>Measure Angle Jig</b> functions as a dimension "\
        "to display the angle between three atoms."\
        "</p>"\
        "<p>To create the Measure Angle Jig, enter "\
        "<b>Build</b> mode, select three atoms and then "\
        "select this jig. The Measure Angle Jig is "\
        "drawn as a set of wireframe boxes around each atom "\
        "and a number which is the angle between the three "\
        "atoms."\
        "</p>"\
        "<p>The Measure Angle Jig will write the angle value "\
        "to the trace file "\
        "for each frame of a simulation run and can be "\
        "plotted using the Plot Tool."\
        "</p>"

    win.jigsAngleAction.setWhatsThis(jigsAngleActionText )

    # Measure Dihedral

    jigsDihedralActionText = \
        "<u><b>Measure Dihedral Jig</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Simulation/Measurements/"\
        "Measure_Dihedral.png\">"\
        "<br> "\
        "A <b>Measure Dihedral Jig</b> functions as a "\
        "dimension to display the dihedral angle of a four"\
        " atom sequence."\
        "</p>"\
        "<p>To create the Measure Dihedral Jig, enter "\
        "<b>Build</b> mode, select four atoms and then "\
        "select this jig. The Measure Dihedral Jig is "\
        "drawn as a set of wireframe boxes around each "\
        "atom and a number which is the dihedral angle "\
        "value."\
        "</p>"\
        "<p>The Measure Dihedral Jig will write the "\
        "dihedral angle value to the trace file "\
        "for each frame of a simulation run and can be "\
        "plotted using the Plot Tool."\
        "</p>"

    win.jigsDihedralAction.setWhatsThis(jigsDihedralActionText )

    # GAMESS Jig

    jigsGamessActionText = \
        "<u><b>GAMESS Jig</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Simulation/Gamess.png\"><br> "\
        "A <b>GAMESS Jig</b> is used to tag a set of atoms "\
        "for running a GAMESS calculation. <b>Energy</b> "\
        "and <b>Geometry Optimization</b> calculations are "\
        "supported."\
        "</p>"\
        "<p>To create the GAMESS Jig, enter <b>Build</b> mode, "\
        "select the atoms to tag and then select this jig. "\
        "The GAMESS Jig is drawn as a set of magenta "\
        "wireframe boxes around each atom."\
        "</p>"

    win.jigsGamessAction.setWhatsThis(jigsGamessActionText )

    # Grid Plane Jig

    jigsGridPlaneActionText = \
        "<u><b>Grid Plane</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Insert/Reference Geometry/"\
        "Grid_Plane.png\"><br> "\
        "A <b>Grid Plane</b> jig is a rectanglar plane "\
        "that can display a square or SiC grid within its "\
        "boundary. It is often used as an aid in "\
        "constructing large lattice structures made of "\
        "silicon carbide (SiC).  It is also used as a "\
        "visual aid in estimating distances between atoms "\
        "and/or other structures."\
        "</p>"\
        "<p>To create the Grid Plane jig, enter"\
        "<b>Build</b> mode, select three or more atoms "\
        "and then select this jig. "\
        "</p>"\
        "<p>The Grid Plane jig is drawn as a rectanglar "\
        "plane with a grid."\
        "</p>"

    win.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText )

    #
    # Help Toolbar
    #

    # What's This

    _text = \
        "<u><b>Enter \"What's This\" mode</b></u>"\
        "<p>"\
        "<img source=\"ui/actions/Help/WhatsThis.png\"><br> "\
        "This invokes \"What's This?\" help mode which is part of NanoEngineer-1's "\
        "online help system, and provides users with information about the "\
        "functionality and usage of a particular command button or widget.</p>"

    win.helpWhatsThisAction.setWhatsThis( _text )
    
    win.helpMouseControlsAction.setWhatsThis("Displays help for mouse controls")
    
    win.helpKeyboardShortcutsAction.setWhatsThis("Displays help for keyboard"\
    "shortcuts")
    
    win.helpSelectionShortcutsAction.setWhatsThis("Displays help for selection"\
    " controls")
    
    win.helpGraphicsCardAction.setWhatsThis("Displays information for the"\
    " computer's graphics card") 
    
    win.helpAboutAction.setWhatsThis("Displays information about this version"\
    " of NanoEngineer-1") 
    
    
    #
    # Status bar
    #
    
    # Global Display Style combobox
    _text = \
        "<u><b>Global Display Style</b></u>"\
        "<p>"\
        "Use this widget to change the <b>Global Display Style</b>."\
        "</p>"\
        "Objects with their display setting set to <b>Default</b> are "\
        "rendered in the <b>Global Display Style</b>."\
        "</p>"
    
    win.statusBar().globalDisplayStylesComboBox.setWhatsThis( _text )

def create_whats_this_descriptions_for_NanoHive_dialog(w):
    "Create What's This descriptions for the Nano-Hive dialog widgets."

    # MPQC Electrostatics Potential Plane

    MPQCESPText = \
                "<u><b>MPQC Electrostatics Potential Plane</b></u>"\
                "Enables the <i>MPQC Electrostatics Potential Plane</i> "\
                "plugin. "\
                "</p>"

    w.MPQC_ESP_checkbox.setWhatsThis(MPQCESPText )

    MPQCESPTipText = "Enables/disables MPQC Electrostatics "\
                     "Potential Plane Plugin"

    w.MPQC_ESP_checkbox.setToolTip(MPQCESPTipText)

def whats_this_text_for_glpane():
    """
    Return a What's This description for a GLPane.
    """
    #bruce 080912 moved this here from part of a method in class GLPane
    import sys
    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).
        # The href link herein also doesn't work (at least on my Mac).
        # For more info see comments from today in other files.
        # [bruce 081209 comment]
        ctrl_or_cmd = "Cmd"
    else:
        ctrl_or_cmd = "Ctrl"

    glpaneText = \
               "<a href=Graphics_Area><b>Graphics Area</b></a><br> "\
               "<br>This is where the action is."\
               "<p><b>Mouse Button Commands :</b><br> "\
               "<br> "\
               "<b>Left Mouse Button (LMB)</b> - Select<br> "\
               "<b>LMB + Shift</b> - add to current selection <br> "\
               "<b>LMB + " + ctrl_or_cmd + "</b> - remove from current selection <br> "\
               "<b>LMB + Shift + " + ctrl_or_cmd + "</b> - delete highlighted object <br> "\
               "<br> "\
               "<b>Middle Mouse Button (MMB)</b> - Rotate view <br> "\
               "<b>MMB + Shift</b> - Pan view <br> "\
               "<b>MMB + " + ctrl_or_cmd + "</b> - Rotate view around the point of view (POV) <br> "\
               "<br> "\
               "<b>Right Mouse Button (RMB)</b> - Display context-sensitive menus <br>"\
               "<br> "\
               "<b>Mouse Wheel</b> - Zoom in/out (configurable from Preference settings)"\
               "</p>"
    return glpaneText

# end