File: usersguidenode4.html

package info (click to toggle)
tcm 2.20%2BTSQD-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 20,068 kB
  • ctags: 17,471
  • sloc: ansic: 78,531; makefile: 1,343; sh: 1,218; perl: 753; yacc: 558; lex: 260
file content (1922 lines) | stat: -rwxr-xr-x 76,290 bytes parent folder | download | duplicates (9)
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.1p1 release (March 2nd, 1998)
originally by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>2. Document Editing</TITLE>
<META NAME="description" CONTENT="2. Document Editing">
<META NAME="keywords" CONTENT="User">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="User.css">
<LINK REL="next" HREF="usersguidenode5.html">
<LINK REL="previous" HREF="usersguidenode3.html">
<LINK REL="up" HREF="User.html">
<LINK REL="next" HREF="usersguidenode5.html">
</HEAD>
<BODY >
<!--Navigation Panel-->
<A NAME="tex2html824"
 HREF="usersguidenode5.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A> 
<A NAME="tex2html820"
 HREF="User.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A> 
<A NAME="tex2html814"
 HREF="usersguidenode3.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A> 
<A NAME="tex2html822"
 HREF="usersguidenode1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A> 
<A NAME="tex2html823"
 HREF="usersguidenode15.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html825"
 HREF="usersguidenode5.html">3. Diagram Editing</A>
<B> Up:</B> <A NAME="tex2html821"
 HREF="User.html">Toolkit for Conceptual Modeling</A>
<B> Previous:</B> <A NAME="tex2html815"
 HREF="usersguidenode3.html">1. Introduction</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><strong>Subsections</strong></A>
<UL>
<LI><A NAME="tex2html826"
 HREF="usersguidenode4.html#SECTION00410000000000000000">2.1 The User Interface of TCM</A>
<UL>
<LI><A NAME="tex2html827"
 HREF="usersguidenode4.html#SECTION00411000000000000000">2.1.1 Tiled buttons.</A>
<LI><A NAME="tex2html828"
 HREF="usersguidenode4.html#SECTION00412000000000000000">2.1.2 Menu bar.</A>
<LI><A NAME="tex2html829"
 HREF="usersguidenode4.html#SECTION00413000000000000000">2.1.3 Drawing area.</A>
<LI><A NAME="tex2html830"
 HREF="usersguidenode4.html#SECTION00414000000000000000">2.1.4 Document Type.</A>
<LI><A NAME="tex2html831"
 HREF="usersguidenode4.html#SECTION00415000000000000000">2.1.5 Document name.</A>
<LI><A NAME="tex2html832"
 HREF="usersguidenode4.html#SECTION00416000000000000000">2.1.6 Modified.</A>
<LI><A NAME="tex2html833"
 HREF="usersguidenode4.html#SECTION00417000000000000000">2.1.7 Status area.</A>
<LI><A NAME="tex2html834"
 HREF="usersguidenode4.html#SECTION00418000000000000000">2.1.8 Directory.</A>
<LI><A NAME="tex2html835"
 HREF="usersguidenode4.html#SECTION00419000000000000000">2.1.9 Scale value.</A>
<LI><A NAME="tex2html836"
 HREF="usersguidenode4.html#SECTION004110000000000000000">2.1.10 Autoresizing.</A>
<LI><A NAME="tex2html837"
 HREF="usersguidenode4.html#SECTION004111000000000000000">2.1.11 In-line editor.</A>
<LI><A NAME="tex2html838"
 HREF="usersguidenode4.html#SECTION004112000000000000000">2.1.12 Hierarchic document.</A>
<LI><A NAME="tex2html839"
 HREF="usersguidenode4.html#SECTION004113000000000000000">2.1.13 Arrow Buttons.</A>
</UL>
<LI><A NAME="tex2html840"
 HREF="usersguidenode4.html#SECTION00420000000000000000">2.2 Changing the Document Name</A>
<LI><A NAME="tex2html841"
 HREF="usersguidenode4.html#SECTION00430000000000000000">2.3 Changing the Project Directory</A>
<LI><A NAME="tex2html842"
 HREF="usersguidenode4.html#SECTION00440000000000000000">2.4 Loading and Saving Documents</A>
<LI><A NAME="tex2html843"
 HREF="usersguidenode4.html#SECTION00450000000000000000">2.5 Editing Documents</A>
<UL>
<LI><A NAME="tex2html844"
 HREF="usersguidenode4.html#SECTION00451000000000000000">2.5.1 Editing Text in a Document</A>
<LI><A NAME="tex2html845"
 HREF="usersguidenode4.html#SECTION00452000000000000000">2.5.2 The In-line Text Editor</A>
<LI><A NAME="tex2html846"
 HREF="usersguidenode4.html#SECTION00453000000000000000">2.5.3 The Text Edit Dialog</A>
</UL>
<LI><A NAME="tex2html847"
 HREF="usersguidenode4.html#SECTION00460000000000000000">2.6 Viewing Documents</A>
<LI><A NAME="tex2html848"
 HREF="usersguidenode4.html#SECTION00470000000000000000">2.7 Printing Documents</A>
<LI><A NAME="tex2html849"
 HREF="usersguidenode4.html#SECTION00480000000000000000">2.8 The Scaler</A>
<LI><A NAME="tex2html850"
 HREF="usersguidenode4.html#SECTION00490000000000000000">2.9 The Page Layout</A>
<LI><A NAME="tex2html851"
 HREF="usersguidenode4.html#SECTION004100000000000000000">2.10 The Properties Menu</A>
<LI><A NAME="tex2html852"
 HREF="usersguidenode4.html#SECTION004110000000000000000">2.11 The Search Menu</A>
<LI><A NAME="tex2html853"
 HREF="usersguidenode4.html#SECTION004120000000000000000">2.12 Checking and Annotating Documents</A>
<LI><A NAME="tex2html854"
 HREF="usersguidenode4.html#SECTION004130000000000000000">2.13 On-line Help</A>
</UL>
<!--End of Table of Child-Links-->
<HR>

<H1><A NAME="SECTION00400000000000000000">&#160;</A> <A NAME="DocumentEditing">&#160;</A>
<BR>
2. Document Editing
</H1>

<P>
This chapter describes the features common to <I>all</I> the TCM editors. 
This includes most of the user interface components, loading documents, 
saving documents, printing documents and the on-line help.

<P>

<H1><A NAME="SECTION00410000000000000000">
2.1 The User Interface of TCM</A>
</H1>

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="TCMMainWindow">&#160;</A><A NAME="1438">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.1:</STRONG>
TCM main window.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=\textwidth]{p/mainwindow_2.ps}$ -->
<IMG
 WIDTH="555" HEIGHT="507" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg6.gif"
 ALT="\includegraphics[width=\textwidth]{p/mainwindow_2.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
When you start up an editor, you will see the so-called main window.
For a screen dump of the main window see 
figure&nbsp;<A HREF="usersguidenode4.html#TCMMainWindow">2.1</A>. 

<P>
TCM needs in principle a 3-button mouse. The left and middle buttons are 
the most essential for drawing nodes and edges and the right button is 
only used for a pop-up menu. However, pressing or dragging with the left 
mouse button while you are pressing the Shift key has the same effect as 
pressing or dragging the middle button. This means that you can use TCM
as well with a 2-button mouse. Instead of button-2, you use Shift+button-1.
Another solution is to change the function of the right and middle mouse 
button with: <TT>xmodmap -e "pointer = 1 3 2"</TT>. If you're using a so-called 
5-button mouse (IntelliMouse with wheel-button),
you can change the function of the right and middle mouse button with:
<TT>xmodmap -e "pointer = 1 3 2 4 5"</TT>.
 
In this manual the mouse buttons are called from left to right: button-1,
button-2 and button-3 (or from right to left, if you have a 
special left-hand adjusted mouse). We almost never mention button-3 because 
button-3 is only used for popping up the Edit pop-up menu in the drawing 
area, whereas the same menu is also accessible via the menu bar.

<P>
Except the basic drawing commands in the drawing area, all parts 
of the user interface can be accessed by keystrokes as well as 
by mouse operations. This manual assumes that you are using 
the mouse as much as possible.

<P>

<H2><A NAME="SECTION00411000000000000000">&#160;</A><A NAME="1446">&#160;</A><A NAME="1447">&#160;</A><A NAME="1448">&#160;</A>
<BR>
2.1.1 Tiled buttons.
</H2>
On the left edge of the main window of the diagram and tree editors
there are two sets of tiled buttons containing a bitmap symbol.
These contain two kinds of toggle buttons: radio buttons and check buttons.
<B>Radio buttons</B> are a set of mutually exclusive selection options.
The visual cue is a little diamond that is filled or unfilled. 
A <B>check button</B> is a non-mutually exclusive selection option. 
The visual cue is a little box that is filled or unfilled.
When you pass the mouse pointer over a tiled button for a second or two,
a one line bubble help clue is popped up giving the 
full name of what the tile represents.

<P>

<H2><A NAME="SECTION00412000000000000000">&#160;</A><A NAME="1452">&#160;</A>
<BR>
2.1.2 Menu bar.
</H2>
The menu bar located under the main window's title bar organizes most 
of the commands and features of the editors.
The menu bar works in a straightforward way: press button-1 
on an entry and keep it pressed down. A pull-down menu appears. Drag 
the mouse to the desired command and then release button-1. 
The menu is dismissed and the command is
executed. Some menus contain nested submenus, called <B>cascading menus</B>,
that work in a similar way.
You cancel a menu by moving somewhere outside the menu and then
releasing button-1.

