mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-22 07:57:57 -04:00
33 lines
801 B
C++
33 lines
801 B
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 <functional>
|
|
#include "Dialog.hpp"
|
|
|
|
/// Provides information witch window is equivalent to empty window (DayEvents window and AllEvents window may be empty)
|
|
enum class EquivalentWindow
|
|
{
|
|
DayEventsWindow,
|
|
AllEventsWindow,
|
|
EmptyWindow
|
|
};
|
|
|
|
namespace gui
|
|
{
|
|
class Image;
|
|
|
|
class NoEvents : public Dialog
|
|
{
|
|
gui::Image *arrow = nullptr;
|
|
gui::Image *cross = nullptr;
|
|
|
|
public:
|
|
NoEvents(app::Application *app, const std::string &name);
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
bool onInput(const gui::InputEvent &inputEvent) override;
|
|
};
|
|
|
|
}; // namespace gui
|