mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 10:28:52 -05:00
Working example of application and service ready to copy from with minimum documentation Apply suggestions from code review Co-authored-by: * Paweł Olejniczak <58421550+pawel-mudita@users.noreply.github.com> * Paweł Joński <79840715+paweljonskim@users.noreply.github.com> * Bartosz Cichocki <sp2fet@gmail.com>
32 lines
814 B
C++
32 lines
814 B
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "Icon.hpp"
|
|
#include <AppWindow.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class TestPresenter;
|
|
|
|
class TestMainWindow : public AppWindow
|
|
{
|
|
private:
|
|
TestPresenter &presenter;
|
|
Icon *button = nullptr;
|
|
|
|
public:
|
|
TestMainWindow(app::ApplicationCommon *app, const std::string &name, TestPresenter &presenter);
|
|
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
bool onInput(const InputEvent &inputEvent) override;
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
void destroyInterface() override{};
|
|
|
|
void changeButtonText(const UTF8 &text);
|
|
};
|
|
|
|
}; // namespace gui
|