Commit b5238e07 authored by Edward Hervey's avatar Edward Hervey

* pitivi/dnd.py:

* pitivi/effects.py:
* pitivi/objectfactory.py:
* pitivi/pitivi.py:
* pitivi/playground.py:
* pitivi/project.py:
* pitivi/settings.py:
* pitivi/sourcelist.py:
* pitivi/timeline.py:
* pitivi/ui/complexinterface.py:
* pitivi/ui/complexlayer.py:
* pitivi/ui/complexsource.py:
* pitivi/ui/complextimeline.py:
* pitivi/ui/exportsettingswidget.py:
* pitivi/ui/glade.py:
* pitivi/ui/gstwidget.py:
* pitivi/ui/infolayer.py:
* pitivi/ui/layerwidgets.py:
* pitivi/ui/mainwindow.py:
* pitivi/ui/plumber.py:
* pitivi/ui/projectsettings.py:
* pitivi/ui/ruler.py:
* pitivi/ui/sourcefactories.py:
* pitivi/ui/timeline.py:
* pitivi/ui/timelineobjects.py:
* pitivi/ui/tracklayer.py:
More module documentation
* pitivi/ui/sourcelist.py:
What on earth is that file still doing in cvs ??


git-svn-id: svn+ssh://svn.gnome.org/svn/pitivi/trunk@717 d3729300-e425-0410-8a4c-d956edccc248
parent 6064ecb7
2006-03-23 Edward Hervey <edward@fluendo.com>
* pitivi/dnd.py:
* pitivi/effects.py:
* pitivi/objectfactory.py:
* pitivi/pitivi.py:
* pitivi/playground.py:
* pitivi/project.py:
* pitivi/settings.py:
* pitivi/sourcelist.py:
* pitivi/timeline.py:
* pitivi/ui/complexinterface.py:
* pitivi/ui/complexlayer.py:
* pitivi/ui/complexsource.py:
* pitivi/ui/complextimeline.py:
* pitivi/ui/exportsettingswidget.py:
* pitivi/ui/glade.py:
* pitivi/ui/gstwidget.py:
* pitivi/ui/infolayer.py:
* pitivi/ui/layerwidgets.py:
* pitivi/ui/mainwindow.py:
* pitivi/ui/plumber.py:
* pitivi/ui/projectsettings.py:
* pitivi/ui/ruler.py:
* pitivi/ui/sourcefactories.py:
* pitivi/ui/timeline.py:
* pitivi/ui/timelineobjects.py:
* pitivi/ui/tracklayer.py:
More module documentation
* pitivi/ui/sourcelist.py:
What on earth is that file still doing in cvs ??
2006-03-23 Edward Hervey <edward@fluendo.com>
* pitivi/debug.py:
......
......@@ -19,20 +19,24 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
DND_TYPE_TEXT_PLAIN = 24
DND_TYPE_URI_LIST = 25
DND_TYPE_PITIVI_FILESOURCE = 26
DND_TYPE_PITIVI_EFFECT = 27
DND_TYPE_PITIVI_AUDIO_EFFECT = 28
DND_TYPE_PITIVI_VIDEO_EFFECT = 29
DND_TYPE_PITIVI_AUDIO_TRANSITION = 30
DND_TYPE_PITIVI_VIDEO_TRANSITION = 31
"""
Drag and drop constants
"""
DND_FILE_TUPLE = ("text/plain", 0, DND_TYPE_TEXT_PLAIN)
DND_URI_TUPLE = ("text/uri-list", 0, DND_TYPE_URI_LIST)
DND_FILESOURCE_TUPLE = ("pitivi/file-source", 0, DND_TYPE_PITIVI_FILESOURCE)
DND_EFFECT_TUPLE = ("pitivi/effect", 0, DND_TYPE_PITIVI_EFFECT)
DND_AUDIO_EFFECT_TUPLE = ("pitivi/audio-effect", 0, DND_TYPE_PITIVI_AUDIO_EFFECT)
DND_VIDEO_EFFECT_TUPLE = ("pitivi/video-effect", 0, DND_TYPE_PITIVI_VIDEO_EFFECT)
DND_AUDIO_TRANSITION_TUPLE = ("pitivi/audio-transition", 0, DND_TYPE_PITIVI_AUDIO_TRANSITION)
DND_VIDEO_TRANSITION_TUPLE = ("pitivi/video-transition", 0, DND_TYPE_PITIVI_VIDEO_TRANSITION)
TYPE_TEXT_PLAIN = 24
TYPE_URI_LIST = 25
TYPE_PITIVI_FILESOURCE = 26
TYPE_PITIVI_EFFECT = 27
TYPE_PITIVI_AUDIO_EFFECT = 28
TYPE_PITIVI_VIDEO_EFFECT = 29
TYPE_PITIVI_AUDIO_TRANSITION = 30
TYPE_PITIVI_VIDEO_TRANSITION = 31
FILE_TUPLE = ("text/plain", 0, TYPE_TEXT_PLAIN)
URI_TUPLE = ("text/uri-list", 0, TYPE_URI_LIST)
FILESOURCE_TUPLE = ("pitivi/file-source", 0, TYPE_PITIVI_FILESOURCE)
EFFECT_TUPLE = ("pitivi/effect", 0, TYPE_PITIVI_EFFECT)
AUDIO_EFFECT_TUPLE = ("pitivi/audio-effect", 0, TYPE_PITIVI_AUDIO_EFFECT)
VIDEO_EFFECT_TUPLE = ("pitivi/video-effect", 0, TYPE_PITIVI_VIDEO_EFFECT)
AUDIO_TRANSITION_TUPLE = ("pitivi/audio-transition", 0, TYPE_PITIVI_AUDIO_TRANSITION)
VIDEO_TRANSITION_TUPLE = ("pitivi/video-transition", 0, TYPE_PITIVI_VIDEO_TRANSITION)
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Effects global handling
"""
import gobject
import gst
from objectfactory import OperationFactory, TransitionFactory, SMPTETransitionFactory
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Providers of elements to use in a timeline
"""
import os.path
from urllib import unquote
import string
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Main application
"""
import gobject
import gtk
import gst
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Where all gstreamer pipelines play
"""
import gobject
import gst
from bin import SmartBin, SmartDefaultBin, SmartFileBin#, SmartTempUriBin
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Project class
"""
import os
import gobject
import gst
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Multimedia settings
"""
import gobject
import gst
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Handles the list of source for a project
"""
import gobject
import gst
from discoverer import Discoverer
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Timeline and timeline objects
"""
import gobject
import gst
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Interfaces for complex view elements
"""
import gst
#
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Layer system for the complex view
"""
import gtk
import gobject
import gst
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Source widget for the complex view
"""
import gtk
import gst
import cairo
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Timeline widgets for the complex view
"""
import gtk
import gst
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Widget for the output settings
"""
import gobject
import gtk
from glade import GladeWidget
......
......@@ -21,6 +21,10 @@
# Boston, MA 02111-1307, USA.
#
"""
Classes for easily using glade widgets
"""
import os
import sys
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Widget for gstreamer element properties viewing/setting
"""
import string
import gobject
import gtk
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Left-hand side widget of complex view layers
"""
import gtk
import gst
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Widgets for the complex view layers
"""
import gtk
import gst
from infolayer import InfoLayer
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Main GTK+ window
"""
import os
import gobject
import gtk
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Convenience functions for creating the output media sinks
"""
#
# The plumber takes care of the sinks
#
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Dialog box for project settings
"""
import gobject
import gtk
from glade import GladeWindow
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Widget for the complex view ruler
"""
import gtk
import gst
from complexinterface import ZoomableWidgetInterface
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Source and effects list widgets
"""
import os
import os.path
import time
......@@ -174,18 +178,18 @@ class SourceListWidget(gtk.VBox):
# Drag and Drop
self.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
[dnd.DND_URI_TUPLE, dnd.DND_FILE_TUPLE],
[dnd.URI_TUPLE, dnd.FILE_TUPLE],
gtk.gdk.ACTION_COPY)
self.connect("drag_data_received", self._dndDataReceivedCb)
self.iconview.drag_source_set(gtk.gdk.BUTTON1_MASK,
[dnd.DND_URI_TUPLE, dnd.DND_FILESOURCE_TUPLE],
[dnd.URI_TUPLE, dnd.FILESOURCE_TUPLE],
gtk.gdk.ACTION_COPY)
self.iconview.connect("drag_begin", self._dndIconBeginCb)
self.iconview.connect("drag_data_get", self._dndDataGetCb)
self.treeview.drag_source_set(gtk.gdk.BUTTON1_MASK,
[dnd.DND_URI_TUPLE, dnd.DND_FILESOURCE_TUPLE],
[dnd.URI_TUPLE, dnd.FILESOURCE_TUPLE],
gtk.gdk.ACTION_COPY)
self.treeview.connect("drag_begin", self._dndTreeBeginCb)
self.treeview.connect("drag_data_get", self._dndDataGetCb)
......@@ -382,9 +386,9 @@ class SourceListWidget(gtk.VBox):
def _dndDataReceivedCb(self, widget, context, x, y, selection, targetType,
time):
gst.debug("targetType:%d, selection.data:%r" % (targetType, selection.data))
if targetType == dnd.DND_TYPE_URI_LIST:
if targetType == dnd.TYPE_URI_LIST:
filenames = [x.strip('\x00') for x in selection.data.strip().split("\n")]
elif targetType == dnd.DND_TYPE_TEXT_PLAIN:
elif targetType == dnd.TYPE_TEXT_PLAIN:
filenames = [selection.data.strip()]
self.addFiles(filenames)
......@@ -420,10 +424,10 @@ class SourceListWidget(gtk.VBox):
uris = self.getSelectedItems()
if len(uris) < 1:
return
if targetType == dnd.DND_TYPE_PITIVI_FILESOURCE:
if targetType == dnd.TYPE_PITIVI_FILESOURCE:
selection.set(selection.target, 8,
uris[0])
elif targetType == dnd.DND_TYPE_URI_LIST:
elif targetType == dnd.TYPE_URI_LIST:
selection.set(selection.target, 8,
string.join(uris, "\n"))
......
#!/usr/bin/python
# PiTiVi , Non-linear video editor
#
# ui/sourcelist.py
#
# Copyright (c) 2005, Edward Hervey <bilboed@bilboed.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
import gtk
import gobject
class SourceListWidget(gtk.VBox):
""" Widget for Pitivi Viewer """
def __init__(self, pitivi):
self.pitivi = pitivi
gtk.VBox.__init__(self)
self.pack_start(gtk.Label("SourceList"))
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Main timeline widget
"""
import gtk
import gobject
import gst
......
......@@ -19,6 +19,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Simple view timeline widgets
"""
import os.path
from urllib import unquote
import gobject
......@@ -83,7 +87,7 @@ class SimpleTimeline(gtk.Layout):
# drag and drop
self.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
[dnd.DND_FILESOURCE_TUPLE],
[dnd.FILESOURCE_TUPLE],
gdk.ACTION_COPY)
self.connect("drag-data-received", self._dragDataReceivedCb)
self.connect("drag-leave", self._dragLeaveCb)
......@@ -240,7 +244,7 @@ class SimpleTimeline(gtk.Layout):
def _dragDataReceivedCb(self, layout, context, x, y, selection,
targetType, timestamp):
if targetType == dnd.DND_TYPE_PITIVI_FILESOURCE:
if targetType == dnd.TYPE_PITIVI_FILESOURCE:
uri = selection.data
else:
context.finish(False, False, timestamp)
......
......@@ -20,6 +20,10 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
"""
Complex timeline composition track widget
"""
import gtk
import gst
import cairo
......@@ -64,7 +68,7 @@ class TrackLayer(gtk.Layout, ZoomableWidgetInterface):
# drag and drop
self.drag_dest_set(gtk.DEST_DEFAULT_DROP | gtk.DEST_DEFAULT_MOTION,
[dnd.DND_FILESOURCE_TUPLE],
[dnd.FILESOURCE_TUPLE],
gtk.gdk.ACTION_COPY)
self.connect('drag-data-received', self._dragDataReceivedCb)
self.connect('drag-leave', self._dragLeaveCb)
......@@ -204,7 +208,7 @@ class TrackLayer(gtk.Layout, ZoomableWidgetInterface):
# something was dropped
gst.debug("%s" % type(selection))
self.dragObject = None
if targetType == dnd.DND_TYPE_PITIVI_FILESOURCE:
if targetType == dnd.TYPE_PITIVI_FILESOURCE:
# a source was dropped
source = instance.PiTiVi.current.sources[selection.data]
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment