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
f7cd5b2b
Commit
f7cd5b2b
authored
Jan 06, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Bett-2012' of github.com:Sankore/Sankore-3.1 into Bett-2012
parents
1eba2bb0
fb2f09de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
1 deletion
+43
-1
style.qss
resources/style.qss
+21
-0
UBTeacherBarWidget.cpp
src/gui/UBTeacherBarWidget.cpp
+19
-1
UBTeacherBarWidget.h
src/gui/UBTeacherBarWidget.h
+3
-0
No files found.
resources/style.qss
View file @
f7cd5b2b
...
...
@@ -12,6 +12,27 @@ QWidget#UBTeacherBarDropMediaZone
border: 2px solid #999999;
}
QWidget#UBTeacherBarPreviewWidget
{
background: #FFFFFF;
border-radius: 10px;
border: 2px solid #999999;
}
QLabel#UBTeacherBarPreviewTitle
{
color: #555555;
font-size : 18px;
font-weight:bold;
}
QLabel#UBTeacherBarPreviewSubtitle
{
color: #555555;
font-size : 14px;
font-weight:bold;
}
QWidget#UBLibWebView
{
background: #EEEEEE;
...
...
src/gui/UBTeacherBarWidget.cpp
View file @
f7cd5b2b
...
...
@@ -365,7 +365,7 @@ void UBTeacherBarWidget::loadContent()
}
else
{
mpPreview
->
setDuration
(
eDuration_ThreeQuarter
);
}
mpPreview
->
setComments
(
mpComments
->
document
()
->
toPlainText
());
}
// this is always done becasue it allows to clean the media on
// changing the page
...
...
@@ -696,6 +696,7 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(QWidget *parent, const char
,
mpActionsLabel
(
NULL
)
,
mpMediaLabel
(
NULL
)
,
mpCommentsLabel
(
NULL
)
,
mpComments
(
NULL
)
{
setObjectName
(
name
);
...
...
@@ -717,12 +718,14 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(QWidget *parent, const char
// Actions
mpActionsLabel
=
new
QLabel
(
tr
(
"Actions"
),
this
);
mpActionsLabel
->
setObjectName
(
"UBTeacherBarPreviewSubtitle"
);
mActionLabelLayout
.
addWidget
(
mpActionsLabel
,
0
);
mActionLabelLayout
.
addStretch
(
1
);
mLayout
.
addLayout
(
&
mActionLabelLayout
);
// Media
mpMediaLabel
=
new
QLabel
(
tr
(
"Medias"
),
this
);
mpMediaLabel
->
setObjectName
(
"UBTeacherBarPreviewSubtitle"
);
mMediaLabelLayout
.
addWidget
(
mpMediaLabel
,
0
);
mMediaLabelLayout
.
addStretch
(
1
);
mLayout
.
addLayout
(
&
mMediaLabelLayout
);
...
...
@@ -733,9 +736,13 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(QWidget *parent, const char
// Comments
mpCommentsLabel
=
new
QLabel
(
tr
(
"Comments"
),
this
);
mpCommentsLabel
->
setObjectName
(
"UBTeacherBarPreviewSubtitle"
);
mCommentsLabelLayout
.
addWidget
(
mpCommentsLabel
,
0
);
mCommentsLabelLayout
.
addStretch
(
1
);
mLayout
.
addLayout
(
&
mCommentsLabelLayout
);
mpComments
=
new
QLabel
(
this
);
mpComments
->
setWordWrap
(
true
);
mLayout
.
addWidget
(
mpComments
);
// Edit button
mpEditButton
=
new
QPushButton
(
tr
(
"Edit infos"
),
this
);
...
...
@@ -751,6 +758,10 @@ UBTeacherBarPreviewWidget::UBTeacherBarPreviewWidget(QWidget *parent, const char
UBTeacherBarPreviewWidget
::~
UBTeacherBarPreviewWidget
()
{
if
(
NULL
!=
mpComments
){
delete
mpComments
;
mpComments
=
NULL
;
}
if
(
NULL
!=
mpTitle
){
delete
mpTitle
;
mpTitle
=
NULL
;
...
...
@@ -810,6 +821,13 @@ void UBTeacherBarPreviewWidget::setDuration(eDuration duration)
}
}
void
UBTeacherBarPreviewWidget
::
setComments
(
const
QString
&
comments
)
{
if
(
NULL
!=
mpComments
){
mpComments
->
setText
(
comments
);
}
}
// ------------------------------------------------------------------------------------
UBTeacherBarPreviewMedia
::
UBTeacherBarPreviewMedia
(
QWidget
*
parent
,
const
char
*
name
)
:
QWidget
(
parent
)
{
...
...
src/gui/UBTeacherBarWidget.h
View file @
f7cd5b2b
...
...
@@ -114,6 +114,7 @@ public:
UBTeacherBarPreviewMedia
*
mediaViewer
()
{
return
&
mMediaViewer
;}
void
setTitle
(
const
QString
&
title
);
void
setDuration
(
eDuration
duration
);
void
setComments
(
const
QString
&
comments
);
signals
:
void
showEditMode
();
...
...
@@ -129,12 +130,14 @@ private:
QHBoxLayout
mMediaLabelLayout
;
QHBoxLayout
mCommentsLabelLayout
;
UBTeacherBarPreviewMedia
mMediaViewer
;
QPushButton
*
mpEditButton
;
QLabel
*
mpTitle
;
QLabel
*
mpDuration
;
QLabel
*
mpActionsLabel
;
QLabel
*
mpMediaLabel
;
QLabel
*
mpCommentsLabel
;
QLabel
*
mpComments
;
};
class
UBTeacherBarWidget
:
public
UBDockPaletteWidget
...
...
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