mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-18 12:04:03 -04:00
- 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)
27 lines
885 B
C++
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 */
|