-
Notifications
You must be signed in to change notification settings - Fork 2
/
DMenubar.mod
executable file
·108 lines (95 loc) · 3.55 KB
/
DMenubar.mod
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
{++++++++++++++++++++++++++++++++++++++RAPTOR++++++++++++++++++++++++++++++++++++++}
{+ +}
{+ Definition Module : Menubar +}
{+ Author : Steve Brown +}
{+ Last Modified : 3 August 00 +}
{+ +}
{++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
DEFINITION MODULE Menubar;
FROM GPalet IMPORT PaletteObj, PaletteButtonObj;
FROM Menu IMPORT MenuBarObj;
FROM GTypes IMPORT OptionListType;
FROM IOMod IMPORT StreamObj;
TYPE
graphMenuObj = OBJECT(MenuBarObj);
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {graphMenuObj}
simMenuObj = OBJECT(MenuBarObj);
ASK METHOD SetNavigation;
ASK METHOD ChangeState(IN state : STRING);
ASK METHOD KillSim;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {simMenuObj}
simToolObj = OBJECT(PaletteObj);
ASK METHOD SetNavigation;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {simToolObj}
weakMenuObj = OBJECT(MenuBarObj);
ASK METHOD SetNavigation;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {simMenuObj}
weakToolObj = OBJECT(PaletteObj);
ASK METHOD SetNavigation;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {simToolObj}
fevMenuObj = OBJECT(MenuBarObj);
ASK METHOD SetNavigation;
ASK METHOD Initialize;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {graphMenuObj}
fevToolObj = OBJECT(PaletteObj);
ASK METHOD SetNavigation;
ASK METHOD Initialize;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {simToolObj}
mainMenuObj = OBJECT(MenuBarObj);
path1, file1, path2, file2, path3, file3,
path4, file4, path5, file5, path6, file6 : STRING;
ASK METHOD Disable (IN greyLevel : INTEGER);
ASK METHOD Disable1Thru8;
ASK METHOD Enable (IN greyLevel : INTEGER);
ASK METHOD Enable2Thru5;
ASK METHOD Enable2Thru6;
ASK METHOD SetChecks;
ASK METHOD SetZoomButts;
ASK METHOD AddFileName (IN path, file : STRING);
ASK METHOD SetFileNames (IN defPath1, defFile1, defPath2, defFile2,
defPath3, defFile3, defPath4, defFile4,
defPath5, defFile5, defPath6, defFile6 : STRING);
ASK METHOD SetNavigation;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {MenuBarObj}
mainToolObj = OBJECT(PaletteObj);
ASK METHOD SetNavigation;
OVERRIDE
ASK METHOD BeSelected;
END OBJECT; {MenuToolObj}
PROCEDURE UpOneLevel;
PROCEDURE Home;
PROCEDURE FindItem;
PROCEDURE MassEdit;
PROCEDURE PauseSim;
PROCEDURE ResumeSim;
PROCEDURE ColorPrefs;
PROCEDURE ViewOutputs;
PROCEDURE DisplayFailureEffects;
PROCEDURE GotoHier;
PROCEDURE Step;
PROCEDURE Jump;
PROCEDURE ResetNewFile;
PROCEDURE ReturnToWorkspace;
VAR
goToNext, inStepMode, inJumpMode, inEndState, notPaused : BOOLEAN;
nameArray : OptionListType;
libArray : ARRAY INTEGER, INTEGER OF STRING;
FEVStream : StreamObj;
libVersion : INTEGER;
END MODULE. {dmod MenuBar}