mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 04:24:05 -04:00
-sql req for multiday events handling -Add UT -Add markEventsInDays method -Add new query for day filter
35 lines
1.2 KiB
C++
35 lines
1.2 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/AllEventsModel.hpp"
|
|
#include "application-calendar/widgets/CalendarListView.hpp"
|
|
#include "application-calendar/widgets/CalendarStyle.hpp"
|
|
#include "windows/AppWindow.hpp"
|
|
#include "Application.hpp"
|
|
#include <ListView.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class AllEventsWindow : public gui::AppWindow
|
|
{
|
|
gui::Image *leftArrowImage = nullptr;
|
|
gui::Image *newDayEventImage = nullptr;
|
|
|
|
TimePoint dateFilter = TimePointNow();
|
|
gui::ListView *allEventsList = nullptr;
|
|
std::shared_ptr<AllEventsModel> allEventsModel = nullptr;
|
|
|
|
public:
|
|
AllEventsWindow(app::Application *app, std::string name);
|
|
void onBeforeShow(gui::ShowMode mode, gui::SwitchData *data) override;
|
|
bool onDatabaseMessage(sys::Message *msgl) override;
|
|
|
|
bool onInput(const gui::InputEvent &inputEvent) override;
|
|
void rebuild() override;
|
|
void buildInterface() override;
|
|
auto handleSwitchData(SwitchData *data) -> bool override;
|
|
};
|
|
|
|
} // namespace gui
|