]> git.sesse.net Git - kdenlive/blob - src/mainwindow.h
Reindent all source files
[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 #include <QProgressBar>
28
29 #include <KXmlGuiWindow>
30 #include <KTextEdit>
31 #include <KListWidget>
32 #include <KTabWidget>
33 #include <KUndoStack>
34 #include <KRecentFilesAction>
35 #include <KComboBox>
36
37 #include "projectlist.h"
38 #include "monitor.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"
46
47
48 class MainWindow : public KXmlGuiWindow {
49     Q_OBJECT
50
51 public:
52     MainWindow(QWidget *parent = 0);
53
54     void parseProfiles();
55
56 protected:
57     virtual bool queryClose();
58
59 private:
60     KTabWidget* m_timelineArea;
61     QProgressBar *statusProgressBar;
62     QLabel* statusLabel;
63     void setupActions();
64     QString fileName;
65     KdenliveDoc *m_activeDocument;
66     MonitorManager *m_monitorManager;
67
68     QDockWidget *projectListDock;
69     ProjectList *m_projectList;
70
71     QDockWidget *effectListDock;
72     EffectsListView *m_effectList;
73     //KListWidget *m_effectList;
74
75     QDockWidget *effectStackDock;
76     EffectStackView *effectStack;
77
78     QDockWidget *transitionConfigDock;
79     KListWidget *transitionConfig;
80
81     QDockWidget *clipMonitorDock;
82     Monitor *m_clipMonitor;
83
84     QDockWidget *projectMonitorDock;
85     Monitor *m_projectMonitor;
86
87     QDockWidget *undoViewDock;
88     QUndoView *m_undoView;
89     KUndoStack *m_commandStack;
90     QAction *m_undo;
91     QAction *m_redo;
92
93     KComboBox *m_timecodeFormat;
94
95     QDockWidget *overviewDock;
96     CustomTrackView *m_overView;
97
98     EffectsList m_videoEffects;
99     EffectsList m_audioEffects;
100     EffectsList m_customEffects;
101
102     KRecentFilesAction *m_fileOpenRecent;
103     void readOptions();
104     void saveOptions();
105
106 public slots:
107     void openFile(const KUrl &url);
108
109 private slots:
110     void newFile();
111     void activateDocument();
112     void connectDocument(TrackView*, KdenliveDoc*);
113     void openFile();
114     void saveFile();
115     void saveFileAs();
116     void saveFileAs(const QString &outputFileName);
117     void slotPreferences();
118     void slotConnectMonitors();
119     void slotRaiseMonitor(bool clipMonitor);
120     void slotSetClipDuration(int id, int duration);
121     void slotUpdateMousePosition(int pos);
122     void slotAddEffect(QDomElement effect, GenTime pos = GenTime(), int track = -1);
123     void slotEditProfiles();
124     void slotEditProjectSettings();
125     void slotDisplayActionMessage(QAction *a);
126     void slotGotProgressInfo(KUrl url, int progress);
127 };
128
129 #endif