Skip to content

Commit

Permalink
Update output resource files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-ms committed Dec 22, 2023
1 parent 1ff9c71 commit dc20685
Show file tree
Hide file tree
Showing 26 changed files with 363 additions and 467 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/*******************************************************************************/


Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/*******************************************************************************/


Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}
Expand Down
32 changes: 14 additions & 18 deletions samples/demo_guix_industrial/demo_guix_industrial_specifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/*******************************************************************************/


Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}
Expand Down
32 changes: 14 additions & 18 deletions samples/demo_guix_medical/guix_medical_specifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/*******************************************************************************/


Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}
Expand Down
32 changes: 14 additions & 18 deletions samples/demo_guix_widget_types/guix_widget_types_specifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/*******************************************************************************/


Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}
Expand Down
30 changes: 13 additions & 17 deletions test/example_internal/all_widgets/all_widgets_specifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/*******************************************************************************/


Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}
Expand Down
Loading

0 comments on commit dc20685

Please sign in to comment.