Add debug view
This commit is contained in:
@ -0,0 +1,38 @@
|
||||
#ifndef DEBUGVIEWPRESENTER_HPP
|
||||
#define DEBUGVIEWPRESENTER_HPP
|
||||
|
||||
#include <gui/model/ModelListener.hpp>
|
||||
#include <mvp/Presenter.hpp>
|
||||
|
||||
using namespace touchgfx;
|
||||
|
||||
class DebugViewView;
|
||||
|
||||
class DebugViewPresenter : public touchgfx::Presenter, public ModelListener {
|
||||
public:
|
||||
DebugViewPresenter(DebugViewView &v);
|
||||
|
||||
/**
|
||||
* The activate function is called automatically when this screen is "switched
|
||||
* in" (ie. made active). Initialization logic can be placed here.
|
||||
*/
|
||||
virtual void activate() override;
|
||||
|
||||
/**
|
||||
* The deactivate function is called automatically when this screen is
|
||||
* "switched out" (ie. made inactive). Teardown functionality can be placed
|
||||
* here.
|
||||
*/
|
||||
virtual void deactivate() override;
|
||||
|
||||
virtual ~DebugViewPresenter(){};
|
||||
|
||||
virtual void vehicleStateUpdated() override;
|
||||
|
||||
private:
|
||||
DebugViewPresenter();
|
||||
|
||||
DebugViewView &view;
|
||||
};
|
||||
|
||||
#endif // DEBUGVIEWPRESENTER_HPP
|
||||
21
TouchGFX/gui/include/gui/debugview_screen/DebugViewView.hpp
Normal file
21
TouchGFX/gui/include/gui/debugview_screen/DebugViewView.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef DEBUGVIEWVIEW_HPP
|
||||
#define DEBUGVIEWVIEW_HPP
|
||||
|
||||
#include <gui/debugview_screen/DebugViewPresenter.hpp>
|
||||
#include <gui_generated/debugview_screen/DebugViewViewBase.hpp>
|
||||
|
||||
class DebugViewView : public DebugViewViewBase {
|
||||
public:
|
||||
DebugViewView();
|
||||
virtual ~DebugViewView() {}
|
||||
virtual void setupScreen() override;
|
||||
virtual void tearDownScreen() override;
|
||||
|
||||
virtual void listUpdateItem(DebugViewLine &line, int16_t itemIndex) override;
|
||||
|
||||
void updateFieldValues();
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
#endif // DEBUGVIEWVIEW_HPP
|
||||
Reference in New Issue
Block a user