-/***************************************************************************
- * Tab widget
- ***************************************************************************/
-
-InfoTab::InfoTab( QWidget *parent, intf_thread_t *_p_intf, bool _stats ) :
- QTabWidget( parent ), stats( _stats ), p_intf( _p_intf )
-{
- MP = new MetaPanel( NULL, p_intf );
- addTab( MP, qtr( "&General" ) );
- EMP = new ExtraMetaPanel( NULL, p_intf );
- addTab( EMP, qtr( "&Extra Metadata" ) );
- IP = new InfoPanel( NULL, p_intf);
- addTab(IP, qtr("&Codec Details"));
- if( stats )
- {
- ISP = new InputStatsPanel( NULL, p_intf );
- addTab(ISP, qtr("&Stats"));
- }
-}
-
-InfoTab::~InfoTab()
-{
-}
-
-/* This function should be called approximately twice a second.
- * p_item should be locked
- * Stats will always be updated */
-void InfoTab::update( input_item_t *p_item, bool update_info,
- bool update_meta )
-{
- if( update_info )
- IP->update( p_item );
- if( update_meta )
- MP->update( p_item );
- EMP->update( p_item );
- if( stats )
- ISP->update( p_item );
-}
-
-void InfoTab::clear()
-{
- IP->clear();
- MP->clear();
- EMP->clear();
- if( stats ) ISP->clear();
-}