-
Notifications
You must be signed in to change notification settings - Fork 1
/
posture.h
92 lines (83 loc) · 2.22 KB
/
posture.h
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#ifndef POSTURE_H
#define POSTURE_H
#include "uploadwindow.h"
#include "MANAGER\PageManager.h"
#include <QtWidgets/QWidget>
#include <QtWidgets/QLabel>
#include <qdesktopwidget.h>
#include <QtCore\qmetatype.h>
#include <QtCore\qtimer.h>
#include <QtGui\qfontdatabase.h>
#include "ui_posture.h"
#include "logwindow.h"
#include "welcomewindow.h"
#include "uploadmodewindow.h"
#include "displaywindow.h"
#include "uploadinfowindow.h"
#include "profilemodewindow.h"
#include "profilewindow.h"
#include "friendswindow.h"
#include "posturelistwindow.h"
#include "searchwindow.h"
#include "commentwindow.h"
#include "profileeditwindow.h"
#include "choosetagwindow.h"
Q_DECLARE_METATYPE(ModelVideo);
class Posture : public QMainWindow
{
Q_OBJECT
public:
Posture(QWidget *parent = 0);
~Posture();
private:
enum WIN_TYPE{REG,LOG,WELCOME,COMMENT,PROFILEMODE,FRIENDS,PROFILE,MSG,TAG,
PROFILEEDIT,DISPLAY,SEARCH,POSTURELIST,UPLOADINFO,UPLOAD,UPLOADMODE};
Ui::postureClass ui;
LogWindow *m_lwLogWin;
WelcomeWindow *m_wwPosWin;
DisplayWindow *m_dwDisWin;
UploadModeWindow *m_umwUpWin;
UploadInfoWindow *m_uiwInfoWin;
ProfileModeWindow *m_pmwModeWin;
ProfileWindow *m_pwProfileWin;
FriendsWindow *m_fwFriendsWin;
PostureListWindow *m_plwPosWin;
SearchWindow *m_swSearchWin;
CommentWindow *m_cwCommentWin;
ProfileEditWindow *m_pewEditWin;
UploadWindow *m_uwUploadWin;
QWidget *m_qwMsg;
ChooseTagWindow *m_ctwTagWin;
WIN_TYPE m_wtCurrentWin;
std::vector<ModelVideo> models;
std::vector<ModelVideo> modelList;
PageManager m_pmPageManager;
int m_iPage;
int m_iListPage;
void BuildConnections();
void CloseCurrentWindow();
private slots:
void toWelcome(int);
void toDisplay(const ModelVideo&);
void toComment(const ModelVideo&);
void toHomeWin();
void firstToHome();
void toProfile(const QString&);
void toSearch();
void toFriends(const QString&);
void toPosture(const QString&);
void toUploadMode();
void toUpload(const QString&);
void toUploadInfo(const QString&);
void toProfileMode(const QString&);
void toProfileEdit();
void toTag();
void nextWelcome();
void prevWelcome();
void prevList(const QString&);
void nextList(const QString&);
void logout();
void message();
void updateModel(const ModelVideo&);
};
#endif // POSTURE_H