-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommentwindow.h
More file actions
76 lines (60 loc) · 1.41 KB
/
commentwindow.h
File metadata and controls
76 lines (60 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef _COMMENTWINDOW_
#define _COMMENTWINDOW_
#include "posturewindow.h"
#include "globalDefs.h"
#include "MANAGER\ModelVideo.h"
#include "MANAGER\UserManager.h"
#include <QtWidgets\qtextedit.h>
#include <QtWidgets\qscrollarea.h>
#include <QtWidgets\qmessagebox.h>
#include <QtCore\qdebug.h>
#include <QtCore\qdatetime.h>
#define MAXPERPAGE 10
class CommentWindow : public PostureWindow
{
Q_OBJECT
public:
CommentWindow(QWidget*, ModelVideo);
~CommentWindow();
protected:
void BuildBottomRight();
private:
ModelVideo m_mvModel;
QWidget *m_qwSingleComment;
QWidget *m_qwComment;
QWidget *m_qwMyComment;
QWidget *m_qwDate;
QLabel *m_qlCommentTitle;
QLabel *m_qlCommentTime;
QLabel *m_qlCommentMon;
QLabel *m_qlCommentDay;
QLabel *m_qlCommentCont;
QLabel *m_qlWords;
QLabel *m_qlNotify;
QTextEdit *m_qteComment;
QPushButton *m_qpbComment;
QPushButton *m_qpbReturn;
QPushButton *m_qpbUsername;
QPushButton *m_qpbPrev;
QPushButton *m_qpbNext;
QScrollArea *m_qsaArea;
QMessageBox *m_qmbMsg;
int m_iCurrPage;
void BuildSingle(int);
void InitWidgets();
void BuildConnections();
void BuildComment();
signals:
void toDisplay(const ModelVideo&);
void toProfileMode(const QString&);
void updateModel(const ModelVideo&);
void toComment(const ModelVideo&);
private slots:
void comment();
void toComment();
void toReturn();
void toProfile();
void prevPage();
void nextPage();
};
#endif//_COMMENTWINDOW_