<P>
Some frequently used commands can also be called directly, without going
through a menu, by means of a keystroke shortcut, called 
an <B>accelerator</B>.<A NAME="1455">&#160;</A><A NAME="1456">&#160;</A>
For example &lt;Ctrl+L&gt; is an accelerator for loading a document
from file. You can see in the text of the menu entries which 
commands have an accelerator.
Some menu entries contain check buttons that indicate
that a certain property of the editor is switched on or off.
If you select this entry, the value of the property will be inverted.
See for example the Show Page Boundary entry in the Page menu. 
Some other menu entries contain a submenu of radio buttons 
indicating that a certain editor property has a value 
that is one from a set of menu choices. Try for example the 
Page Size entry in the Page menu.

<P>

<H2><A NAME="SECTION00413000000000000000">&#160;</A><A NAME="1459">&#160;</A>
<BR>
2.1.3 Drawing area.
</H2>
The drawing area, also called pane or canvas, is used
to create, edit and delete the graphical items of your document
by using the mouse. The mouse operations that are distinguished 
by TCM are summarized in figure&nbsp;<A HREF="usersguidenode4.html#MouseOperations">2.2</A>.<A NAME="1461">&#160;</A>

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="MouseOperations">&#160;</A><A NAME="1465">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.2:</STRONG>
Mouse operations.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics{p/mouse.eps}$ -->
<IMG
 WIDTH="300" HEIGHT="181" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg7.gif"
 ALT="\includegraphics{p/mouse.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
The whole drawing area is larger than the main window. You can use the
<B>scroll bars</B> on the right and bottom side of the drawing area to view the 
drawing area that requires more space than is available at any one time.
By resizing the main window you can resize the visible part of the drawing area, 
keeping the other parts of the main window the same size as 
much as possible.<A NAME="1470">&#160;</A>

<P>
TCM has its own coordinate system. By default, the TCM coordinates 
have the same distance as the coordinates of X Windows.<A NAME="1471">&#160;</A> 
The origin is in the top left corner of the drawing area. 
Like the X Window coordinates, the x-coordinates increase from left to 
right and the y-coordinates increase from the top down.
By scaling the ratio between the TCM and X Window coordinates 
can be updated.

<P>

<H2><A NAME="SECTION00414000000000000000">&#160;</A><A NAME="1473">&#160;</A>
<BR>
2.1.4 Document Type.
</H2>
This is visible as an uneditable text field
above the drawing area. See figure&nbsp;<A HREF="usersguidenode4.html#DocumentTypes">2.3</A> for how the 
document types are called.

<P>

<H2><A NAME="SECTION00415000000000000000">
2.1.5 Document name.</A>
</H2> This is visible as an editable text field<A NAME="1476">&#160;</A>
above the drawing area.  See section&nbsp;<A HREF="usersguidenode4.html#DocumentName">2.2</A> for how
to change the document name.

<P>

<H2><A NAME="SECTION00416000000000000000">
2.1.6 Modified.</A>
</H2> This is visible as a toggle above the drawing<A NAME="1479">&#160;</A>
area. When the document has been modified, but it is not saved yet, 
it is on. If the toggle is on and you have loaded or created 
a new document, TCM warns you that the old document will 
be lost, and you get the opportunity to save the old document first. 

<P>

<H2><A NAME="SECTION00417000000000000000">
2.1.7 Status area.</A>
</H2> The result of the last issued command is displayed<A NAME="1481">&#160;</A>
below the drawing area in an unshaded and uneditable text field. 

<P>

<H2><A NAME="SECTION00418000000000000000">
2.1.8 Directory.</A>
</H2> The name of the project or working directory<A NAME="1483">&#160;</A>
is visible in an editable text field at the bottom of the main window
right below the status area. See section&nbsp;<A HREF="usersguidenode4.html#ProjectDirectory">2.3</A> for 
how to change the project directory.

<P>

<H2><A NAME="SECTION00419000000000000000">
2.1.9 Scale value.</A>
</H2> The current scale percentage is shown
<A NAME="1486">&#160;</A> in the bottom-right corner. By performing the scaling 
commands of the Scale menu, this value is updated.

<P>

<H2><A NAME="SECTION004110000000000000000">&#160;</A><A NAME="1488">&#160;</A>
<BR>
2.1.10 Autoresizing.
</H2>
This is visible as a toggle beneath the
status area. When it is on, the shapes in the diagram or the cells
in the table are automatically resized to make it fit the text 
that they contain (see section&nbsp;<A HREF="usersguidenode4.html#EditingDocuments">2.5</A>).
When it is off, you should resize the shapes and cells manually
to make them the right size.

<P>

<H2><A NAME="SECTION004111000000000000000">
2.1.11 In-line editor.</A>
</H2> This is visible as a toggle beneath the status<A NAME="1491">&#160;</A>
area next to the autoresize toggle. When it is on, text can be typed 
directly into the drawing area. When it is off, text editing  
takes place in a text edit dialog window (see section&nbsp;<A HREF="usersguidenode4.html#EditingDocuments">2.5</A>).

<P>

<H2><A NAME="SECTION004112000000000000000">&#160;</A><A NAME="1494">&#160;</A><A NAME="1495">&#160;</A>
<BR>
2.1.12 Hierarchic document.
</H2>
This is visible as a toggle beneath the status area, next to the In-line editor toggle.
When it is on, the current document is hierarchic,
i.e., nodes in this document can be hierarchically related.
This toggle is only relevant for hierarchic editors
(most diagram editors allow hierarchic documents).

<P>

<H2><A NAME="SECTION004113000000000000000">&#160;</A><A NAME="1497">&#160;</A>
<BR>
2.1.13 Arrow Buttons.
</H2>
In the bottom-left corner of the main window
there are four arrow shaped buttons by which you can move the
entire document over the drawing area. Amidst these four buttons there
is a button labeled <TT>C</TT>, by which you can center the drawing
on the first page in the drawing area, at least when the drawing 
is not larger than a single page. When the drawing is larger than
one page, the drawing will be centered on the set of pages 
that the drawing occupies.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="DocumentTypes">&#160;</A><A NAME="1502">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.3:</STRONG>
Document editors, document types and document name suffixes.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics{p/suffixes-2.eps}$ -->
<IMG
 WIDTH="413" HEIGHT="901" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg8.gif"
 ALT="\includegraphics{p/suffixes-2.eps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>

<H1><A NAME="SECTION00420000000000000000">&#160;</A><A NAME="DocumentName">&#160;</A><A NAME="1508">&#160;</A><A NAME="1509">&#160;</A>
<BR>
2.2 Changing the Document Name
</H1>

<P>
You can type in a new name in the document name text field above the 
drawing area. When you enter &lt;Return&gt;, the document name is changed. 
TCM checks whether the name has a valid suffix<A NAME="1510">&#160;</A> 
for the current type of document. See figure&nbsp;<A HREF="usersguidenode4.html#DocumentTypes">2.3</A> 
for the required suffixes. Furthermore, the document name should contain
only non-white space printable characters and it should not contain
the characters <code>{</code>, <code>}</code> or <code>/</code>.

<P>
When a document is loaded, the document name field is set to the
name of that document. If a new document is created, either by starting
the editor without a file name or by issuing the New command,
the newly created document will receive the default 
name <TT>untitled</TT>.

<P>

<H1><A NAME="SECTION00430000000000000000">&#160;</A><A NAME="ProjectDirectory">&#160;</A><A NAME="1515">&#160;</A><A NAME="1516">&#160;</A>
<BR>
2.3 Changing the Project Directory
</H1>

<P>
You can change the project (working) directory with the
<B>Project Directory</B> entry<A NAME="1518">&#160;</A> in the File menu 
of the TCM startup window (see figure&nbsp;<A HREF="usersguidenode3.html#StartupWindow">1.2</A>).
You can also change the project (working) directory by editing the 
directory text field at the bottom of the main window. You can change it
by editing it and entering &lt;Return&gt;. TCM checks if the 
directory exists and if it is accessible.
This directory is intended for storing the files related to
the current (sub)project that you are working on. 
It is used as the starting directory for the file 
selection dialogs for loading and saving documents.

<P>

<H1><A NAME="SECTION00440000000000000000">
2.4 Loading and Saving Documents</A>
</H1>

<P>
You can instantly start a TCM editor with a specific document 
via the <B>Open Document</B> entry<A NAME="1522">&#160;</A> in the File menu 
of the TCM startup window (see figure&nbsp;<A HREF="usersguidenode3.html#StartupWindow">1.2</A>).
The <B>Open Document</B> dialog is simular to the <B>Load Document</B>
dialog described below.
Selecting a TCM document will result in starting the TCM editor
associated with the document extension. For example selecting a <B>.ucd</B> 
document will launch the <B>TUCD</B> (Use Case Diagram) Editor with the
designated document loaded.
<BR>

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="LoadExample">&#160;</A><A NAME="1531">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.4:</STRONG>
TCM File selection dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=3.5in]{p/loaddialog.ps}$ -->
<IMG
 WIDTH="402" HEIGHT="489" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg9.gif"
 ALT="\includegraphics[width=3.5in]{p/loaddialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
