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
89e16fde
Commit
89e16fde
authored
Jan 05, 2012
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some minor changes on the GUI
parent
44a06538
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
UBTeacherBarWidget.cpp
src/gui/UBTeacherBarWidget.cpp
+24
-2
UBTeacherBarWidget.h
src/gui/UBTeacherBarWidget.h
+2
-0
No files found.
src/gui/UBTeacherBarWidget.cpp
View file @
89e16fde
...
...
@@ -36,10 +36,13 @@ UBTeacherBarWidget::UBTeacherBarWidget(QWidget *parent, const char *name):UBDock
,
mpActionLabel
(
NULL
)
,
mpActions
(
NULL
)
,
mpActionButton
(
NULL
)
,
mpActionLayout
(
NULL
)
,
mpCommentLabel
(
NULL
)
,
mpComments
(
NULL
)
,
mpLinkLabel
(
NULL
)
,
mpLinks
(
NULL
)
,
mpLinkButton
(
NULL
)
,
mpLinkLayout
(
NULL
)
{
setObjectName
(
name
);
mName
=
"TeacherBarWidget"
;
...
...
@@ -76,6 +79,7 @@ UBTeacherBarWidget::UBTeacherBarWidget(QWidget *parent, const char *name):UBDock
mpDurationLayout
=
new
QHBoxLayout
();
mpDuration1
=
new
QCheckBox
(
this
);
mpDuration1
->
setIcon
(
QIcon
(
":images/duration1.png"
));
mpDuration1
->
setChecked
(
true
);
mpDurationLayout
->
addWidget
(
mpDuration1
,
0
);
mpDuration2
=
new
QCheckBox
(
this
);
mpDuration2
->
setIcon
(
QIcon
(
":images/duration2.png"
));
...
...
@@ -98,7 +102,10 @@ UBTeacherBarWidget::UBTeacherBarWidget(QWidget *parent, const char *name):UBDock
mpActionButton
=
new
QPushButton
(
this
);
mpActionButton
->
setObjectName
(
"DockPaletteWidgetButton"
);
mpActionButton
->
setText
(
tr
(
"Add action"
));
mpLayout
->
addWidget
(
mpActionButton
,
0
);
mpActionLayout
=
new
QHBoxLayout
();
mpActionLayout
->
addWidget
(
mpActionButton
,
0
);
mpActionLayout
->
addStretch
(
1
);
mpLayout
->
addLayout
(
mpActionLayout
,
0
);
// Media
mpMediaLabel
=
new
QLabel
(
tr
(
"Media"
),
this
);
...
...
@@ -113,7 +120,10 @@ UBTeacherBarWidget::UBTeacherBarWidget(QWidget *parent, const char *name):UBDock
mpLayout
->
addWidget
(
mpLinks
,
1
);
mpLinkButton
=
new
QPushButton
(
tr
(
"Add link"
),
this
);
mpLinkButton
->
setObjectName
(
"DockPaletteWidgetButton"
);
mpLayout
->
addWidget
(
mpLinkButton
);
mpLinkLayout
=
new
QHBoxLayout
();
mpLinkLayout
->
addWidget
(
mpLinkButton
,
0
);
mpLinkLayout
->
addStretch
(
1
);
mpLayout
->
addLayout
(
mpLinkLayout
,
0
);
// Comments
mpCommentLabel
=
new
QLabel
(
tr
(
"Comments"
),
this
);
...
...
@@ -149,6 +159,14 @@ UBTeacherBarWidget::~UBTeacherBarWidget()
delete
mpLinkLabel
;
mpLinkLabel
=
NULL
;
}
if
(
NULL
!=
mpLinkButton
){
delete
mpLinkButton
;
mpLinkButton
=
NULL
;
}
if
(
NULL
!=
mpLinkLayout
){
delete
mpLinkLayout
;
mpLinkLayout
=
NULL
;
}
if
(
NULL
!=
mpDropMediaZone
){
delete
mpDropMediaZone
;
mpDropMediaZone
=
NULL
;
...
...
@@ -161,6 +179,10 @@ UBTeacherBarWidget::~UBTeacherBarWidget()
delete
mpActionButton
;
mpActionButton
=
NULL
;
}
if
(
NULL
!=
mpActionLayout
){
delete
mpActionLayout
;
mpActionLayout
=
NULL
;
}
if
(
NULL
!=
mpAction1
){
delete
mpAction1
;
mpAction1
=
NULL
;
...
...
src/gui/UBTeacherBarWidget.h
View file @
89e16fde
...
...
@@ -102,9 +102,11 @@ private:
QLabel
*
mpActionLabel
;
UBWidgetList
*
mpActions
;
QPushButton
*
mpActionButton
;
QHBoxLayout
*
mpActionLayout
;
QLabel
*
mpLinkLabel
;
UBWidgetList
*
mpLinks
;
QPushButton
*
mpLinkButton
;
QHBoxLayout
*
mpLinkLayout
;
QLabel
*
mpCommentLabel
;
QTextEdit
*
mpComments
;
};
...
...
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