MainWindow.h 3.28 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 "ListViewMediaItem.h"
40
#include "Settings.h"
41
42
#include "EffectsEngine.h"
#include "MainWorkflow.h"
43
#include "ProjectWizard.h"
44

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

public:
51

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

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

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

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
    void on_actionBypass_effects_engine_toggled(bool );
Ludovic Fauvet's avatar
Ludovic Fauvet committed
83
    void on_actionFullscreen_triggered( bool checked );
Ludovic Fauvet's avatar
Ludovic Fauvet committed
84
    void on_actionQuit_triggered();
85
86
    void on_actionAbout_triggered();
    void on_actionPreferences_triggered();
87
    void on_actionTranscode_triggered();
88
    void on_actionRender_triggered();
89
    void on_actionNew_Project_triggered();
90
    void on_actionLoad_Project_triggered();
91
    void on_actionSave_triggered();
92
    void on_actionImport_triggered();
93
    void on_actionHelp_triggered();
94
    void on_actionProject_Preferences_triggered();
95
    void on_actionProject_Wizard_triggered();
96
    void mediaListItemDoubleClicked( QListWidgetItem* );
97
    void toolButtonClicked( int id );
98
99
100

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

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

#endif // MAINWINDOW_H