The File pull-down menu of the TCM editors contains the following 
entries:<A NAME="1535">&#160;</A>

<P>
<UL>
<LI><B>New (</B>&lt;<B>Ctrl+N</B>&gt;<B>).</B> Creates a new document<A NAME="1538">&#160;</A><A NAME="1539">&#160;</A> 
called <TT>untitled</TT>.<I>xxx</I>. 
Where <I>xxx</I> is the suffix for the specific editor
(figure&nbsp;<A HREF="usersguidenode4.html#DocumentTypes">2.3</A>).
You can change the name of the new document in the document 
name text field.
Before the new document is created, the current document 
that was being edited is deleted from the editor.
If your current document is modified, TCM asks you if you want to save 
the document. 
Unless you have saved this document, the old document 
cannot be restored.

<P>
<LI><B>Load (</B>&lt;<B>Ctrl+L</B>&gt;<B>).</B><A NAME="1545">&#160;</A><A NAME="1546">&#160;</A>
Pops up a file selection dialog to
select the external file name for loading a document from file 
(figure&nbsp;<A HREF="usersguidenode4.html#LoadExample">2.4</A>). Before the document is loaded,
the current document that was being edited is deleted
from the editor.

<P>
<LI><B>Append (</B>&lt;<B>Ctrl+A</B>&gt;<B>).</B><A NAME="1549">&#160;</A>
<A NAME="1550">&#160;</A><A NAME="1551">&#160;</A>
Pops up a file selection dialog to
select the external file name for merging the current document
with another one from a file.

<P>
Diagrams that are appended, can be positioned at an 
arbitrary place in the drawing area by means of a paste box,
that works like the Paste command from the Edit menu 
(see section&nbsp;<A HREF="usersguidenode5.html#PasteSubjects">3.9</A>). Because appending is 
implemented as a Paste command, appending a document can 
be undone with Undo or be repeated by issuing the Paste 
command again.

<P>
Tables can be appended either below or to the right of 
the current table. This is determined by an option menu
in the append table file selection dialog.
In both cases, the original table stays the same but 
new rows are added to the bottom and/or new columns are 
added to the right of the table. Append table has an Undo too.

<P>
<LI><B>Save.</B> Saves the document<A NAME="1554">&#160;</A>
to an external file. If the document name is still <TT>untitled</TT>,
a file selection dialog pops up, like Save As. Otherwise the 
document is immediately saved in the file 
<I>document-name</I>.<I>suffix</I> in the project directory. 
When you attempt to overwrite an existing file, TCM gives 
a warning and you can cancel your action.

<P>
<LI><B>Save As (</B>&lt;<B>Ctrl+S</B>&gt;<B>).</B> Pops up a file selection 
dialog<A NAME="1559">&#160;</A><A NAME="1560">&#160;</A> to select or 
type in the file name to save 
the document to. After clicking <TT>OK</TT>, it acts the same as Save.

<P>
<LI><B>Save Selection As.</B> Pops up a file selection 
dialog<A NAME="1563">&#160;</A><A NAME="1564">&#160;</A> to select or 
type in the file name to save the selected part of the document to.
In diagram editors the selected shapes and the corresponding part of 
the graph is saved to file. In table editors the rows and columns that 
contain one or more selected cells are saved.

<P>
<LI><B>Quit (</B>&lt;<B>Ctrl+Q</B>&gt;<B>).</B> Quits TCM. If your current<A NAME="1566">&#160;</A>
document is modified, TCM asks you if you want to save 
the document. Of course, you can also quit the editor
by sending it a kill signal or by deleting the main window.
</UL>
<P>
The file selection dialog (figure&nbsp;<A HREF="usersguidenode4.html#LoadExample">2.4</A>) allows you<A NAME="1569">&#160;</A>
to select a file in the right side listing or to navigate 
through the file system by selecting a directory, including the parent 
directory (<code>..</code>), in the left side listing.
You can select a file or directory by either: 1. quickly double clicking 
on an entry, 2. single clicking on an entry and clicking <TT>OK</TT> or
3. filling in the field labeled <TT>Selection</TT> and clicking <TT>OK</TT>. 
The <TT>Filter</TT> field on top determines which file names are displayed. 
You can edit the filter setting, which takes effect after clicking the 
<TT>Filter</TT> button.

<P>
When you change directory in the load or save to file
dialog then the directory field in the main window
is updated to that directory
after that you dismissed the dialog. So with the load or save
to file dialog you can browse through the file system and the latest
visited directory is always remembered in the directory text field.
The export dialog from the Print menu also remembers its
last visited directory but independently from the directory 
from the load or save to file dialog.

<P>

<H1><A NAME="SECTION00450000000000000000">&#160;</A> <A NAME="EditingDocuments">&#160;</A>
<BR>
2.5 Editing Documents
</H1>

<P>
There are two types of document edit commands: commands that are 
issued by the mouse, when the mouse pointer is in the drawing area, and the
commands listed in the Edit menu. All diagram and tree editors 
share the same set of edit commands (chapter&nbsp;<A HREF="usersguidenode5.html#DiagramEditing">3</A>).
All table editors share the same set of edit commands too
(chapter&nbsp;<A HREF="usersguidenode9.html#TableEditing">7</A>). However, the edit commands of diagram 
and tree editors on one hand and table editors differ to a large extent.

<P>
All document edit commands, except the simple selection commands and 
the key-stroke text edit commands are undo-able and redo-able (multiple levels).
All editors have certain commands to select items, to move and 
resize items, to edit the text of items, to add items and to 
delete items. Only the text edit commands are very similar across
all editors and therefore they are described in this chapter. 
For the other commands you are referred to chapter&nbsp;<A HREF="usersguidenode5.html#DiagramEditing">3</A> 
(diagrams and trees) and chapter&nbsp;<A HREF="usersguidenode9.html#TableEditing">7</A> (tables).

<P>

<H2><A NAME="SECTION00451000000000000000">&#160;</A><A NAME="EditingText">&#160;</A><A NAME="1583">&#160;</A><A NAME="1584">&#160;</A><A NAME="1585">&#160;</A>
<BR>
2.5.1 Editing Text in a Document
</H2>

<P>
In order to be able to type in a label of a shape in a diagram or
the text in a table cell, the shape or cell should be the <I>only</I> currently
selected shape or cell. For going into edit mode you can do the following.
Move the mouse pointer into the single selected shape or cell,
and when the mouse pointer has turned into a&nbsp;
<!-- MATH: $\epsfig{figure=p/ibeamP.ps}$ -->
<IMG
 WIDTH="16" HEIGHT="24" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg10.gif"
 ALT="\epsfig{figure=p/ibeamP.ps}">,
you can start editing by typing characters or by clicking button-1 again.
In both cases the edit mode starts.

<P>
There are two edit modes: in-line editing and out-line editing.<A NAME="1588">&#160;</A><A NAME="1589">&#160;</A><A NAME="1590">&#160;</A><A NAME="1591">&#160;</A>
<B>In-line editing</B> takes place directly in the drawing area and during in-line
editing a black triangle shaped cursor is visible. <B>Out-line editing</B> takes place in 
a separate window with a text editor that is popped up when the edit mode 
is entered. That window contains an editable Motif text entry area, 
a menu bar, scroll bars and two buttons: <TT>OK</TT> and <TT>Cancel</TT>.
You can indicate which of the two possible edit modes has to be used
by a toggle button labeled <TT>in-line editor</TT>. That toggle is near 
the bottom of the main window and it is also accessible via the View menu. 
In general, in-line editing is more suitable for quickly editing 
short labels, whereas out-line editing has scroll bars and some extra
edit operations and is more suitable for editing large chunks of texts.
With out-line editing it is also possible to cut and paste text 
within and between text edit windows.

<P>

<H2><A NAME="SECTION00452000000000000000">
2.5.2 The In-line Text Editor</A>
</H2>

<P>
Here we summarize all operations that are available in the 
in-line editor.

<P>
<UL>
<LI><B>Start editing.</B><A NAME="1600">&#160;</A>
Go into edit mode as explained above. When a triangle shaped
black cursor is displayed in the drawing area, you are in the 
in-line editor.

<P>
<LI><B>Stop editing.</B><A NAME="1602">&#160;</A>
From the in-line editor you leave edit mode by clicking button-1 outside
the shape or cell that is being edited or by clicking button-2 at any position
of the drawing area. The text that is edited will be updated, and when 
the autoresize toggle is on, the shape or cell will be resized 
to make it fit the text that it contains. After the text is updated, you can 
still undo the update including the autoresize, by issuing the undo command 
from the Edit menu. Text editing operations are not undo-able commands
but stop editing (from both the in-line as the out-line editor) is
an undo-able command.

<P>
When you issue another edit command (with the mouse or 
from the Edit menu) while you are in in-line edit mode, edit mode is 
aborted, the text is updated and the new edit command is executed.

<P>
<LI><B>Add character after the cursor.</B><A NAME="1604">&#160;</A>
Type in the character.  Labels may contain all printable ASCII characters, 
except the &lt;Tab&gt; and may have any length. In many notational 
techniques labels may even contain spaces and newlines.

<P>
<LI><B>Delete character after the cursor.</B><A NAME="1606">&#160;</A> 
Use the &lt;Delete&gt; key.<A NAME="1607">&#160;</A>

