preferencesAboutTextFull
Didier 12 years ago
commit f194c5cbc6
  1. 19
      src/gui/UBTeacherGuideWidget.cpp

@ -21,6 +21,7 @@
#include <QPushButton> #include <QPushButton>
#include <QDomDocument> #include <QDomDocument>
#include "UBTeacherGuideWidget.h" #include "UBTeacherGuideWidget.h"
#include "adaptors/UBSvgSubsetAdaptor.h" #include "adaptors/UBSvgSubsetAdaptor.h"
@ -37,6 +38,7 @@
#include "gui/UBStylusPalette.h" #include "gui/UBStylusPalette.h"
#include "gui/UBActionPalette.h" #include "gui/UBActionPalette.h"
#include "gui/UBMainWindow.h"
#include "web/UBWebController.h" #include "web/UBWebController.h"
@ -1129,16 +1131,25 @@ UBTeacherGuideWidget::~UBTeacherGuideWidget()
void UBTeacherGuideWidget::onActiveSceneChanged() void UBTeacherGuideWidget::onActiveSceneChanged()
{ {
if (UBApplication::boardController->currentPage() == 0) { if (UBApplication::boardController->currentPage() == 0) {
setCurrentWidget(mpPageZeroWidget); if(mpPageZeroWidget->isModified())
mpPageZeroWidget->switchToMode(tUBTGZeroPageMode_PRESENTATION);
else
mpPageZeroWidget->switchToMode(tUBTGZeroPageMode_EDITION); mpPageZeroWidget->switchToMode(tUBTGZeroPageMode_EDITION);
setCurrentWidget(mpPageZeroWidget);
}
else{
if(mpEditionWidget->isModified()){
mCurrentData = mpEditionWidget->getData();
mpPresentationWidget->showData(mCurrentData);
setCurrentWidget(mpPresentationWidget);
} }
else else
setCurrentWidget(mpEditionWidget); setCurrentWidget(mpEditionWidget);
} }
#include "core/UBApplication.h" }
#include "gui/UBMainWindow.h"
void UBTeacherGuideWidget::onTriggeredAction(bool checked) void UBTeacherGuideWidget::onTriggeredAction(bool checked)
{ {

Loading…
Cancel
Save