OSDN Git Service

fix copyright year.
[bbk/bchan.git] / src / bchan_menus.h
1 /*
2  * bchan_menus.h
3  *
4  * Copyright (c) 2010-2011 project bchan
5  *
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.
9  *
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:
13  *
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.
18  *
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  *    misrepresented as being the original software.
21  *
22  * 3. This notice may not be removed or altered from any source
23  *    distribution.
24  *
25  */
26
27 #include        <basic.h>
28 #include        <btron/hmi.h>
29
30 #ifndef __BCHAN_MENUS_H__
31 #define __BCHAN_MENUS_H__
32
33 struct bchan_mainmenu_t_ {
34         MENUITEM *mnitem;
35         MNID mnid;
36 };
37 typedef struct bchan_mainmenu_t_ bchan_mainmenu_t;
38
39 IMPORT W bchan_mainmenu_initialize(bchan_mainmenu_t *mainmenu, W dnum);
40 IMPORT VOID bchan_mainmenu_finalize(bchan_mainmenu_t *mainmenu);
41 IMPORT W bchan_mainmenu_setup(bchan_mainmenu_t *mainmenu, Bool titleenable, Bool networkenable);
42 #define BCHAN_MAINMENU_SELECT_NOSELECT 0
43 #define BCHAN_MAINMENU_SELECT_CLOSE 1
44 #define BCHAN_MAINMENU_SELECT_REDISPLAY 2
45 #define BCHAN_MAINMENU_SELECT_THREADINFO 3
46 #define BCHAN_MAINMENU_SELECT_TITLETOTRAY 4
47 #define BCHAN_MAINMENU_SELECT_URLTOTRAY 5
48 #define BCHAN_MAINMENU_SELECT_THREADFETCH 6
49 #define BCHAN_MAINMENU_SELECT_NGWORD 7
50 IMPORT W bchan_mainmenu_popup(bchan_mainmenu_t *mainmenu, PNT pos);
51 IMPORT W bchan_mainmenu_keyselect(bchan_mainmenu_t *mainmenu, TC keycode);
52
53 struct bchan_resnumbermenu_t_ {
54         MNID mnid;
55 };
56 typedef struct bchan_resnumbermenu_t_ bchan_resnumbermenu_t;
57
58 IMPORT W bchan_resnumbermenu_initialize(bchan_resnumbermenu_t *resnumbermenu, W dnum);
59 IMPORT VOID bchan_resnumbermenu_finalize(bchan_resnumbermenu_t *resnumbermenu);
60 IMPORT W bchan_resnumbermenu_setngselected(bchan_resnumbermenu_t *resnumbermenu, Bool selected);
61 #define BCHAN_RESNUMBERMENU_SELECT_NOSELECT 0
62 #define BCHAN_RESNUMBERMENU_SELECT_NG 1
63 #define BCHAN_RESNUMBERMENU_SELECT_PUSHTRAY 2
64 IMPORT W bchan_resnumbermenu_select(bchan_resnumbermenu_t *resnumbermenu, PNT pos);
65
66 struct bchan_residmenu_t_ {
67         MNID mnid;
68 };
69 typedef struct bchan_residmenu_t_ bchan_residmenu_t;
70
71 IMPORT W bchan_residmenu_initialize(bchan_residmenu_t *residmenu, W dnum);
72 IMPORT VOID bchan_residmenu_finalize(bchan_residmenu_t *residmenu);
73 IMPORT W bchan_residmenu_setngselected(bchan_residmenu_t *residmenu, Bool selected);
74 #define BCHAN_RESIDMENU_SELECT_NOSELECT 0
75 #define BCHAN_RESIDMENU_SELECT_NG 1
76 #define BCHAN_RESIDMENU_SELECT_PUSHTRAY 2
77 IMPORT W bchan_residmenu_select(bchan_residmenu_t *residmenu, PNT pos);
78
79 #endif