/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#include <gui_generated/helppage_screen/HelpPageViewBase.hpp>
#include "BitmapDatabase.hpp"
#include <texts/TextKeysAndLanguages.hpp>
#include <touchgfx/Color.hpp>

HelpPageViewBase::HelpPageViewBase() :
    buttonCallback(this, &HelpPageViewBase::buttonCallbackHandler)
{

    SfondoPagHelp.setBitmap(touchgfx::Bitmap(BITMAP_SFONDO_ID));
    SfondoPagHelp.setPosition(0, 0, 480, 272);
    SfondoPagHelp.setOffset(0, 0);

    BackButtonInHelpPage.setXY(155, 204);
    BackButtonInHelpPage.setBitmaps(touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_ROUND_EDGE_SMALL_ID), touchgfx::Bitmap(BITMAP_BLUE_BUTTONS_ROUND_EDGE_SMALL_PRESSED_ID));
    BackButtonInHelpPage.setLabelText(touchgfx::TypedText(T_SINGLEUSEID4));
    BackButtonInHelpPage.setLabelColor(touchgfx::Color::getColorFrom24BitRGB(186, 31, 31));
    BackButtonInHelpPage.setLabelColorPressed(touchgfx::Color::getColorFrom24BitRGB(255, 255, 255));
    BackButtonInHelpPage.setAction(buttonCallback);

    textArea1.setXY(53, 57);
    textArea1.setColor(touchgfx::Color::getColorFrom24BitRGB(0, 0, 0));
    textArea1.setLinespacing(0);
    textArea1.setTypedText(touchgfx::TypedText(T_SINGLEUSEID5));

    add(SfondoPagHelp);
    add(BackButtonInHelpPage);
    add(textArea1);
}

void HelpPageViewBase::setupScreen()
{

}

void HelpPageViewBase::buttonCallbackHandler(const touchgfx::AbstractButton& src)
{
    if (&src == &BackButtonInHelpPage)
    {
        //Interaction1
        //When BackButtonInHelpPage clicked change screen to MainPage
        //Go to MainPage with no screen transition
        application().gotoMainPageScreenNoTransition();
    }
}
