WindowManager::WindowManager( Configuration *aConfiguration ) :
QObject(),
iApplicationName( tr( "Qt Meetings" ) ),
+ iFullScreen( false ),
iConfiguration( aConfiguration ),
iWeeklyView( 0 ),
iRoomStatusView( 0 ),
{
iRoomStatusView = new RoomStatusIndicatorWidget( aRoom, aStatus, aTime, iConfiguration->displaySettings()->timeFormat() );
iRoomStatusView->setWindowTitle( iApplicationName );
+ if( iFullScreen )
+ iRoomStatusView->setWindowState( Qt::WindowFullScreen );
connect( iRoomStatusView, SIGNAL( observedEventDetected() ), this, SIGNAL( observedEventDetected() ) );
}
else
void WindowManager::fullScreen()
{
- iRoomStatusView->setWindowState( Qt::WindowFullScreen );
- iWeeklyView->setWindowState( Qt::WindowFullScreen );
+ if ( iRoomStatusView != 0 )
+ iRoomStatusView->setWindowState( Qt::WindowFullScreen );
+ if ( iWeeklyView != 0 )
+ iWeeklyView->setWindowState( Qt::WindowFullScreen );
+ iFullScreen = true;
}
void WindowManager::insertMeeting( Meeting *aMeeting )
connect( iPasswordDialog, SIGNAL( passwordEntered( PasswordDialog::PasswordStatus ) ),
this, SIGNAL( passwordEntered( PasswordDialog::PasswordStatus ) ) );
iPasswordDialog->show();
+
+ //TODO connect connect( iWeeklyView, SIGNAL( observedEventDetected() ), this, SIGNAL( observedEventDetected() ) );
}
void WindowManager::closePasswordDialog()
iProgressBar->show();
connect( iProgressBar, SIGNAL( cancel() ), this, SIGNAL( progressBarCancelled() ) );
}
+
+ //TODO connect connect( iWeeklyView, SIGNAL( observedEventDetected() ), this, SIGNAL( observedEventDetected() ) );
}
void WindowManager::closeProgressBar()
{
+ qDebug() << "WindowManager::closeProgressBar()";
iProgressBar->close();
delete iProgressBar;
iProgressBar = 0;
}
+
+void WindowManager::updateProgressBar( const QString &aMessage )
+{
+ qDebug() << "WindowManager::updateProgressBar( const QString & )";
+ if( iProgressBar != 0 )
+ iProgressBar->update( aMessage );
+}