41 from PyQt5.QtGui import QIcon, QStandardItemModel, QStandardItem
46 from classes
import info, ui_util, settings, qt_types, updates
47 from classes.app
import get_app
48 from classes.logger
import log
49 from classes.query
import File
51 from windows.views.blender_listview
import BlenderListView
56 import simplejson
as json
64 ui_path = os.path.join(info.PATH,
'windows',
'ui',
'animated-title.ui')
69 QDialog.__init__(self)
87 self.buttonBox.addButton(QPushButton(_(
'Render')), QDialogButtonBox.AcceptRole)
88 self.buttonBox.addButton(QPushButton(_(
'Cancel')), QDialogButtonBox.RejectRole)
92 self.
output_dir = os.path.join(info.USER_PATH,
"blender")
115 super(AnimatedTitle, self).
accept()
131 super(AnimatedTitle, self).
reject()
136 path, filename = os.path.split(filepath)
143 file = File.get(path=filepath)
152 reader = openshot.FFmpegReader(filepath)
156 file_data = json.loads(reader.Json())
159 file_data[
"media_type"] =
"video" 163 file.data = file_data
170 msg.setText(_(
"{} is not a valid video, audio, or image file.".format(filename)))
179 for child
in self.settingsContainer.children():
181 self.settingsContainer.layout().removeWidget(child)
def get_app()
Returns the current QApplication instance of OpenShot.
def accept(self)
Start rendering animation, but don't close window.
def add_file(self, filepath)
Add an animation to the project file tree.
def clear_effect_controls(self)
Clear all child widgets used for settings.
def init_ui(window)
Initialize all child widgets and action of a window or dialog.
def track_metric_screen(screen_name)
Track a GUI screen being shown.
def load_ui(window, path)
Load a Qt *.ui file, and also load an XML parsed version.
def close(self)
Actually close window and accept dialog.
def closeEvent(self, event)