mirror of
https://github.com/azure-rtos/guix.git
synced 2025-01-14 06:43:20 +08:00
Improve logic of GUIX Studio generated gx_studio_auto_event_handler. (#95)
This commit is contained in:
parent
1dbd7b7748
commit
b374182616
@ -1381,21 +1381,6 @@ CString out("");
|
||||
|
||||
/* Set output file to the default file: Empty means default output file. */
|
||||
SetOutFile(out);
|
||||
|
||||
out = "static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)\n"
|
||||
"{\n"
|
||||
" GX_WIDGET *parent = target1->gx_widget_parent;\n"
|
||||
" if (parent)\n"
|
||||
" {\n"
|
||||
" gx_widget_detach(target1);\n"
|
||||
" gx_widget_attach(parent, target2);\n"
|
||||
" if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)\n"
|
||||
" {\n"
|
||||
" gx_widget_delete(target1);\n"
|
||||
" }\n"
|
||||
" }\n"
|
||||
"}\n\n";
|
||||
FileWrite(out);
|
||||
|
||||
out = "static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)\n"
|
||||
"{\n"
|
||||
@ -1586,7 +1571,17 @@ CString out("");
|
||||
" break;\n\n"
|
||||
" case GX_ACTION_TYPE_TOGGLE:\n"
|
||||
" target = gx_studio_action_target_get(widget, action);\n"
|
||||
" gx_studio_screen_toggle(widget, target);\n"
|
||||
" parent = widget->gx_widget_parent;\n"
|
||||
" if (parent)\n"
|
||||
" {\n"
|
||||
" gx_widget_detach(widget);\n"
|
||||
" gx_widget_attach(parent, target);\n"
|
||||
" if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)\n"
|
||||
" {\n"
|
||||
" gx_widget_delete(widget);\n"
|
||||
" widget = GX_NULL;\n"
|
||||
" }\n"
|
||||
" }\n"
|
||||
" break;\n\n"
|
||||
" case GX_ACTION_TYPE_SHOW:\n"
|
||||
" target = gx_studio_action_target_get(widget, action);\n"
|
||||
@ -1663,7 +1658,17 @@ CString out("");
|
||||
" {\n"
|
||||
" target = gx_studio_action_target_get(widget, action);\n"
|
||||
" }\n"
|
||||
" gx_studio_screen_toggle(widget, target);\n"
|
||||
" parent = widget->gx_widget_parent;\n"
|
||||
" if (parent)\n"
|
||||
" {\n"
|
||||
" gx_widget_detach(widget);\n"
|
||||
" gx_widget_attach(parent, target);\n"
|
||||
" if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)\n"
|
||||
" {\n"
|
||||
" gx_widget_delete(widget);\n"
|
||||
" widget = GX_NULL;\n"
|
||||
" }\n"
|
||||
" }\n"
|
||||
" break;\n\n"
|
||||
" case GX_ACTION_TYPE_SHOW:\n"
|
||||
" target = gx_studio_action_target_get(widget, action);\n"
|
||||
@ -1728,7 +1733,7 @@ CString out("");
|
||||
" entry++;\n"
|
||||
" }\n\n"
|
||||
|
||||
" if (record->chain_event_handler)\n"
|
||||
" if (widget && record->chain_event_handler)\n"
|
||||
" {\n"
|
||||
" status = record->chain_event_handler(widget, event_ptr);\n"
|
||||
" }\n"
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:33 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:01 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -51,20 +51,6 @@ GX_STUDIO_DISPLAY_INFO demo_guix_car_infotainment_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -267,7 +253,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -340,7 +336,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:33 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:01 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -65,20 +65,6 @@ GX_STUDIO_DISPLAY_INFO demo_guix_home_automation_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -281,7 +267,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -354,7 +350,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:33 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:01 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -49,20 +49,6 @@ GX_STUDIO_DISPLAY_INFO demo_guix_industrial_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -265,7 +251,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -338,7 +334,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:33 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:01 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -48,20 +48,6 @@ GX_STUDIO_DISPLAY_INFO guix_medical_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -264,7 +250,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -337,7 +333,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:33 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:01 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -52,20 +52,6 @@ GX_STUDIO_DISPLAY_INFO guix_widget_types_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -268,7 +254,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -341,7 +337,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 14:17 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:01 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -58,20 +58,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -274,7 +260,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -347,7 +343,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:54 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:02 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -56,20 +56,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_32argb_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -272,7 +258,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -345,7 +341,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:54 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:02 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -57,20 +57,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_565bgr_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -273,7 +259,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -346,7 +342,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 21.11.2023 Time (hh:mm): 15:23 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:02 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -54,20 +54,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_5_4_0_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -234,7 +220,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
|
||||
case GX_ACTION_TYPE_TOGGLE:
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -279,7 +275,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 21.11.2023 Time (hh:mm): 15:23 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:02 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -54,20 +54,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_5_4_1_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -234,7 +220,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
|
||||
case GX_ACTION_TYPE_TOGGLE:
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -279,7 +275,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 21.11.2023 Time (hh:mm): 15:23 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:02 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -54,20 +54,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_5_4_2_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -234,7 +220,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
|
||||
case GX_ACTION_TYPE_TOGGLE:
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -279,7 +275,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 21.11.2023 Time (hh:mm): 15:23 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:02 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -55,20 +55,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_5_5_1_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -271,7 +257,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -344,7 +340,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:54 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:03 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -56,20 +56,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_defined_5_4_0_compatibility_display_table[1]
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -272,7 +258,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -345,7 +341,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:54 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:03 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -54,20 +54,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_execute_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -270,7 +256,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -343,7 +339,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:54 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:03 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -55,20 +55,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_synergy_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -271,7 +257,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -344,7 +340,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:54 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:03 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -55,20 +55,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_synergy_16bpp_flip_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -271,7 +257,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -344,7 +340,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:55 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:03 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -54,20 +54,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_synergy_dave_disabled_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -270,7 +256,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -343,7 +339,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:55 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:03 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -55,20 +55,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_synergy_565rgb_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -271,7 +257,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -344,7 +340,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 21.11.2023 Time (hh:mm): 15:24 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:03 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -53,20 +53,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_synergy_5_4_2_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -233,7 +219,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
|
||||
case GX_ACTION_TYPE_TOGGLE:
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -278,7 +274,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:56 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:04 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -48,20 +48,6 @@ GX_STUDIO_DISPLAY_INFO guix_medical_mouse_support_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -264,7 +250,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -337,7 +333,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:57 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:05 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -60,20 +60,6 @@ GX_STUDIO_DISPLAY_INFO partial_frame_buffer_16bpp_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -276,7 +262,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -349,7 +345,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:58 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:06 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -49,20 +49,6 @@ GX_STUDIO_DISPLAY_INFO standalone_binres_load_16bpp_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -265,7 +251,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -338,7 +334,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:58 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:06 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -50,20 +50,6 @@ GX_STUDIO_DISPLAY_INFO system_screen_stack_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -266,7 +252,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -339,7 +335,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:58 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:06 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -48,20 +48,6 @@ GX_STUDIO_DISPLAY_INFO template_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -264,7 +250,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -337,7 +333,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 22.11.2023 Time (hh:mm): 10:45 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 15:56 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -52,20 +52,6 @@ GX_STUDIO_DISPLAY_INFO all_widgets_execute_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -232,7 +218,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
|
||||
case GX_ACTION_TYPE_TOGGLE:
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -277,7 +273,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 21.11.2023 Time (hh:mm): 18:19 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 16:00 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -50,20 +50,6 @@ GX_STUDIO_DISPLAY_INFO template_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -266,7 +252,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -339,7 +335,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 21.11.2023 Time (hh:mm): 18:01 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 15:57 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -46,20 +46,6 @@ GX_STUDIO_DISPLAY_INFO trigger_target_rename_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -226,7 +212,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
|
||||
case GX_ACTION_TYPE_TOGGLE:
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -271,7 +267,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:34 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:07 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -49,20 +49,6 @@ GX_STUDIO_DISPLAY_INFO demo_guix_menu_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -265,7 +251,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -338,7 +334,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@
|
||||
/* specification file(s). For more information please refer to the Azure RTOS */
|
||||
/* GUIX Studio User Guide, or visit our web site at azure.com/rtos */
|
||||
/* */
|
||||
/* GUIX Studio Revision 6.3.0.0 */
|
||||
/* Date (dd.mm.yyyy): 24.11.2023 Time (hh:mm): 16:34 */
|
||||
/* GUIX Studio Revision 6.3.0.1 */
|
||||
/* Date (dd.mm.yyyy): 22.12.2023 Time (hh:mm): 16:07 */
|
||||
/*******************************************************************************/
|
||||
|
||||
|
||||
@ -51,20 +51,6 @@ GX_STUDIO_DISPLAY_INFO demo_guix_transitions_display_table[1] =
|
||||
}
|
||||
};
|
||||
|
||||
static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
|
||||
{
|
||||
GX_WIDGET *parent = target1->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(target1);
|
||||
gx_widget_attach(parent, target2);
|
||||
if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(target1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
|
||||
{
|
||||
GX_WIDGET *parent = GX_NULL;
|
||||
@ -267,7 +253,17 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
{
|
||||
target = gx_studio_action_target_get(widget, action);
|
||||
}
|
||||
gx_studio_screen_toggle(widget, target);
|
||||
parent = widget->gx_widget_parent;
|
||||
if (parent)
|
||||
{
|
||||
gx_widget_detach(widget);
|
||||
gx_widget_attach(parent, target);
|
||||
if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
|
||||
{
|
||||
gx_widget_delete(widget);
|
||||
widget = GX_NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case GX_ACTION_TYPE_SHOW:
|
||||
@ -340,7 +336,7 @@ UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CON
|
||||
entry++;
|
||||
}
|
||||
|
||||
if (record->chain_event_handler)
|
||||
if (widget && record->chain_event_handler)
|
||||
{
|
||||
status = record->chain_event_handler(widget, event_ptr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user