-void MainInterface::calculateInterfaceSize()
-{
- int width = 0, height = 0;
- if( VISIBLE( bgWidget ) )
- {
- width = bgWidget->widgetSize.width();
- height = bgWidget->widgetSize.height();
- }
- else if( videoIsActive )
- {
- width = videoWidget->widgetSize.width() ;
- height = videoWidget->widgetSize.height();
- }
- else
- {
- width = PREF_W - addSize.width();
- height = PREF_H - addSize.height();
- }
- if( !dockPL->isFloating() && dockPL->widget() )
- {
- width += dockPL->widget()->width();
- height += dockPL->widget()->height();
- }
- if( VISIBLE( visualSelector ) )
- height += visualSelector->height();
- mainSize = QSize( width + addSize.width(), height + addSize.height() );
-}
-