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
f0734e71
Commit
f0734e71
authored
May 11, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some working issue on english
parent
76d5c99e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
77 deletions
+77
-77
UBMetadataDcSubsetAdaptor.cpp
src/adaptors/UBMetadataDcSubsetAdaptor.cpp
+6
-6
UBSettings.cpp
src/core/UBSettings.cpp
+3
-3
UBSettings.h
src/core/UBSettings.h
+2
-2
UBDocumentProxy.cpp
src/document/UBDocumentProxy.cpp
+2
-2
UBTeacherGuideWidget.cpp
src/gui/UBTeacherGuideWidget.cpp
+58
-58
UBTeacherGuideWidget.h
src/gui/UBTeacherGuideWidget.h
+6
-6
No files found.
src/adaptors/UBMetadataDcSubsetAdaptor.cpp
View file @
f0734e71
...
...
@@ -112,10 +112,10 @@ void UBMetadataDcSubsetAdaptor::persist(UBDocumentProxy* proxy)
// introduced in OpenSankore 1.40.00
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
sessionTitle
,
proxy
->
metaData
(
UBSettings
::
sessionTitle
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
sessionAuthors
,
proxy
->
metaData
(
UBSettings
::
sessionAuthors
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
session
Goals
,
proxy
->
metaData
(
UBSettings
::
sessionGoal
s
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
session
Objectives
,
proxy
->
metaData
(
UBSettings
::
sessionObjective
s
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
sessionKeywords
,
proxy
->
metaData
(
UBSettings
::
sessionKeywords
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
sessionGradeLevel
,
proxy
->
metaData
(
UBSettings
::
sessionGradeLevel
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
session
Branch
,
proxy
->
metaData
(
UBSettings
::
sessionBranch
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
session
Subjects
,
proxy
->
metaData
(
UBSettings
::
sessionSubjects
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
sessionType
,
proxy
->
metaData
(
UBSettings
::
sessionType
).
toString
());
xmlWriter
.
writeTextElement
(
UBSettings
::
uniboardDocumentNamespaceUri
,
UBSettings
::
sessionLicence
,
proxy
->
metaData
(
UBSettings
::
sessionLicence
).
toString
());
...
...
@@ -228,10 +228,10 @@ QMap<QString, QVariant> UBMetadataDcSubsetAdaptor::load(QString pPath)
{
metadata
.
insert
(
UBSettings
::
sessionAuthors
,
xml
.
readElementText
());
}
else
if
(
xml
.
name
()
==
UBSettings
::
session
Goal
s
// introduced in OpenSankore 1.40.00
else
if
(
xml
.
name
()
==
UBSettings
::
session
Objective
s
// introduced in OpenSankore 1.40.00
&&
xml
.
namespaceUri
()
==
UBSettings
::
uniboardDocumentNamespaceUri
)
{
metadata
.
insert
(
UBSettings
::
session
Goal
s
,
xml
.
readElementText
());
metadata
.
insert
(
UBSettings
::
session
Objective
s
,
xml
.
readElementText
());
}
else
if
(
xml
.
name
()
==
UBSettings
::
sessionKeywords
// introduced in OpenSankore 1.40.00
&&
xml
.
namespaceUri
()
==
UBSettings
::
uniboardDocumentNamespaceUri
)
...
...
@@ -243,10 +243,10 @@ QMap<QString, QVariant> UBMetadataDcSubsetAdaptor::load(QString pPath)
{
metadata
.
insert
(
UBSettings
::
sessionGradeLevel
,
xml
.
readElementText
());
}
else
if
(
xml
.
name
()
==
UBSettings
::
session
Branch
// introduced in OpenSankore 1.40.00
else
if
(
xml
.
name
()
==
UBSettings
::
session
Subjects
// introduced in OpenSankore 1.40.00
&&
xml
.
namespaceUri
()
==
UBSettings
::
uniboardDocumentNamespaceUri
)
{
metadata
.
insert
(
UBSettings
::
session
Branch
,
xml
.
readElementText
());
metadata
.
insert
(
UBSettings
::
session
Subjects
,
xml
.
readElementText
());
}
else
if
(
xml
.
name
()
==
UBSettings
::
sessionType
// introduced in OpenSankore 1.40.00
&&
xml
.
namespaceUri
()
==
UBSettings
::
uniboardDocumentNamespaceUri
)
...
...
src/core/UBSettings.cpp
View file @
f0734e71
...
...
@@ -38,10 +38,10 @@ QString UBSettings::documentVersion = QString("Version");
QString
UBSettings
::
documentUpdatedAt
=
QString
(
"UpdatedAt"
);
QString
UBSettings
::
sessionTitle
=
QString
(
"sessionTitle"
);
QString
UBSettings
::
sessionAuthors
=
QString
(
"sessionAuthors"
);
QString
UBSettings
::
session
Goals
=
QString
(
"sessionGoal
s"
);
QString
UBSettings
::
session
Objectives
=
QString
(
"sessionObjective
s"
);
QString
UBSettings
::
sessionKeywords
=
QString
(
"sessionKeywords"
);
QString
UBSettings
::
sessionGradeLevel
=
QString
(
"sessionGradeLevel"
);
QString
UBSettings
::
session
Branch
=
QString
(
"sessionBranch
"
);
QString
UBSettings
::
session
Subjects
=
QString
(
"sessionSubjects
"
);
QString
UBSettings
::
sessionType
=
QString
(
"sessionType"
);
QString
UBSettings
::
sessionLicence
=
QString
(
"sessionLicence"
);
QString
UBSettings
::
documentDate
=
QString
(
"date"
);
...
...
@@ -55,7 +55,7 @@ QString UBSettings::uniboardApplicationNamespaceUri = "http://uniboard.mnemis.co
const
int
UBSettings
::
sDefaultFontPixelSize
=
36
;
const
char
*
UBSettings
::
sDefaultFontFamily
=
"Arial"
;
QString
UBSettings
::
currentFileVersion
=
"4.
5
.0"
;
QString
UBSettings
::
currentFileVersion
=
"4.
6
.0"
;
QColor
UBSettings
::
crossDarkBackground
=
QColor
(
44
,
44
,
44
,
200
);
QColor
UBSettings
::
crossLightBackground
=
QColor
(
165
,
225
,
255
);
...
...
src/core/UBSettings.h
View file @
f0734e71
...
...
@@ -156,10 +156,10 @@ class UBSettings : public QObject
static
QString
sessionTitle
;
static
QString
sessionAuthors
;
static
QString
session
Goal
s
;
static
QString
session
Objective
s
;
static
QString
sessionKeywords
;
static
QString
sessionGradeLevel
;
static
QString
session
Branch
;
static
QString
session
Subjects
;
static
QString
sessionType
;
static
QString
sessionLicence
;
...
...
src/document/UBDocumentProxy.cpp
View file @
f0734e71
...
...
@@ -53,10 +53,10 @@ void UBDocumentProxy::init()
//teacherGuide metadata
setMetaData
(
UBSettings
::
sessionTitle
,
""
);
setMetaData
(
UBSettings
::
sessionAuthors
,
""
);
setMetaData
(
UBSettings
::
session
Goal
s
,
""
);
setMetaData
(
UBSettings
::
session
Objective
s
,
""
);
setMetaData
(
UBSettings
::
sessionKeywords
,
""
);
setMetaData
(
UBSettings
::
sessionGradeLevel
,
""
);
setMetaData
(
UBSettings
::
session
Branch
,
""
);
setMetaData
(
UBSettings
::
session
Subjects
,
""
);
setMetaData
(
UBSettings
::
sessionType
,
""
);
setMetaData
(
UBSettings
::
sessionLicence
,
""
);
}
...
...
src/gui/UBTeacherGuideWidget.cpp
View file @
f0734e71
...
...
@@ -594,18 +594,18 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons
,
mpSeparatorAuthors
(
NULL
)
,
mpCreationLabel
(
NULL
)
,
mpLastModifiedLabel
(
NULL
)
,
mp
Goal
sLabel
(
NULL
)
,
mp
Goal
s
(
NULL
)
,
mpSeparator
Goal
s
(
NULL
)
,
mp
Objective
sLabel
(
NULL
)
,
mp
Objective
s
(
NULL
)
,
mpSeparator
Objective
s
(
NULL
)
,
mpIndexLabel
(
NULL
)
,
mpKeywordsLabel
(
NULL
)
,
mpKeywords
(
NULL
)
,
mpSchoolLevelItemLabel
(
NULL
)
,
mpSchoolLevelBox
(
NULL
)
,
mpSchoolLevelValueLabel
(
NULL
)
,
mpSchool
Branch
ItemLabel
(
NULL
)
,
mpSchool
Branch
Box
(
NULL
)
,
mpSchool
Branch
ValueLabel
(
NULL
)
,
mpSchool
Subjects
ItemLabel
(
NULL
)
,
mpSchool
Subjects
Box
(
NULL
)
,
mpSchool
Subjects
ValueLabel
(
NULL
)
,
mpSchoolTypeItemLabel
(
NULL
)
,
mpSchoolTypeBox
(
NULL
)
,
mpSchoolTypeValueLabel
(
NULL
)
...
...
@@ -670,21 +670,21 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons
mpSeparatorAuthors
->
setObjectName
(
"UBTGSeparator"
);
mpLayout
->
addWidget
(
mpSeparatorAuthors
);
mp
Goal
sLabel
=
new
QLabel
(
this
);
mp
Goal
sLabel
->
setObjectName
(
"UBTGZeroPageEditionModeTitle"
);
mp
GoalsLabel
->
setText
(
tr
(
"Goal
(s)"
));
mp
Goal
sLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mp
Goal
sLabel
);
mp
Objective
sLabel
=
new
QLabel
(
this
);
mp
Objective
sLabel
->
setObjectName
(
"UBTGZeroPageEditionModeTitle"
);
mp
ObjectivesLabel
->
setText
(
tr
(
"Objective
(s)"
));
mp
Objective
sLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mp
Objective
sLabel
);
mp
Goal
s
=
new
UBTGAdaptableText
(
0
,
this
);
mp
Goal
s
->
setObjectName
(
"UBTGZeroPageInputText"
);
mp
Goals
->
setPlaceHolderText
(
tr
(
"Type goal
s here..."
));
mpLayout
->
addWidget
(
mp
Goal
s
);
mp
Objective
s
=
new
UBTGAdaptableText
(
0
,
this
);
mp
Objective
s
->
setObjectName
(
"UBTGZeroPageInputText"
);
mp
Objectives
->
setPlaceHolderText
(
tr
(
"Type objective
s here..."
));
mpLayout
->
addWidget
(
mp
Objective
s
);
mpSeparator
Goal
s
=
new
QFrame
(
this
);
mpSeparator
Goal
s
->
setFixedHeight
(
UBTG_SEPARATOR_FIXED_HEIGHT
);
mpSeparator
Goal
s
->
setObjectName
(
"UBTGSeparator"
);
mpLayout
->
addWidget
(
mpSeparator
Goal
s
);
mpSeparator
Objective
s
=
new
QFrame
(
this
);
mpSeparator
Objective
s
->
setFixedHeight
(
UBTG_SEPARATOR_FIXED_HEIGHT
);
mpSeparator
Objective
s
->
setObjectName
(
"UBTGSeparator"
);
mpLayout
->
addWidget
(
mpSeparator
Objective
s
);
mpIndexLabel
=
new
QLabel
(
this
);
mpIndexLabel
->
setObjectName
(
"UBTGZeroPageEditionModeTitle"
);
...
...
@@ -713,16 +713,16 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons
mpSchoolLevelValueLabel
=
new
QLabel
(
this
);
mpLayout
->
addWidget
(
mpSchoolLevelValueLabel
);
mpSchool
Branch
ItemLabel
=
new
QLabel
(
this
);
mpSchool
Branch
ItemLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
mpSchool
BranchItemLabel
->
setText
(
tr
(
"Branch
:"
));
mpSchool
Branch
ItemLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpSchool
Branch
ItemLabel
);
mpSchool
Branch
Box
=
new
QComboBox
(
this
);
mpSchool
Branch
Box
->
setObjectName
(
"DockPaletteWidgetComboBox"
);
mpLayout
->
addWidget
(
mpSchool
Branch
Box
);
mpSchool
Branch
ValueLabel
=
new
QLabel
(
this
);
mpLayout
->
addWidget
(
mpSchool
Branch
ValueLabel
);
mpSchool
Subjects
ItemLabel
=
new
QLabel
(
this
);
mpSchool
Subjects
ItemLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
mpSchool
SubjectsItemLabel
->
setText
(
tr
(
"Subjects
:"
));
mpSchool
Subjects
ItemLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpSchool
Subjects
ItemLabel
);
mpSchool
Subjects
Box
=
new
QComboBox
(
this
);
mpSchool
Subjects
Box
->
setObjectName
(
"DockPaletteWidgetComboBox"
);
mpLayout
->
addWidget
(
mpSchool
Subjects
Box
);
mpSchool
Subjects
ValueLabel
=
new
QLabel
(
this
);
mpLayout
->
addWidget
(
mpSchool
Subjects
ValueLabel
);
mpSchoolTypeItemLabel
=
new
QLabel
(
this
);
mpSchoolTypeItemLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
...
...
@@ -771,16 +771,16 @@ UBTeacherGuidePageZeroWidget::~UBTeacherGuidePageZeroWidget()
DELETEPTR
(
mpSeparatorAuthors
);
DELETEPTR
(
mpCreationLabel
);
DELETEPTR
(
mpLastModifiedLabel
);
DELETEPTR
(
mp
Goal
sLabel
);
DELETEPTR
(
mp
Goal
s
);
DELETEPTR
(
mpSeparator
Goal
s
);
DELETEPTR
(
mp
Objective
sLabel
);
DELETEPTR
(
mp
Objective
s
);
DELETEPTR
(
mpSeparator
Objective
s
);
DELETEPTR
(
mpIndexLabel
);
DELETEPTR
(
mpKeywordsLabel
);
DELETEPTR
(
mpKeywords
);
DELETEPTR
(
mpSchoolLevelItemLabel
);
DELETEPTR
(
mpSchoolLevelBox
);
DELETEPTR
(
mpSchool
Branch
ItemLabel
);
DELETEPTR
(
mpSchool
Branch
Box
);
DELETEPTR
(
mpSchool
Subjects
ItemLabel
);
DELETEPTR
(
mpSchool
Subjects
Box
);
DELETEPTR
(
mpSchoolTypeItemLabel
);
DELETEPTR
(
mpSchoolTypeBox
);
DELETEPTR
(
mpSeparatorIndex
);
...
...
@@ -853,15 +853,15 @@ void UBTeacherGuidePageZeroWidget::fillComboBoxes()
void
UBTeacherGuidePageZeroWidget
::
onSchoolLevelChanged
(
QString
schoolLevel
)
{
QStringList
subjects
=
mSubjects
.
value
(
mGradeLevelsMap
.
value
(
schoolLevel
));
mpSchool
Branch
Box
->
clear
();
mpSchool
Subjects
Box
->
clear
();
if
(
subjects
.
count
()){
mpSchool
Branch
ItemLabel
->
setEnabled
(
true
);
mpSchool
Branch
Box
->
setEnabled
(
true
);
mpSchool
Branch
Box
->
addItems
(
subjects
);
mpSchool
Subjects
ItemLabel
->
setEnabled
(
true
);
mpSchool
Subjects
Box
->
setEnabled
(
true
);
mpSchool
Subjects
Box
->
addItems
(
subjects
);
}
else
{
mpSchool
Branch
ItemLabel
->
setDisabled
(
true
);
mpSchool
Branch
Box
->
setDisabled
(
true
);
mpSchool
Subjects
ItemLabel
->
setDisabled
(
true
);
mpSchool
Subjects
Box
->
setDisabled
(
true
);
}
}
...
...
@@ -889,14 +889,14 @@ void UBTeacherGuidePageZeroWidget::loadData()
UBDocumentProxy
*
documentProxy
=
UBApplication
::
boardController
->
activeDocument
();
mpSessionTitle
->
setText
(
documentProxy
->
metaData
(
UBSettings
::
sessionTitle
).
toString
());
mpAuthors
->
setText
(
documentProxy
->
metaData
(
UBSettings
::
sessionAuthors
).
toString
());
mp
Goals
->
setText
(
documentProxy
->
metaData
(
UBSettings
::
sessionGoal
s
).
toString
());
mp
Objectives
->
setText
(
documentProxy
->
metaData
(
UBSettings
::
sessionObjective
s
).
toString
());
mpKeywords
->
setText
(
documentProxy
->
metaData
(
UBSettings
::
sessionKeywords
).
toString
());
int
currentIndex
=
mpSchoolLevelBox
->
findText
(
documentProxy
->
metaData
(
UBSettings
::
sessionGradeLevel
).
toString
());
mpSchoolLevelBox
->
setCurrentIndex
((
currentIndex
!=-
1
)
?
currentIndex
:
0
);
currentIndex
=
mpSchool
BranchBox
->
findText
(
documentProxy
->
metaData
(
UBSettings
::
sessionBranch
).
toString
());
mpSchool
Branch
Box
->
setCurrentIndex
((
currentIndex
!=-
1
)
?
currentIndex
:
0
);
currentIndex
=
mpSchool
SubjectsBox
->
findText
(
documentProxy
->
metaData
(
UBSettings
::
sessionSubjects
).
toString
());
mpSchool
Subjects
Box
->
setCurrentIndex
((
currentIndex
!=-
1
)
?
currentIndex
:
0
);
currentIndex
=
mpSchoolTypeBox
->
findText
(
documentProxy
->
metaData
(
UBSettings
::
sessionType
).
toString
());
mpSchoolTypeBox
->
setCurrentIndex
((
currentIndex
!=-
1
)
?
currentIndex
:
0
);
...
...
@@ -913,10 +913,10 @@ void UBTeacherGuidePageZeroWidget::persistData()
UBDocumentProxy
*
documentProxy
=
UBApplication
::
boardController
->
activeDocument
();
documentProxy
->
setMetaData
(
UBSettings
::
sessionTitle
,
mpSessionTitle
->
text
());
documentProxy
->
setMetaData
(
UBSettings
::
sessionAuthors
,
mpAuthors
->
text
());
documentProxy
->
setMetaData
(
UBSettings
::
session
Goals
,
mpGoal
s
->
text
());
documentProxy
->
setMetaData
(
UBSettings
::
session
Objectives
,
mpObjective
s
->
text
());
documentProxy
->
setMetaData
(
UBSettings
::
sessionKeywords
,
mpKeywords
->
text
());
documentProxy
->
setMetaData
(
UBSettings
::
sessionGradeLevel
,
mpSchoolLevelBox
->
currentText
());
documentProxy
->
setMetaData
(
UBSettings
::
session
Branch
,
mpSchoolBranch
Box
->
currentText
());
documentProxy
->
setMetaData
(
UBSettings
::
session
Subjects
,
mpSchoolSubjects
Box
->
currentText
());
documentProxy
->
setMetaData
(
UBSettings
::
sessionType
,
mpSchoolTypeBox
->
currentText
());
documentProxy
->
setMetaData
(
UBSettings
::
sessionLicence
,
mpLicenceBox
->
currentText
());
}
...
...
@@ -942,16 +942,16 @@ void UBTeacherGuidePageZeroWidget::switchToMode(tUBTGZeroPageMode mode)
mpAuthors
->
setReadOnly
(
false
);
mpAuthors
->
setStyleSheet
(
inputStyleSheet
);
mpAuthors
->
setTextColor
(
QColor
(
Qt
::
lightGray
));
mp
Goal
s
->
setReadOnly
(
false
);
mp
Goal
s
->
setStyleSheet
(
inputStyleSheet
);
mp
Goal
s
->
setTextColor
(
QColor
(
Qt
::
lightGray
));
mp
Objective
s
->
setReadOnly
(
false
);
mp
Objective
s
->
setStyleSheet
(
inputStyleSheet
);
mp
Objective
s
->
setTextColor
(
QColor
(
Qt
::
lightGray
));
mpKeywords
->
setReadOnly
(
false
);
mpKeywords
->
setStyleSheet
(
inputStyleSheet
);
mpKeywords
->
setTextColor
(
QColor
(
Qt
::
lightGray
));
mpSchoolLevelValueLabel
->
hide
();
mpSchoolLevelBox
->
show
();
mpSchool
Branch
ValueLabel
->
hide
();
mpSchool
Branch
Box
->
show
();
mpSchool
Subjects
ValueLabel
->
hide
();
mpSchool
Subjects
Box
->
show
();
mpSchoolTypeValueLabel
->
hide
();
mpSchoolTypeBox
->
show
();
mpLicenceIcon
->
hide
();
...
...
@@ -969,18 +969,18 @@ void UBTeacherGuidePageZeroWidget::switchToMode(tUBTGZeroPageMode mode)
mpAuthors
->
setStyleSheet
(
inputStyleSheet
);
mpAuthors
->
setTextColor
(
QColor
(
Qt
::
black
));
mpAuthors
->
showText
(
mpAuthors
->
text
());
mp
Goal
s
->
setStyleSheet
(
inputStyleSheet
);
mp
Goal
s
->
setTextColor
(
QColor
(
Qt
::
black
));
mp
Goals
->
showText
(
mpGoal
s
->
text
());
mp
Objective
s
->
setStyleSheet
(
inputStyleSheet
);
mp
Objective
s
->
setTextColor
(
QColor
(
Qt
::
black
));
mp
Objectives
->
showText
(
mpObjective
s
->
text
());
mpKeywords
->
setStyleSheet
(
inputStyleSheet
);
mpKeywords
->
setTextColor
(
QColor
(
Qt
::
black
));
mpKeywords
->
showText
(
mpKeywords
->
text
());
mpSchoolLevelValueLabel
->
setText
(
mpSchoolLevelBox
->
currentText
());
mpSchoolLevelValueLabel
->
show
();
mpSchoolLevelBox
->
hide
();
mpSchool
BranchValueLabel
->
setText
(
mpSchoolBranch
Box
->
currentText
());
mpSchool
Branch
ValueLabel
->
show
();
mpSchool
Branch
Box
->
hide
();
mpSchool
SubjectsValueLabel
->
setText
(
mpSchoolSubjects
Box
->
currentText
());
mpSchool
Subjects
ValueLabel
->
show
();
mpSchool
Subjects
Box
->
hide
();
mpSchoolTypeValueLabel
->
setText
(
mpSchoolTypeBox
->
currentText
());
mpSchoolTypeValueLabel
->
show
();
mpSchoolTypeBox
->
hide
();
...
...
@@ -1022,7 +1022,7 @@ QVector<tUBGEElementNode*> UBTeacherGuidePageZeroWidget::getData()
elementNode
=
new
tUBGEElementNode
();
elementNode
->
name
=
"goals"
;
elementNode
->
attributes
.
insert
(
"value"
,
mp
Goal
s
->
text
());
elementNode
->
attributes
.
insert
(
"value"
,
mp
Objective
s
->
text
());
result
<<
elementNode
;
elementNode
=
new
tUBGEElementNode
();
...
...
@@ -1037,7 +1037,7 @@ QVector<tUBGEElementNode*> UBTeacherGuidePageZeroWidget::getData()
elementNode
=
new
tUBGEElementNode
();
elementNode
->
name
=
"schoolBranch"
;
elementNode
->
attributes
.
insert
(
"value"
,
mpSchool
Branch
Box
->
currentText
());
elementNode
->
attributes
.
insert
(
"value"
,
mpSchool
Subjects
Box
->
currentText
());
result
<<
elementNode
;
elementNode
=
new
tUBGEElementNode
();
...
...
src/gui/UBTeacherGuideWidget.h
View file @
f0734e71
...
...
@@ -150,9 +150,9 @@ private:
QLabel
*
mpCreationLabel
;
QLabel
*
mpLastModifiedLabel
;
QLabel
*
mp
Goal
sLabel
;
UBTGAdaptableText
*
mp
Goal
s
;
QFrame
*
mpSeparator
Goal
s
;
QLabel
*
mp
Objective
sLabel
;
UBTGAdaptableText
*
mp
Objective
s
;
QFrame
*
mpSeparator
Objective
s
;
QLabel
*
mpIndexLabel
;
QLabel
*
mpKeywordsLabel
;
...
...
@@ -162,9 +162,9 @@ private:
QComboBox
*
mpSchoolLevelBox
;
QLabel
*
mpSchoolLevelValueLabel
;
QLabel
*
mpSchool
Branch
ItemLabel
;
QComboBox
*
mpSchool
Branch
Box
;
QLabel
*
mpSchool
Branch
ValueLabel
;
QLabel
*
mpSchool
Subjects
ItemLabel
;
QComboBox
*
mpSchool
Subjects
Box
;
QLabel
*
mpSchool
Subjects
ValueLabel
;
QLabel
*
mpSchoolTypeItemLabel
;
QComboBox
*
mpSchoolTypeBox
;
...
...
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