controllers.h 956 B

123456789101112131415161718192021222324252627282930313233
  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 "editor/controllers/stickers_panel_controller.h"
  9. #include "editor/controllers/undo_controller.h"
  10. #include "ui/layers/show.h"
  11. namespace Editor {
  12. struct Controllers final {
  13. Controllers(
  14. std::unique_ptr<StickersPanelController> stickersPanelController,
  15. std::unique_ptr<UndoController> undoController,
  16. std::shared_ptr<Ui::Show> show)
  17. : stickersPanelController(std::move(stickersPanelController))
  18. , undoController(std::move(undoController))
  19. , show(std::move(show)) {
  20. }
  21. ~Controllers() {
  22. };
  23. const std::unique_ptr<StickersPanelController> stickersPanelController;
  24. const std::unique_ptr<UndoController> undoController;
  25. const std::shared_ptr<Ui::Show> show;
  26. };
  27. } // namespace Editor