]> git.sesse.net Git - vlc/blob - modules/gui/qt4/main_interface.hpp
* qt4: Added a few forward declarations and includes
[vlc] / modules / gui / qt4 / main_interface.hpp
1 /*****************************************************************************
2  * main_interface.hpp : Main Interface
3  ****************************************************************************
4  * Copyright (C) 2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/
22
23 #ifndef _MAIN_INTERFACE_H_
24 #define _MAIN_INTERFACE_H_
25
26 #include <vlc/intf.h>
27 #include "ui/main_interface.h"
28 #include "util/qvlcframe.hpp"
29
30 class QCloseEvent;
31 class QLabel;
32 class InputManager;
33 class InputSlider;
34 class VideoWidget;
35
36 class MainInterface : public QVLCMW
37 {
38     Q_OBJECT;
39 public:
40     MainInterface( intf_thread_t *);
41     virtual ~MainInterface();
42
43     void resizeEvent( QResizeEvent * );
44
45     QSize videoSize, addSize;
46
47 protected:
48     void closeEvent( QCloseEvent *);
49 private:
50     VideoWidget *videoWidget;
51     InputManager *main_input_manager;
52     QLabel *timeLabel;
53     QLabel *nameLabel;
54     InputSlider *slider;
55     /// Main input associated to the playlist
56     input_thread_t *p_input;
57     Ui::MainInterfaceUI ui;
58 private slots:
59     void setStatus( int );
60     void setName( QString );
61     void setDisplay( float, int, int );
62     void updateOnTimer();
63     void play();
64     void stop();
65     void prev();
66     void next();
67 };
68
69 #endif