mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 20:44:44 -04:00
32 lines
1.1 KiB
C++
32 lines
1.1 KiB
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
#include "application-calendar/models/EventDetailModel.hpp"
|
|
#include "windows/AppWindow.hpp"
|
|
#include "Application.hpp"
|
|
#include <Style.hpp>
|
|
#include <ListView.hpp>
|
|
#include <module-db/Interface/EventsRecord.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class EventDetailWindow : public gui::AppWindow
|
|
{
|
|
std::shared_ptr<EventsRecord> eventRecord = nullptr;
|
|
std::shared_ptr<EventDetailModel> eventDetailModel = nullptr;
|
|
gui::ListView *bodyList = nullptr;
|
|
|
|
public:
|
|
EventDetailWindow(app::Application *app, std::string name);
|
|
virtual ~EventDetailWindow() override = default;
|
|
|
|
bool onInput(const gui::InputEvent &inputEvent) override;
|
|
void onBeforeShow(gui::ShowMode mode, gui::SwitchData *data) override;
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
auto handleSwitchData(SwitchData *data) -> bool override;
|
|
};
|
|
|
|
} /* namespace gui */
|