APPS calibration screen
This commit is contained in:
@ -0,0 +1,99 @@
|
||||
/*********************************************************************************/
|
||||
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
|
||||
/*********************************************************************************/
|
||||
#ifndef APPSVIEWBASE_HPP
|
||||
#define APPSVIEWBASE_HPP
|
||||
|
||||
#include <gui/common/FrontendApplication.hpp>
|
||||
#include <mvp/View.hpp>
|
||||
#include <gui/apps_screen/APPSPresenter.hpp>
|
||||
#include <touchgfx/widgets/Box.hpp>
|
||||
#include <touchgfx/widgets/graph/GraphWrapAndOverwrite.hpp>
|
||||
#include <touchgfx/widgets/graph/GraphElements.hpp>
|
||||
#include <touchgfx/widgets/graph/GraphLabels.hpp>
|
||||
#include <touchgfx/widgets/canvas/PainterRGB565.hpp>
|
||||
#include <touchgfx/widgets/TextArea.hpp>
|
||||
#include <touchgfx/widgets/TextAreaWithWildcard.hpp>
|
||||
|
||||
class APPSViewBase : public touchgfx::View<APPSPresenter>
|
||||
{
|
||||
public:
|
||||
APPSViewBase();
|
||||
virtual ~APPSViewBase();
|
||||
virtual void setupScreen();
|
||||
virtual void handleKeyEvent(uint8_t key);
|
||||
|
||||
/*
|
||||
* Virtual Action Handlers
|
||||
*/
|
||||
virtual void selectPrevField()
|
||||
{
|
||||
// Override and implement this function in APPS
|
||||
}
|
||||
virtual void selectNextField()
|
||||
{
|
||||
// Override and implement this function in APPS
|
||||
}
|
||||
virtual void decField()
|
||||
{
|
||||
// Override and implement this function in APPS
|
||||
}
|
||||
virtual void incField()
|
||||
{
|
||||
// Override and implement this function in APPS
|
||||
}
|
||||
virtual void confirmField()
|
||||
{
|
||||
// Override and implement this function in APPS
|
||||
}
|
||||
virtual void switchPrecision()
|
||||
{
|
||||
// Override and implement this function in APPS
|
||||
}
|
||||
|
||||
protected:
|
||||
FrontendApplication& application() {
|
||||
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
|
||||
}
|
||||
|
||||
/*
|
||||
* Member Declarations
|
||||
*/
|
||||
touchgfx::Box __background;
|
||||
touchgfx::GraphWrapAndOverwrite<50> apps0Graph;
|
||||
touchgfx::GraphElementGridY apps0GraphMajorYAxisGrid;
|
||||
touchgfx::GraphLabelsY apps0GraphMajorYAxisLabel;
|
||||
touchgfx::GraphElementLine apps0GraphLine1;
|
||||
touchgfx::PainterRGB565 apps0GraphLine1Painter;
|
||||
touchgfx::GraphElementVerticalGapLine apps0GraphVerticalFrontline;
|
||||
touchgfx::GraphWrapAndOverwrite<50> apps1Graph;
|
||||
touchgfx::GraphElementLine apps1GraphLine1;
|
||||
touchgfx::PainterRGB565 apps1GraphLine1Painter;
|
||||
touchgfx::TextArea title;
|
||||
touchgfx::TextArea apps0;
|
||||
touchgfx::TextArea apps1;
|
||||
touchgfx::TextArea min;
|
||||
touchgfx::TextArea max;
|
||||
touchgfx::TextArea cur;
|
||||
touchgfx::Box apps1max_bg;
|
||||
touchgfx::Box apps0max_bg;
|
||||
touchgfx::Box apps1min_bg;
|
||||
touchgfx::Box apps0min_bg;
|
||||
touchgfx::TextAreaWithOneWildcard apps1cur;
|
||||
touchgfx::TextAreaWithOneWildcard apps0cur;
|
||||
touchgfx::TextAreaWithOneWildcard apps1max;
|
||||
touchgfx::TextAreaWithOneWildcard apps0max;
|
||||
touchgfx::TextAreaWithOneWildcard apps1min;
|
||||
touchgfx::TextAreaWithOneWildcard apps0min;
|
||||
|
||||
private:
|
||||
|
||||
/*
|
||||
* Canvas Buffer Size
|
||||
*/
|
||||
static const uint32_t CANVAS_BUFFER_SIZE = 7200;
|
||||
uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
|
||||
|
||||
};
|
||||
|
||||
#endif // APPSVIEWBASE_HPP
|
||||
@ -41,6 +41,9 @@ public:
|
||||
// Endurance
|
||||
void gotoEnduranceScreenNoTransition();
|
||||
|
||||
// APPS
|
||||
void gotoAPPSScreenNoTransition();
|
||||
|
||||
protected:
|
||||
touchgfx::Callback<FrontendApplicationBase> transitionCallback;
|
||||
FrontendHeap& frontendHeap;
|
||||
@ -66,6 +69,9 @@ protected:
|
||||
|
||||
// Endurance
|
||||
void gotoEnduranceScreenNoTransitionImpl();
|
||||
|
||||
// APPS
|
||||
void gotoAPPSScreenNoTransitionImpl();
|
||||
};
|
||||
|
||||
#endif // FRONTENDAPPLICATIONBASE_HPP
|
||||
|
||||
@ -26,6 +26,8 @@
|
||||
#include <gui/sdc_screen/SDCPresenter.hpp>
|
||||
#include <gui/endurance_screen/EnduranceView.hpp>
|
||||
#include <gui/endurance_screen/EndurancePresenter.hpp>
|
||||
#include <gui/apps_screen/APPSView.hpp>
|
||||
#include <gui/apps_screen/APPSPresenter.hpp>
|
||||
|
||||
|
||||
/**
|
||||
@ -55,7 +57,8 @@ public:
|
||||
touchgfx::meta::TypeList< VehicleConfigView,
|
||||
touchgfx::meta::TypeList< SDCView,
|
||||
touchgfx::meta::TypeList< EnduranceView,
|
||||
touchgfx::meta::Nil > > > > > >
|
||||
touchgfx::meta::TypeList< APPSView,
|
||||
touchgfx::meta::Nil > > > > > > >
|
||||
> GeneratedViewTypes;
|
||||
|
||||
/**
|
||||
@ -74,7 +77,8 @@ public:
|
||||
touchgfx::meta::TypeList< VehicleConfigPresenter,
|
||||
touchgfx::meta::TypeList< SDCPresenter,
|
||||
touchgfx::meta::TypeList< EndurancePresenter,
|
||||
touchgfx::meta::Nil > > > > > >
|
||||
touchgfx::meta::TypeList< APPSPresenter,
|
||||
touchgfx::meta::Nil > > > > > > >
|
||||
> GeneratedPresenterTypes;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user