AmendHub

Download

jcs

/

subtext

/

subtext.h

 

(View History)

jcs   *: Add dynamically configured main menu Latest amendment: 281 on 2022-11-11

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 #ifndef __SUBTEXT_H__
18 #define __SUBTEXT_H__
19
20 #include "util.h"
21
22 #define PROGRAM_NAME "Subtext"
23
24 #define MBAR_ID 128
25
26 #define APPLE_MENU_ID 128
27 #define APPLE_MENU_ABOUT_ID 1
28
29 #define FILE_MENU_ID 129
30 #define FILE_MENU_QUIT_ID 1
31
32 #define EDIT_MENU_ID 131
33 #define EDIT_MENU_CUT_ID 1
34 #define EDIT_MENU_COPY_ID 2
35 #define EDIT_MENU_PASTE_ID 3
36
37 #define BBS_MENU_ID 130
38 #define BBS_MENU_VIEWS_ID 1
39 #define BBS_MENU_EDIT_MENUS_ID 2
40 #define BBS_MENU_OPEN_CONSOLE_ID 4
41
42 #define VIEWS_SUBMENU_ID 132
43 #define VIEWS_SUBMENU_ISSUE_ID 1
44 #define VIEWS_SUBMENU_MAIN_MENU_ID 2
45 #define VIEWS_SUBMENU_SHORT_MENU_ID 3
46 #define VIEWS_SUBMENU_SIGNUP_ID 4
47 #define VIEWS_SUBMENU_PAGE_SYSOP_ID 5
48 #define VIEWS_SUBMENU_NO_FREE_NODES_ID 6
49 #define VIEWS_SUBMENU_SIGNOFF_ID 7
50
51 #define MENU_DEFAULTS_ID 128
52
53 #define STR_LAST_DB 128
54
55 #define SETTINGS_DLOG_ID 130
56 #define SETTINGS_BBS_NAME_ID 3
57 #define SETTINGS_PHONE_ID 4
58 #define SETTINGS_LOCATION_ID 5
59 #define SETTINGS_HOSTNAME_ID 6
60 #define SETTINGS_TELNET_PORT_ID 7
61 #define SETTINGS_MODEM_PORT_ID 8
62 #define SETTINGS_MODEM_INIT_ID 9
63 #define SETTINGS_MAX_IDLE_MINS_ID 10
64
65 #define BOARD_DLOG_ID 131
66 #define BOARD_BOARD_ID 3
67 #define BOARD_NAME_ID 4
68 #define BOARD_DESCRIPTION_ID 5
69 #define BOARD_RESTRICTED_POSTING_ID 6
70 #define BOARD_RESTRICTED_VIEWING_ID 7
71 #define BOARD_RETENTION_ID 8
72
73 #include "db.h"
74
75 extern struct db *db;
76 extern MenuHandle file_menu;
77
78 void blanker_unblank(void);
79
80 short strcasecmp(const char *s1, const char *s2);
81 short strncasecmp(const char *s1, const char *s2, size_t n);
82
83 #endif /* __SUBTEXT_H__ */