]> git.sesse.net Git - kdenlive/blobdiff - src/documenttrack.cpp
Add license, continue work on project tree view
[kdenlive] / src / documenttrack.cpp
index fa65d2cca32a5b8eebc78e40a6f9095ec3500407..060f55a82a5dcf6f881518049f0a4a72b93bf00a 100644 (file)
@@ -14,9 +14,29 @@ DocumentTrack::DocumentTrack(QDomElement xml, TrackView * view, QWidget *parent)
     : QWidget(parent), m_xml(xml), m_trackDuration(0)
 {
   setFixedHeight(50);
+  addFunctionDecorator("move", "move");
   parseXml();
 }
 
+int DocumentTrack::documentTrackIndex()
+{
+  return 0;
+}
+
+TrackViewClip *DocumentTrack::getClipAt(GenTime pos)
+{
+  return 0;
+}
+
+void DocumentTrack::addFunctionDecorator(const QString & mode, const QString & function) 
+{
+  m_trackPanelFunctions[mode].append(function);
+}
+
+QStringList DocumentTrack::applicableFunctions(const QString & mode) 
+{
+  return m_trackPanelFunctions[mode];
+}
 
 void DocumentTrack::parseXml()
 {