dictionaries_manager.h 739 B

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef TDESKTOP_DISABLE_SPELLCHECK
  9. #include "ui/layers/box_content.h"
  10. namespace Main {
  11. class Session;
  12. } // namespace Main
  13. namespace Ui {
  14. class ManageDictionariesBox : public Ui::BoxContent {
  15. public:
  16. ManageDictionariesBox(QWidget*, not_null<Main::Session*> session);
  17. protected:
  18. void prepare() override;
  19. void setInnerFocus() override;
  20. private:
  21. const not_null<Main::Session*> _session;
  22. Fn<void()> _setInnerFocus;
  23. };
  24. } // namespace Ui
  25. #endif // !TDESKTOP_DISABLE_SPELLCHECK