MainWindow.h 3.62 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 "Timeline.h"
37
#include "WorkflowFileRenderer.h"
38
#include "PreviewWidget.h"
39
#include "Settings.h"
40 41
#include "EffectsEngine.h"
#include "MainWorkflow.h"
42
#include "ProjectWizard.h"
43

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

public:
50

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

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

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

private:
64
    void        initializeDockWidgets( void );
Hugo Beauzee-Luyssen's avatar
Hugo Beauzee-Luyssen committed
65
    void        setupLibrary();
66
    void        createStatusBar();
67
    void        createGlobalPreferences();
68
    void        createProjectPreferences();
69

70 71 72
    Ui::MainWindow          m_ui;
    QSlider*                m_zoomSlider;
    Timeline*               m_timeline;
73 74
    PreviewWidget*          m_clipPreview;
    PreviewWidget*          m_projectPreview;
75
    WorkflowFileRenderer*   m_renderer;
76
    Settings*               m_globalPreferences;
77
    Settings*               m_DefaultProjectPreferences;
78
    Settings*               m_projectPreferences;
79
    ProjectWizard*          m_pWizard;
Ludovic Fauvet's avatar
Ludovic Fauvet committed
80 81

private slots:
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
    void                    on_actionBypass_effects_engine_toggled(bool );
    void                    on_actionFullscreen_triggered( bool checked );
    void                    on_actionQuit_triggered();
    void                    on_actionAbout_triggered();
    void                    on_actionPreferences_triggered();
    void                    on_actionTranscode_triggered();
    void                    on_actionRender_triggered();
    void                    on_actionNew_Project_triggered();
    void                    on_actionLoad_Project_triggered();
    void                    on_actionSave_triggered();
    void                    on_actionImport_triggered();
    void                    on_actionHelp_triggered();
    void                    on_actionProject_Preferences_triggered();
    void                    on_actionProject_Wizard_triggered();
    void                    toolButtonClicked( int id );
    void                    projectChanged( const QString& projectName, bool savedStatus );
98 99 100

signals:
    void translateDockWidgetTitle();
101
    void toolChanged( ToolButtons );
102

103
};
Ludovic Fauvet's avatar
Ludovic Fauvet committed
104 105

#endif // MAINWINDOW_H