tdesktop/Telegram/SourceFiles/boxes/language_box.h

40 lines
758 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "lang/lang_cloud_manager.h"
#include "boxes/abstract_box.h"
#include "mtproto/sender.h"
namespace Ui {
class RadiobuttonGroup;
class Radiobutton;
} // namespace Ui
class LanguageBox : public BoxContent, private MTP::Sender {
public:
LanguageBox(QWidget*) {
}
protected:
void prepare() override;
private:
using Languages = Lang::CloudManager::Languages;
void refresh();
void refreshLanguages();
void refreshLang();
Languages _languages;
class Inner;
QPointer<Inner> _inner;
};