main_interface.cpp 1.85 KB
Newer Older
zorglub's avatar
zorglub committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*****************************************************************************
 * main_inteface.cpp : Main interface
 ****************************************************************************
 * Copyright (C) 2000-2005 the VideoLAN team
 * $Id: wxwidgets.cpp 15731 2006-05-25 14:43:53Z zorglub $
 *
 * Authors: Clément Stenac <zorglub@videolan.org>
 *
 * 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. *****************************************************************************/

#include "main_interface.hpp"
zorglub's avatar
zorglub committed
24 25
#include "input_manager.hpp"
#include "dialogs_provider.hpp"
zorglub's avatar
zorglub committed
26 27 28

MainInterface::MainInterface( intf_thread_t *p_intf ) : QWidget( NULL )
{
zorglub's avatar
zorglub committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
    fprintf( stderr, "QT Main interface\n" );

    /* Init UI */

    /* Init input manager */
}

void MainInterface::init()
{
    /* Get timer updates */
    QObject::connect( DialogsProvider::getInstance(NULL)->fixed_timer,
    	              SIGNAL( timeout() ), this, SLOT(updateOnTimer() ) );
    /* Tell input manager about the input changes */
    QObject::connect( this, SIGNAL( inputChanged( input_thread_t * ) ),
 	           main_input_manager, SLOT( setInput( input_thread_t * ) ) );
zorglub's avatar
zorglub committed
44 45 46 47 48
}

MainInterface::~MainInterface()
{
}
zorglub's avatar
zorglub committed
49 50 51 52 53

void MainInterface::updateOnTimer()
{

}