Skip to content

Commit

Permalink
Update GUIX Studio test golden files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-ms committed Dec 22, 2023
1 parent dc20685 commit 1d7b3a4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 54 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): 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 */
/*******************************************************************************/


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


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


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

0 comments on commit 1d7b3a4

Please sign in to comment.