/*********************************************************************
*                     SEGGER Microcontroller GmbH                    *
*        Solutions for real time microcontroller applications        *
**********************************************************************
*                                                                    *
*        (c) 1996 - 2022  SEGGER Microcontroller GmbH                *
*                                                                    *
*        Internet: www.segger.com    Support:  support@segger.com    *
*                                                                    *
**********************************************************************
----------------------------------------------------------------------
File        : ID_MAIN_SCREEN_BUC.c
Purpose     : Generated file do NOT edit!
---------------------------END-OF-HEADER------------------------------
*/

#include "Resource.h"
#include "ID_MAIN_SCREEN_BUC.h"

/*********************************************************************
*
*       Static data
*
**********************************************************************
*/
/*********************************************************************
*
*       _aCreate
*/
static APPW_CREATE_ITEM _aCreate[] = {
  { WM_OBJECT_WINDOW_Create,
    ID_MAIN_SCREEN_BUC, 0,
    { { { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      800, 480, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_BOX_Create,
    ID_BOX_MAIN_MENU, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, -1, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
      },
      0, 0, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_BUTTON_Create,
    ID_BUTTON_HHT_MAIN_MENU, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 190, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 260, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      150, 150, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_BUTTON_Create,
    ID_BUTTON_BUC_SETUP, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 191, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 70, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      150, 150, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_TEXT_Create,
    ID_TEXT_SYS_INFO, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 341, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 260, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      28, 150, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_IMAGE_Create,
    ID_IMAGE_BEL_LOGO, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 382, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      90, 98, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_IMAGE_Create,
    ID_IMAGE_BUC_IMAGE, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      90, 135, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_TEXT_Create,
    ID_TEXT_BUC_SETUP, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 341, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 70, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      28, 150, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_TEXT_Create,
    ID_TEXT_BATTERY_PERCENTAGE, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 1, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 146, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      27, 44, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_BUTTON_Create,
    ID_BUTTON_BATTERY_ICON, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 179, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      23, 50, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_BUTTON_Create,
    ID_BUTTON_NETWORK_ICON, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 0, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 296, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      45, 50, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_TEXT_Create,
    ID_TEXT_NW_STATUS, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 10, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 240, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      27, 73, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_BUTTON_Create,
    ID_BUTTON_BUC_STATUS, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 450, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 260, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      150, 150, 0, 0, 0, 0
    },
  },
  { WM_OBJECT_TEXT_Create,
    ID_BUTT_BUC_STATUS, ID_MAIN_SCREEN_BUC,
    { { { DISPOSE_MODE_REL_PARENT, 600, 0, 0 },
        { DISPOSE_MODE_REL_PARENT, 260, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
        { DISPOSE_MODE_NULL, 0, 0, 0 },
      },
      28, 150, 0, 0, 0, 0
    },
  },
};

/*********************************************************************
*
*       _aSetup
*/
static const APPW_SETUP_ITEM _aSetup[] = {
  { ID_MAIN_SCREEN_BUC,         APPW_SET_PROP_MOTIONH,      { ARG_VP(0, NULL),
                                                              ARG_VP(0, NULL),
                                                              ARG_V(300) } },
  { ID_MAIN_SCREEN_BUC,         APPW_SET_PROP_MOTIONV,      { ARG_VP(0, NULL),
                                                              ARG_VP(0, NULL),
                                                              ARG_V(300) } },
  { ID_BOX_MAIN_MENU,           APPW_SET_PROP_COLOR,        { ARG_V(0xffaaffff) } },
  { ID_BUTTON_HHT_MAIN_MENU,    APPW_SET_PROP_SBITMAPS,     { ARG_VP(0, acHHT_INFO_bgr), } },
  { ID_BUTTON_HHT_MAIN_MENU,    APPW_SET_PROP_COLORS,       { ARG_V(0xffc0c0c0),
                                                              ARG_V(0xffc0c0c0),
                                                              ARG_V(GUI_INVALID_COLOR) } },
  { ID_BUTTON_BUC_SETUP,        APPW_SET_PROP_SBITMAPS,     { ARG_VP(0, acbuc_setup_bgr), } },
  { ID_BUTTON_BUC_SETUP,        APPW_SET_PROP_COLORS,       { ARG_V(0xffc0c0c0),
                                                              ARG_V(0xffc0c0c0),
                                                              ARG_V(GUI_INVALID_COLOR) } },
  { ID_TEXT_SYS_INFO,           APPW_SET_PROP_COLOR,        { ARG_V(GUI_BLUE) } },
  { ID_TEXT_SYS_INFO,           APPW_SET_PROP_ALIGNTEXT,    { ARG_V(GUI_ALIGN_HCENTER | GUI_ALIGN_VCENTER),
                                                              ARG_V(0),
                                                              ARG_V(0) } },
  { ID_TEXT_SYS_INFO,           APPW_SET_PROP_FONT,         { ARG_VP(0, acNotoSans_32_Normal_EXT_AA4) } },
  { ID_TEXT_SYS_INFO,           APPW_SET_PROP_WRAP,         { ARG_V(0) } },
  { ID_TEXT_SYS_INFO,           APPW_SET_PROP_ROTATION,     { ARG_P(GUI_ROTATE_CCW) } },
  { ID_TEXT_SYS_INFO,           APPW_SET_PROP_TEXTID,       { ARG_V(ID_HEAD_BUT_HHT_MENU) } },
  { ID_IMAGE_BEL_LOGO,          APPW_SET_PROP_TILE,         { ARG_V(0) } },
  { ID_IMAGE_BEL_LOGO,          APPW_SET_PROP_SBITMAP,      { ARG_VP(0, aclogo2_100_100_bgr),
                                                              ARG_V(4997), } },
  { ID_IMAGE_BUC_IMAGE,         APPW_SET_PROP_TILE,         { ARG_V(0) } },
  { ID_IMAGE_BUC_IMAGE,         APPW_SET_PROP_SBITMAP,      { ARG_VP(0, acBUC_IMAGE_135_90_V_bgr),
                                                              ARG_V(21805), } },
  { ID_TEXT_BUC_SETUP,          APPW_SET_PROP_COLOR,        { ARG_V(GUI_BLUE) } },
  { ID_TEXT_BUC_SETUP,          APPW_SET_PROP_ALIGNTEXT,    { ARG_V(GUI_ALIGN_HCENTER | GUI_ALIGN_VCENTER),
                                                              ARG_V(0),
                                                              ARG_V(0) } },
  { ID_TEXT_BUC_SETUP,          APPW_SET_PROP_TEXTID,       { ARG_V(ID_TEXT_BUTTON_BUC_SETUP) } },
  { ID_TEXT_BUC_SETUP,          APPW_SET_PROP_FONT,         { ARG_VP(0, acNotoSans_32_Normal_EXT_AA4) } },
  { ID_TEXT_BUC_SETUP,          APPW_SET_PROP_WRAP,         { ARG_V(0) } },
  { ID_TEXT_BUC_SETUP,          APPW_SET_PROP_ROTATION,     { ARG_P(GUI_ROTATE_CCW) } },
  { ID_TEXT_BATTERY_PERCENTAGE, APPW_SET_PROP_COLOR,        { ARG_V(GUI_BLUE) } },
  { ID_TEXT_BATTERY_PERCENTAGE, APPW_SET_PROP_ALIGNTEXT,    { ARG_V(GUI_ALIGN_HCENTER | GUI_ALIGN_VCENTER),
                                                              ARG_V(0),
                                                              ARG_V(0) } },
  { ID_TEXT_BATTERY_PERCENTAGE, APPW_SET_PROP_ROTATION,     { ARG_P(GUI_ROTATE_CCW) } },
  { ID_TEXT_BATTERY_PERCENTAGE, APPW_SET_PROP_FONT,         { ARG_VP(0, acNotoSans_24_Normal_EXT_AA4) } },
  { ID_TEXT_BATTERY_PERCENTAGE, APPW_SET_PROP_TEXTID,       { ARG_V(ID_RTEXT_BATTERY_PERCENTAGE) } },
  { ID_BUTTON_BATTERY_ICON,     APPW_SET_PROP_SBITMAPS,     { ARG_VP(0, acb1),
                                                              ARG_VP(0, acb1), } },
  { ID_BUTTON_NETWORK_ICON,     APPW_SET_PROP_SBITMAPS,     { ARG_VP(0, acnw_bgr),
                                                              ARG_VP(0, acnw_bgr), } },
  { ID_BUTTON_NETWORK_ICON,     APPW_SET_PROP_COLORS,       { ARG_V(0xffc0c0c0),
                                                              ARG_V(0xffc0c0c0),
                                                              ARG_V(GUI_INVALID_COLOR) } },
  { ID_TEXT_NW_STATUS,          APPW_SET_PROP_COLOR,        { ARG_V(GUI_BLUE) } },
  { ID_TEXT_NW_STATUS,          APPW_SET_PROP_ALIGNTEXT,    { ARG_V(GUI_ALIGN_HCENTER | GUI_ALIGN_VCENTER),
                                                              ARG_V(0),
                                                              ARG_V(0) } },
  { ID_TEXT_NW_STATUS,          APPW_SET_PROP_ROTATION,     { ARG_P(GUI_ROTATE_CCW) } },
  { ID_TEXT_NW_STATUS,          APPW_SET_PROP_FONT,         { ARG_VP(0, acNotoSans_24_Normal_EXT_AA4) } },
  { ID_TEXT_NW_STATUS,          APPW_SET_PROP_TEXTID,       { ARG_V(ID_RTEXT_NETWORK_STATUS) } },
  { ID_BUTTON_BUC_STATUS,       APPW_SET_PROP_COLORS,       { ARG_V(GUI_BLUE),
                                                              ARG_V(GUI_INVALID_COLOR),
                                                              ARG_V(GUI_INVALID_COLOR) } },
  { ID_BUTTON_BUC_STATUS,       APPW_SET_PROP_FONT,         { ARG_VP(0, acNotoSans_24_Normal_EXT_AA4) } },
  { ID_BUTTON_BUC_STATUS,       APPW_SET_PROP_ALIGNTEXT,    { ARG_V(GUI_ALIGN_LEFT | GUI_ALIGN_VCENTER),
                                                              ARG_V(0),
                                                              ARG_V(0) } },
  { ID_BUTTON_BUC_STATUS,       APPW_SET_PROP_SBITMAPS,     { ARG_VP(0, acBuc_Status_bgr), } },
  { ID_BUTT_BUC_STATUS,         APPW_SET_PROP_COLOR,        { ARG_V(GUI_BLUE) } },
  { ID_BUTT_BUC_STATUS,         APPW_SET_PROP_ALIGNTEXT,    { ARG_V(GUI_ALIGN_HCENTER | GUI_ALIGN_VCENTER),
                                                              ARG_V(0),
                                                              ARG_V(0) } },
  { ID_BUTT_BUC_STATUS,         APPW_SET_PROP_TEXTID,       { ARG_V(ID_RTEXT_BUC_STATUS) } },
  { ID_BUTT_BUC_STATUS,         APPW_SET_PROP_FONT,         { ARG_VP(0, acNotoSans_32_Normal_EXT_AA4) } },
  { ID_BUTT_BUC_STATUS,         APPW_SET_PROP_WRAP,         { ARG_V(0) } },
  { ID_BUTT_BUC_STATUS,         APPW_SET_PROP_ROTATION,     { ARG_P(GUI_ROTATE_CCW) } },
};

/*********************************************************************
*
*       _aAction
*/
static const APPW_ACTION_ITEM _aAction[] = {
  { ID_BUTTON_HHT_MAIN_MENU,    WM_NOTIFICATION_CLICKED,          0,                          APPW_JOB_SHOWSCREEN,     ID_MAIN_SCREEN_BUC__ID_BUTTON_BUTT_SYS_INFO__WM_NOTIFICATION_CLICKED,
    { ARG_V(ID_SCREEN_HHT_MAIN_MENU),
    }, 0, NULL
  },
  { ID_BUTTON_BUC_SETUP,        WM_NOTIFICATION_CLICKED,          0,                          APPW_JOB_SHOWSCREEN,     ID_MAIN_SCREEN_BUC__ID_BUTTON_SETUP__WM_NOTIFICATION_CLICKED,
    { ARG_V(ID_SCREEN_BUC_SETUP),
    }, 0, NULL
  },
  { ID_MAIN_SCREEN_BUC,         APPW_NOTIFICATION_MOTION,         ID_VAR_SYS_ID,              APPW_JOB_SETVALUE,       ID_MAIN_SCREEN_BUC__APPW_NOTIFICATION_MOTION,
    { ARG_V(0),
    }, 0, NULL
  },
  { ID_TEXT_BATTERY_PERCENTAGE, WM_NOTIFICATION_VALUE_CHANGED,    ID_TEXT_BATTERY_PERCENTAGE, APPW_JOB_SETVALUE,       ID_MAIN_SCREEN_BUC__ID_TEXT_BATTERY_PERCENTAGE__WM_NOTIFICATION_VALUE_CHANGED__ID_TEXT_BATTERY_PERCENTAGE__APPW_JOB_SETVALUE,
    { ARG_V(0),
    }, 0, NULL
  },
  { ID_TEXT_NW_STATUS,          WM_NOTIFICATION_TEXT_CHANGED,     ID_TEXT_NW_STATUS,          APPW_JOB_SETTEXT,        ID_MAIN_SCREEN_BUC__ID_TEXT_NW_STATUS__WM_NOTIFICATION_TEXT_CHANGED__ID_TEXT_NW_STATUS__APPW_JOB_SETTEXT,
    { ARG_V(-1),
    }, 0, NULL
  },
  { ID_BUTTON_BUC_STATUS,       WM_NOTIFICATION_CLICKED,          0,                          APPW_JOB_SHOWSCREEN,     ID_MAIN_SCREEN_BUC__ID_BUTTON_BUC_STATUS__WM_NOTIFICATION_CLICKED,
    { ARG_V(ID_SCREEN_BUC_STATUS),
    }, 0, NULL
  },
};

/*********************************************************************
*
*       Public data
*
**********************************************************************
*/
/*********************************************************************
*
*       ID_MAIN_SCREEN_BUC_RootInfo
*/
APPW_ROOT_INFO ID_MAIN_SCREEN_BUC_RootInfo = {
  ID_MAIN_SCREEN_BUC,
  _aCreate, GUI_COUNTOF(_aCreate),
  _aSetup,  GUI_COUNTOF(_aSetup),
  _aAction, GUI_COUNTOF(_aAction),
  cbID_MAIN_SCREEN_BUC,
  0
};

/*************************** End of file ****************************/
