// 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 "application-settings-new/data/QuoteSwitchData.hpp" #include #include #include #include #include namespace gui { class QuoteWidget : public ListItem { public: QuoteWidget(const app::QuoteRecord "e, std::function bottomBarTemporaryMode = nullptr, std::function bottomBarRestoreFromTemporaryMode = nullptr); auto onDimensionChanged(const BoundingBox &oldDim, const BoundingBox &newDim) -> bool override; [[nodiscard]] auto getQuoteData() const -> app::QuoteRecord { return quote; } private: gui::HBox *hBox = nullptr; gui::Label *inputBoxLabel = nullptr; gui::Label *descriptionLabel = nullptr; gui::Image *tickImage = nullptr; std::function bottomBarTemporaryMode = nullptr; std::function bottomBarRestoreFromTemporaryMode = nullptr; app::QuoteRecord quote; }; } /* namespace gui */