]> git.sesse.net Git - kdenlive/blob - src/mainwindow.h
Start porting timeline to QGraphicsView
[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
35 #include "projectlist.h"
36 #include "monitor.h"
37 #include "monitormanager.h"
38 #include "kdenlivedoc.h"
39 #include "trackview.h"
40 #include "customtrackview.h"
41
42 class MainWindow : public KXmlGuiWindow
43 {
44   Q_OBJECT
45   
46   public:
47     MainWindow(QWidget *parent=0);
48
49   protected:
50     virtual bool queryClose();
51   
52   private:
53     KTabWidget* m_timelineArea;
54     void setupActions();
55     QString fileName;
56     KdenliveDoc *m_activeDocument;
57     MonitorManager *m_monitorManager;
58
59     QDockWidget *projectListDock;
60     ProjectList *m_projectList;
61
62     QDockWidget *effectListDock;
63     KListWidget *effectList;
64
65     QDockWidget *effectStackDock;
66     KListWidget *effectStack;
67
68     QDockWidget *transitionConfigDock;
69     KListWidget *transitionConfig;
70
71     QDockWidget *clipMonitorDock;
72     Monitor *m_clipMonitor;
73
74     QDockWidget *projectMonitorDock;
75     Monitor *m_projectMonitor;
76
77     QDockWidget *undoViewDock;
78     QUndoView *m_undoView;
79     KUndoStack *m_commandStack;
80     QAction *m_undo;
81     QAction *m_redo;
82
83     QDockWidget *overviewDock;
84     CustomTrackView *m_overView;
85
86     KRecentFilesAction *m_fileOpenRecent;
87     void readOptions();
88     void saveOptions();
89
90   public slots:
91     void openFile(const KUrl &url);
92
93
94   private slots:
95     void newFile();
96     void activateDocument();
97     void connectDocument(TrackView*, KdenliveDoc*);
98     void openFile();
99     void saveFile();
100     void saveFileAs();
101     void saveFileAs(const QString &outputFileName);
102     void slotPreferences();
103     void slotConnectMonitors();
104     void slotRaiseMonitor(bool clipMonitor);
105 };
106  
107 #endif