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"
44 #include "effectstackview.h"
46 class MainWindow : public KXmlGuiWindow
51 MainWindow(QWidget *parent=0);
56 virtual bool queryClose();
59 KTabWidget* m_timelineArea;
62 KdenliveDoc *m_activeDocument;
63 MonitorManager *m_monitorManager;
65 QDockWidget *projectListDock;
66 ProjectList *m_projectList;
68 QDockWidget *effectListDock;
69 EffectsListView *m_effectList;
70 //KListWidget *m_effectList;
72 QDockWidget *effectStackDock;
73 EffectStackView *effectStack;
75 QDockWidget *transitionConfigDock;
76 KListWidget *transitionConfig;
78 QDockWidget *clipMonitorDock;
79 Monitor *m_clipMonitor;
81 QDockWidget *projectMonitorDock;
82 Monitor *m_projectMonitor;
84 QDockWidget *undoViewDock;
85 QUndoView *m_undoView;
86 KUndoStack *m_commandStack;
90 KComboBox *m_timecodeFormat;
92 QDockWidget *overviewDock;
93 CustomTrackView *m_overView;
95 EffectsList m_videoEffects;
96 EffectsList m_audioEffects;
97 EffectsList m_customEffects;
99 KRecentFilesAction *m_fileOpenRecent;
104 void openFile(const KUrl &url);
108 void activateDocument();
109 void connectDocument(TrackView*, KdenliveDoc*);
113 void saveFileAs(const QString &outputFileName);
114 void slotPreferences();
115 void slotConnectMonitors();
116 void slotRaiseMonitor(bool clipMonitor);
117 void slotSetClipDuration(int id, int duration);
118 void slotUpdateMousePosition(int pos);
119 void slotAddEffect(int effectType, const QString &effectName);
120 void slotEditProfiles();