+/***************************************************************************
+ * Copyright (C) 2007 by Jean-Baptiste Mardelle (jb@kdenlive.org) *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ ***************************************************************************/
+
+
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
-
+
#include <QDockWidget>
+#include <QUndoView>
+#include <QLabel>
+#include <QProgressBar>
+#include <QEvent>
#include <KXmlGuiWindow>
#include <KTextEdit>
#include <KListWidget>
#include <KTabWidget>
#include <KUndoStack>
+#include <KRecentFilesAction>
+#include <KComboBox>
#include "projectlist.h"
#include "monitor.h"
+#include "recmonitor.h"
#include "monitormanager.h"
#include "kdenlivedoc.h"
#include "trackview.h"
+#include "customtrackview.h"
+#include "effectslist.h"
+#include "effectslistview.h"
+#include "effectstackview.h"
+#include "transitionsettings.h"
+#include "ui_timelinebuttons_ui.h"
+#include "renderwidget.h"
+#include "jogshuttle.h"
+
+class MainWindow : public KXmlGuiWindow {
+ Q_OBJECT
+
+public:
+ MainWindow(QWidget *parent = 0);
-class MainWindow : public KXmlGuiWindow
-{
- Q_OBJECT
-
- public:
- MainWindow(QWidget *parent=0);
- void openFile(const QString &inputFileName);
-
- private:
+ void parseProfiles();
+
+protected:
+ virtual bool queryClose();
+ virtual void customEvent(QEvent * e);
+
+private:
KTabWidget* m_timelineArea;
+ QProgressBar *statusProgressBar;
+ QLabel* statusLabel;
void setupActions();
- QString fileName;
KdenliveDoc *m_activeDocument;
+ TrackView *m_activeTimeline;
MonitorManager *m_monitorManager;
QDockWidget *projectListDock;
ProjectList *m_projectList;
QDockWidget *effectListDock;
- KListWidget *effectList;
+ EffectsListView *m_effectList;
+ //KListWidget *m_effectList;
QDockWidget *effectStackDock;
- KListWidget *effectStack;
+ EffectStackView *effectStack;
QDockWidget *transitionConfigDock;
- KListWidget *transitionConfig;
+ TransitionSettings *transitionConfig;
QDockWidget *clipMonitorDock;
Monitor *m_clipMonitor;
QDockWidget *projectMonitorDock;
Monitor *m_projectMonitor;
- KUndoStack *m_commandStack;
-
- private slots:
+ QDockWidget *recMonitorDock;
+ RecMonitor *m_recMonitor;
+
+ QDockWidget *undoViewDock;
+ QUndoView *m_undoView;
+ QUndoGroup *m_commandStack;
+
+ KComboBox *m_timecodeFormat;
+
+ QDockWidget *overviewDock;
+ CustomTrackView *m_overView;
+
+ EffectsList m_videoEffects;
+ EffectsList m_audioEffects;
+ EffectsList m_customEffects;
+
+ QMenu *m_timelineContextMenu;
+ QMenu *m_timelineContextClipMenu;
+ QMenu *m_timelineContextTransitionMenu;
+
+ RenderWidget *m_renderWidget;
+ Ui::TimelineButtons_UI timeline_buttons_ui;
+
+ JogShuttle *m_jogProcess;
+
+ KRecentFilesAction *m_fileOpenRecent;
+ void readOptions();
+ void saveOptions();
+ void activateShuttleDevice();
+ void slotShuttleAction(int code);
+
+public slots:
+ void openFile(const KUrl &url);
+
+private slots:
void newFile();
+ void undo();
+ void redo();
void activateDocument();
void connectDocument(TrackView*, KdenliveDoc*);
void openFile();
void saveFileAs();
void saveFileAs(const QString &outputFileName);
void slotPreferences();
+ void updateConfiguration();
void slotConnectMonitors();
void slotRaiseMonitor(bool clipMonitor);
+ void slotSetClipDuration(int id, int duration);
+ void slotUpdateMousePosition(int pos);
+ void slotAddEffect(QDomElement effect, GenTime pos = GenTime(), int track = -1);
+ void slotEditProfiles();
+ void slotEditProjectSettings();
+ void slotDisplayActionMessage(QAction *a);
+ void slotGotProgressInfo(KUrl url, int progress);
+ void slotSwitchVideoThumbs();
+ void slotSwitchAudioThumbs();
+ void slotRenderProject();
+ void slotDoRender(const QString &dest, const QString &render, const QStringList &avformat_args, bool zoneOnly, bool playAfter);
+ void slotFullScreen();
+ void slotUpdateDocumentState(bool modified);
+ void slotZoomIn();
+ void slotZoomOut();
+ void slotFitZoom();
+ void slotRemoveTab();
+ void slotDeleteTimelineClip();
+ void slotAddVideoEffect(QAction *result);
+ void slotAddAudioEffect(QAction *result);
+ void slotAddCustomEffect(QAction *result);
+ void slotAddProjectClip(KUrl url);
+ void slotShuttleButton(int code);
};
-
+
#endif