4 * Copyright (c) 2011-2012 project bchan
6 * This software is provided 'as-is', without any express or implied
7 * warranty. In no event will the authors be held liable for any damages
8 * arising from the use of this software.
10 * Permission is granted to anyone to use this software for any purpose,
11 * including commercial applications, and to alter it and redistribute it
12 * freely, subject to the following restrictions:
14 * 1. The origin of this software must not be misrepresented; you must not
15 * claim that you wrote the original software. If you use this software
16 * in a product, an acknowledgment in the product documentation would be
17 * appreciated but is not required.
19 * 2. Altered source versions must be plainly marked as such, and must not be
20 * misrepresented as being the original software.
22 * 3. This notice may not be removed or altered from any source
28 #include <btron/hmi.h>
30 #ifndef __BCHANL_MENUS_H__
31 #define __BCHANL_MENUS_H__
33 struct bchanl_mainmenu_t_ {
37 typedef struct bchanl_mainmenu_t_ bchanl_mainmenu_t;
39 IMPORT W bchanl_mainmenu_initialize(bchanl_mainmenu_t *mainmenu, W dnum);
40 IMPORT VOID bchanl_mainmenu_finalize(bchanl_mainmenu_t *mainmenu);
41 IMPORT W bchanl_mainmenu_setup(bchanl_mainmenu_t *mainmenu, Bool subectactive, Bool subectjoptionenable, Bool extbbsmanageropen, Bool extbbsselected, Bool fromtray, Bool totray, Bool resnumdisplay, Bool sincedisplay, Bool vigordisplay);
42 #define BCHANL_MAINMENU_SELECT_NOSELECT 0
43 #define BCHANL_MAINMENU_SELECT_CLOSE 1
44 #define BCHANL_MAINMENU_SELECT_REDISPLAY 2
45 #define BCHANL_MAINMENU_SELECT_BBSMENUFETCH 3
46 #define BCHANL_MAINMENU_SELECT_SUBJECTOPTION 4
47 #define BCHANL_MAINMENU_SELECT_EXTBBS_MANAGER 5
48 #define BCHANL_MAINMENU_SELECT_EXTBBS_REGISTER 6
49 #define BCHANL_MAINMENU_SELECT_EXTBBS_UP 7
50 #define BCHANL_MAINMENU_SELECT_EXTBBS_DOWN 8
51 #define BCHANL_MAINMENU_SELECT_EXTBBS_DELETE 9
52 #define BCHANL_MAINMENU_SELECT_EDIT_COPY_TO_TRAY 10
53 #define BCHANL_MAINMENU_SELECT_EDIT_COPY_FROM_TRAY 11
54 #define BCHANL_MAINMENU_SELECT_EDIT_MOVE_TO_TRAY 12
55 #define BCHANL_MAINMENU_SELECT_EDIT_MOVE_FROM_TRAY 13
56 #define BCHANL_MAINMENU_SELECT_EDIT_DELETE 14
57 #define BCHANL_MAINMENU_SELECT_DISPLAY_RESNUMBER 15
58 #define BCHANL_MAINMENU_SELECT_DISPLAY_SINCE 16
59 #define BCHANL_MAINMENU_SELECT_DISPLAY_VIGOR 17
60 IMPORT W bchanl_mainmenu_popup(bchanl_mainmenu_t *mainmenu, PNT pos);
61 IMPORT W bchanl_mainmenu_keyselect(bchanl_mainmenu_t *mainmenu, TC keycode);