This repository has been archived by the owner on May 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
146 lines (135 loc) · 4.12 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif
#include <QMainWindow>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QPainter>
#include <QDateTime>
#include "developerdialog.h"
#include <QMenu>
#include <QAction>
#include "chareditdialog.h"
#include "transeditdialog.h"
#include <QMessageBox>
#include <QInputDialog>
#include <QFileDialog>
#include <QDir>
#include <QFileInfo>
#include <QMap>
#include <QDebug>
#include <QPixmap>
#include "version.h"
#include <QTableWidgetItem>
#include "ParamDialog.h"
#include <QBuffer>
#include <QListWidgetItem>
#include "SLDialog.h"
#include "FTBDialog.h"
#include <QCryptographicHash>
#include "rsasignature.h"
#include "IIDialog.h"
#include "PKGBuilder.h"
#include "BuildThread.h"
#include <QLabel>
#include "proto/engine.pb.h"
#include "proto/library.pb.h"
#include "proto/dictionary.pb.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = nullptr);
~MainWindow();
private:
Ui::MainWindow* ui;
QJsonArray developer;
QString Developername = "No Developer Name";
void getDeve();
void devetrue();
void setcharrow(int row, QString name, bool consonant, QString x_sampa);
void settransrow(int row, QString name, QString phoneme);
void setllrow(int row, QString pitch, QString sdb);
void setewprow(int row, QString name, double max, double min, double def);
void setenprow(int row, QString name, double max, double min, double def);
QMap<QString, QString> getTransFromCedict(QString data);
QStringList getCharListfromTrans(QMap<QString, QString> trans);
QMap<QString, QString> getCharFromCedict(QString data);
QMenu* charmenu, * transmenu;
BuildThread buildt;
QLabel* stlabel = new QLabel(this);
protected:
void paintEvent(QPaintEvent* event);
private slots:
void on_actionDeveloper_triggered();
void on_charactertable_customContextMenuRequested(const QPoint& pos);
void on_translatetable_customContextMenuRequested(const QPoint& pos);
void oncn();
void once();
void oncd();
void ontn();
void onte();
void ontd();
void on_actionNew_dic_triggered();
void on_actionOpen_dic_triggered();
void on_actionSave_dic_triggered();
void on_actionFrom_cedict_triggered();
void on_actionAutoC_triggered();
void on_loadenginemain_clicked();
void on_openengineicon_clicked();
void on_ewplist_currentItemChanged(QTableWidgetItem* item1, QTableWidgetItem* item2);
void on_ewpadd_clicked();
void on_ewpedit_clicked();
void on_ewpdel_clicked();
void on_ewpup_clicked();
void on_ewpdown_clicked();
void on_enplist_currentItemChanged(QTableWidgetItem* item1, QTableWidgetItem* item2);
void on_enpadd_clicked();
void on_enpedit_clicked();
void on_enpdel_clicked();
void on_enpup_clicked();
void on_enpdown_clicked();
void on_actionNew_triggered();
void on_actionOpen_triggered();
void on_actionSave_as_triggered();
void on_loadlibraryengine_clicked();
void on_loadlibrarydictionary_clicked();
void on_loadlibraryicon_clicked();
void on_lsdlist_currentItemChanged(QListWidgetItem* item1, QListWidgetItem* item2);
void on_lsdadd_clicked();
void on_lsdedit_clicked();
void on_lsddel_clicked();
void on_lsdup_clicked();
void on_lsddown_clicked();
void on_lsdlink_currentItemChanged(QTableWidgetItem* item1, QTableWidgetItem* item2);
void on_lladd_clicked();
void on_lledit_clicked();
void on_lldel_clicked();
void on_llup_clicked();
void on_lldown_clicked();
void on_actionNew_2_triggered();
void on_actionOpen_2_triggered();
void on_actionSave_as_2_triggered();
void on_actionFiles_triggered();
void on_actionSign_triggered();
void on_actionCheckSign_triggered();
void on_actionAbout_triggered();
void on_actionBuildEngine_triggered();
void on_actionBuildLibrary_triggered();
void on_actionBuildDictionary_triggered();
void on_buildt_finished();
void on_actionFrom_x_sampa_triggered();
void on_actionAutoC_X_triggered();
void on_actionLoadDic_triggered();
void on_actionOpenNew_triggered();
void on_actionOpenNew_2_triggered();
void on_actionOpenNew_dic_triggered();
};
#endif // MAINWINDOW_H