// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include #include namespace gui { class InputLanguageWindow : public BaseSettingsWindow { public: explicit InputLanguageWindow(app::ApplicationCommon *app); protected: auto buildOptionsList() -> std::list override; void onBeforeShow(ShowMode mode, SwitchData *data) override; void setLanguageIndex(); private: Profiles profiles; const std::vector langList; Language selectedLanguage; unsigned int selectedLanguageIndex{0}; OptionWindowDestroyer rai_destroyer = OptionWindowDestroyer(*this); }; } // namespace gui