-/* This function is probably wrong, but we don't have many many choices...
- Since we can't know from the playlist Widget if we are inside a dock or not,
- because the playlist Widget can be called by THEDP, as a separate windows for
- the skins.
- Maybe the other solution is to redefine the sizeHint() of the playlist and
- ask _parent->isFloating()...
- If you think this would be better, please FIXME it...
-*/
-#if 0
-
-QSize MainInterface::sizeHint() const
-{
-#if 0
- if( b_keep_size )
- {
- if( i_visualmode )
- {
- return mainVideoSize;
- }
- else
- {
- if( VISIBLE( bgWidget) ||
- ( videoIsActive && videoWidget->isVisible() )
- )
- return mainVideoSize;
- else
- return mainBasedSize;
- }
- }
-#endif
-
- int nwidth = __MAX( controls->sizeHint().width(),
- menuBar()->sizeHint().width() );
-
- int nheight = controls->isVisible() ?
- controls->size().height()
- + inputC->size().height()
- + menuBar()->size().height()
- + statusBar()->size().height()
- : 0 ;
-
- /* if( stackCentralW->isVisible() )
- {
- nheight += stackCentralW->height();
- nwidth = __MAX( nwidth, stackCentralW->width() );
- }*/
-
-/* if( VISIBLE( bgWidget ) )
- {
- msg_Warn( p_intf, "Hello here" );
- if( i_bg_height )
- nheight += i_bg_height;
- else
- nheight += bgWidget->size().height();
- nwidth = __MAX( nwidth, bgWidget->size().width() );
- }
- else if( videoIsActive && videoWidget->isVisible() )
- {
- msg_Warn( p_intf, "Hello there" );
- nheight += videoWidget->sizeHint().height();
- nwidth = __MAX( nwidth, videoWidget->sizeHint().width() );
- }*/
-#if 0
- if( !dockPL->isFloating() && dockPL->isVisible() && dockPL->widget() )
- {
- nheight += dockPL->size().height();
- nwidth = __MAX( nwidth, dockPL->size().width() );
- msg_Warn( p_intf, "3 %i %i", nheight, nwidth );
- }
-#endif
- return QSize( nwidth, nheight );
-}
-#endif
-
-/* Video widget cannot do this synchronously as it runs in another thread */
-/* Well, could it, actually ? Probably dangerous ... */
-
-/* This function is called:
- - toggling of minimal View
- - through askUpdate() by Vout thread request video and resize video (zoom)
- - Advanced buttons toggled
- */
-void MainInterface::doComponentsUpdate()
-{
- if( isFullScreen() || isMaximized() ) return;
-
-// msg_Warn( p_intf, "Updating the geometry" );
- /* Here we resize to sizeHint() and not adjustsize because we want
- the videoWidget to be exactly the correctSize */
-
-#ifdef DEBUG_INTF
- debug();
-#endif
- /* This is WRONG, but I believe there is a Qt bug here */
- setMinimumSize( 0, 0 );
- //resize( sizeHint() );
-
- //adjustSize() ; /* This is not needed, but might help in the future */
-}
-