/* 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 "boxes/abstract_box.h" #include namespace Ui { class Radiobutton; } // namespace Ui class SingleChoiceBox : public BoxContent { public: SingleChoiceBox( QWidget*, rpl::producer title, const std::vector &optionTexts, int initialSelection, Fn callback); protected: void prepare() override; private: rpl::producer _title; std::vector _optionTexts; int _initialSelection = 0; Fn _callback; };