-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdict_page.h
52 lines (39 loc) · 962 Bytes
/
dict_page.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
#ifndef DICTPAGE_H
#define DICTPAGE_H
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <dimagebutton.h>
#include <QMediaPlayer>
#include <QLineEdit>
#include <QPushButton>
#include <QPlainTextEdit>
#include "youdao_api.h"
DWIDGET_USE_NAMESPACE
class DictPage : public QWidget
{
Q_OBJECT
public:
DictPage(QWidget *parent = 0);
void queryWord(const QString &word);
void changeTheme(const QString &theme);
QVBoxLayout *layout;
QHBoxLayout *wordLayout;
QHBoxLayout *pronLayout;
QHBoxLayout *infoLayout;
QHBoxLayout *youdaoLayout;
QLabel *nameLabel;
QLabel *pronLabel1;
QLabel *pronLabel2;
QPlainTextEdit *infoLabel;
DImageButton *pronButton1;
DImageButton *pronButton2;
QMediaPlayer *audio;
YoudaoAPI *api;
void init();
private slots:
void start();
void processingData(QString, QString, QString, QString);
};
#endif // DICTPAGE_H