-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhistoryPage.h
41 lines (36 loc) · 1.02 KB
/
historyPage.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
#pragma once
#include <QWidget>
#include "ui_historyPage.h"
#include "DatabaseAPIClass.h"
#include "deleteRecordPage.h"
class historyPage : public QWidget
{
Q_OBJECT
public:
historyPage(QWidget *parent = nullptr);
~historyPage();
void closeEvent(QCloseEvent* event);
private:
Ui::historyPageClass ui;
std::vector<std::vector<std::string>> translationQueryResult;
std::vector<std::vector<std::string>> recognitionQueryResult;
std::string recognition;
std::string fromLanguage;
std::string toLanguage;
int startTime;
int endTime;
deleteRecordPage* deletionPage;
void loadRecognitionRecord();
void loadTranslationRecord();
signals:
void refreshTextBrowser();
private slots:
void on_languageComboBox_currentIndexChanged(QString);
void on_recognitionCheckBox_stateChanged(int);
void on_translationCheckBox_stateChanged(int);
void on_startTimeComboBox_currentIndexChanged(int);
void on_endTimeComboBox_currentIndexChanged(int);
void update_textBrowser();
void on_downloadButton_clicked();
void on_deleteButton_clicked();
};