mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-18 20:14:12 -04:00
Added generic template for ListItemWithCallbacks. Replaced onDimensionsChange with callbacks.
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
// 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 "application-phonebook/data/PhonebookInternals.hpp"
|
|
#include "application-phonebook/data/PhonebookItemData.hpp"
|
|
#include "application-phonebook/widgets/ContactListItem.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;
|
|
Label *titleLabel = nullptr;
|
|
Text *multilineText = nullptr;
|
|
|
|
auto handleRequestResize(const Item *, unsigned short request_w, unsigned short request_h) -> Size override;
|
|
|
|
private:
|
|
void applyItemNameSpecificSettings();
|
|
|
|
void addressHandler();
|
|
void noteHandler();
|
|
};
|
|
|
|
} /* namespace gui */
|