<P>
<LI><B>Delete character before the cursor.</B>
Use the &lt;BackSpace&gt; key.<A NAME="1609">&#160;</A>

<P>
<LI><B>Move cursor one character left.</B><A NAME="1611">&#160;</A>
Use the &lt;ArrowLeft&gt; key.

<P>
<LI><B>Move cursor one character right.</B><A NAME="1613">&#160;</A>
Use the &lt;ArrowRight&gt; key.

<P>
<LI><B>Move cursor one line up.</B>
Use the &lt;ArrowUp&gt; key.

<P>
<LI><B>Move cursor one line down.</B>
Use the &lt;ArrowDown&gt; key.

<P>
<LI><B>Delete all characters.</B><A NAME="1617">&#160;</A>
Use the &lt;Escape&gt; key.<A NAME="1618">&#160;</A>

<P>
<LI><B>Move cursor before the first character.</B>
Use the &lt;Home&gt; key.

<P>
<LI><B>Move cursor after the last character.</B>
Use the &lt;End&gt; key.

<P>
<LI><B>Directly position the cursor.</B><A NAME="1622">&#160;</A>
Click with button-1 on the desired cursor position.
</UL>
<P>

<H2><A NAME="SECTION00453000000000000000">&#160;</A> <A NAME="TextEditor">&#160;</A><A NAME="1626">&#160;</A>
<BR>
2.5.3 The Text Edit Dialog
</H2>
Text edit dialogs are almost complete text editors, see figure&nbsp;<A HREF="usersguidenode4.html#TextEditDialog">2.5</A>. 
Text edit dialogs are not only used for out-line editing text labels
but also for editing document and subject annotations. The operations in 
the dialog are 
mostly standard Motif operations. Here we will summarize the most important
ones:

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="TextEditDialog">&#160;</A><A NAME="1631">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.5:</STRONG>
TCM text edit dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=4.5in]{p/texteditdialog.ps}$ -->
<IMG
 WIDTH="518" HEIGHT="400" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg11.gif"
 ALT="\includegraphics[width=4.5in]{p/texteditdialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<UL>
<P>
<LI><B>Start editing.</B> When you have popped up the text edit dialog<A NAME="1637">&#160;</A> 
and the text area has the input focus then you can start editing. 
A blinking I-beam insertion cursor indicates where text will be inserted.

<P>
<LI><B>Stop editing.</B> You leave the edit session by clicking<A NAME="1639">&#160;</A>
the <TT>OK</TT> button. The dialog is dismissed and the text (a shape label, 
an annotation, a cell text etc.) will be updated. 
When the autoresize toggle is on, the shape or cell will 
also be resized to make it fit the entire text.
When the text editor is used for out-line editing, you can undo the
update after you have clicked the <TT>OK</TT> button.

<P>
<LI><B>Cancel editing.</B> You cancel with the <TT>Cancel</TT> button.<A NAME="1644">&#160;</A>
When you have canceled, the dialog is dismissed and the text that was being 
edited will not be updated. The modifications that you have made
in the window are lost.

<P>
<LI><B>Add character after the cursor.</B><A NAME="1646">&#160;</A>
Type in the character. Labels may contain all printable ASCII characters,
except the &lt;Tab&gt;.
<LI><B>Delete character after the cursor.</B><A NAME="1648">&#160;</A>
Use the &lt;Delete&gt; key.<A NAME="1649">&#160;</A>
<LI><B>Delete character before the cursor.</B>
Use the &lt;BackSpace&gt; key.<A NAME="1651">&#160;</A>
<LI><B>Move cursor left.</B><A NAME="1653">&#160;</A>
Use the &lt;ArrowLeft&gt; key to move the cursor one character left.
<LI><B>Move cursor right.</B><A NAME="1655">&#160;</A>
Use the &lt;ArrowRight&gt; key.
<LI><B>Move cursor one line up.</B>
Use the &lt;ArrowUp&gt; key.
<LI><B>Move cursor one line down.</B>
Use the &lt;ArrowDown&gt; key.
<LI><B>Move cursor one page up.</B>
Use the &lt;PageUp&gt; key.

<P>
<LI><B>Move cursor one page down.</B>
Use the &lt;PageDown&gt; key.

<P>
<LI><B>Delete all (</B>&lt;<B>Ctrl+D</B>&gt;<B>).</B><A NAME="1661">&#160;</A>
Use the <B>Delete All</B> command in the edit menu or press &lt;Ctrl+D&gt; in the 
text edit dialog. The &lt;Escape&gt; key cancels the dialog 
which is a built-in feature of Motif. This is an important difference between
the in-line and the out-line editor.

<P>
<LI><B>Move cursor to beginning of line.</B>
&lt;Home&gt; moves the cursor in front of the first character of the current line.

<P>
<LI><B>Move cursor to end of line.</B>
&lt;End&gt; moves the cursor after the last character of the current line.

<P>
<LI><B>Directly position the cursor.</B>
You can click with button-1 on the desired cursor position.
If you want to change the cursor position without changing the
selection, press &lt;Ctrl&gt; while you click button-1.

<P>
<LI><B>Select text.</B><A NAME="1667">&#160;</A>
You can select a part of the text by dragging with button-1 over the 
region that you want to select; or when you click button-1 twice in a word 
then the word is selected; or when you click thrice, the line is 
selected; or when you click four times, the entire text 
is selected. Selected text is highlighted in reverse video.

<P>
<LI><B>Clear selection.</B>
Click button1 anywhere outside the selected region.

<P>
<LI><B>Copy (</B>&lt;<B>Ctrl+C</B>&gt;<B>).</B><A NAME="1670">&#160;</A>
Copy the selected text into the Motif <B>clipboard</B>.<A NAME="1672">&#160;</A>
Motif has a clipboard built-in which acts like a 
cut-paste buffer for copying and moving text between text areas 
of the same or different Motif applications.

<P>
<LI><B>Cut (</B>&lt;<B>Ctrl+X</B>&gt;<B>).</B><A NAME="1674">&#160;</A>
Cut the selected text into the Motif clipboard. 
This is like Copy but Cut deletes the selected portion 
after copying it to the clipboard. Note that before you can cut 
or copy, you have to select some text.

<P>
<LI><B>Paste (</B>&lt;<B>Ctrl+Y</B>&gt;<B>).</B><A NAME="1676">&#160;</A>
Pastes the contents of the Motif clipboard into the text edit area.
The text is inserted at the current cursor position.

<P>
<LI><B>Find (</B>&lt;<B>Ctrl+F</B>&gt;<B>).</B><A NAME="1678">&#160;</A><A NAME="1679">&#160;</A>
This command pops up a prompt dialog (figure&nbsp;<A HREF="usersguidenode4.html#FindDialog">2.6</A>) for finding a text string
in the text edit area. The find text dialog has an input field to type
the text that you are looking for and it has a check button and four push
buttons that mean the following:
<UL>
<LI><B>case sensitive</B>. This check button says that the case of the string to<A NAME="1683">&#160;</A>
find is significant. By default, Find (and Replace) are case insensitive.
<LI><B>Find Next</B>. Finds the next string that matches the string to find.<A NAME="1685">&#160;</A>
The insertion cursor of the edit area is put in front of the string that 
is found and the scroll bars are adjusted if needed.<A NAME="1686">&#160;</A>
<LI><B>Find All</B>. Highlights all strings that matches the string 
to find and the dialog says how many occurrences are found.
<LI><B>Dismiss</B>. Closes the dialog.
<LI><B>Clear</B>. Clears the text entry field for the string to find.
</UL>
<P>
<LI><B>Replace (</B>&lt;<B>Ctrl+Z</B>&gt;<B>).</B><A NAME="1692">&#160;</A>
This command pops up a prompt dialog (figure&nbsp;<A HREF="usersguidenode4.html#ReplaceDialog">2.7</A>) for finding 
and replacing text strings
in the text edit area. The replace text dialog has two input fields, one to type
the text that you are looking for and one to type the text that you want as
a replacement. The replace dialog has a check button and five push
buttons that mean the following:
<UL>
<LI><B>case sensitive</B>. Same as in the Find dialog.
<LI><B>Find Next</B>. Same as in the Find dialog.<A NAME="1697">&#160;</A>
<LI><B>Replace Next</B>. The next string found after the insertion cursor is
replaced by the string to replace with. Before you do a Replace Next, 
you can do a Find Next so that you see which string you replace.
Also note that the string to find should not be empty, but the 
replacement string may be empty.<A NAME="1699">&#160;</A>
<LI><B>Replace All</B>. All strings that match the string to find are replaced
by the string to replace with (global substitution).
<LI><B>Dismiss</B>. Closes the dialog.
<LI><B>Clear</B>. Clears both text entry fields.
</UL>In the diagram and table editors the find dialog and the replace dialog
are also used for finding and replacing text in the entire diagram
or table. These operations are issued from the Find and Replace entries
in the Search menu of the main window (see section&nbsp;<A HREF="usersguidenode4.html#SearchMenu">2.11</A>).

<P>
<LI><B>Load (</B>&lt;<B>Ctrl+L</B>&gt;<B>).</B><A NAME="1706">&#160;</A>
This command shows a file selection dialog by means of which you 
can select an arbitrary text file. When you press <TT>OK</TT>, the contents 
of the file is loaded into the text editor. You can load any text 
file of any size.

