Files
MuditaOS/module-apps/application-calendar/widgets/NewEventCheckBoxWithLabel.hpp
Mateusz Grzegorzek 8f0797218f [EGD-5312] Add Time selection window
- add ChangeDateAndTimeWindow,
- extract EventTimeItem to common widgets folder
  and rename it to TimeWidget,
- extract EventDateItem to common widgets folder
  and rename it to DateWidget,
- replace timeWidget with common TimeWidget
  in NightshiftWindow,
- refactor time setting in
  DesktopMainWindow and TopBar,
- Remove dead code from EventManager
  (GetNextAlarmTimestamp and HandleAlarmTrigger)
2021-02-23 15:59:51 +01:00

27 lines
885 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "CheckBoxWithLabelItem.hpp"
#include "application-calendar/models/NewEditEventModel.hpp"
namespace gui
{
class NewEventCheckBoxWithLabel : public CheckBoxWithLabelItem
{
NewEditEventModel *model = nullptr;
app::Application *app = nullptr;
gui::DateWidget *dateItem = nullptr;
void applyCallbacks() override;
public:
NewEventCheckBoxWithLabel(app::Application *application,
const std::string &description,
NewEditEventModel *model = nullptr);
virtual ~NewEventCheckBoxWithLabel() override = default;
void setConnectionToDateItem(gui::DateWidget *item);
};
} /* namespace gui */