mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 05:47:58 -05:00
PageLayout removed and replaced with ListView. Options structure and namespace cleanup. Added ListView ScrollBar type and disable on construction.
27 lines
802 B
C++
27 lines
802 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "Option.hpp"
|
|
#include "InternalModel.hpp"
|
|
#include <ListItemProvider.hpp>
|
|
|
|
class OptionsModel : public app::InternalModel<gui::ListItem *>, public gui::ListItemProvider
|
|
{
|
|
app::Application *application = nullptr;
|
|
|
|
public:
|
|
explicit OptionsModel(app::Application *app);
|
|
|
|
void clearData();
|
|
void createData(std::list<gui::Option> &optionList);
|
|
|
|
[[nodiscard]] auto requestRecordsCount() -> unsigned int override;
|
|
[[nodiscard]] auto getMinimalItemHeight() const -> unsigned int override;
|
|
|
|
auto getItem(gui::Order order) -> gui::ListItem * override;
|
|
|
|
void requestRecords(uint32_t offset, uint32_t limit) override;
|
|
};
|