Esempio n. 1
0
 def __init__(self, project, action_log):
     MetaContainerObserver.__init__(self, project, action_log)
     project.connect("asset-added", self._asset_added_cb)
     project.connect("asset-removed", self._asset_removed_cb)
     assets = project.list_assets(GES.Extractable)
     for asset in assets:
         MetaContainerObserver.__init__(self, asset, action_log)
     self.timeline_observer = TimelineObserver(project.ges_timeline,
                                               action_log)
Esempio n. 2
0
    def __init__(self, ges_layer, action_log):
        MetaContainerObserver.__init__(self, ges_layer, action_log)
        Loggable.__init__(self)
        self.action_log = action_log
        self.priority = ges_layer.props.priority

        self.keyframe_observers = {}
        self.track_element_observers = {}

        ges_layer.connect("clip-added", self._clipAddedCb)
        ges_layer.connect("clip-removed", self._clipRemovedCb)
        ges_layer.connect("notify::priority", self.__layer_moved_cb)

        self.clip_observers = {}
        for ges_clip in ges_layer.get_clips():
            self._connectToClip(ges_clip)
Esempio n. 3
0
    def __init__(self, ges_layer, action_log):
        MetaContainerObserver.__init__(self, ges_layer, action_log)
        Loggable.__init__(self)
        self.action_log = action_log
        self.priority = ges_layer.props.priority

        self.keyframe_observers = {}
        self.track_element_observers = {}

        ges_layer.connect("clip-added", self._clipAddedCb)
        ges_layer.connect("clip-removed", self._clipRemovedCb)
        ges_layer.connect("notify::priority", self.__layer_moved_cb)

        self.clip_observers = {}
        for ges_clip in ges_layer.get_clips():
            self._connectToClip(ges_clip)
Esempio n. 4
0
    def __init__(self, ges_timeline, action_log):
        MetaContainerObserver.__init__(self, ges_timeline, action_log)
        Loggable.__init__(self)
        self.ges_timeline = ges_timeline
        self.action_log = action_log

        self.layer_observers = {}
        self.group_observers = {}

        for ges_layer in ges_timeline.get_layers():
            self._connect_to_layer(ges_layer)

        ges_timeline.connect("layer-added", self.__layer_added_cb)
        ges_timeline.connect("layer-removed", self.__layer_removed_cb)

        for ges_group in ges_timeline.get_groups():
            self._connect_to_group(ges_group)

        ges_timeline.connect("group-added", self.__group_added_cb)
Esempio n. 5
0
 def __init__(self, project, action_log):
     MetaContainerObserver.__init__(self, project, action_log)
     project.connect("asset-added", self._assetAddedCb)
     project.connect("asset-removed", self._assetRemovedCb)
     self.timeline_observer = TimelineObserver(project.ges_timeline,
                                               action_log)
Esempio n. 6
0
 def __init__(self, project, action_log):
     MetaContainerObserver.__init__(self, project, action_log)
     project.connect("asset-added", self._assetAddedCb)
     project.connect("asset-removed", self._assetRemovedCb)
     self.timeline_observer = TimelineObserver(project.ges_timeline,
                                               action_log)
Esempio n. 7
0
 def _asset_added_cb(self, unused_project, asset):
     if not isinstance(asset, GES.UriClipAsset):
         return
     MetaContainerObserver.__init__(self, asset, self.action_log)
     action = AssetAddedAction(asset)
     self.action_log.push(action)