новые иконки в OpenBoard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenBoard/src/gui/UBTeacherBarWidget.h

123 lines
2.7 KiB

#ifndef UBTEACHERBARWIDGET_H
#define UBTEACHERBARWIDGET_H
class UBMediaPlayer;
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QTextEdit>
#include <QLineEdit>
#include <QCheckBox>
#include <QTabWidget>
#include <QButtonGroup>
14 years ago
#include <QPushButton>
14 years ago
#include <QComboBox>
14 years ago
#include "UBDockPaletteWidget.h"
#include "customWidgets/UBWidgetList.h"
#define LABEL_MINWIDHT 80
class UBTeacherStudentAction : public QWidget
{
14 years ago
Q_OBJECT
public:
14 years ago
UBTeacherStudentAction(QWidget* parent=0, const char* name="UBTeacherStudentAction");
~UBTeacherStudentAction();
14 years ago
QString comboValue();
QString text();
private:
14 years ago
QTextEdit* mpText;
QHBoxLayout* mpLayout;
QVBoxLayout* mpComboLayout;
QComboBox* mpCombo;
};
class UBTeacherBarDropMediaZone : public QWidget
{
Q_OBJECT
public:
UBTeacherBarDropMediaZone(QWidget* parent=0, const char* name="UBTeacherBarDropMediaZone");
~UBTeacherBarDropMediaZone();
private:
14 years ago
QList<QWidget*>mWidgetList;
UBWidgetList* mWidget;
QVBoxLayout mLayout;
protected:
void dragEnterEvent(QDragEnterEvent* pEvent);
void dropEvent(QDropEvent *pEvent);
void dragMoveEvent(QDragMoveEvent* pEvent);
void dragLeaveEvent(QDragLeaveEvent* pEvent);
};
class UBUrlWidget : public QWidget
{
public:
UBUrlWidget(QWidget* parent=0, const char* name="UBUrlWidget");
~UBUrlWidget();
QString url();
private:
QHBoxLayout* mpLayout;
QLabel* mpUrlLabel;
QLineEdit* mpUrl;
};
class UBTeacherBarWidget : public UBDockPaletteWidget
{
Q_OBJECT
public:
UBTeacherBarWidget(QWidget* parent=0, const char* name="UBTeacherBarWidget");
~UBTeacherBarWidget();
private slots:
void saveContent();
void loadContent();
void onValueChanged();
void onTitleTextChanged(const QString& text);
14 years ago
void onActionButton();
void onLinkButton();
private:
QVBoxLayout* mpLayout;
QHBoxLayout* mpTitleLayout;
QHBoxLayout* mpDurationLayout;
QLabel* mpTitleLabel;
QLabel* mpDurationLabel;
QLineEdit* mpTitle;
UBTeacherStudentAction* mpAction1;
14 years ago
QLabel* mpMediaLabel;
UBTeacherBarDropMediaZone* mpDropMediaZone;
QWidget* mpContainer;
QVBoxLayout* mpContainerLayout;
QCheckBox* mpDuration1;
QCheckBox* mpDuration2;
QCheckBox* mpDuration3;
QButtonGroup* mpDurationButtons;
14 years ago
QLabel* mpActionLabel;
UBWidgetList* mpActions;
14 years ago
QPushButton* mpActionButton;
QHBoxLayout* mpActionLayout;
14 years ago
QLabel* mpLinkLabel;
UBWidgetList* mpLinks;
QPushButton* mpLinkButton;
QHBoxLayout* mpLinkLayout;
14 years ago
QLabel* mpCommentLabel;
QTextEdit* mpComments;
14 years ago
QVector<UBTeacherStudentAction*> mActionList;
QVector<UBUrlWidget*> mUrlList;
};
#endif // UBTEACHERBARWIDGET_H