<P>
<LI><B>Save as (</B>&lt;<B>Ctrl+S</B>&gt;<B>).</B><A NAME="1709">&#160;</A>
This command shows a file selection dialog for saving the contents of
the text editor to a file.

<P>
<LI><B>Print (</B>&lt;<B>Ctrl+P</B>&gt;<B>).</B><A NAME="1711">&#160;</A>
This command directly sends the contents of the text editor to
the current printer. The text is first converted to PostScript and it 
receives a header. At the moment it is only possible to directly 
print text with the Print of this dialog in Helvetica font and 
with point size 9. If you want the text printed differently, you 
have to save it first to a file and then post-process it yourself for
instance with the program <TT>text2ps</TT> that is supplied together
with TCM (see <TT>man text2ps</TT>).
</UL>
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="FindDialog">&#160;</A><A NAME="1718">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.6:</STRONG>
TCM find dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=2.5in]{p/finddialog.ps}$ -->
<IMG
 WIDTH="287" HEIGHT="180" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg12.gif"
 ALT="\includegraphics[width=2.5in]{p/finddialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="ReplaceDialog">&#160;</A><A NAME="1725">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.7:</STRONG>
TCM replace dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=3.25in]{p/replacedialog.ps}$ -->
<IMG
 WIDTH="374" HEIGHT="236" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg13.gif"
 ALT="\includegraphics[width=3.25in]{p/replacedialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>

<H1><A NAME="SECTION00460000000000000000">
2.6 Viewing Documents</A>
</H1>

<P>
The View menu<A NAME="1730">&#160;</A>
contains certain commands that have to do with
<B>how</B> a document is viewed or how it can 
be edited in the document itself. View commands do not actually 
change something in the document. The Scale operations are in 
a separate menu but these are view commands too (as opposed to edit
commands). The document editors have different 
View menu entries, but all editors share at least the following View 
menu commands:

<P>
<UL>
<LI><A NAME="1733">&#160;</A>
The <B>Refresh</B> command (&lt;Ctrl+V&gt;) is the first entry in 
the View menu. It redraws the contents of the drawing area. This 
command can be needed when pixel droppings or left-overs occur in
the drawing area.

<P>
<LI><A NAME="1736">&#160;</A> 
The <B>Grid</B><A NAME="1738">&#160;</A> facilitates the alignment of the 
shapes in the drawing
area. Only the diagram and tree editors have the Grid menu because 
tables are aligned in a different way. The grid cannot be printed. 
The options of the Grid menu are settings of the editor and
therefore they are not saved to file when a document is saved.
The Grid menu contains the following entries:<A NAME="1739">&#160;</A>

<P>
<UL>
<LI><A NAME="1741">&#160;</A>
<B>Show Grid</B>. Draw or hide the grid in the drawing area.
The grid is visible as a raster of dashed vertical and horizontal
lines at an equal distance. This distance is called the <B>grid size</B>.

<P>
<LI><A NAME="1744">&#160;</A>
<B>Grid Size</B>. Set the size of the grid with a pop-up slider 
dialog. The default grid size is 30 pixels.

<P>
<LI><A NAME="1746">&#160;</A>
<B>Point Snapping</B>. When point snapping is on, the
positions of the shapes are constrained to discrete positions at
a certain <B>point distance</B>. When point snapping is off, the 
shapes can be placed at any position.

<P>
<LI><A NAME="1749">&#160;</A>
<B>Point Distance</B>. Set the point distance with a pop-up slider
dialog. The default is 10 pixels. The point distance is used when
point snapping is on. The grid size and the point distance 
are independent from each other.
</UL>
<P>
<LI><A NAME="1752">&#160;</A>
The <B>Autoresizing</B> toggle. 
Turns Autoresizing on or off. Autoresizing means that shapes or cells of 
a table adapt themselves automatically to fit the texts that they contain.
It also (re)sets its counterpart toggle in the main window.

<P>
<LI><A NAME="1754">&#160;</A>
The <B>In-line editor</B> toggle. Turns in-line editing on or off.
In-line editing means that text editing takes place directly in drawing area
whereas out-line editing means text editing takes place
in a separate text edit window (see section&nbsp;<A HREF="usersguidenode4.html#EditingText">2.5.1</A>). 
It also (re)sets its counterpart toggle in the main window.

<P>
</UL>
<P>

<H1><A NAME="SECTION00470000000000000000">
2.7 Printing Documents</A>
</H1>

<P>
The page layout determines how a document is sent to the
printer or saved as PostScript. See section&nbsp;<A HREF="usersguidenode4.html#PageLayout">2.9</A>
for the commands which determine the page layout. When a
document is printed or saved as PostScript, each page that
contains a part of the drawing is printed or saved.
The Print menu<A NAME="1760">&#160;</A> contains the following entries:
<UL>
<LI><A NAME="1762">&#160;</A>
<B>Print (&lt;Ctrl+P&gt;).</B> You can send the drawing directly to
a PostScript printer with this command. When you have a printer 
that can not print PostScript, this command will print a PostScript listing.
See the frequently asked questions for how to get a more valuable 
result.

<P>
The default printer is the printer name in the 
TCM configuration file <TT>$HOME/.tcmrc</TT> or <BR> 
<TT>TCM_CONFIG/tcm.conf</TT>, whereby the options in the first
configuration file is user-specific and overrides the options in
the latter, system wide, configuration file.
When this variable is not set, the printer will be set to
the value of the <TT>PRINTER</TT> environment variable.

<P>
In the Printer Properties submenu you can see and modify
the printer settings that are used and in the Page menu you can change the
page layout. In general, the drawing is printed exactly as it is displayed in
the drawing area. For seeing what is exactly sent to the printer
you can issue the Show Preview command from the same menu.

<P>
<LI><A NAME="1767">&#160;</A><A NAME="1768">&#160;</A><A NAME="1769">&#160;</A>
<B>Export (&lt;Ctrl+E&gt;)</B>. 
This pops up a file selection dialog for saving the picture
to some graphics format. Currently, you can save 
as plain PostScript (PS; the same as what is sent directly to 
the printer), as Encapsulated PostScript (EPSF; a format that is more
 suitable than plain PostScript for including drawings into L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X or 
Troff documents), as Fig (either with PS fonts or with L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X fonts),
or as Portable Network Graphics (PNG), which was created in response to 
the GIF licensing debacle and is optimized for graphics use on the 
Internet and other on-line services. PNG is even supported by MS-Word,
so you can incorporate your TCM output in MS-Word too if you want to.

<P>
In the dialog there is an option menu called ``Format for Exported
 document'', in which you can set the intended output format.
In the dialog box a default export file name is 
already filled in. This is the document name with suffix <TT>.ps</TT>,
<TT>.eps</TT> or <TT>.fig</TT>. If you attempt to overwrite an existing file,
it pops up a dialog from which you can cancel the operation.
Furthermore, when you have dismissed the dialog, the last 
visited directory in this dialog is remembered as well as the 
last chosen output format in the option menu.

