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
15f89fc7
Commit
15f89fc7
authored
Jan 18, 2012
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial commit
parent
f5f1f835
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
244 additions
and
240 deletions
+244
-240
UBTeacherBarWidget.cpp
src/gui/UBTeacherBarWidget.cpp
+178
-234
UBTeacherBarWidget.h
src/gui/UBTeacherBarWidget.h
+66
-6
No files found.
src/gui/UBTeacherBarWidget.cpp
View file @
15f89fc7
This diff is collapsed.
Click to expand it.
src/gui/UBTeacherBarWidget.h
View file @
15f89fc7
...
...
@@ -22,6 +22,13 @@ class UBMediaPlayer;
#define LABEL_MINWIDHT 80
typedef
enum
{
eTeacherBarState_DocumentEdit
,
eTeacherBarState_DocumentPreview
,
eTeacherBarState_PageEdit
,
eTeacherBarState_PagePreview
}
eTeacherBarState
;
typedef
enum
{
eDuration_Quarter
,
eDuration_Half
,
...
...
@@ -104,6 +111,13 @@ private:
QHBoxLayout
mOwnerLayout
;
};
class
UBTBPreviewContainer
:
public
UBWidgetList
{
public
:
UBTBPreviewContainer
(
QWidget
*
parent
=
0
,
const
char
*
name
=
"UBTBPreviewContainer"
);
~
UBTBPreviewContainer
();
};
class
UBTeacherBarPreviewWidget
:
public
QWidget
{
Q_OBJECT
...
...
@@ -133,6 +147,7 @@ private:
QHBoxLayout
mTitleDurationLayout
;
UBTeacherBarPreviewMedia
mMediaViewer
;
QList
<
QWidget
*>
mWidgets
;
QList
<
QWidget
*>
mStoredWidgets
;
QPushButton
*
mpEditButton
;
QLabel
*
mpTitle
;
...
...
@@ -144,6 +159,7 @@ private:
QLabel
*
mpLinksLabel
;
QLabel
*
mpTmpLink
;
UBActionPreview
*
mpTmpAction
;
UBTBPreviewContainer
*
mpContentContainer
;
};
class
UBTBMediaContainer
:
public
UBWidgetList
...
...
@@ -172,6 +188,51 @@ private:
QStringList
mMediaList
;
};
class
UBTBDocumentEditWidget
:
public
QWidget
{
Q_OBJECT
public
:
UBTBDocumentEditWidget
(
QWidget
*
parent
=
0
,
const
char
*
name
=
"UBTBDocumentEditWidget"
);
~
UBTBDocumentEditWidget
();
signals
:
void
onPreviewClicked
();
void
onPageViewClicked
();
private
:
QVBoxLayout
mLayout
;
QHBoxLayout
mPageLayout
;
QHBoxLayout
mPreviewLayout
;
QPushButton
*
mpPageViewButton
;
QPushButton
*
mpPreviewButton
;
QLabel
*
mpTitleLabel
;
QLineEdit
*
mpTitle
;
QLabel
*
mpTargetLabel
;
QTextEdit
*
mpTarget
;
QLabel
*
mpMetadataLabel
;
QLabel
*
mpLicenseLabel
;
};
class
UBTBDocumentPreviewWidget
:
public
QWidget
{
Q_OBJECT
public
:
UBTBDocumentPreviewWidget
(
QWidget
*
parent
=
0
,
const
char
*
name
=
"UBTBDocumentPreviewWidget"
);
~
UBTBDocumentPreviewWidget
();
signals
:
void
onEditClicked
();
void
onPageViewClicked
();
private
:
QVBoxLayout
mLayout
;
QHBoxLayout
mPageLayout
;
QHBoxLayout
mPreviewLayout
;
QPushButton
*
mpPageViewButton
;
QPushButton
*
mpEditButton
;
};
class
UBTeacherBarWidget
:
public
UBDockPaletteWidget
{
Q_OBJECT
...
...
@@ -188,23 +249,18 @@ private slots:
void
onLinkButton
();
void
onShowEditMode
();
void
onMediaDropped
(
const
QString
&
url
);
void
onTBStateChanged
(
eTeacherBarState
state
);
private
:
void
clearWidgetLists
();
bool
isEmpty
();
QVBoxLayout
*
mpLayout
;
QHBoxLayout
*
mpTitleLayout
;
QHBoxLayout
*
mpDurationLayout
;
QLabel
*
mpTitleLabel
;
QLabel
*
mpDurationLabel
;
QLineEdit
*
mpTitle
;
QLabel
*
mpMediaLabel
;
QWidget
*
mpContainer
;
QVBoxLayout
*
mpContainerLayout
;
QCheckBox
*
mpDuration1
;
QCheckBox
*
mpDuration2
;
QCheckBox
*
mpDuration3
;
QButtonGroup
*
mpDurationButtons
;
QLabel
*
mpActionLabel
;
UBWidgetList
*
mpActions
;
QPushButton
*
mpActionButton
;
...
...
@@ -223,6 +279,10 @@ private:
QVector
<
QWidget
*>
mMediaList
;
UBTBMediaContainer
*
mpMediaContainer
;
eTeacherBarState
mState
;
UBTBDocumentPreviewWidget
*
mpDocPreviewWidget
;
UBTBDocumentEditWidget
*
mpDocEditWidget
;
};
#endif // UBTEACHERBARWIDGET_H
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