MainWindow.h 2.93 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 29
#include <QToolButton>
#include <QButtonGroup>
30

31
#include "vlmc.h"
Ludovic Fauvet's avatar
Ludovic Fauvet committed
32
#include "ui_MainWindow.h"
33

34
#include "DockWidgetManager.h"
35
#include "LanguagePreferences.h"
36
#include "MetaDataManager.h"
37
#include "Timeline.h"
38
#include "WorkflowFileRenderer.h"
39
#include "PreviewWidget.h"
40
#include "ListViewMediaItem.h"
41
#include "Settings.h"
42

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

public:
49

Ludovic Fauvet's avatar
Ludovic Fauvet committed
50
    explicit MainWindow( QWidget *parent = 0 );
51
    void registerWidgetInViewMenu( QDockWidget* widget );
52
    ~MainWindow();
Ludovic Fauvet's avatar
Ludovic Fauvet committed
53

Ludovic Fauvet's avatar
Ludovic Fauvet committed
54 55 56 57
public slots:
    void        zoomIn();
    void        zoomOut();

Ludovic Fauvet's avatar
Ludovic Fauvet committed
58 59 60 61
protected:
    virtual void changeEvent( QEvent *e );

private:
62
    void        initializeDockWidgets( void );
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
63
    void        setupLibrary();
64
    void        createStatusBar();
65
    void        createGlobalPreferences();
66

67

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

private slots:
Ludovic Fauvet's avatar
Ludovic Fauvet committed
79
    void on_actionFullscreen_triggered( bool checked );
Ludovic Fauvet's avatar
Ludovic Fauvet committed
80
    void on_actionQuit_triggered();
81 82
    void on_actionAbout_triggered();
    void on_actionPreferences_triggered();
83
    void on_actionTranscode_File_triggered();
84
    void on_actionRender_triggered();
85
    void on_actionNew_Project_triggered();
86
    void on_actionLoad_Project_triggered();
87
    void on_actionSave_triggered();
88
    void mediaListItemDoubleClicked( QListWidgetItem* );
89
    void toolButtonClicked( int id );
90 91 92

signals:
    void translateDockWidgetTitle();
93
    void toolChanged( ToolButtons );
94

95
};
Ludovic Fauvet's avatar
Ludovic Fauvet committed
96 97

#endif // MAINWINDOW_H