1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 1999, 2000 VideoLAN
5 * $Id: intf.h,v 1.1 2002/09/30 11:05:39 sam Exp $
7 * Authors: Samuel Hocevar <sam@zoy.org>
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
30 #include <qapplication.h>
31 #include <qmainwindow.h>
33 #include <qtoolbutton.h>
34 #include <qwhatsthis.h>
35 #include <qpushbutton.h>
36 #include <qfiledialog.h>
38 #include <qlcdnumber.h>
40 #include <qstatusbar.h>
41 #include <qmessagebox.h>
49 /*****************************************************************************
50 * Local Qt slider class
51 *****************************************************************************/
52 class IntfSlider : public QSlider
57 IntfSlider( intf_thread_t *, QWidget * ); /* Constructor and destructor */
60 bool b_free; /* Is the slider free ? */
62 int oldvalue ( void ) { return i_oldvalue; };
63 void setOldValue( int i_value ) { i_oldvalue = i_value; };
66 void SlideStart ( void ) { b_free = FALSE; };
67 void SlideStop ( void ) { b_free = TRUE; };
70 intf_thread_t *p_intf;
74 /*****************************************************************************
75 * Local Qt interface window class
76 *****************************************************************************/
77 class IntfWindow : public QMainWindow
82 IntfWindow( intf_thread_t * );
88 void FileOpen ( void );
89 void FileQuit ( void );
91 void PlaybackPlay ( void );
92 void PlaybackPause ( void );
93 void PlaybackSlow ( void );
94 void PlaybackFast ( void );
96 void PlaylistPrev ( void );
97 void PlaylistNext ( void );
99 void DateDisplay ( int );
102 void Unimplemented( void ) { msg_Warn( p_intf, "unimplemented" ); };
105 intf_thread_t *p_intf;
107 IntfSlider *p_slider;