mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 04:24:05 -04:00
29 lines
962 B
C++
29 lines
962 B
C++
#pragma once
|
|
|
|
#include "module-apps/application-special-input/data/SpecialCharactersTableStyle.hpp"
|
|
#include "InternalModel.hpp"
|
|
#include "Application.hpp"
|
|
|
|
#include <ListItemProvider.hpp>
|
|
|
|
class SpecialInputModel : public app::InternalModel<gui::ListItem *>, public gui::ListItemProvider
|
|
{
|
|
private:
|
|
app::Application *application = nullptr;
|
|
[[nodiscard]] auto getMaxGridElements() const -> ssize_t;
|
|
void buildGrids(const std::vector<char32_t> elements);
|
|
|
|
public:
|
|
SpecialInputModel(app::Application *app);
|
|
void clearData();
|
|
void createData(specialInputStyle::CharactersType type = specialInputStyle::CharactersType::SpecialCharacters);
|
|
|
|
[[nodiscard]] auto requestRecordsCount() -> unsigned int override;
|
|
|
|
[[nodiscard]] auto getMinimalItemHeight() const -> unsigned int override;
|
|
|
|
auto getItem(gui::Order order) -> gui::ListItem * override;
|
|
|
|
void requestRecords(const uint32_t offset, const uint32_t limit) override;
|
|
};
|