AmendHub

Download

jcs

/

amend

/

amend.h

 

(View History)

jcs   editor: Add amendment metadata editor Latest amendment: 88 on 2022-08-17

1 /*
2 * Copyright (c) 2021 joshua stein <jcs@jcs.org>
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17 #define PROGRAM_NAME "Amend"
18
19 #define MBAR_ID 128
20
21 #define APPLE_MENU_ID 128
22 #define APPLE_MENU_ABOUT_ID 1
23
24 #define FILE_MENU_ID 129
25 #define FILE_MENU_NEW_ID 1
26 #define FILE_MENU_OPEN_ID 2
27 #define FILE_MENU_SETTINGS_ID 4
28 #define FILE_MENU_QUIT_ID 6
29
30 #define EDIT_MENU_ID 130
31 #define EDIT_MENU_CUT_ID 1
32 #define EDIT_MENU_COPY_ID 2
33 #define EDIT_MENU_PASTE_ID 3
34 #define EDIT_MENU_SELECT_ALL_ID 4
35
36 #define REPO_MENU_ID 131
37 #define REPO_MENU_ADD_FILE_ID 1
38 #define REPO_MENU_DISCARD_CHANGES_ID 2
39 #define REPO_MENU_APPLY_PATCH_ID 3
40
41 #define AMENDMENT_MENU_ID 132
42 #define AMENDMENT_MENU_EDIT_ID 1
43 #define AMENDMENT_MENU_EXPORT_ID 2
44
45 #define AMENDMENT_LDEF_ID 128
46
47 #define SETTINGS_DLOG_ID 130
48 #define SETTINGS_SAVE_ID 1
49 #define SETTINGS_CANCEL_ID 2
50 #define SETTINGS_AUTHOR_ID 3
51 #define SETTINGS_TABWIDTH_ID 4
52
53 #define STR_AUTHOR_ID 128
54 #define STR_TABWIDTH_ID 129
55
56 extern MenuHandle file_menu, edit_menu, repo_menu, amendment_menu;
57
58 void menu_defaults(void);