#pragma once #include "application-calendar/models/DayEventsInternalModel.hpp" #include "application-calendar/widgets/CalendarStyle.hpp" #include "windows/AppWindow.hpp" #include "Application.hpp" #include "NoEvents.hpp" #include #include #include #include namespace gui { class DayEventsWindow : public gui::AppWindow { std::string dayMonthTitle; TimePoint filterFrom; gui::Image *leftArrowImage = nullptr; gui::Image *newDayEventImage = nullptr; gui::ListView *dayEventsList = nullptr; std::shared_ptr dayEventsModel = nullptr; public: DayEventsWindow(app::Application *app, std::string name); bool handleSwitchData(SwitchData *data) override; bool onInput(const gui::InputEvent &inputEvent) override; bool onDatabaseMessage(sys::Message *msgl) override; void rebuild() override; void buildInterface() override; void onBeforeShow(ShowMode mode, SwitchData *data) override; auto handleQueryResponse(db::QueryResult *queryResult) -> bool; }; } /* namespace app */