Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
d15d5805
Commit
d15d5805
authored
Jul 26, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue 663
parent
4e7dac2f
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
316 additions
and
233 deletions
+316
-233
indexingParameters.xml
resources/customizations/teacherGuide/indexingParameters.xml
+7
-0
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+5
-1
UBBoardController.cpp
src/board/UBBoardController.cpp
+8
-2
UBBoardPaletteManager.h
src/board/UBBoardPaletteManager.h
+2
-0
UBApplicationController.cpp
src/core/UBApplicationController.cpp
+3
-1
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+11
-3
UBDockTeacherGuideWidget.cpp
src/gui/UBDockTeacherGuideWidget.cpp
+5
-0
UBDockTeacherGuideWidget.h
src/gui/UBDockTeacherGuideWidget.h
+2
-0
UBTeacherGuideWidget.cpp
src/gui/UBTeacherGuideWidget.cpp
+268
-226
UBTeacherGuideWidget.h
src/gui/UBTeacherGuideWidget.h
+5
-0
No files found.
resources/customizations/teacherGuide/indexingParameters.xml
View file @
d15d5805
<?xml version="1.0" encoding="UTF-8"?>
<teacherGuide>
<gradeLevels>
<gradeLevel
label=
""
baseLevel=
"Maternelle"
/>
<gradeLevel
label=
"Petite Section (3-4 ans)"
baseLevel=
"Maternelle"
/>
<gradeLevel
label=
"Moyenne Section (4-5 ans)"
baseLevel=
"Maternelle"
/>
<gradeLevel
label=
"Grande Section (5-6 ans)"
baseLevel=
"Maternelle"
/>
...
...
@@ -22,6 +23,7 @@
<gradeLevel
label=
"Education Spécialisée"
baseLevel=
"Enseignement Professionnel"
/>
</gradeLevels>
<subjects
baseLevel=
"Maternelle"
>
<subject
label=
""
/>
<subject
label=
"Percevoir, sentir, imaginer, créer"
/>
<subject
label=
"Découvrir l'écrit"
/>
<subject
label=
"S'approprier le langage"
/>
...
...
@@ -29,6 +31,7 @@
<subject
label=
"Découvrir le monde"
/>
</subjects>
<subjects
baseLevel=
"Elémentaire"
>
<subject
label=
""
/>
<subject
label=
"Pratiques artistiques"
/>
<subject
label=
"Pratiques artistiques - arts visuels"
/>
<subject
label=
"Pratiques artistiques - éducation musicale"
/>
...
...
@@ -50,6 +53,7 @@
<subject
label=
"TUIC"
/>
</subjects>
<subjects
baseLevel=
"Collège"
>
<subject
label=
""
/>
<subject
label=
"Pratiques artistiques"
/>
<subject
label=
"Pratiques artistiques - arts visuels"
/>
<subject
label=
"Pratiques artistiques - éducation musicale"
/>
...
...
@@ -80,6 +84,7 @@
<subject
label=
"Education aux médias"
/>
</subjects>
<subjects
baseLevel=
"Lycée"
>
<subject
label=
""
/>
<subject
label=
"Enseignements artistiques"
/>
<subject
label=
"Agriculture"
/>
<subject
label=
"Arts"
/>
...
...
@@ -125,6 +130,7 @@
<subject
label=
"Philosophie"
/>
</subjects>
<subjects
baseLevel=
"Enseignement Professionnel"
>
<subject
label=
""
/>
<subject
label=
"Enseignements artistiques"
/>
<subject
label=
"Agriculture"
/>
<subject
label=
"Arts"
/>
...
...
@@ -169,6 +175,7 @@
<subject
label=
"Philosophie"
/>
</subjects>
<types>
<type
label=
""
/>
<type
label=
"Activité : Evaluation/Travail à la maison"
/>
<type
label=
"Activité : Exercice"
/>
<type
label=
"Activité : Travaux Pratiques"
/>
...
...
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
d15d5805
...
...
@@ -45,6 +45,7 @@
#include "board/UBBoardView.h"
#include "board/UBBoardController.h"
#include "board/UBDrawingController.h"
#include "board/UBBoardPaletteManager.h"
#include "frameworks/UBFileSystemUtils.h"
#include "frameworks/UBStringUtils.h"
...
...
@@ -54,6 +55,9 @@
#include "core/UBPersistenceManager.h"
#include "core/UBApplication.h"
#include "gui/UBTeacherGuideWidget.h"
#include "gui/UBDockTeacherGuideWidget.h"
#include "interfaces/IDataStorage.h"
#include "document/UBDocumentContainer.h"
...
...
@@ -1142,7 +1146,7 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::writeSvgElement()
bool
UBSvgSubsetAdaptor
::
UBSvgSubsetWriter
::
persistScene
(
int
pageIndex
)
{
if
(
mScene
->
isModified
())
if
(
mScene
->
isModified
()
||
(
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
()
&&
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
()
->
teacherGuideWidget
()
->
isModified
())
)
{
//Creating dom structure to store information
...
...
src/board/UBBoardController.cpp
View file @
d15d5805
...
...
@@ -38,6 +38,9 @@
#include "gui/UBToolWidget.h"
#include "gui/UBKeyboardPalette.h"
#include "gui/UBMagnifer.h"
#include "gui/UBDockPaletteWidget.h"
#include "gui/UBDockTeacherGuideWidget.h"
#include "gui/UBTeacherGuideWidget.h"
#include "domain/UBGraphicsPixmapItem.h"
#include "domain/UBGraphicsItemUndoCommand.h"
...
...
@@ -1464,7 +1467,10 @@ void UBBoardController::lastWindowClosed()
{
if
(
!
mCleanupDone
)
{
if
(
selectedDocument
()
->
pageCount
()
==
1
&&
(
!
mActiveScene
||
mActiveScene
->
isEmpty
()))
bool
teacherGuideModified
=
false
;
if
(
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
())
teacherGuideModified
=
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
()
->
teacherGuideWidget
()
->
isModified
();
if
(
selectedDocument
()
->
pageCount
()
==
1
&&
(
!
mActiveScene
||
mActiveScene
->
isEmpty
())
&&
!
teacherGuideModified
)
{
UBPersistenceManager
::
persistenceManager
()
->
deleteDocument
(
selectedDocument
());
}
...
...
@@ -1591,7 +1597,7 @@ void UBBoardController::persistCurrentScene()
if
(
UBPersistenceManager
::
persistenceManager
()
&&
selectedDocument
()
&&
mActiveScene
&&
(
mActiveSceneIndex
>=
0
)
&&
mActiveScene
->
isModified
(
))
&&
(
mActiveScene
->
isModified
()
||
(
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
()
&&
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
()
->
teacherGuideWidget
()
->
isModified
())
))
{
emit
activeSceneWillBePersisted
();
...
...
src/board/UBBoardPaletteManager.h
View file @
d15d5805
...
...
@@ -69,6 +69,8 @@ class UBBoardPaletteManager : public QObject
void
setCurrentWebToolsPalette
(
UBWebToolsPalette
*
palette
)
{
mWebToolsCurrentPalette
=
palette
;}
UBWebToolsPalette
*
mWebToolsCurrentPalette
;
UBDockTeacherGuideWidget
*
teacherGuideDockWidget
()
{
return
mpTeacherGuideWidget
;}
void
processPalettersWidget
(
UBDockPalette
*
paletter
,
eUBDockPaletteWidgetMode
mode
);
void
changeMode
(
eUBDockPaletteWidgetMode
newMode
,
bool
isInit
=
false
);
void
startDownloads
();
...
...
src/core/UBApplicationController.cpp
View file @
d15d5805
...
...
@@ -40,6 +40,8 @@
#include "gui/UBScreenMirror.h"
#include "gui/UBMainWindow.h"
#include "gui/UBDockTeacherGuideWidget.h"
#include "gui/UBTeacherGuideWidget.h"
#include "domain/UBGraphicsPixmapItem.h"
#include "domain/UBW3CWidget.h"
...
...
@@ -419,7 +421,7 @@ void UBApplicationController::showDocument()
if
(
UBApplication
::
boardController
)
{
if
(
UBApplication
::
boardController
->
activeScene
()
->
isModified
())
if
(
UBApplication
::
boardController
->
activeScene
()
->
isModified
()
||
(
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
()
&&
UBApplication
::
boardController
->
paletteManager
()
->
teacherGuideDockWidget
()
->
teacherGuideWidget
()
->
isModified
())
)
UBApplication
::
boardController
->
persistCurrentScene
();
UBApplication
::
boardController
->
hide
();
}
...
...
src/core/UBPersistenceManager.cpp
View file @
d15d5805
...
...
@@ -25,6 +25,9 @@
#include "core/UBSettings.h"
#include "core/UBSetting.h"
#include "gui/UBDockTeacherGuideWidget.h"
#include "gui/UBTeacherGuideWidget.h"
#include "document/UBDocumentProxy.h"
#include "adaptors/UBExportPDF.h"
...
...
@@ -33,6 +36,7 @@
#include "adaptors/UBMetadataDcSubsetAdaptor.h"
#include "board/UBBoardController.h"
#include "board/UBBoardPaletteManager.h"
#include "interfaces/IDataStorage.h"
...
...
@@ -591,7 +595,6 @@ UBGraphicsScene* UBPersistenceManager::loadDocumentScene(UBDocumentProxy* proxy,
}
}
void
UBPersistenceManager
::
persistDocumentScene
(
UBDocumentProxy
*
pDocumentProxy
,
UBGraphicsScene
*
pScene
,
const
int
pSceneIndex
)
{
checkIfDocumentRepositoryExists
();
...
...
@@ -603,10 +606,15 @@ void UBPersistenceManager::persistDocumentScene(UBDocumentProxy* pDocumentProxy,
QDir
dir
(
pDocumentProxy
->
persistencePath
());
dir
.
mkpath
(
pDocumentProxy
->
persistencePath
());
if
(
pDocumentProxy
->
isModified
())
UBBoardPaletteManager
*
paletteManager
=
UBApplication
::
boardController
->
paletteManager
();
bool
teacherGuideModified
=
false
;
if
(
paletteManager
->
teacherGuideDockWidget
())
teacherGuideModified
=
paletteManager
->
teacherGuideDockWidget
()
->
teacherGuideWidget
()
->
isModified
();
if
(
pDocumentProxy
->
isModified
()
||
teacherGuideModified
)
UBMetadataDcSubsetAdaptor
::
persist
(
pDocumentProxy
);
if
(
pScene
->
isModified
())
if
(
pScene
->
isModified
()
||
teacherGuideModified
)
{
UBSvgSubsetAdaptor
::
persistScene
(
pDocumentProxy
,
pScene
,
pSceneIndex
);
...
...
src/gui/UBDockTeacherGuideWidget.cpp
View file @
d15d5805
...
...
@@ -44,3 +44,8 @@ UBDockTeacherGuideWidget::~UBDockTeacherGuideWidget()
DELETEPTR
(
mpTeacherGuideWidget
);
DELETEPTR
(
mpLayout
);
}
UBTeacherGuideWidget
*
UBDockTeacherGuideWidget
::
teacherGuideWidget
()
{
return
mpTeacherGuideWidget
;
}
src/gui/UBDockTeacherGuideWidget.h
View file @
d15d5805
...
...
@@ -31,6 +31,8 @@ public:
bool
visibleInMode
(
eUBDockPaletteWidgetMode
mode
){
return
mode
==
eUBDockPaletteWidget_BOARD
;
}
UBTeacherGuideWidget
*
teacherGuideWidget
();
private
:
QVBoxLayout
*
mpLayout
;
UBTeacherGuideWidget
*
mpTeacherGuideWidget
;
...
...
src/gui/UBTeacherGuideWidget.cpp
View file @
d15d5805
This diff is collapsed.
Click to expand it.
src/gui/UBTeacherGuideWidget.h
View file @
d15d5805
...
...
@@ -50,6 +50,8 @@ public:
void
load
(
QString
element
);
QVector
<
tIDataStorage
*>
save
(
int
pageIndex
);
bool
isModified
();
public
slots
:
void
onAddItemClicked
(
QTreeWidgetItem
*
widget
,
int
column
,
QDomElement
*
element
=
0
);
void
onActiveSceneChanged
();
...
...
@@ -124,6 +126,7 @@ public:
~
UBTeacherGuidePageZeroWidget
();
QVector
<
tUBGEElementNode
*>
getData
();
bool
isModified
();
public
slots
:
...
...
@@ -198,6 +201,8 @@ public:
explicit
UBTeacherGuideWidget
(
QWidget
*
parent
=
0
,
const
char
*
name
=
"UBTeacherGuideWidget"
);
~
UBTeacherGuideWidget
();
bool
isModified
();
public
slots
:
void
changeMode
();
void
showPresentationMode
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment