mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-19 06:30:46 -04:00
27 lines
871 B
C++
27 lines
871 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 <ListItem.hpp>
|
|
#include <CheckBoxWithLabel.hpp>
|
|
|
|
#include <application-calendar/data/CalendarData.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class CustomCheckBoxWithLabel : public ListItem
|
|
{
|
|
private:
|
|
gui::CheckBoxWithLabel *checkBoxWithLabel = nullptr;
|
|
bool initialState = false;
|
|
|
|
public:
|
|
CustomCheckBoxWithLabel(const std::string &description,
|
|
bool initialState,
|
|
const std::function<void(const UTF8 &text)> &navBarTemporaryMode = nullptr,
|
|
const std::function<void()> &navBarRestoreFromTemporaryMode = nullptr);
|
|
bool isChecked();
|
|
};
|
|
} // namespace gui
|