/*
	Copyright (c) 2024 PTC Inc. and/or Its Subsidiary Companies. All Rights Reserved.
*/

#include <ProToolkit.h>
#include <ProMenu.h>

#include <TestError.h>

int UserUIMenuSetup();
extern ProError UserUIListImplement();
extern ProError UserUIVisibilityExample();
extern ProError UserUITableRedesignExample();
extern ProError UserUITableSelectionExample();
extern ProError UserUITableComponentExample();
extern int      UserMenuDeleteAndPop();

int UserUIMenuSetup()
{
  ProError status;
  int menu_id, action;

  ProMenuFileRegister("UGUI","ugui.mnu",&menu_id);

  ProMenubuttonActionSet("UGUI","-UIList Implement", (ProMenubuttonAction)UserUIListImplement,NULL,0);
  
  ProMenubuttonActionSet ("UGUI", "-UI Visibility", (ProMenubuttonAction)UserUIVisibilityExample, NULL, 0);

  ProMenubuttonActionSet ("UGUI", "-UI Table Redesign", (ProMenubuttonAction)UserUITableRedesignExample, NULL, 0);

  ProMenubuttonActionSet ("UGUI", "-UI Table Selection", (ProMenubuttonAction)UserUITableSelectionExample, NULL, 0);

  ProMenubuttonActionSet ("UGUI", "-UI Table Components", (ProMenubuttonAction)UserUITableComponentExample, NULL, 0);

  status = ProMenubuttonActionSet("UGUI", "-Done/Return",
     (ProMenubuttonAction)UserMenuDeleteAndPop, NULL,0);
 
  status = ProMenubuttonActionSet("UGUI", "UGUI",
     (ProMenubuttonAction)UserMenuDeleteAndPop, NULL, 0);
 
  status = ProMenuPush();
      
  status = ProMenuCreate(PROMENUTYPE_MAIN, "UGUI", &menu_id);
 
  status = ProMenuProcess("UGUI", &action);
 
  return (0);
}