| 33 | |
| 34 | namespace agi { |
| 35 | Context::Context() |
| 36 | : ass(std::make_unique<AssFile>()) |
| 37 | , textSelectionController(std::make_unique<TextSelectionController>()) |
| 38 | , subsController(std::make_unique<SubsController>(this)) |
| 39 | , project(std::make_unique<Project>(this)) |
| 40 | , local_scripts(std::make_unique<Automation4::LocalScriptManager>(this)) |
| 41 | , selectionController(std::make_unique<SelectionController>(this)) |
| 42 | , videoController(std::make_unique<VideoController>(this)) |
| 43 | , audioController(std::make_unique<AudioController>(this)) |
| 44 | , initialLineState(std::make_unique<InitialLineState>(this)) |
| 45 | , search(std::make_unique<SearchReplaceEngine>(this)) |
| 46 | , path(std::make_unique<Path>(*config::path)) |
| 47 | , dialog(std::make_unique<DialogManager>()) |
| 48 | { |
| 49 | subsController->SetSelectionController(selectionController.get()); |
| 50 | } |
| 51 | |
| 52 | Context::~Context() = default; |
| 53 | } |