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>
36 #include "projectlist.h"
38 #include "monitormanager.h"
39 #include "kdenlivedoc.h"
40 #include "trackview.h"
41 #include "customtrackview.h"
42 #include "effectslist.h"
43 #include "effectslistview.h"
45 class MainWindow : public KXmlGuiWindow
50 MainWindow(QWidget *parent=0);
53 virtual bool queryClose();
56 KTabWidget* m_timelineArea;
59 KdenliveDoc *m_activeDocument;
60 MonitorManager *m_monitorManager;
62 QDockWidget *projectListDock;
63 ProjectList *m_projectList;
65 QDockWidget *effectListDock;
66 EffectsListView *m_effectList;
67 //KListWidget *m_effectList;
69 QDockWidget *effectStackDock;
70 KListWidget *effectStack;
72 QDockWidget *transitionConfigDock;
73 KListWidget *transitionConfig;
75 QDockWidget *clipMonitorDock;
76 Monitor *m_clipMonitor;
78 QDockWidget *projectMonitorDock;
79 Monitor *m_projectMonitor;
81 QDockWidget *undoViewDock;
82 QUndoView *m_undoView;
83 KUndoStack *m_commandStack;
87 KComboBox *m_timecodeFormat;
89 QDockWidget *overviewDock;
90 CustomTrackView *m_overView;
92 EffectsList m_videoEffects;
93 EffectsList m_audioEffects;
94 EffectsList m_customEffects;
96 KRecentFilesAction *m_fileOpenRecent;
101 void openFile(const KUrl &url);
106 void activateDocument();
107 void connectDocument(TrackView*, KdenliveDoc*);
111 void saveFileAs(const QString &outputFileName);
112 void slotPreferences();
113 void slotConnectMonitors();
114 void slotRaiseMonitor(bool clipMonitor);
115 void slotSetClipDuration(int id, int duration);
116 void slotUpdateMousePosition(int pos);