settings_shortcuts.h 661 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "settings/settings_common_session.h"
  9. namespace Settings {
  10. class Shortcuts : public Section<Shortcuts> {
  11. public:
  12. Shortcuts(
  13. QWidget *parent,
  14. not_null<Window::SessionController*> controller);
  15. ~Shortcuts();
  16. [[nodiscard]] rpl::producer<QString> title() override;
  17. private:
  18. void setupContent(not_null<Window::SessionController*> controller);
  19. Fn<void()> _save;
  20. };
  21. } // namespace Settings