MainWindow.h 2.7 KB
Newer Older
Ludovic Fauvet's avatar
Ludovic Fauvet committed
1
/*****************************************************************************
2
 * MainWindow.h: VLMC MainWindow
Ludovic Fauvet's avatar
Ludovic Fauvet committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
 *****************************************************************************
 * Copyright (C) 2008-2009 the VLMC team
 *
 * Authors: Ludovic Fauvet <etix@l0cal.com>
 *
 * 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 <QApplication>
27
#include <QSlider>
28

Ludovic Fauvet's avatar
Ludovic Fauvet committed
29
#include "ui_MainWindow.h"
30

31
#include "DockWidgetManager.h"
32
#include "LanguagePreferences.h"
33
#include "MetaDataManager.h"
34
#include "Timeline.h"
35
#include "WorkflowFileRenderer.h"
36
#include "PreviewWidget.h"
37
#include "ListViewMediaItem.h"
38
#include "Settings.h"
39

40

Ludovic Fauvet's avatar
Ludovic Fauvet committed
41 42 43
class MainWindow : public QMainWindow
{
    Q_OBJECT
Ludovic Fauvet's avatar
Ludovic Fauvet committed
44
    Q_DISABLE_COPY( MainWindow )
Ludovic Fauvet's avatar
Ludovic Fauvet committed
45 46 47

public:
    explicit MainWindow( QWidget *parent = 0 );
48
    void registerWidgetInViewMenu( QDockWidget* widget );
49
    ~MainWindow();
Ludovic Fauvet's avatar
Ludovic Fauvet committed
50

Ludovic Fauvet's avatar
Ludovic Fauvet committed
51 52 53 54
public slots:
    void        zoomIn();
    void        zoomOut();

Ludovic Fauvet's avatar
Ludovic Fauvet committed
55 56 57 58
protected:
    virtual void changeEvent( QEvent *e );

private:
59
    void        initializeDockWidgets( void );
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
60
    void        setupLibrary();
61
    void        createStatusBar();
62
    void        createGlobalPreferences();
63

64

65 66 67 68
    Ui::MainWindow          m_ui;
    MetaDataManager*        m_metaDataManager;
    QSlider*                m_zoomSlider;
    Timeline*               m_timeline;
69 70
    PreviewWidget*          m_clipPreview;
    PreviewWidget*          m_projectPreview;
71
    WorkflowFileRenderer*   m_renderer;
72
    Settings*      m_globalPreferences;
Ludovic Fauvet's avatar
Ludovic Fauvet committed
73 74

private slots:
Ludovic Fauvet's avatar
Ludovic Fauvet committed
75
    void on_actionFullscreen_triggered( bool checked );
Ludovic Fauvet's avatar
Ludovic Fauvet committed
76
    void on_actionQuit_triggered();
77 78
    void on_actionAbout_triggered();
    void on_actionPreferences_triggered();
79
    void on_actionTranscode_File_triggered();
80
    void on_actionRender_triggered();
81 82
    void on_actionNew_Project_triggered();
    void on_actionOpen_Project_triggered();
83
    void mediaListItemDoubleClicked( QListWidgetItem* );
84 85 86

signals:
    void translateDockWidgetTitle();
87

88
};
Ludovic Fauvet's avatar
Ludovic Fauvet committed
89 90

#endif // MAINWINDOW_H