]> git.sesse.net Git - kdenlive/blob - src/mainwindow.h
effectstack start
[kdenlive] / src / mainwindow.h
1 /***************************************************************************
2  *   Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
3  *                                                                         *
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.                                   *
8  *                                                                         *
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.                          *
13  *                                                                         *
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  ***************************************************************************/
19
20
21 #ifndef MAINWINDOW_H
22 #define MAINWINDOW_H
23  
24 #include <QDockWidget>
25 #include <QUndoView>
26 #include <QLabel>
27
28 #include <KXmlGuiWindow>
29 #include <KTextEdit>
30 #include <KListWidget>
31 #include <KTabWidget>
32 #include <KUndoStack>
33 #include <KRecentFilesAction>
34 #include <KComboBox>
35
36 #include "projectlist.h"
37 #include "monitor.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"
45
46 class MainWindow : public KXmlGuiWindow
47 {
48   Q_OBJECT
49   
50   public:
51     MainWindow(QWidget *parent=0);
52
53   protected:
54     virtual bool queryClose();
55   
56   private:
57     KTabWidget* m_timelineArea;
58     void setupActions();
59     QString fileName;
60     KdenliveDoc *m_activeDocument;
61     MonitorManager *m_monitorManager;
62
63     QDockWidget *projectListDock;
64     ProjectList *m_projectList;
65
66     QDockWidget *effectListDock;
67     EffectsListView *m_effectList;
68     //KListWidget *m_effectList;
69
70     QDockWidget *effectStackDock;
71     EffectStackView *effectStack;
72
73     QDockWidget *transitionConfigDock;
74     KListWidget *transitionConfig;
75
76     QDockWidget *clipMonitorDock;
77     Monitor *m_clipMonitor;
78
79     QDockWidget *projectMonitorDock;
80     Monitor *m_projectMonitor;
81
82     QDockWidget *undoViewDock;
83     QUndoView *m_undoView;
84     KUndoStack *m_commandStack;
85     QAction *m_undo;
86     QAction *m_redo;
87
88     KComboBox *m_timecodeFormat;
89
90     QDockWidget *overviewDock;
91     CustomTrackView *m_overView;
92
93     EffectsList m_videoEffects;
94     EffectsList m_audioEffects;
95     EffectsList m_customEffects;
96
97     KRecentFilesAction *m_fileOpenRecent;
98     void readOptions();
99     void saveOptions();
100
101   public slots:
102     void openFile(const KUrl &url);
103
104   private slots:
105     void newFile();
106     void activateDocument();
107     void connectDocument(TrackView*, KdenliveDoc*);
108     void openFile();
109     void saveFile();
110     void saveFileAs();
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);
117     void slotAddEffect(int effectType, const QString &effectName);
118 };
119  
120 #endif