• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂460 (tree)
時間2012-05-02 18:23:35
作者ornse01

Log Message

add panels source by automatically generated.

Change Summary

差異

--- bchanl/trunk/src/bchanl_panels.c (nonexistent)
+++ bchanl/trunk/src/bchanl_panels.c (revision 460)
@@ -0,0 +1,161 @@
1+/*
2+ * bchanl_panels.c
3+ *
4+ * Copyright (c) 2012 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+/* This file is automatically generated. */
28+
29+#include "bchanl_panels.h"
30+
31+#include <bstdio.h>
32+#include <bstdlib.h>
33+#include <tcode.h>
34+#include <tstring.h>
35+#include <btron/btron.h>
36+#include <btron/hmi.h>
37+#include <btron/vobj.h>
38+
39+#if PANEL_DEBUG
40+# define DP(arg) printf arg
41+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
42+#else
43+# define DP(arg) /**/
44+# define DP_ER(msg, err) /**/
45+#endif
46+
47+EXPORT BCHAN_PANELS_SAVECONFIRM_RESULT bchan_panels_saveconfirm()
48+{
49+ PNL_ITEM pnl_item[6];
50+ PNID pnid0;
51+ PNT p0 = {0x8000,0x8000};
52+ WEVENT wev0;
53+ W stat,itemno;
54+ BCHAN_PANELS_SAVECONFIRM_RESULT ret;
55+ PANEL pnl = {
56+ 2,0x48,0,
57+ {{0, 0, 360, 120}},
58+ 0,
59+ 6,
60+ pnl_item
61+ };
62+
63+ pnl_item[0].itype = TEXT_ITEM|ATR_TEXT;
64+ pnl_item[0].info = 0;
65+ pnl_item[0].ir = (RECT){{24,24,24+304,24+16}};
66+ pnl_item[0].desc = 0;
67+ pnl_item[0].dnum = 0;
68+ pnl_item[0].ptr = (H*)(TC[]){0x383d, 0x3a5f, 0x244e, 0x4662, 0x4d46, 0x244f, 0x3835, 0x244e, 0x4662, 0x4d46, 0x2448, 0x305b, 0x244a, 0x2443, 0x2446, 0x2424, 0x245e, 0x2439, 0x2123, TNULL};
69+ pnl_item[1].itype = TEXT_ITEM|ATR_TEXT;
70+ pnl_item[1].info = 0;
71+ pnl_item[1].ir = (RECT){{24,48,24+224,48+16}};
72+ pnl_item[1].desc = 0;
73+ pnl_item[1].dnum = 0;
74+ pnl_item[1].ptr = (H*)(TC[]){0x4a5d, 0x4238, 0x2437, 0x2446, 0x4a54, 0x3d38, 0x2472, 0x3d2a, 0x4e3b, 0x2437, 0x245e, 0x2439, 0x242b, 0x2129, TNULL};
75+ pnl_item[2].itype = NULL_ITEM;
76+ pnl_item[2].info = 0;
77+ pnl_item[2].ir = (RECT){{256,48,256+16,48+16}};
78+ pnl_item[2].desc = 0;
79+ pnl_item[2].dnum = 0;
80+ pnl_item[2].ptr = NULL;
81+ pnl_item[3].itype = PARTS_ITEM;
82+ pnl_item[3].info = 0;
83+ pnl_item[3].ir = (RECT){{24,72,24+96,72+24}};
84+ pnl_item[3].desc = 0;
85+ pnl_item[3].dnum = 0;
86+ pnl_item[3].ptr = (H*)&(SWSEL){MS_PARTS|P_DISP, (RECT){{0, 0, 96, 24}}, 0, (TC[]){MC_STR, 0x3c68, 0x246a, 0x3e43, 0x2437, TNULL}, {0, 0, -1, 0}};
87+ pnl_item[4].itype = PARTS_ITEM;
88+ pnl_item[4].info = 0;
89+ pnl_item[4].ir = (RECT){{132,72,132+96,72+24}};
90+ pnl_item[4].desc = 0;
91+ pnl_item[4].dnum = 0;
92+ pnl_item[4].ptr = (H*)&(SWSEL){MS_PARTS|P_DISP, (RECT){{0, 0, 96, 24}}, 0, (TC[]){MC_STR, 0x4a5d, 0x4238, 0x2437, 0x244a, 0x2424, TNULL}, {0, 0, -1, 0}};
93+ pnl_item[5].itype = PARTS_ITEM;
94+ pnl_item[5].info = 0;
95+ pnl_item[5].ir = (RECT){{240,72,240+96,72+24}};
96+ pnl_item[5].desc = 0;
97+ pnl_item[5].dnum = 0;
98+ pnl_item[5].ptr = (H*)&(SWSEL){MS_PARTS|P_DISP, (RECT){{0, 0, 96, 24}}, 0, (TC[]){MC_STR, 0x4a5d, 0x4238, TNULL}, {0, 0, -1, 0}};
99+
100+ pnid0 = pcre_pnl(&pnl, &p0);
101+ if (pnid0 < 0) {
102+ DP_ER("pcre_pnl error", pnid0);
103+ return pnid0;
104+ }
105+
106+ for (;;) {
107+ ret = -1;
108+ stat = pact_pnl(pnid0, &wev0.e, &itemno);
109+ switch (stat) {
110+ case P_EVENT:
111+ if (wev0.s.type == EV_DEVICE) {
112+ oprc_dev(&wev0.e, NULL, 0);
113+ }
114+ continue;
115+ default:
116+ if (itemno == (3 + 1)) {
117+ ret = BCHAN_PANELS_SAVECONFIRM_RESULT_CANCEL;
118+ break;
119+ }
120+ if (itemno == (4 + 1)) {
121+ ret = BCHAN_PANELS_SAVECONFIRM_RESULT_OK_NOSAVE;
122+ break;
123+ }
124+ if (itemno == (5 + 1)) {
125+ ret = BCHAN_PANELS_SAVECONFIRM_RESULT_OK_SAVE;
126+ break;
127+ }
128+
129+ if (itemno >= 0) {
130+ continue;
131+ }
132+ case 0x5001:
133+ if (itemno == (3 + 1)) {
134+ ret = BCHAN_PANELS_SAVECONFIRM_RESULT_CANCEL;
135+ break;
136+ }
137+ if (itemno == (4 + 1)) {
138+ ret = BCHAN_PANELS_SAVECONFIRM_RESULT_OK_NOSAVE;
139+ break;
140+ }
141+ if (itemno == (5 + 1)) {
142+ ret = BCHAN_PANELS_SAVECONFIRM_RESULT_OK_SAVE;
143+ break;
144+ }
145+
146+ if (itemno >= 0) {
147+ continue;
148+ }
149+ break;
150+ }
151+ if (ret != -1) {
152+ break;
153+ }
154+ }
155+
156+ pdel_pnl(pnid0);
157+
158+ return ret;
159+}
160+
161+
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
--- bchanl/trunk/src/Makefile (revision 459)
+++ bchanl/trunk/src/Makefile (revision 460)
@@ -38,7 +38,7 @@
3838 HEADER := $(S) $(HEADER) ../src/bchanf/src
3939
4040 # ソースファイル
41-SRC = main.c subjectcache.c subjectparser.c subjectlayout.c cache.c bbsmenucache.c bbsmenuparser.c bbsmenulayout.c bchanl_subject.c retriever.c subjectretriever.c tadlib.c bbsmenuretriever.c bbsmenufilter.c bchanl_hmi.c bchanl_menus.c subjectlist.c extbbslist.c
41+SRC = main.c subjectcache.c subjectparser.c subjectlayout.c cache.c bbsmenucache.c bbsmenuparser.c bbsmenulayout.c bchanl_subject.c retriever.c subjectretriever.c tadlib.c bbsmenuretriever.c bbsmenufilter.c bchanl_hmi.c bchanl_menus.c subjectlist.c extbbslist.c bchanl_panels.c
4242
4343 # データボックスソースファイル
4444 DBSRC =
--- bchanl/trunk/src/bchanl_panels.h (nonexistent)
+++ bchanl/trunk/src/bchanl_panels.h (revision 460)
@@ -0,0 +1,45 @@
1+/*
2+ * bchanl_panels.h
3+ *
4+ * Copyright (c) 2012 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+/* This file is automatically generated. */
28+
29+#include <basic.h>
30+#include <btron/dp.h>
31+#include <btron/hmi.h>
32+
33+#ifndef __BCHANL_PANELS_H__
34+#define __BCHANL_PANELS_H__
35+
36+enum BCHAN_PANELS_SAVECONFIRM_RESULT_ {
37+ BCHAN_PANELS_SAVECONFIRM_RESULT_CANCEL,
38+ BCHAN_PANELS_SAVECONFIRM_RESULT_OK_NOSAVE,
39+ BCHAN_PANELS_SAVECONFIRM_RESULT_OK_SAVE,
40+};
41+typedef enum BCHAN_PANELS_SAVECONFIRM_RESULT_ BCHAN_PANELS_SAVECONFIRM_RESULT;
42+
43+IMPORT BCHAN_PANELS_SAVECONFIRM_RESULT bchan_panels_saveconfirm();
44+
45+#endif
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
--- bchanl/trunk/src/bchanl_panels.yaml (nonexistent)
+++ bchanl/trunk/src/bchanl_panels.yaml (revision 460)
@@ -0,0 +1,115 @@
1+#
2+# bchanl_hmi.yaml
3+#
4+# Copyright (c) 2012 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+generator:
27+ output_source: bchanl_panels.c
28+ output_header: bchanl_panels.h
29+ lisence_source: |
30+ /*
31+ * bchanl_panels.c
32+ *
33+ * Copyright (c) 2012 project bchan
34+ *
35+ * This software is provided 'as-is', without any express or implied
36+ * warranty. In no event will the authors be held liable for any damages
37+ * arising from the use of this software.
38+ *
39+ * Permission is granted to anyone to use this software for any purpose,
40+ * including commercial applications, and to alter it and redistribute it
41+ * freely, subject to the following restrictions:
42+ *
43+ * 1. The origin of this software must not be misrepresented; you must not
44+ * claim that you wrote the original software. If you use this software
45+ * in a product, an acknowledgment in the product documentation would be
46+ * appreciated but is not required.
47+ *
48+ * 2. Altered source versions must be plainly marked as such, and must not be
49+ * misrepresented as being the original software.
50+ *
51+ * 3. This notice may not be removed or altered from any source
52+ * distribution.
53+ *
54+ */
55+ lisence_header: |
56+ /*
57+ * bchanl_panels.h
58+ *
59+ * Copyright (c) 2012 project bchan
60+ *
61+ * This software is provided 'as-is', without any express or implied
62+ * warranty. In no event will the authors be held liable for any damages
63+ * arising from the use of this software.
64+ *
65+ * Permission is granted to anyone to use this software for any purpose,
66+ * including commercial applications, and to alter it and redistribute it
67+ * freely, subject to the following restrictions:
68+ *
69+ * 1. The origin of this software must not be misrepresented; you must not
70+ * claim that you wrote the original software. If you use this software
71+ * in a product, an acknowledgment in the product documentation would be
72+ * appreciated but is not required.
73+ *
74+ * 2. Altered source versions must be plainly marked as such, and must not be
75+ * misrepresented as being the original software.
76+ *
77+ * 3. This notice may not be removed or altered from any source
78+ * distribution.
79+ *
80+ */
81+
82+panels:
83+ - panel_name: bchan_panels_saveconfirm
84+ lines:
85+ - items:
86+ - type: fixedtext
87+ text: 現在の内容は元の内容と異なっています。
88+ - items:
89+ - type: fixedtext
90+ text: 保存して編集を終了しますか?
91+ - type: null_item
92+ text:
93+ size:
94+ h: 16
95+ v: 16
96+ - layout: justification
97+ items:
98+ - type: button
99+ text: 取り消し
100+ name: cancel
101+ size:
102+ h: 96
103+ v: 24
104+ - type: button
105+ text: 保存しない
106+ name: ok_nosave
107+ size:
108+ h: 96
109+ v: 24
110+ - type: button
111+ text: 保存
112+ name: ok_save
113+ size:
114+ h: 96
115+ v: 24
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Show on old repository browser