/*****************************************************************************
* playlist.cpp : Custom widgets for the playlist
****************************************************************************
- * Copyright © 2007-2008 the VideoLAN team
+ * Copyright © 2007-2010 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
/* Source Selector */
selector = new PLSelector( this, p_intf );
- QLabel *selLabel = new QLabel( "Media Browser" );
+ QLabel *selLabel = new QLabel( qtr( "Media Browser" ) );
QFont font;
font.setBold( true );
selLabel->setFont( font );
leftSplitter->setMaximumWidth( 250 );
setCollapsible( 1, false );
- /* In case we want to keep the splitter informations */
+ /* In case we want to keep the splitter information */
// components shall never write there setting to a fixed location, may infer
// with other uses of the same component...
- // getSettings()->beginGroup( "playlist" );
getSettings()->beginGroup("Playlist");
restoreState( getSettings()->value("splitterSizes").toByteArray());
leftSplitter->restoreState( getSettings()->value("leftSplitterGeometry").toByteArray() );
{
if( THEDP->isDying() )
{
- /* FIXME is it needed ? */
+ p_intf->p_sys->p_mi->playlistVisible = true;
event->accept();
}
else
{
+ p_intf->p_sys->p_mi->playlistVisible = false;
hide();
event->ignore();
}
}
+
+void PlaylistWidget::forceHide()
+{
+ leftSplitter->hide();
+ rightPanel->hide();
+ updateGeometry();
+}
+
+void PlaylistWidget::forceShow()
+{
+ leftSplitter->show();
+ rightPanel->show();
+ updateGeometry();
+}