~aleteoryx/muditaos

ref: 312d4a07a6ca90f3ef4045b6bbafa947e775e743 muditaos/module-apps/application-calendar/widgets/TextWithLabelItem.hpp -rw-r--r-- 923 bytes
312d4a07 — Przemyslaw Brudny [EGD-3756] Created generic ListItemWithCallbacks 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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 "CalendarListItem.hpp"
#include <Label.hpp>
#include <Text.hpp>
#include <BoxLayout.hpp>

namespace gui
{
    class TextWithLabelItem : public CalendarListItem
    {
        gui::VBox *vBox              = nullptr;
        gui::Label *descriptionLabel = nullptr;
        gui::Text *textInput         = nullptr;

      public:
        TextWithLabelItem(const std::string &description,
                          std::function<void(const UTF8 &text)> bottomBarTemporaryMode = nullptr,
                          std::function<void()> bottomBarRestoreFromTemporaryMode      = nullptr,
                          std::function<void()> selectSpecialCharacter                 = nullptr);
        virtual ~TextWithLabelItem() override = default;
    };

} /* namespace gui */