Make debug view scrollable

This commit is contained in:
2023-05-24 00:44:32 +02:00
parent 58dd4ae8d3
commit 9466290ff3
5 changed files with 95 additions and 8 deletions

View File

@ -8,7 +8,7 @@
#include <mvp/View.hpp>
#include <gui/debugview_screen/DebugViewPresenter.hpp>
#include <touchgfx/widgets/Box.hpp>
#include <touchgfx/containers/scrollers/ScrollList.hpp>
#include <touchgfx/containers/scrollers/ScrollWheel.hpp>
#include <gui/containers/DebugViewLine.hpp>
#include <touchgfx/widgets/canvas/Line.hpp>
#include <touchgfx/widgets/canvas/PainterRGB565.hpp>
@ -24,6 +24,19 @@ public:
{
// Override and implement this function in DebugView
}
virtual void handleKeyEvent(uint8_t key);
/*
* Virtual Action Handlers
*/
virtual void scrollUp()
{
// Override and implement this function in DebugView
}
virtual void scrollDown()
{
// Override and implement this function in DebugView
}
protected:
FrontendApplication& application() {
@ -34,7 +47,7 @@ protected:
* Member Declarations
*/
touchgfx::Box __background;
touchgfx::ScrollList list;
touchgfx::ScrollWheel list;
touchgfx::DrawableListItems<DebugViewLine, 13> listListItems;
touchgfx::Line line1;
touchgfx::PainterRGB565 line1Painter;