Get started on driver view
This commit is contained in:
@ -26,6 +26,9 @@ public:
|
||||
// AMI
|
||||
void gotoAMIScreenNoTransition();
|
||||
|
||||
// DriverView
|
||||
void gotoDriverViewScreenNoTransition();
|
||||
|
||||
protected:
|
||||
touchgfx::Callback<FrontendApplicationBase> transitionCallback;
|
||||
FrontendHeap& frontendHeap;
|
||||
@ -36,6 +39,9 @@ protected:
|
||||
|
||||
// AMI
|
||||
void gotoAMIScreenNoTransitionImpl();
|
||||
|
||||
// DriverView
|
||||
void gotoDriverViewScreenNoTransitionImpl();
|
||||
};
|
||||
|
||||
#endif // FRONTENDAPPLICATIONBASE_HPP
|
||||
|
||||
@ -16,6 +16,8 @@
|
||||
#include <gui/missionselect_screen/MissionSelectPresenter.hpp>
|
||||
#include <gui/ami_screen/AMIView.hpp>
|
||||
#include <gui/ami_screen/AMIPresenter.hpp>
|
||||
#include <gui/driverview_screen/DriverViewView.hpp>
|
||||
#include <gui/driverview_screen/DriverViewPresenter.hpp>
|
||||
|
||||
|
||||
/**
|
||||
@ -40,7 +42,8 @@ public:
|
||||
*/
|
||||
typedef touchgfx::meta::TypeList< MissionSelectView,
|
||||
touchgfx::meta::TypeList< AMIView,
|
||||
touchgfx::meta::Nil >
|
||||
touchgfx::meta::TypeList< DriverViewView,
|
||||
touchgfx::meta::Nil > >
|
||||
> GeneratedViewTypes;
|
||||
|
||||
/**
|
||||
@ -54,7 +57,8 @@ public:
|
||||
*/
|
||||
typedef touchgfx::meta::TypeList< MissionSelectPresenter,
|
||||
touchgfx::meta::TypeList< AMIPresenter,
|
||||
touchgfx::meta::Nil >
|
||||
touchgfx::meta::TypeList< DriverViewPresenter,
|
||||
touchgfx::meta::Nil > >
|
||||
> GeneratedPresenterTypes;
|
||||
|
||||
/**
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
/*********************************************************************************/
|
||||
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
|
||||
/*********************************************************************************/
|
||||
#ifndef TIRETEMPBASE_HPP
|
||||
#define TIRETEMPBASE_HPP
|
||||
|
||||
#include <gui/common/FrontendApplication.hpp>
|
||||
#include <touchgfx/containers/Container.hpp>
|
||||
#include <touchgfx/widgets/Box.hpp>
|
||||
#include <touchgfx/widgets/TextAreaWithWildcard.hpp>
|
||||
|
||||
class TireTempBase : public touchgfx::Container
|
||||
{
|
||||
public:
|
||||
TireTempBase();
|
||||
virtual ~TireTempBase();
|
||||
virtual void initialize();
|
||||
|
||||
protected:
|
||||
FrontendApplication& application() {
|
||||
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
|
||||
}
|
||||
|
||||
/*
|
||||
* Member Declarations
|
||||
*/
|
||||
touchgfx::Box bg;
|
||||
touchgfx::TextAreaWithOneWildcard value;
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif // TIRETEMPBASE_HPP
|
||||
@ -0,0 +1,57 @@
|
||||
/*********************************************************************************/
|
||||
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
|
||||
/*********************************************************************************/
|
||||
#ifndef DRIVERVIEWVIEWBASE_HPP
|
||||
#define DRIVERVIEWVIEWBASE_HPP
|
||||
|
||||
#include <gui/common/FrontendApplication.hpp>
|
||||
#include <mvp/View.hpp>
|
||||
#include <gui/driverview_screen/DriverViewPresenter.hpp>
|
||||
#include <touchgfx/widgets/Box.hpp>
|
||||
#include <touchgfx/widgets/Image.hpp>
|
||||
#include <gui/containers/TireTemp.hpp>
|
||||
#include <touchgfx/widgets/canvas/Line.hpp>
|
||||
#include <touchgfx/widgets/canvas/PainterRGB565.hpp>
|
||||
#include <touchgfx/containers/progress_indicators/LineProgress.hpp>
|
||||
|
||||
class DriverViewViewBase : public touchgfx::View<DriverViewPresenter>
|
||||
{
|
||||
public:
|
||||
DriverViewViewBase();
|
||||
virtual ~DriverViewViewBase();
|
||||
virtual void setupScreen();
|
||||
|
||||
protected:
|
||||
FrontendApplication& application() {
|
||||
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
|
||||
}
|
||||
|
||||
/*
|
||||
* Member Declarations
|
||||
*/
|
||||
touchgfx::Box __background;
|
||||
touchgfx::Image logo;
|
||||
TireTemp tireTempRR;
|
||||
TireTemp tireTempFR;
|
||||
TireTemp tireTempRL;
|
||||
TireTemp tireTempFL;
|
||||
touchgfx::Line ttDivVert;
|
||||
touchgfx::PainterRGB565 ttDivVertPainter;
|
||||
touchgfx::Line ttDivHoriz;
|
||||
touchgfx::PainterRGB565 ttDivHorizPainter;
|
||||
touchgfx::LineProgress tsVoltage;
|
||||
touchgfx::PainterRGB565 tsVoltagePainter;
|
||||
touchgfx::LineProgress lvVoltage;
|
||||
touchgfx::PainterRGB565 lvVoltagePainter;
|
||||
|
||||
private:
|
||||
|
||||
/*
|
||||
* Canvas Buffer Size
|
||||
*/
|
||||
static const uint32_t CANVAS_BUFFER_SIZE = 7200;
|
||||
uint8_t canvasBuffer[CANVAS_BUFFER_SIZE];
|
||||
|
||||
};
|
||||
|
||||
#endif // DRIVERVIEWVIEWBASE_HPP
|
||||
Reference in New Issue
Block a user