+ // ------------------------------------------------------------------------
+ // Constants --------------------------------------------------------------
+ // ------------------------------------------------------------------------
+
+ // Reserved menu item IDs
+ public static final int MID_UNUSED = -1;
+
+ // Tools menu
+ public static final int MID_REPAINT = 1;
+ public static final int MID_VIEW_IMAGE = 2;
+ public static final int MID_SCREEN_OPTIONS = 3;
+
+ // File menu
+ public static final int MID_NEW = 10;
+ public static final int MID_EXIT = 11;
+ public static final int MID_QUIT = MID_EXIT;
+ public static final int MID_OPEN_FILE = 12;
+ public static final int MID_SHELL = 13;
+
+ // Edit menu
+ public static final int MID_CUT = 20;
+ public static final int MID_COPY = 21;
+ public static final int MID_PASTE = 22;
+ public static final int MID_CLEAR = 23;
+
+ // Search menu
+ public static final int MID_FIND = 30;
+ public static final int MID_REPLACE = 31;
+ public static final int MID_SEARCH_AGAIN = 32;
+ public static final int MID_GOTO_LINE = 33;
+
+ // Window menu
+ public static final int MID_TILE = 40;
+ public static final int MID_CASCADE = 41;
+ public static final int MID_CLOSE_ALL = 42;
+ public static final int MID_WINDOW_MOVE = 43;
+ public static final int MID_WINDOW_ZOOM = 44;
+ public static final int MID_WINDOW_NEXT = 45;
+ public static final int MID_WINDOW_PREVIOUS = 46;
+ public static final int MID_WINDOW_CLOSE = 47;
+
+ // Help menu
+ public static final int MID_HELP_CONTENTS = 50;
+ public static final int MID_HELP_INDEX = 51;
+ public static final int MID_HELP_SEARCH = 52;
+ public static final int MID_HELP_PREVIOUS = 53;
+ public static final int MID_HELP_HELP = 54;
+ public static final int MID_HELP_ACTIVE_FILE = 55;
+ public static final int MID_ABOUT = 56;
+
+ // Table menu
+ public static final int MID_TABLE_RENAME_ROW = 60;
+ public static final int MID_TABLE_RENAME_COLUMN = 61;
+ public static final int MID_TABLE_VIEW_ROW_LABELS = 70;
+ public static final int MID_TABLE_VIEW_COLUMN_LABELS = 71;
+ public static final int MID_TABLE_VIEW_HIGHLIGHT_ROW = 72;
+ public static final int MID_TABLE_VIEW_HIGHLIGHT_COLUMN = 73;
+ public static final int MID_TABLE_BORDER_NONE = 80;
+ public static final int MID_TABLE_BORDER_ALL = 81;
+ public static final int MID_TABLE_BORDER_CELL_NONE = 82;
+ public static final int MID_TABLE_BORDER_CELL_ALL = 83;
+ public static final int MID_TABLE_BORDER_RIGHT = 84;
+ public static final int MID_TABLE_BORDER_LEFT = 85;
+ public static final int MID_TABLE_BORDER_TOP = 86;
+ public static final int MID_TABLE_BORDER_BOTTOM = 87;
+ public static final int MID_TABLE_BORDER_DOUBLE_BOTTOM = 88;
+ public static final int MID_TABLE_BORDER_THICK_BOTTOM = 89;
+ public static final int MID_TABLE_DELETE_LEFT = 100;
+ public static final int MID_TABLE_DELETE_UP = 101;
+ public static final int MID_TABLE_DELETE_ROW = 102;
+ public static final int MID_TABLE_DELETE_COLUMN = 103;
+ public static final int MID_TABLE_INSERT_LEFT = 104;
+ public static final int MID_TABLE_INSERT_RIGHT = 105;
+ public static final int MID_TABLE_INSERT_ABOVE = 106;
+ public static final int MID_TABLE_INSERT_BELOW = 107;
+ public static final int MID_TABLE_COLUMN_NARROW = 110;
+ public static final int MID_TABLE_COLUMN_WIDEN = 111;
+ public static final int MID_TABLE_FILE_OPEN_CSV = 115;
+ public static final int MID_TABLE_FILE_SAVE_CSV = 116;
+ public static final int MID_TABLE_FILE_SAVE_TEXT = 117;
+
+ // ------------------------------------------------------------------------
+ // Variables --------------------------------------------------------------
+ // ------------------------------------------------------------------------
+