<P>
The Fig format is the file format that is read and written by
Xfig (<A NAME="tex2html41"
 HREF="www.xfig.org">http://www.xfig.org</A>).
Figures in Fig format can be converted into many other file formats
using fig2dev from the TransFig package. Note, that we use fig2dev
in TCM itself too for the generation of the PNG format.

<P>
<LI><A NAME="1776">&#160;</A><A NAME="1777">&#160;</A><A NAME="1778">&#160;</A>
<B>Show Preview</B>. Starts up an external PostScript viewer, 
for previewing the document as it would be printed.
Hopefully this command saves some trees. 
You can use your preferred external PostScript viewer program 
<TT>ghostview</TT>, <TT>gv</TT> or <TT>pageview</TT>. You can specify
which viewer is used in the configuration file <TT>$HOME/.tcmrc</TT> 
(user specific) or in <TT>TCM_CONFIG/tcm.conf</TT> (system-wide).
Also, you can set another PostScript viewer in the 
<TT>Preview Command</TT> dialog window, from the Printer Options 
submenu.

<P>
<LI><A NAME="1786">&#160;</A>
<B>Printer Queue</B>. Use this option to see the printer queue 
of the current printer in a pop-up window. By clicking on a line
in the queue you select a print job. The <TT>Remove</TT> button tries to 
remove the selected job from the queue. <TT>Update</TT> redisplays the 
current queue. <TT>Dismiss</TT> removes the window. TCM uses external 
Unix programs for the printer queue. If it cannot find the right programs, 
it warns that the queue cannot be viewed or that jobs cannot be removed.
The external Unix programs that are used can be changed temporarily 
in the Printer Options submenu or more permanently in the TCM configuration 
files <TT>TCM_CONFIG/tcm.conf</TT> (system-wide) or <TT>$HOME/.tcmrc</TT> 
(user specific).

<P>
<LI><A NAME="1793">&#160;</A>
<B>Printer Properties</B>. This is a menu that contains entries
for some properties of the printer. The default values are read from 
the user-specific file <TT>$HOME/.tcmrc</TT> (if it exists) and from the 
system-wide files <TT>TCM_CONFIG/tcm.conf</TT> and 
<TT>TCM_CONFIG/tcm.conf</TT>. <TT>.tcmrc</TT> has a higher precedence 
than <TT>tcm.conf</TT>.

<P>
In the Printer Properties menu these values can be changed 
temporarily i.e. only during the lifetime of the editor. If you want 
to save the changed options, you have to edit some TCM configuration 
file. The TCM configuration file is only read when an editor is started.

<P>
<UL>
<LI><A NAME="1801">&#160;</A>
<B>Printer Name</B>. Use this to change the printer name.
The default printer is the value of the <TT>PRINTER</TT> environment variable.
When <TT>PRINTER</TT> is not set, the value found in a TCM configuration 
file is used instead.

<P>
<LI><A NAME="1805">&#160;</A>
<B>Number of Copies</B>. Use this to change the number of copies that
will be printed. The default is 1. Change the setting by moving the little
slider from left to right. If the number of copies is greater than one
then for each time you print, one single print job is generated and often
the printing will go faster then when you send separate copies.

<P>
<LI><A NAME="1807">&#160;</A>
<B>Print Command</B>. 
The default print command is read from one of the TCM configuration 
files.

<P>
<LI><A NAME="1809">&#160;</A>
<B>Printer Queue Command</B>.
The default command for showing the printer queue is read from 
the TCM configuration file.  The TCM configuration file contains the 
printer queue command of the specific Unix variant.

<P>
<LI><A NAME="1811">&#160;</A>
<B>Printer Remove Command</B>.
The default command for removing a job from the printer queue 
is read from the TCM configuration file. The TCM configuration file 
contains a command of the specific Unix variant.

<P>
<LI><A NAME="1813">&#160;</A>
<B>Preview Command</B>.
The default command for previewing the PostScript document is read 
from the TCM configuration file. The TCM configuration file contains 
the option <TT>PreviewCommand</TT>. That is some Unix 
command like <code>"/usr/X11/bin/ghostview"</code>, but an other 
PostScript viewers such as pageview or xpsview should work as 
well.

<P>
<LI><A NAME="1816">&#160;</A>
<B>Print Colors</B>. Specifies whether colors are printed or
saved in PostScript or not. When it is off, colors become 
gray-scales.

<P>
<LI><A NAME="1818">&#160;</A>
<B>Print Duplex Pages</B>.
Causes the output to be printed in duplex mode, i.e. pages are
printed two-sided if the printer supports that. The binding is 
as if the resultant pages are to be bound together with their leftmost edge.

<P>
<LI><A NAME="1820">&#160;</A>
<B>Print Tumbled Pages</B>. This option is only useful with the Duplex 
option on. It causes the ``backside'' pages to be flipped relative to
the front side pages.

<P>
<LI><A NAME="1822">&#160;</A>
<B>Print banner page options</B>
Here you can configure the various banner page options TCM supports.

<P>
<UL>
<LI><A NAME="1825">&#160;</A>
<B>Print Default Banner Page</B>.
When you mark this option, a default system banner page will be printed in 
front of the printed document. This can be useful when you share a 
network printer with many other users.

<P>
<LI><A NAME="1827">&#160;</A>
<B>Print No Banner Page</B>.
When you mark this option, no printer banner page will be printed in 
front of the printed document. This can be useful when you are the 
only user of this printer, or you just want to save some trees.

<P>
<LI><A NAME="1829">&#160;</A>
<B>Print TCM Banner Page</B>.
An (extra) PostScript banner page will be printed in front of the printed
document. The banner page contains the document name, the current date and 
the login name of the user. This is useful when the printer does 
not print banners or when you think that this banner is cool.

<P>
</UL>
<P>
</UL>
<P>
</UL>
<P>

<H1><A NAME="SECTION00480000000000000000">
2.8 The Scaler</A>
</H1> 
The Scale menu<A NAME="1835">&#160;</A> contains the following entries:
<UL>
<LI><A NAME="1837">&#160;</A>
<B>Make Larger (&lt;Alt+L&gt;)</B>. Upscales the document. 
The drawing is made larger, up to about 1000
The font sizes are scaled when your X server supports scalable X fonts.

<P>
<LI><A NAME="1839">&#160;</A>
<B>Make Smaller (&lt;Alt+S&gt;)</B>. Downscales the document. 
The drawing is made smaller, down to about 10
drawing. The font sizes are scaled when your X server supports 
scalable X fonts.

<P>
<LI><A NAME="1841">&#160;</A>
<B>Normal Scale (&lt;Alt+N&gt;)</B>. Returns to normal view, i.e. no scaling.

<P>
<LI><A NAME="1843">&#160;</A>
<B>Whole Drawing (&lt;Alt+W&gt;)</B>. Scales the document with a percentage
that makes that the whole document fits to one page. The 
page size and orientation can be set in the Page menu.

<P>
<LI><A NAME="1845">&#160;</A>
<B>Scale Factor (&lt;Alt+F&gt;)</B>. 
Set the scale factor with a pop-up slider dialog.
The default scale factor is 1.2.
</UL>
<P>
A <B>slider dialog</B><A NAME="1850">&#160;</A> is a dialog that is
used to set an editor option from a subrange of values by adjusting
a horizontal slider. For an example of a slider dialog see 
figure&nbsp;<A HREF="usersguidenode4.html#SliderDialog">2.8</A>.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="SliderDialog">&#160;</A><A NAME="1855">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.8:</STRONG>
TCM slider dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=2.75in]{p/sliderdialog.ps}$ -->
<IMG
 WIDTH="316" HEIGHT="243" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg15.gif"
 ALT="\includegraphics[width=2.75in]{p/sliderdialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<A NAME="1859">&#160;</A>
The current scale percentage is always visible in the bottom-right
corner of the main window and is updated by the scaling commands.
The <B>scale percentage</B> is the<A NAME="1861">&#160;</A>
ratio between the TCM coordinates and the X Window coordinates,
which is 100% when there is no scaling. By making the drawing
larger you make this percentage larger, by making the drawing smaller, 
you make percentage smaller.
The <B>scale factor</B> is the factor by which the scale percentage
is increased or decreased during scaling.
The scale percentage and factor are saved to file together with
the document. When the drawing is saved as PostScript, EPSF, Fig or 
PNG-format the output is also scaled by the scale percentage.

<P>

<H1><A NAME="SECTION00490000000000000000">&#160;</A> <A NAME="PageLayout">&#160;</A>
<BR>
2.9 The Page Layout
</H1>
The Page menu commands determine the page layout.
Any change in page layout is directly made visible in the drawing 
area. TCM is WYSIWYP, i.e. What You See Is What You Print.
The page layout has effect when plain PostScript is generated 
either when the document is printed, previewed or 
exported as plain PostScript. The Page menu commands have no effect
on the document when saved as Encapsulated PostScript, as this
format is independent from the page layout by definition.
The Page menu<A NAME="1865">&#160;</A> contains the following entries:

<P>
<UL>
<P>
<LI><A NAME="1867">&#160;</A><A NAME="1868">&#160;</A>
<B>Show Page Boundary</B>. Draw or hide the page boundary.
The positions of the boundaries are determined by the page 
size and the page orientation.

<P>
<LI><A NAME="1870">&#160;</A><A NAME="1871">&#160;</A><A NAME="1872">&#160;</A>
<B>Page Orientation</B>. Sets the page orientation
to Portrait (default) or Landscape. When the page boundaries
are shown, you see that the boundaries are repositioned. 
This affects the orientation in which the document is printed 
or saved as plain PostScript.

<P>
<LI><A NAME="1874">&#160;</A>
<B>Page Size</B>. Sets the page size. The current available
sizes are A4 (default, 210x297 mm.), A3 (297x420 mm.), 
Letter (8.5x11 inches), Legal (8.5x14 inches) and 
Executive (7.5x10 inches). The default 
page size can be changed in the TCM configuration file.

<P>
<LI><A NAME="1876">&#160;</A>
<B>Include Page Numbers</B>.
This is an option in the Page menu to show page numbers. Page 
numbers will be shown and printed when that option is on. Page numbers are
normally displayed at the bottom of the page, but when the
document info is displayed as a footer, page numbers are displayed 
at the top of the page.
<LI><A NAME="1878">&#160;</A><A NAME="1879">&#160;</A>
<B>Include Document Info</B>. 
This is a toggle menu which makes it possible to show information
about the document in the drawing area and on paper, because this 
information will be saved as plain PostScript too. This information 
can be added as a header, as a footer or both as a header and a footer.
The information consists of the
document name and type, the creation date and time, the author, 
the current tool, the current user and the current date and time. 
By issuing the refresh command or by generating PostScript
the information is updated (including the time strings).
As an aside, the user cannot alter this information in the editor, 
except the document name.
</UL>
<P>
The page orientation, the page numbering and the inclusion
of document info are saved in a document file. However, the
page size and boundary are are options of the editor not of 
the edited document. So when you save a document
the latter options are not saved.

<P>

<H1><A NAME="SECTION004100000000000000000">&#160;</A> <A NAME="Properties">&#160;</A>
<BR>
2.10 The Properties Menu
</H1>
The Properties menu contains commands for performing operations for 
updating line and text properties
that cannot be done from within the in-line or out-line editor.
The following commands are available:

