mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-02-06 12:22:00 -05:00
26 lines
820 B
C++
26 lines
820 B
C++
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include <application-settings/windows/BaseSettingsWindow.hpp>
|
|
#include <application-settings/windows/WindowNames.hpp>
|
|
|
|
namespace gui
|
|
{
|
|
class LanguagesWindow : public BaseSettingsWindow
|
|
{
|
|
public:
|
|
explicit LanguagesWindow(app::ApplicationCommon *app, std::string name = window::name::languages);
|
|
|
|
protected:
|
|
auto buildOptionsList() -> std::list<Option> override;
|
|
void onBeforeShow(ShowMode mode, SwitchData *data) override;
|
|
void setLanguageIndex();
|
|
|
|
const std::vector<Language> langList;
|
|
Language selectedLanguage;
|
|
unsigned int selectedLanguageIndex{0};
|
|
};
|
|
} /* namespace gui */
|