File indexing completed on 2024-12-22 04:40:15
0001 /* 0002 SPDX-FileCopyrightText: 2007-2009 Sergio Pistone <sergio_pistone@yahoo.com.ar> 0003 SPDX-FileCopyrightText: 2010-2022 Mladen Milinkovic <max@smoothware.net> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "scripting_subtitlemodule.h" 0009 0010 #include "appglobal.h" 0011 #include "application.h" 0012 #include "scripting_subtitle.h" 0013 0014 using namespace SubtitleComposer; 0015 0016 Scripting::SubtitleModule::SubtitleModule(QObject *parent) : 0017 QObject(parent) 0018 {} 0019 0020 QObject * 0021 Scripting::SubtitleModule::instance() 0022 { 0023 return appSubtitle() ? new Scripting::Subtitle(appSubtitle(), this) : nullptr; 0024 } 0025 0026 bool 0027 Scripting::SubtitleModule::translationMode() 0028 { 0029 return app()->translationMode(); 0030 } 0031 0032