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")
105 self.blenderTreeView.Render()
112 self.blenderTreeView.enable_interface()
115 super(AnimatedTitle, self).
accept()
120 self.blenderTreeView.background.quit()
123 self.blenderTreeView.enable_interface()
128 self.blenderTreeView.background.quit()
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 add_file
Add an animation to the project file tree.
def track_metric_screen
Track a GUI screen being shown.
def get_app
Returns the current QApplication instance of OpenShot.
def accept
Start rendering animation, but don't close window.
def load_ui
Load a Qt *.ui file, and also load an XML parsed version.
def init_ui
Initialize all child widgets and action of a window or dialog.
def close
Actually close window and accept dialog.
def clear_effect_controls
Clear all child widgets used for settings.