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>
27 #include <QProgressBar>
29 #include <KXmlGuiWindow>
31 #include <KListWidget>
34 #include <KRecentFilesAction>
37 #include "projectlist.h"
39 #include "monitormanager.h"
40 #include "kdenlivedoc.h"
41 #include "trackview.h"
42 #include "customtrackview.h"
43 #include "effectslist.h"
44 #include "effectslistview.h"
45 #include "effectstackview.h"
48 class MainWindow : public KXmlGuiWindow {
52 MainWindow(QWidget *parent = 0);
57 virtual bool queryClose();
60 KTabWidget* m_timelineArea;
61 QProgressBar *statusProgressBar;
65 KdenliveDoc *m_activeDocument;
66 TrackView *m_activeTimeline;
67 MonitorManager *m_monitorManager;
69 QDockWidget *projectListDock;
70 ProjectList *m_projectList;
72 QDockWidget *effectListDock;
73 EffectsListView *m_effectList;
74 //KListWidget *m_effectList;
76 QDockWidget *effectStackDock;
77 EffectStackView *effectStack;
79 QDockWidget *transitionConfigDock;
80 KListWidget *transitionConfig;
82 QDockWidget *clipMonitorDock;
83 Monitor *m_clipMonitor;
85 QDockWidget *projectMonitorDock;
86 Monitor *m_projectMonitor;
88 QDockWidget *undoViewDock;
89 QUndoView *m_undoView;
90 QUndoGroup *m_commandStack;
92 KComboBox *m_timecodeFormat;
94 QDockWidget *overviewDock;
95 CustomTrackView *m_overView;
97 EffectsList m_videoEffects;
98 EffectsList m_audioEffects;
99 EffectsList m_customEffects;
101 KRecentFilesAction *m_fileOpenRecent;
106 void openFile(const KUrl &url);
112 void activateDocument();
113 void closeDocument(QWidget *w);
114 void connectDocument(TrackView*, KdenliveDoc*);
118 void saveFileAs(const QString &outputFileName);
119 void slotPreferences();
120 void updateConfiguration();
121 void slotConnectMonitors();
122 void slotRaiseMonitor(bool clipMonitor);
123 void slotSetClipDuration(int id, int duration);
124 void slotUpdateMousePosition(int pos);
125 void slotAddEffect(QDomElement effect, GenTime pos = GenTime(), int track = -1);
126 void slotEditProfiles();
127 void slotEditProjectSettings();
128 void slotDisplayActionMessage(QAction *a);
129 void slotGotProgressInfo(KUrl url, int progress);