1 /*******************************************************************************/
2 /*  This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this    */
3 /*  file by hand. Modifications to this file should only be made by running    */
4 /*  the Azure RTOS GUIX Studio application and re-generating the application   */
5 /*  specification file(s). For more information please refer to the Azure RTOS */
6 /*  GUIX Studio User Guide, or visit our web site at azure.com/rtos            */
7 /*                                                                             */
8 /*  GUIX Studio Revision 6.2.1.2                                               */
9 /*  Date (dd.mm.yyyy):  5. 6.2023   Time (hh:mm): 15:09                        */
10 /*******************************************************************************/
11 
12 
13 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "folder_output_test_MAIN_DISPLAY_resources.h"
16 #include "folder_output_test_SECONDARY_resources.h"
17 #include "folder_output_test_specifications.h"
18 
19 extern GX_WINDOW_ROOT MAIN_DISPLAY_root_window;
20 extern GX_WINDOW_ROOT SECONDARY_root_window;
21 MAIN_DISPLAY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK MAIN_DISPLAY_popup_modal_derived_1;
22 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_define;
23 SECONDARY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK SECONDARY_popup_modal_derived_1;
24 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_define;
25 extern GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_define;
26 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_1_define;
27 extern MAIN_DISPLAY_POPUP_MODAL_DERIVED_DERIVED_1_CONTROL_BLOCK MAIN_DISPLAY_popup_modal_derived_derived_1;
28 GX_TEMPLATE_PROPERTIES MAIN_DISPLAY_popup_modal_derived_1_properties =
29 {
30     &MAIN_DISPLAY_popup_modal_define,        /* base info                      */
31     gx_studio_window_create,                 /* base create function           */
32     {160, 120, 479, 359}                     /* widget size                    */
33 };
34 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_popup_modal_derived_1_next_button_10_properties =
35 {
36     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
37     GX_FONT_ID_BUTTON,                       /* font id                        */
38     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
39     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
40     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
41 };
42 GX_ML_TEXT_VIEW_PROPERTIES MAIN_DISPLAY_popup_modal_derived_1_text_view_4_properties =
43 {
44     GX_STRING_ID_MAIN_DISPLAY_STRING_102,    /* string id                      */
45     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
46     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
47     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
48     GX_COLOR_ID_TEXT,                        /* disabled text color            */
49     0,                                       /* whitespace                     */
50     0                                        /* line_space                     */
51 };
52 
53 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_1_text_view_4_define =
54 {
55     "text_view_4",
56     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
57     GX_ID_NONE,                              /* widget id                      */
58     #if defined(GX_WIDGET_USER_DATA)
59     0,                                       /* user data                      */
60     #endif
61     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
62     0,                                       /* status flags                   */
63     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
64     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
65     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
66     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
67     gx_studio_multi_line_text_view_create,     /* create function              */
68     GX_NULL,                                 /* drawing function override      */
69     GX_NULL,                                 /* event function override        */
70     {194, 206, 409, 247},                    /* widget size                    */
71     GX_NULL,                                 /* no next widget                 */
72     GX_NULL,                                 /* no child widgets               */
73     offsetof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_derived_1_text_view_4), /* control block */
74     (void *) &MAIN_DISPLAY_popup_modal_derived_1_text_view_4_properties /* extended properties */
75 };
76 
77 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_1_next_button_10_define =
78 {
79     "next_button_10",
80     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
81     IDB_NEXT,                                /* widget id                      */
82     #if defined(GX_WIDGET_USER_DATA)
83     0,                                       /* user data                      */
84     #endif
85     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
86     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
87     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
88     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
89     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
90     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
91     gx_studio_text_button_create,            /* create function                */
92     GX_NULL,                                 /* drawing function override      */
93     GX_NULL,                                 /* event function override        */
94     {362, 314, 441, 338},                    /* widget size                    */
95     &MAIN_DISPLAY_popup_modal_derived_1_text_view_4_define, /* next widget definition */
96     GX_NULL,                                 /* no child widgets               */
97     offsetof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_derived_1_next_button_10), /* control block */
98     (void *) &MAIN_DISPLAY_popup_modal_derived_1_next_button_10_properties /* extended properties */
99 };
100 
101 GX_STUDIO_ACTION MAIN_DISPLAY_popup_modal_derived_1__idb_next_gx_event_clicked_actions[2] = {
102     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_popup_modal_derived_derived_1, GX_NULL},
103     {0, 0, GX_NULL, GX_NULL, GX_NULL}
104 };
105 
106 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_popup_modal_derived_1_event_table[] = {
107     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_popup_modal_derived_1__idb_next_gx_event_clicked_actions},
108     {0, 0, GX_NULL}
109 };
110 
111 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_popup_modal_derived_1_event_chain = {gx_studio_MAIN_DISPLAY_popup_modal_derived_1_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_MAIN_DISPLAY_popup_modal_derived_1_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)112 static UINT gx_studio_MAIN_DISPLAY_popup_modal_derived_1_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
113 {
114     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_popup_modal_derived_1_event_chain));
115 }
116 
117 
118 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_1_define =
119 {
120     "MAIN_DISPLAY_popup_modal_derived_1",
121     GX_TYPE_TEMPLATE,                        /* widget type                    */
122     GX_ID_NONE,                              /* widget id                      */
123     #if defined(GX_WIDGET_USER_DATA)
124     0,                                       /* user data                      */
125     #endif
126     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
127     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
128     sizeof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK), /* control block size */
129     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
130     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
131     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
132     gx_studio_template_create,               /* create function                */
133     GX_NULL,                                 /* drawing function override      */
134     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_popup_modal_derived_1_event_process, /* event function override */
135     {160, 120, 479, 359},                    /* widget size                    */
136     GX_NULL,                                 /* next widget                    */
137     &MAIN_DISPLAY_popup_modal_derived_1_next_button_10_define, /* child widget */
138     0,                                       /* control block                  */
139     (void *) &MAIN_DISPLAY_popup_modal_derived_1_properties /* extended properties */
140 };
141 GX_TEMPLATE_PROPERTIES MAIN_DISPLAY_popup_modal_derived_properties =
142 {
143     &MAIN_DISPLAY_popup_modal_define,        /* base info                      */
144     gx_studio_window_create,                 /* base create function           */
145     {156, 120, 475, 359}                     /* widget size                    */
146 };
147 GX_ML_TEXT_VIEW_PROPERTIES MAIN_DISPLAY_popup_modal_derived_text_view_4_properties =
148 {
149     GX_STRING_ID_MAIN_DISPLAY_STRING_103,    /* string id                      */
150     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
151     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
152     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
153     GX_COLOR_ID_TEXT,                        /* disabled text color            */
154     0,                                       /* whitespace                     */
155     0                                        /* line_space                     */
156 };
157 
158 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_text_view_4_define =
159 {
160     "text_view_4",
161     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
162     GX_ID_NONE,                              /* widget id                      */
163     #if defined(GX_WIDGET_USER_DATA)
164     0,                                       /* user data                      */
165     #endif
166     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
167     0,                                       /* status flags                   */
168     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
169     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
170     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
171     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
172     gx_studio_multi_line_text_view_create,     /* create function              */
173     GX_NULL,                                 /* drawing function override      */
174     GX_NULL,                                 /* event function override        */
175     {196, 199, 411, 240},                    /* widget size                    */
176     GX_NULL,                                 /* no next widget                 */
177     GX_NULL,                                 /* no child widgets               */
178     offsetof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_derived_text_view_4), /* control block */
179     (void *) &MAIN_DISPLAY_popup_modal_derived_text_view_4_properties /* extended properties */
180 };
181 
182 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_define =
183 {
184     "MAIN_DISPLAY_popup_modal_derived",
185     GX_TYPE_TEMPLATE,                        /* widget type                    */
186     GX_ID_NONE,                              /* widget id                      */
187     #if defined(GX_WIDGET_USER_DATA)
188     0,                                       /* user data                      */
189     #endif
190     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
191     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
192     sizeof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_CONTROL_BLOCK), /* control block size */
193     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
194     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
195     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
196     gx_studio_template_create,               /* create function                */
197     GX_NULL,                                 /* drawing function override      */
198     GX_NULL,                                 /* event function override        */
199     {156, 120, 475, 359},                    /* widget size                    */
200     GX_NULL,                                 /* next widget                    */
201     &MAIN_DISPLAY_popup_modal_derived_text_view_4_define, /* child widget      */
202     0,                                       /* control block                  */
203     (void *) &MAIN_DISPLAY_popup_modal_derived_properties /* extended properties */
204 };
205 GX_TEMPLATE_PROPERTIES MAIN_DISPLAY_popup_modal_derived_derived_properties =
206 {
207     &MAIN_DISPLAY_popup_modal_derived_define,  /* base info                    */
208     gx_studio_template_create,               /* base create function           */
209     {160, 120, 479, 359}                     /* widget size                    */
210 };
211 GX_ML_TEXT_VIEW_PROPERTIES MAIN_DISPLAY_popup_modal_derived_derived_text_view_6_properties =
212 {
213     GX_STRING_ID_MAIN_DISPLAY_STRING_102,    /* string id                      */
214     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
215     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
216     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
217     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
218     0,                                       /* whitespace                     */
219     0                                        /* line_space                     */
220 };
221 
222 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_text_view_6_define =
223 {
224     "text_view_6",
225     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
226     GX_ID_NONE,                              /* widget id                      */
227     #if defined(GX_WIDGET_USER_DATA)
228     0,                                       /* user data                      */
229     #endif
230     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
231     0,                                       /* status flags                   */
232     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
233     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
234     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
235     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
236     gx_studio_multi_line_text_view_create,     /* create function              */
237     GX_NULL,                                 /* drawing function override      */
238     GX_NULL,                                 /* event function override        */
239     {178, 241, 426, 282},                    /* widget size                    */
240     GX_NULL,                                 /* no next widget                 */
241     GX_NULL,                                 /* no child widgets               */
242     0,                                       /* runtime control block          */
243     (void *) &MAIN_DISPLAY_popup_modal_derived_derived_text_view_6_properties /* extended properties */
244 };
245 
246 GX_STUDIO_ACTION MAIN_DISPLAY_popup_modal_derived_derived__idb_ok_gx_event_clicked_actions[2] = {
247     {GX_ACTION_TYPE_WINDOW_EXECUTE_STOP, GX_ACTION_FLAG_DYNAMIC_TARGET, &MAIN_DISPLAY_root_window,  &MAIN_DISPLAY_popup_modal_derived_derived_define, GX_NULL},
248     {0, 0, GX_NULL, GX_NULL, GX_NULL}
249 };
250 
251 
252 GX_STUDIO_ACTION MAIN_DISPLAY_popup_modal_derived_derived__idb_cancel_gx_event_clicked_actions[2] = {
253     {GX_ACTION_TYPE_WINDOW_EXECUTE_STOP, GX_ACTION_FLAG_DYNAMIC_TARGET, &MAIN_DISPLAY_root_window,  &MAIN_DISPLAY_popup_modal_derived_derived_define, GX_NULL},
254     {0, 0, GX_NULL, GX_NULL, GX_NULL}
255 };
256 
257 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_event_table[] = {
258     {GX_SIGNAL(IDB_OK, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_popup_modal_derived_derived__idb_ok_gx_event_clicked_actions},
259     {GX_SIGNAL(IDB_CANCEL, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_popup_modal_derived_derived__idb_cancel_gx_event_clicked_actions},
260     {0, 0, GX_NULL}
261 };
262 
263 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_popup_modal_derived_derived_event_chain = {gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)264 static UINT gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
265 {
266     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_popup_modal_derived_derived_event_chain));
267 }
268 
269 
270 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_define =
271 {
272     "MAIN_DISPLAY_popup_modal_derived_derived",
273     GX_TYPE_TEMPLATE,                        /* widget type                    */
274     ID_POPUP_MODAL,                          /* widget id                      */
275     #if defined(GX_WIDGET_USER_DATA)
276     0,                                       /* user data                      */
277     #endif
278     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags */
279     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
280     sizeof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_DERIVED_CONTROL_BLOCK), /* control block size */
281     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
282     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
283     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
284     gx_studio_template_create,               /* create function                */
285     GX_NULL,                                 /* drawing function override      */
286     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_event_process, /* event function override */
287     {160, 120, 479, 359},                    /* widget size                    */
288     GX_NULL,                                 /* next widget                    */
289     &MAIN_DISPLAY_popup_modal_derived_derived_text_view_6_define, /* child widget */
290     0,                                       /* control block                  */
291     (void *) &MAIN_DISPLAY_popup_modal_derived_derived_properties /* extended properties */
292 };
293 GX_TEMPLATE_PROPERTIES SECONDARY_popup_modal_derived_1_properties =
294 {
295     &SECONDARY_popup_modal_define,           /* base info                      */
296     gx_studio_window_create,                 /* base create function           */
297     {160, 120, 479, 359}                     /* widget size                    */
298 };
299 
300 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_derived_1_define =
301 {
302     "SECONDARY_popup_modal_derived_1",
303     GX_TYPE_TEMPLATE,                        /* widget type                    */
304     GX_ID_NONE,                              /* widget id                      */
305     #if defined(GX_WIDGET_USER_DATA)
306     0,                                       /* user data                      */
307     #endif
308     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
309     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
310     sizeof(SECONDARY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK), /* control block size */
311     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
312     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
313     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
314     gx_studio_template_create,               /* create function                */
315     GX_NULL,                                 /* drawing function override      */
316     GX_NULL,                                 /* event function override        */
317     {160, 120, 479, 359},                    /* widget size                    */
318     GX_NULL,                                 /* next widget                    */
319     GX_NULL,                                 /* child widget                   */
320     0,                                       /* control block                  */
321     (void *) &SECONDARY_popup_modal_derived_1_properties /* extended properties */
322 };
323 #undef GUIX_STUDIO_GENERATED_FILE
324