1 /***************************************************************************
2 * Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org) *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
24 #include <QDockWidget>
28 #include <KXmlGuiWindow>
30 #include <KListWidget>
33 #include <KRecentFilesAction>
35 #include "projectlist.h"
37 #include "monitormanager.h"
38 #include "kdenlivedoc.h"
39 #include "trackview.h"
40 #include "customtrackview.h"
42 class MainWindow : public KXmlGuiWindow
47 MainWindow(QWidget *parent=0);
50 virtual bool queryClose();
53 KTabWidget* m_timelineArea;
56 KdenliveDoc *m_activeDocument;
57 MonitorManager *m_monitorManager;
59 QDockWidget *projectListDock;
60 ProjectList *m_projectList;
62 QDockWidget *effectListDock;
63 KListWidget *effectList;
65 QDockWidget *effectStackDock;
66 KListWidget *effectStack;
68 QDockWidget *transitionConfigDock;
69 KListWidget *transitionConfig;
71 QDockWidget *clipMonitorDock;
72 Monitor *m_clipMonitor;
74 QDockWidget *projectMonitorDock;
75 Monitor *m_projectMonitor;
77 QDockWidget *undoViewDock;
78 QUndoView *m_undoView;
79 KUndoStack *m_commandStack;
83 QDockWidget *overviewDock;
84 CustomTrackView *m_overView;
86 KRecentFilesAction *m_fileOpenRecent;
91 void openFile(const KUrl &url);
96 void activateDocument();
97 void connectDocument(TrackView*, KdenliveDoc*);
101 void saveFileAs(const QString &outputFileName);
102 void slotPreferences();
103 void slotConnectMonitors();
104 void slotRaiseMonitor(bool clipMonitor);