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()
iPasswordDialog = 0;
}
-void WindowManager::showProgressBar( const QString &aText )
+void WindowManager::showProgressBar( const QString &aText, bool aCancellable )
{
qDebug() << "WindowManager::showProgressBar( const QString & )";
if( iProgressBar == 0 ) {
- iProgressBar = new ProgressBar( aText );
+ iProgressBar = new ProgressBar( aText, aCancellable );
+ iProgressBar->setFixedSize( 600, 125 );
iProgressBar->show();
connect( iProgressBar, SIGNAL( cancel() ), this, SIGNAL( progressBarCancelled() ) );
}
+
+ //TODO connect connect( iWeeklyView, SIGNAL( observedEventDetected() ), this, SIGNAL( observedEventDetected() ) );
}
void WindowManager::closeProgressBar()
{
- iProgressBar->close();
- delete iProgressBar;
- iProgressBar = 0;
+ qDebug() << "WindowManager::closeProgressBar()";
+ if( iProgressBar )
+ {
+ iProgressBar->close();
+ delete iProgressBar;
+ iProgressBar = 0;
+ }
+}
+
+void WindowManager::updateProgressBar( const QString &aMessage )
+{
+ qDebug() << "WindowManager::updateProgressBar( const QString & )";
+ if( iProgressBar != 0 )
+ iProgressBar->update( aMessage );
}