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
21807120
Commit
21807120
authored
Sep 03, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resizable title page first draft achieved
parent
9b133fa4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
29 deletions
+52
-29
UBTeacherGuideWidget.cpp
src/gui/UBTeacherGuideWidget.cpp
+46
-28
UBTeacherGuideWidget.h
src/gui/UBTeacherGuideWidget.h
+6
-1
No files found.
src/gui/UBTeacherGuideWidget.cpp
View file @
21807120
...
...
@@ -20,7 +20,7 @@
#include <QTreeWidget>
#include <QPushButton>
#include <QDomDocument>
#include <QScrollArea>
#include "UBTeacherGuideWidget.h"
...
...
@@ -632,8 +632,11 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons
QWidget
(
parent
)
,
mpLayout
(
NULL
)
,
mpButtonTitleLayout
(
NULL
)
,
mpContainerWidgetLayout
(
NULL
)
,
mpModePushButton
(
NULL
)
,
mpPageNumberLabel
(
NULL
)
,
mpScrollArea
(
NULL
)
,
mpContainerWidget
(
NULL
)
,
mpSessionTitle
(
NULL
)
,
mpSeparatorSessionTitle
(
NULL
)
,
mpAuthorsLabel
(
NULL
)
...
...
@@ -673,6 +676,18 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons
mpPageNumberLabel
->
setText
(
tr
(
"Title page"
));
mpLayout
->
addWidget
(
mpPageNumberLabel
);
mpScrollArea
=
new
QScrollArea
();
mpContainerWidget
=
new
QWidget
();
mpContainerWidgetLayout
=
new
QVBoxLayout
();
mpLayout
->
addWidget
(
mpScrollArea
);
mpScrollArea
->
setWidget
(
mpContainerWidget
);
mpScrollArea
->
setWidgetResizable
(
true
);
mpContainerWidget
->
setLayout
(
mpContainerWidgetLayout
);
mpButtonTitleLayout
=
new
QHBoxLayout
(
0
);
mpModePushButton
=
new
QPushButton
(
this
);
...
...
@@ -687,129 +702,129 @@ UBTeacherGuidePageZeroWidget::UBTeacherGuidePageZeroWidget(QWidget* parent, cons
mpButtonTitleLayout
->
addWidget
(
mpSessionTitle
);
connect
(
this
,
SIGNAL
(
resized
()),
mpSessionTitle
,
SLOT
(
onTextChanged
()));
mpLayout
->
addLayout
(
mpButtonTitleLayout
);
mp
ContainerWidget
Layout
->
addLayout
(
mpButtonTitleLayout
);
mpSeparatorSessionTitle
=
new
QFrame
(
this
);
mpSeparatorSessionTitle
->
setFixedHeight
(
UBTG_SEPARATOR_FIXED_HEIGHT
);
mpSeparatorSessionTitle
->
setObjectName
(
"UBTGSeparator"
);
mpLayout
->
addWidget
(
mpSeparatorSessionTitle
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSeparatorSessionTitle
);
mpAuthorsLabel
=
new
QLabel
(
this
);
mpAuthorsLabel
->
setObjectName
(
"UBTGZeroPageEditionModeTitle"
);
mpAuthorsLabel
->
setText
(
tr
(
"Author(s)"
));
mpAuthorsLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpAuthorsLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpAuthorsLabel
);
mpAuthors
=
new
UBTGAdaptableText
(
0
,
this
);
mpAuthors
->
setObjectName
(
"UBTGZeroPageInputText"
);
mpAuthors
->
setPlaceHolderText
(
tr
(
"Type authors here ..."
));
mpLayout
->
addWidget
(
mpAuthors
);
mp
ContainerWidget
Layout
->
addWidget
(
mpAuthors
);
connect
(
this
,
SIGNAL
(
resized
()),
mpAuthors
,
SLOT
(
onTextChanged
()));
mpCreationLabel
=
new
QLabel
(
this
);
mpCreationLabel
->
setObjectName
(
"UBTGZeroPageDateLabel"
);
mpLayout
->
addWidget
(
mpCreationLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpCreationLabel
);
mpLastModifiedLabel
=
new
QLabel
(
this
);
mpLastModifiedLabel
->
setObjectName
(
"UBTGZeroPageDateLabel"
);
mpLayout
->
addWidget
(
mpLastModifiedLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpLastModifiedLabel
);
mpSeparatorAuthors
=
new
QFrame
(
this
);
mpSeparatorAuthors
->
setFixedHeight
(
UBTG_SEPARATOR_FIXED_HEIGHT
);
mpSeparatorAuthors
->
setObjectName
(
"UBTGSeparator"
);
mpLayout
->
addWidget
(
mpSeparatorAuthors
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSeparatorAuthors
);
mpObjectivesLabel
=
new
QLabel
(
this
);
mpObjectivesLabel
->
setObjectName
(
"UBTGZeroPageEditionModeTitle"
);
mpObjectivesLabel
->
setText
(
tr
(
"Objective(s)"
));
mpObjectivesLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpObjectivesLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpObjectivesLabel
);
mpObjectives
=
new
UBTGAdaptableText
(
0
,
this
);
mpObjectives
->
setObjectName
(
"UBTGZeroPageInputText"
);
mpObjectives
->
setPlaceHolderText
(
tr
(
"Type objectives here..."
));
mpLayout
->
addWidget
(
mpObjectives
);
mp
ContainerWidget
Layout
->
addWidget
(
mpObjectives
);
connect
(
this
,
SIGNAL
(
resized
()),
mpObjectives
,
SLOT
(
onTextChanged
()));
mpSeparatorObjectives
=
new
QFrame
(
this
);
mpSeparatorObjectives
->
setFixedHeight
(
UBTG_SEPARATOR_FIXED_HEIGHT
);
mpSeparatorObjectives
->
setObjectName
(
"UBTGSeparator"
);
mpLayout
->
addWidget
(
mpSeparatorObjectives
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSeparatorObjectives
);
mpIndexLabel
=
new
QLabel
(
this
);
mpIndexLabel
->
setObjectName
(
"UBTGZeroPageEditionModeTitle"
);
mpIndexLabel
->
setText
(
tr
(
"Resource indexing"
));
mpIndexLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpIndexLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpIndexLabel
);
mpKeywordsLabel
=
new
QLabel
(
this
);
mpKeywordsLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
mpKeywordsLabel
->
setText
(
tr
(
"Keywords:"
));
mpKeywordsLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpKeywordsLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpKeywordsLabel
);
mpKeywords
=
new
UBTGAdaptableText
(
0
,
this
);
mpKeywords
->
setPlaceHolderText
(
tr
(
"Type keywords here ..."
));
mpLayout
->
addWidget
(
mpKeywords
);
mp
ContainerWidget
Layout
->
addWidget
(
mpKeywords
);
connect
(
this
,
SIGNAL
(
resized
()),
mpKeywords
,
SLOT
(
onTextChanged
()));
mpSchoolLevelItemLabel
=
new
QLabel
(
this
);
mpSchoolLevelItemLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
mpSchoolLevelItemLabel
->
setText
(
tr
(
"Level:"
));
mpSchoolLevelItemLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpSchoolLevelItemLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolLevelItemLabel
);
mpSchoolLevelBox
=
new
QComboBox
(
this
);
mpSchoolLevelBox
->
setMinimumHeight
(
22
);
mpSchoolLevelBox
->
setObjectName
(
"DockPaletteWidgetComboBox"
);
connect
(
mpSchoolLevelBox
,
SIGNAL
(
currentIndexChanged
(
QString
)),
this
,
SLOT
(
onSchoolLevelChanged
(
QString
)));
mpLayout
->
addWidget
(
mpSchoolLevelBox
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolLevelBox
);
mpSchoolLevelValueLabel
=
new
QLabel
(
this
);
mpLayout
->
addWidget
(
mpSchoolLevelValueLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolLevelValueLabel
);
mpSchoolSubjectsItemLabel
=
new
QLabel
(
this
);
mpSchoolSubjectsItemLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
mpSchoolSubjectsItemLabel
->
setText
(
tr
(
"Subjects:"
));
mpSchoolSubjectsItemLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpSchoolSubjectsItemLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolSubjectsItemLabel
);
mpSchoolSubjectsBox
=
new
QComboBox
(
this
);
mpSchoolSubjectsBox
->
setMinimumHeight
(
22
);
mpSchoolSubjectsBox
->
setObjectName
(
"DockPaletteWidgetComboBox"
);
mpLayout
->
addWidget
(
mpSchoolSubjectsBox
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolSubjectsBox
);
mpSchoolSubjectsValueLabel
=
new
QLabel
(
this
);
mpLayout
->
addWidget
(
mpSchoolSubjectsValueLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolSubjectsValueLabel
);
mpSchoolTypeItemLabel
=
new
QLabel
(
this
);
mpSchoolTypeItemLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
mpSchoolTypeItemLabel
->
setText
(
tr
(
"Type:"
));
mpSchoolTypeItemLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpSchoolTypeItemLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolTypeItemLabel
);
mpSchoolTypeBox
=
new
QComboBox
(
this
);
mpSchoolTypeBox
->
setMinimumHeight
(
22
);
mpSchoolTypeBox
->
setObjectName
(
"DockPaletteWidgetComboBox"
);
mpLayout
->
addWidget
(
mpSchoolTypeBox
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolTypeBox
);
mpSchoolTypeValueLabel
=
new
QLabel
(
this
);
mpLayout
->
addWidget
(
mpSchoolTypeValueLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSchoolTypeValueLabel
);
mpSeparatorIndex
=
new
QFrame
(
this
);
mpSeparatorIndex
->
setFixedHeight
(
UBTG_SEPARATOR_FIXED_HEIGHT
);
mpSeparatorIndex
->
setObjectName
(
"UBTGSeparator"
);
mpLayout
->
addWidget
(
mpSeparatorIndex
);
mp
ContainerWidget
Layout
->
addWidget
(
mpSeparatorIndex
);
mpLicenceLabel
=
new
QLabel
(
this
);
mpLicenceLabel
->
setObjectName
(
"UBTGZeroPageItemLabel"
);
mpLicenceLabel
->
setText
(
tr
(
"Licence"
));
mpLicenceLabel
->
setStyleSheet
(
chapterStyle
);
mpLayout
->
addWidget
(
mpLicenceLabel
);
mp
ContainerWidget
Layout
->
addWidget
(
mpLicenceLabel
);
mpLicenceBox
=
new
QComboBox
(
this
);
mpLicenceBox
->
setMinimumHeight
(
22
);
mpLicenceBox
->
setObjectName
(
"DockPaletteWidgetComboBox"
);
mpLayout
->
addWidget
(
mpLicenceBox
);
mp
ContainerWidget
Layout
->
addWidget
(
mpLicenceBox
);
mpLicenceLayout
=
new
QHBoxLayout
(
0
);
mpLicenceIcon
=
new
QLabel
(
this
);
mpLicenceLayout
->
addWidget
(
mpLicenceIcon
);
mpLicenceValueLabel
=
new
QLabel
(
this
);
mpLicenceLayout
->
addWidget
(
mpLicenceValueLabel
);
mpLayout
->
addLayout
(
mpLicenceLayout
);
mpLayout
->
addStretch
(
1
);
mp
ContainerWidget
Layout
->
addLayout
(
mpLicenceLayout
);
mp
ContainerWidget
Layout
->
addStretch
(
1
);
connect
(
UBApplication
::
boardController
,
SIGNAL
(
activeSceneChanged
()),
this
,
SLOT
(
onActiveSceneChanged
()));
fillComboBoxes
();
...
...
@@ -845,6 +860,9 @@ UBTeacherGuidePageZeroWidget::~UBTeacherGuidePageZeroWidget()
DELETEPTR
(
mpModePushButton
);
DELETEPTR
(
mpLicenceLayout
);
DELETEPTR
(
mpButtonTitleLayout
);
DELETEPTR
(
mpContainerWidgetLayout
);
DELETEPTR
(
mpContainerWidget
);
DELETEPTR
(
mpScrollArea
);
DELETEPTR
(
mpLayout
);
}
...
...
src/gui/UBTeacherGuideWidget.h
View file @
21807120
...
...
@@ -23,7 +23,7 @@ class QVBoxLayout;
class
QPushButton
;
class
UBDocumentProxy
;
class
UBGraphicsTextItem
;
class
QScrollArea
;
#include "UBTeacherGuideWidgetsTools.h"
...
...
@@ -155,8 +155,13 @@ private:
QVBoxLayout
*
mpLayout
;
QHBoxLayout
*
mpButtonTitleLayout
;
QVBoxLayout
*
mpContainerWidgetLayout
;
QPushButton
*
mpModePushButton
;
QLabel
*
mpPageNumberLabel
;
QScrollArea
*
mpScrollArea
;
QWidget
*
mpContainerWidget
;
UBTGAdaptableText
*
mpSessionTitle
;
QFrame
*
mpSeparatorSessionTitle
;
...
...
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