preferencesAboutTextFull
Didier 12 years ago
commit f194c5cbc6
  1. 23
      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,17 +1131,26 @@ UBTeacherGuideWidget::~UBTeacherGuideWidget()
void UBTeacherGuideWidget::onActiveSceneChanged() void UBTeacherGuideWidget::onActiveSceneChanged()
{ {
if (UBApplication::boardController->currentPage() == 0) { if (UBApplication::boardController->currentPage() == 0) {
if(mpPageZeroWidget->isModified())
mpPageZeroWidget->switchToMode(tUBTGZeroPageMode_PRESENTATION);
else
mpPageZeroWidget->switchToMode(tUBTGZeroPageMode_EDITION);
setCurrentWidget(mpPageZeroWidget); setCurrentWidget(mpPageZeroWidget);
mpPageZeroWidget->switchToMode(tUBTGZeroPageMode_EDITION);
}
else{
if(mpEditionWidget->isModified()){
mCurrentData = mpEditionWidget->getData();
mpPresentationWidget->showData(mCurrentData);
setCurrentWidget(mpPresentationWidget);
}
else
setCurrentWidget(mpEditionWidget);
} }
else
setCurrentWidget(mpEditionWidget);
} }
#include "core/UBApplication.h"
#include "gui/UBMainWindow.h"
void UBTeacherGuideWidget::onTriggeredAction(bool checked) void UBTeacherGuideWidget::onTriggeredAction(bool checked)
{ {
Q_UNUSED(checked); Q_UNUSED(checked);

Loading…
Cancel
Save