<P>
<UL>
<P>
<LI><B>Update Line Style</B>.<A NAME="1886">&#160;</A><A NAME="1887">&#160;</A>
This entry pops up a dialog window for choosing a line style.
See figure&nbsp;<A HREF="usersguidenode4.html#LineStyleDialog">2.9</A>. The line styles include solid, dashed,
dotted, dual (i.e. double solid lines), invisible (nothing is drawn) and
wide dotted. In the case of the table editors the dialog window shows an 
extra list of radio to indicate which sides of a cell should be updated.
This command is only available in the generic diagram editor (TGD) and
the table editors.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="LineStyleDialog">&#160;</A><A NAME="1892">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.9:</STRONG>
TCM line style chooser dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=2.5in]{p/linestyledialog.ps}$ -->
<IMG
 WIDTH="287" HEIGHT="358" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg16.gif"
 ALT="\includegraphics[width=2.5in]{p/linestyledialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<LI><B>Update Line Width</B>.<A NAME="1897">&#160;</A><A NAME="1898">&#160;</A>
This entry pops up a dialog window to set the line width.
See figure&nbsp;<A HREF="usersguidenode4.html#LineWidthDialog">2.10</A>. The default line width is 1 pixel.
When you issue a command to change the line width, each selected 
shape or cell is redrawn according to this new line width.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="LineWidthDialog">&#160;</A><A NAME="1903">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.10:</STRONG>
TCM line width dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=2.5in]{p/linewidthdialog.ps}$ -->
<IMG
 WIDTH="287" HEIGHT="358" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg17.gif"
 ALT="\includegraphics[width=2.5in]{p/linewidthdialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<LI><B>Update Text Font</B>.<A NAME="1908">&#160;</A><A NAME="1909">&#160;</A>
This entry pops up a dialog window to update the font family, 
the font style and the point size
(figure&nbsp;<A HREF="usersguidenode4.html#FontDialog">2.11</A>). 
For each of the three attributes there is a list of toggle buttons.
Also, each list of toggle buttons in the dialog has an extra check
button called <TT>update</TT> <I>attribute</I> that indicates whether
that font particular attribute should be updated or not.

<P>
Note that a shape in a diagram that has more than one text 
label cannot have different fonts for the different
text labels.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="FontDialog">&#160;</A><A NAME="1916">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.11:</STRONG>
TCM font chooser dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=5in]{p/fontdialog.ps}$ -->
<IMG
 WIDTH="575" HEIGHT="440" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg18.gif"
 ALT="\includegraphics[width=5in]{p/fontdialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
The font families include Helvetica (default), Times, Courier, New Century
Schoolbook and Symbol (Greek). The font styles are Roman (default), Bold, 
Italic and Bold-Italic. The standard available point sizes are 8, 10 (default), 
12, 14, 18 and 24. 
When you use Adobe fonts then the X fonts and the corresponding PostScript fonts 
look the same.
The fonts of the PostScript output contain the ISO Latin-1 character set.

<P>
In <TT>TCM_CONFIG/tcm.conf</TT> you can see which (types of) fonts are 
used for the TCM documents by default. If you wish some other font you can 
edit this file (or better, put the options in a personal file <TT>$HOME/.tcmrc</TT> ).
TCM uses scalable X fonts by default (you see that when you use the Scale
commands). If these fonts are not installed or don't look good for your tastes 
then you can tell TCM to work with unscalable fonts by specifying:
<PRE>
       { ScalableFonts False }.
</PRE>If you wish fonts of a certain foundry, e.g. only Adobe fonts, then 
specify that with the following line in <TT>TCM_CONFIG/tcm.conf</TT> or 
<TT>$HOME/.tcmrc</TT> :
<PRE>
       { FontFoundry Adobe }
</PRE> 

<P>
If you wish some other font you can 
edit this file (or better, put the options in a personal file <TT>$HOME/.tcmrc</TT> ).
TCM uses scalable X fonts by default (you see that when you use the Scale
commands). If these fonts are not installed or don't look good for your tastes 
then you can tell TCM to work with unscalable fonts by specifying:
<PRE>
       { ScalableFonts False }.
</PRE>
<P>
If you want additional font sizes on top of the standard font sizes listed above
you can put these in your personal config file <TT>$HOME/.tcmrc</TT> (preferred) or
add these to the TCM config file <TT>TCM_CONFIG/tcm.conf</TT>. 
If you want e.g. to add Point Size 9 and 11 to the standard sizes, 
the following lines should be added:
<PRE>
       { AddPointSize 9 }.
       { AddPointSize 11 }.
</PRE>
<P>
<LI><B>Update Text Alignment</B>.<A NAME="1936">&#160;</A>
<A NAME="1937">&#160;</A>
This entry pops up a dialog window to update existing multi-line 
texts. 
See figure&nbsp;<A HREF="usersguidenode4.html#TextAlignment">2.12</A>.
Each selected shape receives this text alignment.
In table editors there are distinct entries to update the column
alignment and the row alignment.
The text alignments include Left, Center (default) and Right.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="TextAlignment">&#160;</A><A NAME="1942">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.12:</STRONG>
TCM text alignment dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=2.5in]{p/textalignmentdialog.ps}$ -->
<IMG
 WIDTH="287" HEIGHT="209" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg19.gif"
 ALT="\includegraphics[width=2.5in]{p/textalignmentdialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<LI><B>Set/Unset Text Underlining</B>.<A NAME="1947">&#160;</A>
<A NAME="1948">&#160;</A>
This menu option sets/unsets (toggles) the text underlining of the selected 
shapes.

<P>
<LI><B>Update Line Color</B>.<A NAME="1950">&#160;</A>
<A NAME="1951">&#160;</A>
This entry shows a selection dialog box to update the line color
(figure&nbsp;<A HREF="usersguidenode4.html#ColorDialog">2.13</A>. The scrolled list contains the names
of all available colors. The corresponding color can be previewed
in a colored rectangle under that list. When you click <TT>Apply</TT>
the line color of each selected shape or cell is updated.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="ColorDialog">&#160;</A><A NAME="1957">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.13:</STRONG>
TCM color chooser dialog.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=2.5in]{p/colordialog.ps}$ -->
<IMG
 WIDTH="288" HEIGHT="378" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg20.gif"
 ALT="\includegraphics[width=2.5in]{p/colordialog.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<LI><B>Update Text Color</B>.<A NAME="1962">&#160;</A><A NAME="1963">&#160;</A>
This works similar to Update Line Color except that when you
click <TT>Apply</TT> the colors of the texts are updated.

<P>
<LI><B>Update Fill Color</B>.<A NAME="1966">&#160;</A><A NAME="1967">&#160;</A>
The dialog window here shows an extra toggle button to indicate whether
the shape or cell should be filled or not. The chosen color from
the list will be the fill color when the shape or cell is filled. 

<P>
<LI><B>Default Properties</B>.<A NAME="1969">&#160;</A>

<P>
<UL>
<LI><B>Default Line Width</B>.<A NAME="1972">&#160;</A>
<A NAME="1973">&#160;</A>
This works similar as Update Line Width. The default line
width is the line width of every new shape or new lines
in a table.

<P>
<LI><B>Default Text Font</B>.<A NAME="1975">&#160;</A><A NAME="1976">&#160;</A>
This entry pops up a similar font chooser dialog window as
the Update font entry. The texts of every newly created
shape and the texts of new cells in a table, will get this 
default font. Page headers and footers, page numbers and 
table row and column labels are also drawn in the default font.

<P>
<LI><B>Default Text Alignment</B>.<A NAME="1978">&#160;</A>
<A NAME="1979">&#160;</A>
This entry pops up a similar dialog window as Update Text Alignment
In the case of table editors there is a distinct Default
Column Alignment and a Default Row Alignment entry. The default column 
alignment can either be Left, Center or Right. The row alignment can either
be Top, Center or Bottom.<A NAME="1980">&#160;</A><A NAME="1981">&#160;</A>

<P>
<LI><B>Default Line Color</B>.<A NAME="1983">&#160;</A>
<A NAME="1984">&#160;</A>
This works similar to Update Line Color. This is the color of
every newly created shape or the new lines in table.

<P>
<LI><B>Default Text Color</B>.<A NAME="1986">&#160;</A>
<A NAME="1987">&#160;</A>
This works similar to Update Text Color. This is the color of
the text every newly created shape or the text in new cells
in a table.

<P>
<LI><B>Default Fill Color</B>.<A NAME="1989">&#160;</A>
<A NAME="1990">&#160;</A>
This works similar to Update Fill Color. This is the 
fill color of every newly created shape or the new lines 
in table. The dialog contain a toggle to indicate that
shapes or cell are filled by default or not.

<P>
</UL>
<P>
<LI><B>Node/Edge or Cell Annotation</B>.<A NAME="1993">&#160;</A>

<P>
Pops up a text edit dialog for giving the selected node/edge
or cell an annotation. This is free text and can for example
contain the description or purpose of the node, edge or cell.
See section&nbsp;<A HREF="usersguidenode4.html#Annotation">2.12</A> for advanced text edit operations
on annotations.

<P>
</UL>
<P>

<H1><A NAME="SECTION004110000000000000000">&#160;</A> <A NAME="SearchMenu">&#160;</A>
<BR>
2.11 The Search Menu
</H1>
The Search menu contains commands for performing find and replace 
operations on text that cannot be done from within the in-line or 
out-line editor.
The following commands are available:

