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