-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.r
executable file
·271 lines (262 loc) · 6.49 KB
/
menu.r
1
#include "types.r"/* These define's are used in the MENU resources to disable specific menu items. */#define AllItems 0b1111111111111111111111111111111 /* 31 flags */#define MenuItem1 0b0000000000000000000000000000001#define MenuItem2 0b0000000000000000000000000000010#define MenuItem3 0b0000000000000000000000000000100#define MenuItem4 0b0000000000000000000000000001000#define MenuItem5 0b0000000000000000000000000010000#define MenuItem6 0b0000000000000000000000000100000#define MenuItem7 0b0000000000000000000000001000000#define MenuItem8 0b0000000000000000000000010000000#define MenuItem9 0b0000000000000000000000100000000#define MenuItem10 0b0000000000000000000001000000000#define MenuItem11 0b0000000000000000000010000000000#define MenuItem12 0b0000000000000000000100000000000#define MenuItem13 0b0000000000000000001000000000000#define MenuItem14 0b0000000000000000010000000000000#define MenuItem15 0b0000000000000000100000000000000#define MenuItem16 0b0000000000000001000000000000000#define MenuItem17 0b0000000000000010000000000000000#define MenuItem18 0b0000000000000100000000000000000#define MenuItem19 0b0000000000001000000000000000000#define MenuItem20 0b0000000000010000000000000000000#define MenuItem21 0b0000000000100000000000000000000resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple, { /* array: 2 elements */ /* [1] */ "AboutÉ", noIcon, "", "", plain, /* [2] */ "-", noIcon, "", "", plain }};resource 'MENU' (129, "File") { 129, textMenuProc, AllItems & ~MenuItem3 & ~MenuItem7 & ~MenuItem8 & ~MenuItem10 & ~MenuItem13 , enabled, "File", { /* array: 7 elements */ /* [1] */ "Load Process", noIcon, "O", "", plain, /* [2] */ "Terminate Process", noIcon, "", "", plain, /* [3] */ "-", noIcon, "", "", plain, /* [4] */ "Initalize Processor", noIcon, "", "", plain, /* [5] */ "Load Boot Image", noIcon, "", "", plain, /* [6] */ "Load Binary Image", noIcon, "", "", plain, /* [7] */ "Shutdown System", noIcon, "", "", plain, /* [8] */ "-", noIcon, "", "", plain, /* [9] */ "Save I/O", noIcon, "", "", plain, /* [10] */ "-", noIcon, "", "", plain, /* [11] */ "Save State", noIcon, "", "", plain, /* [12] */ "Restore State", noIcon, "", "", plain, /* [13] */ "-", noIcon, "", "", plain, /* [14] */ "Quit", noIcon, "Q", "", plain }};resource 'MENU' (130, "Edit") { 130, textMenuProc, AllItems & ~MenuItem2 & ~MenuItem5, enabled, "Edit", { /* array: 5 elements */ /* [1] */ "Undo", noIcon, "Z", "", plain, /* [2] */ "-", noIcon, "", "", plain, /* [3] */ "Cut", noIcon, "X", "", plain, /* [4] */ "Copy", noIcon, "C", "", plain, /* [5] */ "Paste", noIcon, "V", "", plain }};resource 'MENU' (131, "Run") { 131, textMenuProc, AllItems & ~MenuItem2 & ~MenuItem6 & ~MenuItem7 & ~MenuItem12 , enabled, "Run", { /* array: 10 elements */ /* [1] */ "Reset Process", noIcon, "R", "", plain, /* [2] */ "-", noIcon, "", "", plain, /* [3] */ "Go / Continue", noIcon, "G", "", plain, /* [4] */ "Step-Step", noIcon, "F", "", plain, /* [5] */ "Step", noIcon, "S", "", plain, /* [6] */ "Pause", noIcon, ".", "", plain, /* [7] */ "-", noIcon, "", "", plain, /* [8] */ "Toggle Watch/Break Point", noIcon, "W", "", plain, /* [9] */ "Clear All Watch Points", noIcon, "", "", plain, /* [10] */ "Stop On Read", noIcon, "", "", plain, /* [11] */ "Stop On Write", noIcon, "", "", plain, /*12*/ "-", noIcon, "", "", plain, /*13*/ "Display Memory Usage", noIcon, "M", "", plain }};resource 'MENU' (132, "Windows") { 132, textMenuProc, AllItems & ~MenuItem9 & ~MenuItem11 & ~MenuItem16 & ~MenuItem19, enabled, "Windows", { /* array: 6 elements */ /* [1] */ "Program", noIcon, "1", "", plain, /* [2] */ "Registers", noIcon, "2", "", plain, /* [3] */ "Memory by label", noIcon, "3", "", plain, /* [4] */ "Input Output", noIcon, "4", "", plain, /* [5] */ "Memory Dump", noIcon, "5", "", plain, /* [6] */ "Physical Memory",noIcon, "6", "", plain, /* [7] */ "System Data",noIcon, "7", "", plain, /* [8] */ "Stack",noIcon, "8", "", plain, /* [9] */ "-", noIcon, "", "", plain, /* [10] */ "Clear I/O ", noIcon, "", "", plain, /* [11] */ "-", noIcon, "", "", plain, /* [12] */ " 9 Point", noIcon, "", "", plain, /* [13] */ "12 Point", noIcon, "", "", plain, /* [14] */ "14 Point", noIcon, "", "", plain, /* [15] */ "18 Point", noIcon, "", "", plain, /* [16] */ "-", noIcon, "", "", plain, /* [17] */ "Bold", noIcon, "", "", plain, /* [18] */ "Plain", noIcon, "", "", plain, /* [19] */ "-", noIcon, "", "", plain, /* [20] */ "Courier", noIcon, "", "", plain, /* [21] */ "Monaco", noIcon, "", "", plain }};resource 'MENU' (133, "Options") { 133, textMenuProc, AllItems & ~MenuItem3 & ~MenuItem9, enabled, "Options", { /* array: 4 elements */ /* [1] */ "Dec Addresses", noIcon, "", "", plain, /* [2] */ "Non Symbolic Mode", noIcon, "", "", plain, /* [3] */ "-",noIcon, "", "", plain, /* [4] */ "Display in Hex",noIcon, "H", "", plain, /* [5] */ "Display in Decimal",noIcon, "I", "", plain, /* [6] */ "Display as Unsigned Decimal",noIcon, "U", "", plain, /* [7] */ "Display in ascii",noIcon, "A", "", plain, /* [8] */ "Display as a float",noIcon, "L", "", plain, /* [9] */ "-",noIcon, "", "", plain, "Ignore Page Protection",noIcon, "", "", plain }};resource 'MENU' (134, "To") { 134, textMenuProc, AllItems & ~MenuItem2, enabled, "To", { /* [1] */ "To Address", noIcon, "N", "", plain, /* [2] */ "-",noIcon, "", "", plain, /* [3] */ "To Code Start", noIcon, "T", "", plain, /* [4] */ "To Data Start", noIcon, "D", "", plain , /* [5] */ "To PC ", noIcon, "P", "", plain , /* [6] */ "To SP ", noIcon, "", "", plain , /* [7] */ "To FP ", noIcon, "", "", plain , /* [8] */ "To AP ", noIcon, "", "", plain , /* [9] */ "To USP ", noIcon, "", "", plain , /* [10] */ "To SSP ", noIcon, "", "", plain , /* [1] */ "To ESP ", noIcon, "", "", plain , /* [12] */ "To KSP ", noIcon, "", "", plain , /* [13] */ "To ISP ", noIcon, "", "", plain , /* [14] */ "To SCBB ", noIcon, "", "", plain , /* [15] */ "To P0BR ", noIcon, "", "", plain , /* [16] */ "To P1BR+0x800000 ", noIcon, "", "", plain , /* [17] */ "To SBR ", noIcon, "", "", plain , /* [18] */ "To PCBB ", noIcon, "", "", plain }};resource 'MENU' (135, "Launch") { 135, textMenuProc, AllItems & ~MenuItem2, enabled, "", { "", noIcon, "", "", plain }};