Add three general-purpose fields to DriverView
This commit is contained in:
@ -0,0 +1,36 @@
|
||||
/*********************************************************************************/
|
||||
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
|
||||
/*********************************************************************************/
|
||||
#ifndef DRIVERVIEWFIELDBASE_HPP
|
||||
#define DRIVERVIEWFIELDBASE_HPP
|
||||
|
||||
#include <gui/common/FrontendApplication.hpp>
|
||||
#include <touchgfx/containers/Container.hpp>
|
||||
#include <touchgfx/widgets/BoxWithBorder.hpp>
|
||||
#include <touchgfx/widgets/TextArea.hpp>
|
||||
#include <touchgfx/widgets/TextAreaWithWildcard.hpp>
|
||||
|
||||
class DriverViewFieldBase : public touchgfx::Container
|
||||
{
|
||||
public:
|
||||
DriverViewFieldBase();
|
||||
virtual ~DriverViewFieldBase();
|
||||
virtual void initialize();
|
||||
|
||||
protected:
|
||||
FrontendApplication& application() {
|
||||
return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
|
||||
}
|
||||
|
||||
/*
|
||||
* Member Declarations
|
||||
*/
|
||||
touchgfx::BoxWithBorder box;
|
||||
touchgfx::TextArea title;
|
||||
touchgfx::TextAreaWithOneWildcard value;
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif // DRIVERVIEWFIELDBASE_HPP
|
||||
@ -13,6 +13,8 @@
|
||||
#include <touchgfx/widgets/canvas/Line.hpp>
|
||||
#include <touchgfx/widgets/canvas/PainterRGB565.hpp>
|
||||
#include <touchgfx/containers/progress_indicators/LineProgress.hpp>
|
||||
#include <touchgfx/widgets/TextArea.hpp>
|
||||
#include <gui/containers/DriverViewField.hpp>
|
||||
|
||||
class DriverViewViewBase : public touchgfx::View<DriverViewPresenter>
|
||||
{
|
||||
@ -43,6 +45,12 @@ protected:
|
||||
touchgfx::PainterRGB565 tsVoltagePainter;
|
||||
touchgfx::LineProgress lvVoltage;
|
||||
touchgfx::PainterRGB565 lvVoltagePainter;
|
||||
touchgfx::TextArea tireLabel;
|
||||
touchgfx::TextArea tsVoltLabel;
|
||||
touchgfx::TextArea lvVoltLabel;
|
||||
DriverViewField field1;
|
||||
DriverViewField field2;
|
||||
DriverViewField field3;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user