mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -04:00
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "application-phonebook/data/PhonebookInternals.hpp"
|
|
#include "application-phonebook/data/PhonebookItemData.hpp"
|
|
#include "application-phonebook/widgets/ContactListItem.hpp"
|
|
|
|
#include <apps-common/widgets/TextWithIconsWidget.hpp>
|
|
#include <ListItem.hpp>
|
|
#include <Text.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class OutputLinesTextWithLabelWidget : public ContactListItem
|
|
{
|
|
phonebookInternals::ListItemName listItemName;
|
|
|
|
public:
|
|
OutputLinesTextWithLabelWidget(phonebookInternals::ListItemName listItemName);
|
|
|
|
~OutputLinesTextWithLabelWidget() override = default;
|
|
VBox *vBox = nullptr;
|
|
TextWithSnippet *titleLabel = nullptr;
|
|
Text *multilineText = nullptr;
|
|
|
|
auto handleRequestResize(const Item *, Length request_w, Length request_h) -> Size override;
|
|
|
|
private:
|
|
void applyItemNameSpecificSettings();
|
|
|
|
void addressHandler();
|
|
void noteHandler();
|
|
};
|
|
|
|
} /* namespace gui */
|