mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 23:17:35 -04:00
Added generic template for ListItemWithCallbacks. Replaced onDimensionsChange with callbacks.
39 lines
1.1 KiB
C++
39 lines
1.1 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 <ListItem.hpp>
|
|
#include <Text.hpp>
|
|
#include <TextFixedSize.hpp>
|
|
#include <ImageBox.hpp>
|
|
#include <module-gui/gui/widgets/GridLayout.hpp>
|
|
#include <module-apps/Application.hpp>
|
|
#include <module-apps/application-special-input/data/SpecialCharactersTableStyle.hpp>
|
|
#include <module-apps/application-special-input/windows/SpecialInputMainWindow.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
|
|
struct Carrier
|
|
{
|
|
gui::Item *item = nullptr;
|
|
std::string val;
|
|
};
|
|
|
|
auto generateNewLineSign() -> Carrier;
|
|
auto generateCharSign(uint32_t val) -> Carrier;
|
|
|
|
class SpecialInputTableWidget : public ListItem
|
|
{
|
|
protected:
|
|
void decorateActionActivated(Item *it, const std::string &str);
|
|
GridLayout *box = nullptr;
|
|
app::Application *application = nullptr;
|
|
|
|
public:
|
|
SpecialInputTableWidget(app::Application *app, std::list<Carrier> &&carier);
|
|
};
|
|
|
|
} /* namespace gui */
|