-
Notifications
You must be signed in to change notification settings - Fork 2
/
MAGEMENU.c
2707 lines (2536 loc) · 116 KB
/
MAGEMENU.c
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
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/*MAGEMENU.c*/
#include "MAGE.h"
#include "MAGELIST.h"
#define EXTERNMENU
#include "MAGEMENU.h"
#include "MAGEBBOX.h"
#include "MAGEFLAG.h" /*971122*/
#include "MAGEDLOG.h" /*971129*/
#include "MAGEANGL.h" /*971129*/
#include "MAGETABL.h"
int Leavingflatland = 0; /*declared extern in MAGEFLAG.h*/ /*991117*/
/****AdjustMenus()***********************************************************/
void AdjustMenus()
{
myenableitem(fileMenu, openItem, !Ltestmode);
/*open for input file always enabled except after entered timed test mode*/
myenableitem(fileMenu, appendItem, Lkinfile && !Ltestmode);
/*open to append if kin file in*/
myenableitem(fileMenu, importItem, LimportOK && !Ltestmode);
/*remote data import*/
myenableitem(fileMenu, writekinItem, Lkinfile && !Ltestmode);
/*myenableitem(fileMenu, writeItem, Lkinfile);*/ /*cannot disable sub_menu*/
myenableitem(fileMenu, writePostScriptItem, Lkinfile && !Ltestmode);
myenableitem(fileMenu, quitItem, !Ltestmode);/*test mode only go Next...*/
/*only write if kin file in*/
myenableitem(writeMenu, writedrawnewItem, Lkinfile&&Ldrawstuff && !Ltestmode);
myenableitem(writeMenu, writerottedItem, Lkinfile && nbondrot && !Ltestmode);
myenableitem(writeMenu, writeviewItem, Lkinfile && !Ltestmode);
myenableitem(writeMenu, writefocusItem, Lkinfile && !Ltestmode);
myenableitem(writeMenu, writeQAItem, Lquesanswers && Lkinfile && !Ltestmode);
myenableitem(writeMenu, writeR3DItem, Lkinfile && !Ltestmode);
myenableitem(writeMenu, writeptIDItem, Lkinfile && !Ltestmode);
myenableitem(writeMenu, writepaletteItem, Lkinfile && !Ltestmode);
#ifdef UNIX_X11
myenableitem(writeMenu, writemeansigmaItem, Lkinfile && !Ltestmode);
#endif
myenableitem(editMenu, drawlineItem, (!LbondrotHplot && !LbondrotVplot) );
myenableitem(editMenu, drawsetupItem,(!LbondrotHplot && !LbondrotVplot) );
myenableitem(editMenu, editviewItem, 1);
myenableitem(editMenu, colorshowItem, 1);
myenableitem(editMenu, pruneItem, 1);
myenableitem(editMenu, superpickItem, 1);
myenableitem(editMenu, pickshowItem, 1); /*Edit Object Properties*/
myenableitem(editMenu, movepointsItem, 1); /*Redefine Point Groupings*/
myenableitem(editMenu, meansigmasItem, 1); /*Calc Mean & Sigmas 061126*/
myenableitem(editMenu, enableTEItem, 1);
#ifndef UNIX_X11
myenableitem(editMenu, cutItem, Ltexteditable);
myenableitem(editMenu, copyItem, Ltexteditable);
myenableitem(editMenu, pasteItem, Ltexteditable);
#endif
myenableitem(editMenu, tablecutItem, Ltablepresent);
myenableitem(editMenu, tablerestoreItem, Ltablepresent);
myenableitem(editMenu, tablepreinsertItem, Ltablepresent);
myenableitem(editMenu, tablepostinsertItem, Ltablepresent);
myenableitem(editMenu, tablerebuildItem, Ltablepresent);
myenableitem(editMenu, tablecolorItem, Ltablepresent);
myenableitem(kineMenu, nextItem, LnextOK&&(!Ltestmode));
myenableitem(kineMenu, chooseItem, Lkinfile&&(!Ltestmode));
myenableitem(kineMenu, scoreNnextItem, Lkinfile&&Ltestmode);
myenableitem(kineMenu, scoreNstayItem, Lkinfile&&Lpracticemode);
/*Ltestmode and Lpracticemode are mutually exclusive*/
myenableitem(optiMenu, multiwidthItem, 1);
myenableitem(optiMenu, widthItem, 1);
myenableitem(optiMenu, thinItem, 1);
myenableitem(optiMenu, depth5Item, 1);
myenableitem(optiMenu, depth3Item, 1);
myenableitem(optiMenu, perspecItem, 1);
myenableitem(optiMenu, stereoItem, !Lcompareon);
myenableitem(optiMenu, compareItem, Lcompare&&!Lstereo);
myenableitem(optiMenu, sterangItem, 1);
myenableitem(optiMenu, listcolorItem, 1);
myenableitem(optiMenu, lensItem, LLensflagset);
myenableitem(optiMenu, detailItem, 1);
myenableitem(optiMenu, whtbkgItem, LCscrn);
myenableitem(optiMenu, B_WItem, LCscrn);
myenableitem(optiMenu, grayItem, LCscrn); /*040616*/
myenableitem(optiMenu, GFontItem, 1);
myenableitem(optiMenu, strokedfontItem, 1);
myenableitem(optiMenu, flatItem, 1); /*flatland, 2-D kinemages*/
myenableitem(optiMenu, horizItem, 1);
myenableitem(optiMenu, plotonlyItem, 1); /*kalide*/
#ifdef UNIX_X11
myenableitem(optiMenu, fontcursorItem, 1); /*cursor choice for Linux*/
#endif
myenableitem(aspectMenu, aspect0Item, Laspect[1]);/*off enabled aspects>=1*/
myenableitem(aspectMenu, aspect1Item, Laspect[1]);
myenableitem(aspectMenu, aspect2Item, Laspect[2]);
myenableitem(aspectMenu, aspect3Item, Laspect[3]);
myenableitem(aspectMenu, aspect4Item, Laspect[4]);
myenableitem(aspectMenu, aspect5Item, Laspect[5]);
myenableitem(aspectMenu, aspect6Item, Laspect[6]);
myenableitem(aspectMenu, aspect7Item, Laspect[7]);
myenableitem(aspectMenu, aspect8Item, Laspect[8]);
myenableitem(aspectMenu, aspect9Item, Laspect[9]);
myenableitem(aspectMenu, aspect10Item, Laspect[10]);
myenableitem(aspectMenu, aspect11Item, Laspect[11]);
myenableitem(aspectMenu, aspect12Item, Laspect[12]);
myenableitem(aspectMenu, aspect13Item, Laspect[13]);
myenableitem(aspectMenu, aspect14Item, Laspect[14]);
myenableitem(aspectMenu, aspect15Item, Laspect[15]);
myenableitem(aspectMenu, aspect16Item, Laspect[16]);
myenableitem(aspectMenu, aspectscrnItem, Laspect[1]);/*enabled if aspects>=1*/
#ifdef MACINTOSH /*981004*/
#define EXTRAVIEW extraviewMenu
#else
#define EXTRAVIEW viewMenu /*UNIX, PC routines do not use Menu Handle*/
#endif
myenableitem(viewMenu, undopickctrItem, 1);
myenableitem(viewMenu, reset1Item, Lkinfile); /*only valid if kin file in*/
myenableitem(viewMenu, reset2Item, Lview[2]);
myenableitem(viewMenu, reset3Item, Lview[3]);
myenableitem(viewMenu, reset4Item, Lview[4]);
myenableitem(viewMenu, reset5Item, Lview[5]);
myenableitem(viewMenu, reset6Item, Lview[6]);
myenableitem(viewMenu, reset7Item, Lview[7]);
myenableitem(viewMenu, reset8Item, Lview[8]);
myenableitem(viewMenu, reset9Item, Lview[9]);
myenableitem(viewMenu, reset10Item, Lview[10]);
myenableitem(viewMenu, reset11Item, Lview[11]);
myenableitem(viewMenu, reset12Item, Lview[12]);
myenableitem(viewMenu, reset13Item, Lview[13]);
myenableitem(viewMenu, reset14Item, Lview[14]);
myenableitem(viewMenu, reset15Item, Lview[15]);
myenableitem(viewMenu, reset16Item, Lview[16]);
myenableitem(viewMenu, reset17Item, Lview[17]);
myenableitem(viewMenu, reset18Item, Lview[18]);
myenableitem(viewMenu, reset19Item, Lview[19]);
myenableitem(viewMenu, reset20Item, Lview[20]);
myenableitem(viewMenu, reset21Item, Lview[21]);
myenableitem(viewMenu, reset22Item, Lview[22]);
myenableitem(viewMenu, reset23Item, Lview[23]);
myenableitem(viewMenu, reset24Item, Lview[24]);
myenableitem(viewMenu, reset25Item, Lview[25]);
myenableitem(viewMenu, reset26Item, Lview[26]);
myenableitem(viewMenu, reset27Item, Lview[27]);
myenableitem(viewMenu, reset28Item, Lview[28]);
myenableitem(viewMenu, reset29Item, Lview[29]);
myenableitem(EXTRAVIEW, reset30Item, Lview[30]);
myenableitem(EXTRAVIEW, reset31Item, Lview[31]);
myenableitem(EXTRAVIEW, reset32Item, Lview[32]);
myenableitem(EXTRAVIEW, reset33Item, Lview[33]);
myenableitem(EXTRAVIEW, reset34Item, Lview[34]);
myenableitem(EXTRAVIEW, reset35Item, Lview[35]);
myenableitem(EXTRAVIEW, reset36Item, Lview[36]);
myenableitem(EXTRAVIEW, reset37Item, Lview[37]);
myenableitem(EXTRAVIEW, reset38Item, Lview[38]);
myenableitem(EXTRAVIEW, reset39Item, Lview[39]);
myenableitem(EXTRAVIEW, reset40Item, Lview[40]);
myenableitem(EXTRAVIEW, reset41Item, Lview[41]);
myenableitem(EXTRAVIEW, reset42Item, Lview[42]);
myenableitem(EXTRAVIEW, reset43Item, Lview[43]);
myenableitem(EXTRAVIEW, reset44Item, Lview[44]);
myenableitem(EXTRAVIEW, reset45Item, Lview[45]);
myenableitem(EXTRAVIEW, reset46Item, Lview[46]);
myenableitem(EXTRAVIEW, reset47Item, Lview[47]);
myenableitem(EXTRAVIEW, reset48Item, Lview[48]);
myenableitem(EXTRAVIEW, reset49Item, Lview[49]);
myenableitem(EXTRAVIEW, reset50Item, Lview[50]);
myenableitem(EXTRAVIEW, reset51Item, Lview[51]);
myenableitem(EXTRAVIEW, reset52Item, Lview[52]);
myenableitem(EXTRAVIEW, reset53Item, Lview[53]);
myenableitem(EXTRAVIEW, reset54Item, Lview[54]);
myenableitem(EXTRAVIEW, reset55Item, Lview[55]);
myenableitem(EXTRAVIEW, reset56Item, Lview[56]);
myenableitem(EXTRAVIEW, reset57Item, Lview[57]);
myenableitem(EXTRAVIEW, reset58Item, Lview[58]);
myenableitem(EXTRAVIEW, reset59Item, Lview[59]);
myenableitem(EXTRAVIEW, reset60Item, Lview[60]);
/* myenableitem(viewMenu, extraviewItem, 1);*/ /*sub_menu, stays enabled*/
myenableitem(viewMenu, resetRItem, Lview[61]);
myenableitem(viewMenu, readersviewItem, 1);
myenableitem(viewMenu, NDaxesPickedCtrItem, LNdimensions); /*070315*/
/*otherMenu == Tools*/
myenableitem(otherMenu, searchItem, Lkinfile);/*only "FIND" if kin file in*/
myenableitem(otherMenu, findagainItem, Lkinfile);/*only "FIND" if kin file */
myenableitem(otherMenu, measureItem, 1);
myenableitem(otherMenu, xyzpointItem, 1);
#ifdef UNIX_X11
myenableitem(otherMenu, dimensionItem, LNdimensions);/*060622 was L7d 060121*/
myenableitem(otherMenu, SELECTINGlistItem, LSELECTINGlist); /*060121*/
#endif
myenableitem(otherMenu, gnomonItem, 1);
myenableitem(otherMenu, rateItem, 1);
myenableitem(otherMenu, countItem, 1);
myenableitem(otherMenu, dockingscopeItem, 1); /*000814*/
myenableitem(otherMenu, zlimitscopeItem, 1); /*011201*/
myenableitem(otherMenu, finestepItem, 1); /*011201*/
myenableitem(otherMenu, remoteupdateItem, 1);/*invoke remote program*/
/*keyempMenu == Empowerments*/
myenableitem(keyempMenu, hidemeasuresItem, 1);
myenableitem(keyempMenu, brotangleItem, !Ldockingscope);/*050407 dock NOT OK*/
myenableitem(keyempMenu, rot90plusItem, 1);
myenableitem(keyempMenu, rot90minusItem, 1);
myenableitem(keyempMenu, rot90xplusItem, 1);
myenableitem(keyempMenu, rot90xminusItem, 1);
myenableitem(keyempMenu, rot90zplusItem, 1);
myenableitem(keyempMenu, rot90zminusItem, 1);
/*971126*/
/*myenableitem(otherMenu, kludgeItem, 1);*/ /*sub_menu, stays enabled*/
/*myenableitem(otherMenu, helpItem, 1);*/ /*sub_menu, stays enabled*/
/*971126*/
myenableitem(kludgeMenu, clipmiddleItem, 1); /*051214*/
myenableitem(kludgeMenu, formattestItem, 0); /*990407 always disable*/
myenableitem(kludgeMenu, testItem, 1);
myenableitem(kludgeMenu, pickmarkerItem, 1); /*000413*/
myenableitem(kludgeMenu, singlemarkerItem, 1); /*move here 060206*/
myenableitem(kludgeMenu, visibleoutItem, 1); /*001118*/
myenableitem(kludgeMenu, rescoringItem, Lrescoring); /*020830*/
#ifdef UNIX_X11
myenableitem(kludgeMenu, backgroundItem, 1); /*010408*/
myenableitem(kludgeMenu, buttonwindowItem, 1); /*041108*/
myenableitem(kludgeMenu, allbrsliderItem, 1); /*070617*/
myenableitem(kludgeMenu, foocavityItem, 1); /*030330*/
#endif
myenableitem(kludgeMenu, mickeymouseItem, 1); /*010609*/
myenableitem(kludgeMenu, pdbformatoutItem, 1); /*040208*/
/*Macintosh: windMenu may be added to the end of the Macintosh's Help Menu:*/
/* then all Item #s need to be increased by the # of items in Mac Help*/
/* and windMenu set == mac's Help Menu*/
/*NOTE 991114 use of dummylasthelpItem in MACMENU/HandleMenu():case windID:*/
#ifdef MACINTOSH /*obselete artifact of adding MAGE-HELP to Mac Help menu*/
/*020904 MACINTOSH defines NHelpItems==0, leave until change proved robust*/
myenableitem(windMenu, showtextItem + NHelpItems, 1);
myenableitem(windMenu, showcaptionItem + NHelpItems, 1);
myenableitem(windMenu, showgraphicsItem + NHelpItems, 1);
myenableitem(windMenu, showtableItem + NHelpItems, Ltablepresent);
myenableitem(windMenu, showbondrotsItem + NHelpItems, nbondrot);
myenableitem(windMenu, aboutItem + NHelpItems, 1);/*MAGE info */
/*myenableitem(windMenu, writeaboutItem + NHelpItems, 1);020904 About Write*/
/*myenableitem(windMenu, iohelpItem + NHelpItems, 1);*//*020904-->IO submenu*/
myenableitem(windMenu, editaboutItem + NHelpItems, 1); /*About Edits*/
myenableitem(windMenu, optionsaboutItem + NHelpItems, 1);
myenableitem(windMenu, otheraboutItem + NHelpItems, 1);
myenableitem(windMenu, kludgesaboutItem + NHelpItems, 1);
myenableitem(windMenu, specialaboutItem + NHelpItems, 1);
myenableitem(windMenu, secretItem + NHelpItems, 1);
myenableitem(windMenu, mousehelpItem + NHelpItems, 1);
myenableitem(windMenu, dockinghelpItem + NHelpItems, 1);
myenableitem(windMenu, resizehelpItem + NHelpItems, 1);
myenableitem(windMenu, tablehelpItem + NHelpItems, 1);
myenableitem(windMenu, bondshelpItem + NHelpItems, 1);
myenableitem(windMenu, test3DhelpItem + NHelpItems, 1);
myenableitem(windMenu, NDIMhelpItem + NHelpItems, 1);
myenableitem(windMenu, makehelptextItem + NHelpItems, 1);
myenableitem(windMenu, makekinemageItem + NHelpItems, 1);
#else
myenableitem(windMenu, showtextItem, 1);
myenableitem(windMenu, showcaptionItem, 1);
myenableitem(windMenu, showgraphicsItem, 1);
#ifdef UNIX_X11
myenableitem(windMenu, showbuttwinItem, Lbuttonseparate);/*060613*/
#endif
myenableitem(windMenu, showtableItem, Ltablepresent);
myenableitem(windMenu, showbondrotsItem, nbondrot);
myenableitem(windMenu, aboutItem, 1);/*MAGE info */
/*myenableitem(windMenu, writeaboutItem, 1);020904 About Write*/
/*myenableitem(windMenu, iohelpItem, 1);*/ /*020904 --> IO submenu*/
myenableitem(windMenu, editaboutItem, 1); /*About Edits*/
myenableitem(windMenu, optionsaboutItem, 1);
myenableitem(windMenu, otheraboutItem, 1);
myenableitem(windMenu, kludgesaboutItem, 1);
myenableitem(windMenu, specialaboutItem, 1);
myenableitem(windMenu, secretItem, 1);
myenableitem(windMenu, mousehelpItem, 1);
myenableitem(windMenu, dockinghelpItem, 1);
myenableitem(windMenu, resizehelpItem, 1);
myenableitem(windMenu, test3DhelpItem, 1);
myenableitem(windMenu, makehelptextItem, 1);
myenableitem(windMenu, makekinemageItem, 1);
#endif
myenableitem(iohelpMenu, writeaboutItem, 1); /*020904*/
myenableitem(iohelpMenu, screenoutItem, 1); /*020904*/
}
/*___AdjustMenus()__________________________________________________________*/
/****resetmenuchecks()*******************************************************/
void resetmenuchecks() /*971010*/
{
/*only works on ToggleButtons in the UNIX system 980928 */
mycheckitem(editMenu, drawlineItem, Ldrawstuff); /*____MENU*/
mycheckitem(editMenu, superpickItem, Lsuperpick);
mycheckitem(editMenu, colorshowItem, Lpickcolor);
mycheckitem(editMenu, pickshowItem, Lpickshow);
mycheckitem(editMenu, movepointsItem, Lmovepoints); /*061126*/
mycheckitem(editMenu, meansigmasItem, Lmeansigmas); /*061126*/
mycheckitem(editMenu, pruneItem, Lprune);
mycheckitem(editMenu, enableTEItem, Ltexteditable);
mycheckitem(optiMenu, multiwidthItem, Lmultiwidth);
mycheckitem(optiMenu, widthItem, Lonewidth);
mycheckitem(optiMenu, thinItem, Lthin);
mycheckitem(optiMenu, depth5Item, L5depths);
mycheckitem(optiMenu, depth3Item, L3depths);
mycheckitem(optiMenu, perspecItem, Lperspec);
mycheckitem(optiMenu, B_WItem, !Lcolor);
mycheckitem(optiMenu, whtbkgItem, Lwhitebkg);
mycheckitem(optiMenu, grayItem, Lgrayscale);
mycheckitem(optiMenu, stereoItem, Lstereo);
mycheckitem(optiMenu, compareItem, Lcompareon);
mycheckitem(optiMenu, listcolorItem, Listcolordominant);
mycheckitem(optiMenu, lensItem, LLenson);
mycheckitem(optiMenu, flatItem, Lflat);
mycheckitem(optiMenu, horizItem, Lflat);
mycheckitem(optiMenu, plotonlyItem, Lplotonly);
#ifdef UNIX_X11
mycheckitem(optiMenu, fontcursorItem, Lfontcursor);
#endif
/*Tools*/
mycheckitem(otherMenu, measureItem, Lmeasures);
mycheckitem(otherMenu, xyzpointItem, Lxyzpoint);
mycheckitem(otherMenu, gnomonItem, Lgnomon);
mycheckitem(otherMenu, rateItem, Lrate);
mycheckitem(otherMenu, remoteupdateItem, Lupdate);
mycheckitem(otherMenu, dockingscopeItem, Ldockingscope);
mycheckitem(otherMenu, zlimitscopeItem, Lzlimitscope);
mycheckitem(kludgeMenu, clipmiddleItem, Lclipmiddle);
mycheckitem(kludgeMenu, formattestItem, Lformattest);
mycheckitem(kludgeMenu, testItem, Ltest);
mycheckitem(kludgeMenu, pickmarkerItem, 0);
mycheckitem(kludgeMenu, singlemarkerItem, Lsinglemarker);
mycheckitem(kludgeMenu, visibleoutItem, Lvisibleout);
mycheckitem(kludgeMenu, mickeymouseItem, Lmickeymouse);
mycheckitem(kludgeMenu, pdbformatoutItem, LPDBformat);
#ifdef UNIX_X11
mycheckitem(kludgeMenu, buttonwindowItem, Lbuttonseparate);
mycheckitem(kludgeMenu, allbrsliderItem, Lallbondrotsliders); /*070617*/
#endif
AdjustMenus(); /*MAGEMENU*/
}
/*___resetmenuchecks()______________________________________________________*/
/****setdrawstuff()***********************************************************/
void setdrawstuff(int mode) /*020830 mode==0 default ON/OFF*/
{
Ldrawstuff=!Ldrawstuff;
if(!Ldrawstuff) /*turn off draw new*/
{
if(LbondrotHplot || LbondrotVplot) /*030127*/
{
sprintf(alertstr,
"DrawNew invoked to plot 3D to 2D, cannot be turned off gracefully."
);
alertstr2[0]='\0';alertstr3[0]='\0';
DoMageDLOGreport(2); /*forced message*/ /*___DLOG.C*/
Ldrawstuff = 1;
}
else if(numberline>0)
{
Lclosedrawstuff = 1;
changecheckrouter(); /*MAGEINIT.c 020902*/
}
else closedrawstuff(); /*.*/
}
else
{/*a new invocation of drawlines*/
adddrawstuff(); /*tries to establish drawline storage*/ /*MAGEINPT.c*/
if(Ldrawstuff) /* returns as TRUE if can set up drawline */
{/*can do drawline*/
/*Ldrawstuff == 1 generic control for this whole set*/
/*draw empowered*/
Lnewdrawline = 1; /*starts new counting*/
numberline = 0; /*the counter*/
Lnewlines = 0; /* lines */ /*020904*/
Lnewlabels = 0; /* labels*/
Lnewballs = 0; /* balls */
Ldragline = 0; /* drag */
Lconstructline = 0; /* construction*/
Lnewlineson = 0; /*initially on , turn off by control panel button*/
Lnewlabelson = 0; /*initially off, turn on by control panel button*/
Lnewballson = 0; /*initially off, turn on by control panel button*/
Lconstruct4on= 0; /*initially off, turn on by control panel button*/
Lconstruct5on= 0; /*initially off, turn on by control panel button*/
Lconstruct6on= 0; /*initially off, turn on by control panel button*/
Ldraglineon = 0; /*initially off, turn on by control panel button*/
/*Presume default or setup values for */ /*980919*/
/*shortenline,Ldrawunpickable,Lmonitor,Lmonitoron,LSplitLine re:lines*/
if(mode&32) {Lfoocavity = 1;} /*030331*/
if(mode&16) {Ldock3on3 = 1; Ldock3on3on = 1;} /*egam 030216*/
if(mode&1) {Lnewlines = 1; Lnewlineson = 1;}
if(mode&2) {Lnewlabels = 1; Lnewlabelson = 1;}
if(mode&4) {Lnewballs = 1; Lnewballson = 1;}
if(mode&8 || mode==0)
{/*enable all drawing functions*/
Lnewlines = 1; /*empowers lines */
Lnewlabels = 1; /*empowers labels*/
Lnewballs = 1; /*empowers balls*/
Ldragline = 1; /*empowers drag*/
Lconstructline = 1; /*empowers construction*/
Lnewlineson = 1; /*default start with lines active*/
}
mycheckitem(editMenu, drawlineItem, Ldrawstuff);/*___MENU.C*/
AdjustMenus(); /*MAGEMENU*/
SetsinGrafWindow(); /*040612 make button boxes now so logic will work*/
if(Lnewlineson) /*dominant*/
{turnoffallbutoneboxLogical((long)drawlinebboxptr);} /*MAGEBBOX*/
else if(Lnewlabelson)
{turnoffallbutoneboxLogical((long)drawlabelsbboxptr);} /*MAGEBBOX*/
else if(Lnewballson)
{turnoffallbutoneboxLogical((long)drawballsbboxptr);} /*MAGEBBOX*/
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}/*can do drawline*/
}/*a new invocation of drawlines*/
}
/*___setdrawstuff()__________________________________________________________*/
/****closedrawstuff()*********************************************************/
void closedrawstuff()
{
/*during input of a new kinemage, any old drawline stuff is killed*/
/*reading back in a just written .kip does this BEFORE the output*/
/*routines have had a chance to call closedrawstuff() which in turn*/
/*calls killdrawstuff. So unset Lclosedrawstuff so output routine*/
/*can avoid calling closedrawstuff(). */
/*Also no need for closedrawstuff() to do drawgrupptr->on = 0 anyway. */
Lclosedrawstuff = 0;
Ldrawstuff = 0;
Lconstructline = 0;
Lconstruct4on = 0; /*971122*/
Lconstruct5on = 0; /*971122*/
Lconstruct6on = 0; /*140912*/
Ldragline = 0;
Ldraglineon = 0;
Lnewlines = 0;
Lnewlineson = 0;
Lnewlabels = 0;
Lnewlabelson = 0;
Lnewballs = 0;
Lnewballson = 0;
Lmonitor = 0; /*last line length*/
Lmonitoron = 0; /*last line length*/
/*drawgrupptr->on = 0;*/ /* disable display */ /*020211*/
if(!Lmeasures)
{
if(Lmarkers) maxnxyz = nxyz + NMARKERS;
else maxnxyz = nxyz;
}
else
{
maxnxyz = nxyz + NMARKERS + MAXMEASURES;
}
killdrawstuff(); /*MAGEINPT*/
mycheckitem(editMenu, drawlineItem, Ldrawstuff);/*___MENU.C*/
LneedSetsinGrafWindow = 1;
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___closedrawstuff()________________________________________________________*/
/****setsuperpick()**********************************************************/
void setsuperpick()
{
mycheckitem(editMenu, superpickItem, Lsuperpick=!Lsuperpick);/*___MENU.C*/
}
/*___setsuperpick()_________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setpickshow()***********************************************************/
void setpickshow()
{
mycheckitem(editMenu, pickshowItem, Lpickshow=!Lpickshow);
/*MACMENU.C*/ /*MPCMENU.C*/
if(Lpickshow)
{ Lpickshowon = 1; turnoffallbutoneboxLogical((long)pickshowbboxptr);}
else Lpickshowon = 0;
LneedSetsinGrafWindow = 1;
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setpickshow()__________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setmovepoints()*********************************************************/
void setmovepoints()
{
mycheckitem(editMenu, movepointsItem, Lmovepoints=!Lmovepoints);
/*MACMENU.C*/ /*MPCMENU.C*/
if(Lmovepoints)
{ Lmovepointson = 1; turnoffallbutoneboxLogical((long)movepointsbboxptr);}
else Lmovepointson = 0;
LneedSetsinGrafWindow = 1;
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setmovepoints()________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setmeansigmas()*********************************************************/
void setmeansigmas()
{
mycheckitem(editMenu, meansigmasItem, Lmeansigmas=!Lmeansigmas);
/*MACMENU.C*/ /*MPCMENU.C*/
if(Lmeansigmas)
{ Lmeansigmason = 1; turnoffallbutoneboxLogical((long)meansigmasbboxptr);}
else Lmeansigmason = 0;
LneedSetsinGrafWindow = 1;
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setmeansigmas()________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setcolorshow()***********************************************************/
void setcolorshow()
{
mycheckitem(editMenu, colorshowItem, Lpickcolor=!Lpickcolor);/*___MENU.C*/
if(Lpickcolor)
{ Lpickcoloron = 1;turnoffallbutoneboxLogical((long)pickcolorbboxptr);}
else Lpickcoloron = 0;
LneedSetsinGrafWindow = 1;
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setcolorshow()__________________________________________________________*/
/****setemphasis()************************************************************/
void setemphasis() /*061012 emphasis taken off menu*/
{
mycheckitem(editMenu, emphasisItem, Lemphasis=!Lemphasis);/*___MENU.C*/
if(Lemphasis)
{ Lemphasison = 1;turnoffallbutoneboxLogical((long)emphasisbboxptr);}
else Lemphasison = 0;
LneedSetsinGrafWindow = 1;
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setemphasis()___________________________________________________________*/
/****setprune()**************************************************************/
void setprune()
{
mycheckitem(editMenu, pruneItem, Lprune=!Lprune); /*___MENU.C*/
if(Lprune){Lpunchon = 1;turnoffallbutoneboxLogical((long)punchbboxptr);}
else Lpunchon = 0;
Lpruneon = 0;
Lsuperpunchon = 0; /*990212*/
Lundop = 0;
nundop = 0;
LneedSetsinGrafWindow = 1;
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setprune()_____________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****getusername()************************************************************/
void getusername(void)
{
Lcancel = 1; /*not allowed to cancel*/
/* or not give at least one alphabetic character for user name*/
DousernameDialog(); /*MAGEDLOG.C*/ /*020816*/
/*return of Lcancel==1 will have calling routine invalidate username*/
/* so force a repeat of user name dialog*/
/*see MAGEINIT/magetimercheck()*/
/*UNIX must return to master waiting loop, so cannot use a while(Lcancel)*/
}
/*___getusername()___________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****getkinemagechoice()*****************************************************/
void getkinemagechoice(void)
{
DokineDialog(); /*MAGEDLOG.C*/ /*971128*/
}
/*___getkinemagechoice()____________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setmultiwidth()********************************************************/
void setmultiwidth() /*971130*/ /*981114*/
{
mycheckitem(optiMenu, multiwidthItem, Lmultiwidth=1);/*___MENU.C*/
Lonewidth = 0;
Lthin = 0;
mycheckitem(optiMenu, widthItem, Lonewidth);
mycheckitem(optiMenu, thinItem, Lthin);
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setmultiwidth()_______________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setwidthtoggle()********************************************************/
void setwidthtoggle() /*971130*/ /*981114 not a toggle*/
{
mycheckitem(optiMenu, widthItem, Lonewidth=1);/*___MENU.C*/
Lmultiwidth = 0;
Lthin = 0;
mycheckitem(optiMenu, multiwidthItem, Lmultiwidth);
mycheckitem(optiMenu, thinItem, Lthin);
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setwidthtoggle()_______________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setthinline()***********************************************************/
void setthinline() /*971130*/ /*981114*/
{
mycheckitem(optiMenu, thinItem, Lthin=1); /*___MENU.C*/
Lmultiwidth = 0;
Lonewidth = 0;
mycheckitem(optiMenu, multiwidthItem, Lmultiwidth);
mycheckitem(optiMenu, widthItem, Lonewidth);
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setthinline()__________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****forcethinline()*********************************************************/
void forcethinline()
{
mycheckitem(optiMenu, thinItem, Lthin=1); /*___MENU.C*/
if(Lmenu) redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___forcethinline()________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setNdepths()*************************************************************/
void setNdepths() /*010927*/
{
mycheckitem(optiMenu, depth5Item, L5depths); /*___MENU.C*/
mycheckitem(optiMenu, depth3Item, L3depths); /*___MENU.C*/
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setNdepths()____________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setperspec()************************************************************/
void setperspec()
{
mycheckitem(optiMenu, perspecItem, Lperspec=!Lperspec); /*___MENU.C*/
if(Lmenu) redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setperspec()___________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****forceperspective()******************************************************/
void forceperspective() /*common name: MAC & PC */
{
mycheckitem(optiMenu, perspecItem, Lperspec=1); /*___MENU.C*/
if(Lmenu) redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___forceperspective()_____________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setwhtbkg()*************************************************************/
void setwhtbkg()
{
#ifdef MACINTOSH
mycheckitem(optiMenu, whtbkgItem, Lwhitebkg=!Lwhitebkg);/*MACMENU.C*/
#else
mycheckitem(0, whtbkgItem, Lwhitebkg=!Lwhitebkg);/*___MENU.C*/
/*PC just fakes a B&W display 140912, so whtbkg and B&W related */
/* if UNIX can do color, it just fakes a B&W screen*/
if(!Lwhitebkg) Lcolor=1;
mycheckitem(0, B_WItem, !Lcolor);
#endif
redrawvec(); /*___DRAW.C*/
}
/*___setwhtbkg()____________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setcurrentaspect()******************************************************/
void setcurrentaspect(int ith)
{
int j=0,ionoff=0;
currentaspect = ith;
for(j=0; j<=MAXPOINTASPECTS; j++)
{
if(j==ith) {ionoff = 1;}
else {ionoff = 0;}
setaspect(j,ionoff);
}
if(!Linputactive){redrawvec();} /*040605*/ /*___DRAW.C*/
if(Ltableready) {redrawtable();}
}
/*___setcurrentaspect()_____________________________________________________*/
/****adjustcurrentaspect()***************************************************/
void adjustcurrentaspect(int iup)
{/*cycles forward or backwards through the aspects*/
/*NOTE: currentaspect set to param in subroutine setcurrentaspect() */
if(naspectsthiskinemage > 0)
{
if(iup > 0)
{
/*if(currentaspect < naspectsthiskinemage) */
if(currentaspect < maxaspectsperpoint) /*030605*/
{
setcurrentaspect(currentaspect+1);
}
else
{
setcurrentaspect(1);
}
}
else
{
if(currentaspect > 1)
{
setcurrentaspect(currentaspect-1);
}
else
{
setcurrentaspect(maxaspectsperpoint); /*030605*/
/*setcurrentaspect(naspectsthiskinemage);*/
}
}
redrawvec(); /*___DRAW.C*/
if(Ltableready) {redrawtable();}
}
}
/*___adjustcurrentaspect()__________________________________________________*/
/****setaspect()*************************************************************/
void setaspect(int ith, int ionoff)
{
#ifdef UNIX_X11
Widget item;
#else
int item;
#endif
if (ith == 0) item = aspect0Item;
else if(ith == 1) item = aspect1Item;
else if(ith == 2) item = aspect2Item;
else if(ith == 3) item = aspect3Item;
else if(ith == 4) item = aspect4Item;
else if(ith == 5) item = aspect5Item;
else if(ith == 6) item = aspect6Item;
else if(ith == 7) item = aspect7Item;
else if(ith == 8) item = aspect8Item;
else if(ith == 9) item = aspect9Item;
else if(ith == 10) item = aspect10Item;
else if(ith == 11) item = aspect11Item;
else if(ith == 12) item = aspect12Item;
else if(ith == 13) item = aspect13Item;
else if(ith == 14) item = aspect14Item;
else if(ith == 15) item = aspect15Item;
else if(ith == 16) item = aspect16Item;
#ifdef MACINTOSH
mycheckitem(aspectMenu, item, ionoff);/*MACMENU.C*/
#else
mycheckitem(0, item, ionoff);/*___MENU.C*/
#endif
if(!Linputactive) {redrawvec();} /*040605*/ /*___DRAW.C*/
}
/*___setaspect()____________________________________________________________*/
/****setaspectidentifier()****************************************************/
void setaspectidentifier(int i, char* temps)
{
if(i==0) mymodifymenuitem(aspectMenu, aspect0Item, temps);
if(i==1) mymodifymenuitem(aspectMenu, aspect1Item, temps);
if(i==2) mymodifymenuitem(aspectMenu, aspect2Item, temps);
if(i==3) mymodifymenuitem(aspectMenu, aspect3Item, temps);
if(i==4) mymodifymenuitem(aspectMenu, aspect4Item, temps);
if(i==5) mymodifymenuitem(aspectMenu, aspect5Item, temps);
if(i==6) mymodifymenuitem(aspectMenu, aspect6Item, temps);
if(i==7) mymodifymenuitem(aspectMenu, aspect7Item, temps);
if(i==8) mymodifymenuitem(aspectMenu, aspect8Item, temps);
if(i==9) mymodifymenuitem(aspectMenu, aspect9Item, temps);
if(i==10) mymodifymenuitem(aspectMenu, aspect10Item, temps);
if(i==11) mymodifymenuitem(aspectMenu, aspect11Item, temps);
if(i==12) mymodifymenuitem(aspectMenu, aspect12Item, temps);
if(i==13) mymodifymenuitem(aspectMenu, aspect13Item, temps);
if(i==14) mymodifymenuitem(aspectMenu, aspect14Item, temps);
if(i==15) mymodifymenuitem(aspectMenu, aspect15Item, temps);
if(i==16) mymodifymenuitem(aspectMenu, aspect16Item, temps);
}
/*___setaspectidentifier()___________________________________________________*/
/****setaspectonscreen()******************************************************/
void setaspectonscreen(char* temps, int ionoff)
{
mymodifymenuitem(aspectMenu, aspectscrnItem, temps);
#ifdef MACINTOSH
mycheckitem(aspectMenu, aspectscrnItem, ionoff);/*MACMENU.C*/
#else
mycheckitem(0, aspectscrnItem, ionoff);/*___MENU.C*/
#endif
if(!Linputactive) {redrawvec();} /*040605*/ /*___DRAW.C*/
}
/*___setaspectonscreen()_____________________________________________________*/
/****setviewidentifier()******************************************************/
void setviewidentifier(int i, char* temps)
{
#ifdef MACINTOSH /*981004*/
#define EXTRAVIEW extraviewMenu
#else
#define EXTRAVIEW viewMenu /*UNIX, PC routines do not use Menu Handle*/
#endif
if(i==1) mymodifymenuitem(viewMenu, reset1Item, temps);
if(i==2) mymodifymenuitem(viewMenu, reset2Item, temps);
if(i==3) mymodifymenuitem(viewMenu, reset3Item, temps);
if(i==4) mymodifymenuitem(viewMenu, reset4Item, temps);
if(i==5) mymodifymenuitem(viewMenu, reset5Item, temps);
if(i==6) mymodifymenuitem(viewMenu, reset6Item, temps);
if(i==7) mymodifymenuitem(viewMenu, reset7Item, temps);
if(i==8) mymodifymenuitem(viewMenu, reset8Item, temps);
if(i==9) mymodifymenuitem(viewMenu, reset9Item, temps);
if(i==10) mymodifymenuitem(viewMenu, reset10Item, temps);
if(i==11) mymodifymenuitem(viewMenu, reset11Item, temps);
if(i==12) mymodifymenuitem(viewMenu, reset12Item, temps);
if(i==13) mymodifymenuitem(viewMenu, reset13Item, temps);
if(i==14) mymodifymenuitem(viewMenu, reset14Item, temps);
if(i==15) mymodifymenuitem(viewMenu, reset15Item, temps);
if(i==16) mymodifymenuitem(viewMenu, reset16Item, temps);
if(i==17) mymodifymenuitem(viewMenu, reset17Item, temps);
if(i==18) mymodifymenuitem(viewMenu, reset18Item, temps);
if(i==19) mymodifymenuitem(viewMenu, reset19Item, temps);
if(i==20) mymodifymenuitem(viewMenu, reset20Item, temps);
if(i==21) mymodifymenuitem(viewMenu, reset21Item, temps);
if(i==22) mymodifymenuitem(viewMenu, reset22Item, temps);
if(i==23) mymodifymenuitem(viewMenu, reset23Item, temps);
if(i==24) mymodifymenuitem(viewMenu, reset24Item, temps);
if(i==25) mymodifymenuitem(viewMenu, reset25Item, temps);
if(i==26) mymodifymenuitem(viewMenu, reset26Item, temps);
if(i==27) mymodifymenuitem(viewMenu, reset27Item, temps);
if(i==28) mymodifymenuitem(viewMenu, reset28Item, temps);
if(i==29) mymodifymenuitem(viewMenu, reset29Item, temps);
if(i==30) mymodifymenuitem(EXTRAVIEW, reset30Item, temps);
if(i==31) mymodifymenuitem(EXTRAVIEW, reset31Item, temps);
if(i==32) mymodifymenuitem(EXTRAVIEW, reset32Item, temps);
if(i==33) mymodifymenuitem(EXTRAVIEW, reset33Item, temps);
if(i==34) mymodifymenuitem(EXTRAVIEW, reset34Item, temps);
if(i==35) mymodifymenuitem(EXTRAVIEW, reset35Item, temps);
if(i==36) mymodifymenuitem(EXTRAVIEW, reset36Item, temps);
if(i==37) mymodifymenuitem(EXTRAVIEW, reset37Item, temps);
if(i==38) mymodifymenuitem(EXTRAVIEW, reset38Item, temps);
if(i==39) mymodifymenuitem(EXTRAVIEW, reset39Item, temps);
if(i==40) mymodifymenuitem(EXTRAVIEW, reset40Item, temps);
if(i==41) mymodifymenuitem(EXTRAVIEW, reset41Item, temps);
if(i==42) mymodifymenuitem(EXTRAVIEW, reset42Item, temps);
if(i==43) mymodifymenuitem(EXTRAVIEW, reset43Item, temps);
if(i==44) mymodifymenuitem(EXTRAVIEW, reset44Item, temps);
if(i==45) mymodifymenuitem(EXTRAVIEW, reset45Item, temps);
if(i==46) mymodifymenuitem(EXTRAVIEW, reset46Item, temps);
if(i==47) mymodifymenuitem(EXTRAVIEW, reset47Item, temps);
if(i==48) mymodifymenuitem(EXTRAVIEW, reset48Item, temps);
if(i==49) mymodifymenuitem(EXTRAVIEW, reset49Item, temps);
if(i==50) mymodifymenuitem(EXTRAVIEW, reset50Item, temps);
if(i==51) mymodifymenuitem(EXTRAVIEW, reset51Item, temps);
if(i==52) mymodifymenuitem(EXTRAVIEW, reset52Item, temps);
if(i==53) mymodifymenuitem(EXTRAVIEW, reset53Item, temps);
if(i==54) mymodifymenuitem(EXTRAVIEW, reset54Item, temps);
if(i==55) mymodifymenuitem(EXTRAVIEW, reset55Item, temps);
if(i==56) mymodifymenuitem(EXTRAVIEW, reset56Item, temps);
if(i==57) mymodifymenuitem(EXTRAVIEW, reset57Item, temps);
if(i==58) mymodifymenuitem(EXTRAVIEW, reset58Item, temps);
if(i==59) mymodifymenuitem(EXTRAVIEW, reset59Item, temps);
if(i==60) mymodifymenuitem(EXTRAVIEW, reset60Item, temps);
if(i==61) mymodifymenuitem(viewMenu, resetRItem, temps);
/*remember that moview # in MAGESETS/getgroup() has maximum view limit*/
}
/*___setviewidentifier()_____________________________________________________*/
#ifdef SGI_GL
#include <gl/gl.h>
#include <gl/device.h>
#include <gl/get.h>
#endif
/****adjuststereo()**********************************************************/
void adjuststereo()
{
static int old_displaydevice = 0; /*140912 was old_, now_, monitor*/
#ifdef SGI_GL /*970712*/
int now_displaydevice;
#endif
mycheckitem(optiMenu, stereoItem, Lstereo); /*___MENU.C*/
myenableitem(optiMenu, compareItem, Lcompare&&!Lstereo);
#ifdef OLDCODE
if(Lstereo)
myenableitem(otherMenu,compareItem, 0);/*disable compare*/
else
myenableitem(otherMenu,compareItem, 1);/*enable compare*/
#endif
if(LTBstereo)
{
#ifdef MACINTOSH
InvalRect(&grafWindow->portRect); /*m*/ /*970408*/
/*which invokes SetsinGrafWindow*/
#endif
#ifdef SGI_GL
LneedSetsinGrafWindow = 1;
recreatesliderBars();/*970604 clears space zoom,zslab,ztran*/
/*MUXMBAR.c*/
if(Lstereo)
{
if (getgdesc(GD_STEREO))
{
old_displaydevice = getmonitor(); /*140912 is C library call*/
setmonitor(STR_RECT); /*140912 is C library call*/
}
}
else
{
if (getgdesc(GD_STEREO) && old_displaydevice != 0) /*140912*/
{
setmonitor(old_displaydevice); /*140912 is C library call*/
}
}
#endif
}
#ifdef SGI_GL
else
{/*NOT in LTBstereo*/
LneedSetsinGrafWindow = 1;
recreatesliderBars();/*970604 clears space zoom,zslab,ztran*//*MUXMBAR.c*/
if(Lstereo) /*maybe was switched from TB stereo*/
{/*see if need to restore displaydevice state 140912 */
if (getgdesc(GD_STEREO) && old_displaydevice != 0) /*140912*/
{
now_displaydevice = getmonitor(); /*140912 is C library call*/
if(now_displaydevice != old_displaydevice) /*140912*/
setmonitor(old_displaydevice); /*140912 is C library call*/
}
}
}
#endif
/*resetmenuchecks();*/ /*___MENU.c calls AdjustMenus();*/ /*NOT NEEDED????*/
redrawvec(); /*___DRAW.C*/ /*MPCDRAW ->()*/
}
/*___adjuststereo()_________________________________________________________*/
/****setstereo()*************************************************************/
void setstereo()
{
Lstereo=!Lstereo;
adjuststereo(); /*MAGEMENU*/
}
/*___setstereo()____________________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****forcestereo()***********************************************************/
void forcestereo()
{
mycheckitem(optiMenu, stereoItem, Lstereo=1); /*___MENU.C*/
if(Lmenu) redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___forcestereo()__________________________________________________________*/
/****setLens()***************************************************************/
void setLens() /*971122*/
{
LLenson = !LLenson;
mycheckitem(optiMenu, lensItem, LLenson ); /*___MENU.C*/
/*if(Lmenu)*/
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___setLens()______________________________________________________________*/
/****potentiateMeasures()******************************************************/
void potentiateMeasures() /*971204*/
{
Lnewmeasures = 1; /* so will start a new sequence next time activated*/
Lmeasureson = 0; /*so is deactivated*/
if (measurelinelistptr != NULL) measurelinelistptr->on = 0; /*981214*/
/*start with list of points off */
if (measuredotslistptr != NULL) measuredotslistptr->on = 0; /*981214*/
/*start with list of average dots off */
adjustcontrolbuttonboxchecks(); /*for control button boxes*/
redrawvec(); /*___DRAW.C*/ /*MPCDRAW.C -> ()*/
}
/*___potentiateMeasures()_____________________________________________________*/
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
/****setcompare()************************************************************/
void setcompare()
{
mycheckitem(otherMenu, compareItem, Lcompareon=!Lcompareon); /*___MENU.C*/
if(Lcompareon)