-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmainwindow.h
110 lines (96 loc) · 2.9 KB
/
mainwindow.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "basewindow.h"
class TitleBar;
class Content;
class StatusBar;
class SkinWindow;
class MiniPortalWindow;
class CloudWindow;
class FeedbackWindow;
class SystemTray;
class ResultTabWidget;
class SettingWindow;
class WebAxWidget;
class PlayListWidget;
class MainWindow : public BaseWindow
{
Q_OBJECT
public:
MainWindow(QFrame *parent = 0);
~MainWindow();
TitleBar* GetTitleBar();
Content* GetContent();
StatusBar* GetStatusBar();
PlayListWidget* GetPlayListWidget();
void InsertResult(unsigned int searchId, const SEARCHRESULT &result);
protected:
void paintEvent(QPaintEvent *);
bool nativeEvent(const QByteArray &eventType, void *message, long *result);
void moveEvent(QMoveEvent * event);
void resizeEvent(QResizeEvent *event);
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
private:
void InitControl();
void InitKadLibrary();
void InitThunderLibrary();
void LoadIniData();
void SaveIniData();
TitleBar *m_pTitleBar;
Content *m_pContent;
StatusBar *m_pStatusBar;
WebAxWidget *m_pWebAxWidget;
SystemTray *m_pSystemTray;
SkinWindow *m_pSkinWindow;
MiniPortalWindow *m_pMiniPortalWindow;
SettingWindow *m_pSettingWindow;
CloudWindow *m_pCloudWindow;
FeedbackWindow *m_pFeedbackWindow;
QTimer *m_pTimer;
PlayListWidget *m_pPlayListWidget;
QToolButton *m_pPlayListToolButton;
QComboBox *m_pSearchComboBox;
QPushButton *m_pSearchPushButton;
QPushButton *m_pRandomPushButton;
ResultTabWidget *m_pResultTabWidget;
QLabel *m_pFilterLabel;
QLineEdit *m_pFilterLineEdit;
QStringList m_typeFilter;
QString m_nameFilter;
QStringList m_sensitiveWords;
QStringList m_hotWords;
QThread m_serviceThread;
private slots:
void closePlayWindow();
void showSkinWindow();
void showMiniPortalWindow();
void showSettingWindow();
void showCloudWindow();
void showFeedbackWindow(int type, QString content);
void changeSkin();
void checkUpdate();
void showWidget();
void showUpdate();
void showHelp();
void showAbout();
void on_systemTray_activated(QSystemTrayIcon::ActivationReason reason);
void on_typeButtonGroup_buttonClicked(QAbstractButton *button);
void on_filterLineEdit_textChanged(const QString &text);
void on_playListToolButton_clicked(bool checked);
void on_searchComboBox_returnPressed();
void on_searchPushButton_clicked();
void on_randomPushButton_clicked();
void on_resultTabWidget_currentChanged(int index);
void on_searchKey_emited(QString key);
void on_getSystemMessage_emited(QString result);
void on_getSensitiveWords_emited(QStringList sensitiveWords);
void on_getHotEd2ks_emited(QStringList hotEd2ks);
void on_getHotWords_emited(QStringList hotWords);
void on_getRandomWord_emited(QString randWord);
void on_setSearchLog_emited(QString key);
void on_setFeedback_emited(QString version, int type, QString content);
void on_setPlayLog_emited(QString link);
};
extern MainWindow *g_pMainWindow;
#endif // MAINWINDOW_H