-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
executable file
·45 lines (40 loc) · 1.24 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "compvector.h"
#include <QList>
#include <QSet>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
void changeEvent(QEvent *e);
private:
Ui::MainWindow *ui;
QStringList inputFileNames;
QStringList inputFileContents;
QString FinalResult;
void updateList();
QString browserEmptyHtml;
QSet<QString>* loadIntoHash(QString _file);
QList<CompVector> ReadAndEncodeSentences(QList<QString>, QHash<int, QString>&);
QList<QList<CompVector> > ConstructParagraphs(QList<CompVector>);
QString NormalizeToken(QString);
bool IsValidWord(QString);
bool ValidIfRemoved(QString _token, QString _affix);
QString lang_ha, lang_at, lang_an, lang_in, lang_ii, lang_haii, lang_ati, lang_ini, lang_yii;
QSet<QString> Lang_Nouns;
private slots:
void on_actionSaveOutput_triggered();
void on_actionProcess_triggered();
void on_actionDeleteFileFromInput_triggered();
void on_actionAddFilesToInput_triggered();
void on_action_2_triggered();
void inputFileIndexChanged(int);
};
#endif // MAINWINDOW_H