]> git.sesse.net Git - kdenlive/blob - src/mainwindow.h
5c47b182a7a538f336fcaeb2e237dd0498dfc2c6
[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
27 #include <KXmlGuiWindow>
28 #include <KTextEdit>
29 #include <KListWidget>
30 #include <KTabWidget>
31 #include <KUndoStack>
32
33 #include "projectlist.h"
34 #include "monitor.h"
35 #include "monitormanager.h"
36 #include "kdenlivedoc.h"
37 #include "trackview.h"
38
39 class MainWindow : public KXmlGuiWindow
40 {
41   Q_OBJECT
42   
43   public:
44     MainWindow(QWidget *parent=0);
45     void openFile(const QString &inputFileName);
46   
47   private:
48     KTabWidget* m_timelineArea;
49     void setupActions();
50     QString fileName;
51     KdenliveDoc *m_activeDocument;
52     MonitorManager *m_monitorManager;
53
54     QDockWidget *projectListDock;
55     ProjectList *m_projectList;
56
57     QDockWidget *effectListDock;
58     KListWidget *effectList;
59
60     QDockWidget *effectStackDock;
61     KListWidget *effectStack;
62
63     QDockWidget *transitionConfigDock;
64     KListWidget *transitionConfig;
65
66     QDockWidget *clipMonitorDock;
67     Monitor *m_clipMonitor;
68
69     QDockWidget *projectMonitorDock;
70     Monitor *m_projectMonitor;
71
72     QDockWidget *undoViewDock;
73     QUndoView *m_undoView;
74     KUndoStack *m_commandStack;
75     QAction *m_undo;
76     QAction *m_redo;
77  
78   private slots:
79     void newFile();
80     void activateDocument();
81     void connectDocument(TrackView*, KdenliveDoc*);
82     void openFile();
83     void saveFile();
84     void saveFileAs();
85     void saveFileAs(const QString &outputFileName);
86     void slotPreferences();
87     void slotConnectMonitors();
88     void slotRaiseMonitor(bool clipMonitor);
89 };
90  
91 #endif