]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.h
Add license, continue work on project tree view
[kdenlive] / src / mainwindow.h
index 463d448f02aa7aab3bc1370f43a3c437e7c01791..5c47b182a7a538f336fcaeb2e237dd0498dfc2c6 100644 (file)
@@ -1,17 +1,40 @@
+/***************************************************************************
+ *   Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 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 General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
+ ***************************************************************************/
+
+
 #ifndef MAINWINDOW_H
 #define MAINWINDOW_H
  
 #include <QDockWidget>
+#include <QUndoView>
 
 #include <KXmlGuiWindow>
 #include <KTextEdit>
 #include <KListWidget>
 #include <KTabWidget>
+#include <KUndoStack>
 
 #include "projectlist.h"
 #include "monitor.h"
 #include "monitormanager.h"
 #include "kdenlivedoc.h"
+#include "trackview.h"
 
 class MainWindow : public KXmlGuiWindow
 {
@@ -45,11 +68,17 @@ class MainWindow : public KXmlGuiWindow
 
     QDockWidget *projectMonitorDock;
     Monitor *m_projectMonitor;
+
+    QDockWidget *undoViewDock;
+    QUndoView *m_undoView;
+    KUndoStack *m_commandStack;
+    QAction *m_undo;
+    QAction *m_redo;
  
   private slots:
     void newFile();
     void activateDocument();
-    void connectDocument(KdenliveDoc*);
+    void connectDocument(TrackView*, KdenliveDoc*);
     void openFile();
     void saveFile();
     void saveFileAs();