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
Show 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;
...
@@ -22,6 +22,13 @@ class UBMediaPlayer;
#define LABEL_MINWIDHT 80
#define LABEL_MINWIDHT 80
typedef
enum
{
eTeacherBarState_DocumentEdit
,
eTeacherBarState_DocumentPreview
,
eTeacherBarState_PageEdit
,
eTeacherBarState_PagePreview
}
eTeacherBarState
;
typedef
enum
{
typedef
enum
{
eDuration_Quarter
,
eDuration_Quarter
,
eDuration_Half
,
eDuration_Half
,
...
@@ -104,6 +111,13 @@ private:
...
@@ -104,6 +111,13 @@ private:
QHBoxLayout
mOwnerLayout
;
QHBoxLayout
mOwnerLayout
;
};
};
class
UBTBPreviewContainer
:
public
UBWidgetList
{
public
:
UBTBPreviewContainer
(
QWidget
*
parent
=
0
,
const
char
*
name
=
"UBTBPreviewContainer"
);
~
UBTBPreviewContainer
();
};
class
UBTeacherBarPreviewWidget
:
public
QWidget
class
UBTeacherBarPreviewWidget
:
public
QWidget
{
{
Q_OBJECT
Q_OBJECT
...
@@ -133,6 +147,7 @@ private:
...
@@ -133,6 +147,7 @@ private:
QHBoxLayout
mTitleDurationLayout
;
QHBoxLayout
mTitleDurationLayout
;
UBTeacherBarPreviewMedia
mMediaViewer
;
UBTeacherBarPreviewMedia
mMediaViewer
;
QList
<
QWidget
*>
mWidgets
;
QList
<
QWidget
*>
mWidgets
;
QList
<
QWidget
*>
mStoredWidgets
;
QPushButton
*
mpEditButton
;
QPushButton
*
mpEditButton
;
QLabel
*
mpTitle
;
QLabel
*
mpTitle
;
...
@@ -144,6 +159,7 @@ private:
...
@@ -144,6 +159,7 @@ private:
QLabel
*
mpLinksLabel
;
QLabel
*
mpLinksLabel
;
QLabel
*
mpTmpLink
;
QLabel
*
mpTmpLink
;
UBActionPreview
*
mpTmpAction
;
UBActionPreview
*
mpTmpAction
;
UBTBPreviewContainer
*
mpContentContainer
;
};
};
class
UBTBMediaContainer
:
public
UBWidgetList
class
UBTBMediaContainer
:
public
UBWidgetList
...
@@ -172,6 +188,51 @@ private:
...
@@ -172,6 +188,51 @@ private:
QStringList
mMediaList
;
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
class
UBTeacherBarWidget
:
public
UBDockPaletteWidget
{
{
Q_OBJECT
Q_OBJECT
...
@@ -188,23 +249,18 @@ private slots:
...
@@ -188,23 +249,18 @@ private slots:
void
onLinkButton
();
void
onLinkButton
();
void
onShowEditMode
();
void
onShowEditMode
();
void
onMediaDropped
(
const
QString
&
url
);
void
onMediaDropped
(
const
QString
&
url
);
void
onTBStateChanged
(
eTeacherBarState
state
);
private
:
private
:
void
clearWidgetLists
();
void
clearWidgetLists
();
bool
isEmpty
();
bool
isEmpty
();
QVBoxLayout
*
mpLayout
;
QVBoxLayout
*
mpLayout
;
QHBoxLayout
*
mpTitleLayout
;
QHBoxLayout
*
mpTitleLayout
;
QHBoxLayout
*
mpDurationLayout
;
QLabel
*
mpTitleLabel
;
QLabel
*
mpTitleLabel
;
QLabel
*
mpDurationLabel
;
QLineEdit
*
mpTitle
;
QLineEdit
*
mpTitle
;
QLabel
*
mpMediaLabel
;
QLabel
*
mpMediaLabel
;
QWidget
*
mpContainer
;
QWidget
*
mpContainer
;
QVBoxLayout
*
mpContainerLayout
;
QVBoxLayout
*
mpContainerLayout
;
QCheckBox
*
mpDuration1
;
QCheckBox
*
mpDuration2
;
QCheckBox
*
mpDuration3
;
QButtonGroup
*
mpDurationButtons
;
QLabel
*
mpActionLabel
;
QLabel
*
mpActionLabel
;
UBWidgetList
*
mpActions
;
UBWidgetList
*
mpActions
;
QPushButton
*
mpActionButton
;
QPushButton
*
mpActionButton
;
...
@@ -223,6 +279,10 @@ private:
...
@@ -223,6 +279,10 @@ private:
QVector
<
QWidget
*>
mMediaList
;
QVector
<
QWidget
*>
mMediaList
;
UBTBMediaContainer
*
mpMediaContainer
;
UBTBMediaContainer
*
mpMediaContainer
;
eTeacherBarState
mState
;
UBTBDocumentPreviewWidget
*
mpDocPreviewWidget
;
UBTBDocumentEditWidget
*
mpDocEditWidget
;
};
};
#endif // UBTEACHERBARWIDGET_H
#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