<P>
<UL>
<LI><B>Find</B>.<A NAME="2000">&#160;</A>
Pops up a find dialog like the Find text operation presented in 
section&nbsp;<A HREF="usersguidenode4.html#TextEditor">2.5.3</A>. The find dialog looks like
figure&nbsp;<A HREF="usersguidenode4.html#FindDialog">2.6</A>, except that the find dialog from the 
Search menu has an extra check button named <TT>substring</TT>. 
When this option is set, this indicates that the text to find 
should not match the entire shape label or cell text but only a
substring. Find substring is the default.
When the Find string is an empty string then it matches only
with empty labels.

<P>
<LI><B>Replace</B>.<A NAME="2005">&#160;</A>
Pops up a replace dialog like the Replace text operation presented in 
section&nbsp;<A HREF="usersguidenode4.html#TextEditDialog">2.5</A>. The replace dialog looks like
figure&nbsp;<A HREF="usersguidenode4.html#ReplaceDialog">2.7</A>, except that the replace dialog from the 
Search menu has an extra check button named <TT>substring</TT>. This indicates 
that the text to find should match only a substring of the entire 
shape label or cell text. Replace substring is the default.
The string to find and the string to replace with can be empty
but not both at the same time.

<P>
</UL>
<P>

<H1><A NAME="SECTION004120000000000000000">&#160;</A> <A NAME="Annotation">&#160;</A>
<BR>
2.12 Checking and Annotating Documents
</H1>
The Document menu<A NAME="2012">&#160;</A> contains the following entries.
<UL>
<LI><B>Document Info</B>.<A NAME="2015">&#160;</A>
Pops up a text view dialog that contains some information about the 
tool and the document that is being edited.

<P>
The following information about the current tool session is given:
<UL>
<LI>Tool name and version.
<LI>File format version. This is the file format that the tool
generates. The tools are supposed to read all file format versions
less than or equal to that version. When TCM encounters a never file 
format version it will attempt to read it in, but success is not
guaranteed. You better upgrade to a newer version then.
<LI>The Unix login name of the user running this editor.
<LI>The current date and time.
<LI>The project (working) directory.
<LI>How many changes (in terms of how many edit operations) 
were made to the current document after it was created or read in.
</UL>It shows the following information about the document being edited:
<UL>
<LI>Document type.
<LI>Document name.
<LI>Unix login name of the author. 
This is the login of the user that created the document.
<LI>Date and time of creation.
</UL>If the document was read from a file, it also shows:
<UL>
<LI>Unix file name from which the document was loaded.
<LI>The file format version found in that file.
<LI>Tool that wrote the file.
<LI>Date and time when the file was written by the tool.
</UL>Except the current document name, none of these values can be changed
from within the tool. Note that by default the name of the document 
is equal to the file name when it is saved. When a document
file is loaded and it contains a document name that is different 
from the file name (because the file had been renamed), 
a question dialog is raised which gives the user the choice
between these two names for the new document name.

<P>
<LI><B>Document Source</B>.<A NAME="2023">&#160;</A>
Pops up a text view dialog that contains the source 
of the document file as being loaded last time from disk.

<P>
All text editor options as described earlier are available here.
Advanced users of TCM may hack the file directly if they want to,
but do not expect intelligible feedback if you make a mistake.
For making the changes take effect, save the contents
of the dialog back to file and then (re)load the document via
the File menu.

<P>
Please take a look at appendix&nbsp;<A HREF="usersguidenode13.html#FileFormat">C</A> for a detailed 
specification and explanation of the TCM file format. 

<P>
<LI><A NAME="2025">&#160;</A><A NAME="2026">&#160;</A>
<B>Document Annotation</B>. Pops up a text edit dialog for giving
the document an annotation. This is free text and can for example
contain the description or purpose of the document, the history 
of the document or references to other documents. The annotation text 
can be loaded from an ASCII file, saved to an ASCII file and printed 
(as Postscript). Furthermore, it is possible to Cut or Copy (a part
of) the text to the Motif clipboard and it is possible to paste the
text from the clipboard in another text edit window. So for example,
when you want to add annotation text as a comment to a diagram, you can 
select the text by dragging with mouse button-1 (the selected text
is shown in reverse video) and copy the text from the annotation 
text edit dialog to the clipboard. Then you open the out-line editor of 
the comment node (the in-line editor toggle should be off),
and you choose Paste from the Edit menu of the out-line editor,
the text is pasted from the clipboard into that window. 
When you press the <TT>OK</TT> button of the out-line editor,
the text appears as a comment node.

<P>
<LI><A NAME="2029">&#160;</A>
<B>Check Document Syntax</B>. Shows the result of the checks for
soft constraints (constraints that can be temporarily 
violated) in a text view dialog. You should correct the errors yourself.
The checks are specific for the document type involved, so check
out the section in this manual where that type of document is 
explained. For an example of the result of checking an
erroneous data flow diagram see figure&nbsp;<A HREF="usersguidenode4.html#CheckDocumentDialog">2.14</A>.

<P>
<BR>
<DIV ALIGN="CENTER"><A NAME="CheckDocumentDialog">&#160;</A><A NAME="2035">&#160;</A>
<TABLE WIDTH="50%">
<CAPTION><STRONG>Figure 2.14:</STRONG>
The result of check document on a DFD.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">

<!-- MATH: $\includegraphics[width=4.5in]{p/checkdocument.ps}$ -->
<IMG
 WIDTH="517" HEIGHT="332" ALIGN="BOTTOM" BORDER="0"
 SRC="usersguideimg21.gif"
 ALT="\includegraphics[width=4.5in]{p/checkdocument.ps}"></DIV></TD></TR>
</TABLE>
</DIV>
<BR>
<P>
<LI><A NAME="2039">&#160;</A>
The <B>Hierarchic Document</B> toggle. 
Turns Hierarchic Document on or off. Hierarchic Document means that 
nodes in this document can be hierarchically related.
This toggle is only relevant for hierarchic editors
(most diagram editors allow hierarchic documents).
It also (re)sets its counterpart toggle in the main window.

<P>
</UL>
<P>
Both Document Info as Check Document use a 
<B>text view dialog</B><A NAME="2043">&#160;</A>
which resembles a text edit dialog except that the text is 
read-only. So you cannot edit the text (also including Cut, Replace and Paste)
and you cannot load text from file. It further works pretty much 
the same as a text edit dialog. Text view dialogs are also used 
for the on-line help.

<P>

<H1><A NAME="SECTION004130000000000000000">&#160;</A><A NAME="2045">&#160;</A><A NAME="2046">&#160;</A>
<BR>
2.13 On-line Help
</H1>
The on-line help is kept as simple as possible, because it
is possible to read this user manual as HTML document,
including hyper-links and with an index and a table of contents.
It is not our intention to duplicate everything in the 
form of on-line help built-in in the editors. There is a collection 
of Help menu entries
and each Help menu entry pops up a text view dialog.
The on-line help contains the basic bare minimal that you have 
to know to be able to work with the editor. From the on-line help dialog you can save
the text to a file, print it as PostScript or you can copy some 
of it to the clipboard. Furthermore, there is a Find command.
The Help menu of the editors<A NAME="2047">&#160;</A> contains the following topics:

<P>
<UL>
<LI><B>Getting Started</B>
advises what you can do best when you start up this tool for
the first time.

<P>
<LI><B>Introduction to <I>Tool</I></B>
tells something about the software specification technique
that this tool is intended to support.

<P>
<LI><B>Main window</B>
explains the functions of all the components that you see in the main
window.

<P>
<LI><B>Mouse commands</B>
explains what mouse clicks and movements you need to create and 
update the document that you want.

<P>
<LI><B>Edit menu commands</B>
explains the function of each command in the edit menu.

<P>
<LI><B>File menu commands</B>
explains loading from file and saving to file.

<P>
<LI><B>Print &amp; Page commands</B>
tells how you can print or export as PostScript, including
how you change the page layout and set the printer options.

<P>
<LI><B>Miscellaneous commands</B>
contains some other things that are worth to mention like fonts,
find and replace, scaling, etc.

<P>
<LI><B>Version</B>
gives the version and the authors of TCM.

<P>
<LI><B>Copying.</B>
TCM 2.0 and higher is being released under the GNU GENERAL PUBLIC
LICENSE.
See <A NAME="tex2html49"
 HREF="http://www.gnu.org">http://www.gnu.org</A>
and question&nbsp;<A HREF="usersguidenode12.html#TCMLicense">B.11</A> in the FAQ.

<P>
<LI><B>Change Log.</B>
Show the change log, i.e. the differences between the consecutive
versions of TCM.
</UL>
<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html824"
 HREF="usersguidenode5.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A> 
<A NAME="tex2html820"
 HREF="User.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A> 
<A NAME="tex2html814"
 HREF="usersguidenode3.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A> 
<A NAME="tex2html822"
 HREF="usersguidenode1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A> 
<A NAME="tex2html823"
 HREF="usersguidenode15.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html825"
 HREF="usersguidenode5.html">3. Diagram Editing</A>
<B> Up:</B> <A NAME="tex2html821"
 HREF="User.html">Toolkit for Conceptual Modeling</A>
<B> Previous:</B> <A NAME="tex2html815"
 HREF="usersguidenode3.html">1. Introduction</A>
<!--End of Navigation Panel-->
<ADDRESS>
<I>Henk van de Zandschulp</I>
<BR><I>2003-01-20</I>
</ADDRESS>
</BODY>
</HTML>