-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform0.h
68 lines (49 loc) · 1.27 KB
/
form0.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
#ifndef FORM0_H
#define FORM0_H
#include "BPlusTree.h"
#include "TrieTree.h"
#include "InvertedIndex.h"
#include <QWidget>
#include <QCompleter>
#include "ui_form0.h"
#include <QTimer>
#include <QStringListModel>
namespace Ui {
class Form0;
}
class Form0 : public QWidget
{
Q_OBJECT
public:
explicit Form0(QWidget *parent = nullptr);
~Form0();
void getBPlusTree(BPlusTree* bplustree);
void getTrieTree(TrieTree* trietree);
void setupCompleter();
void getInvertedIndex(InvertedIndex* invertedindex);
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_lineEdit_textChanged(const QString &arg1);
void on_pushButton_5_clicked();
void on_listWidget_itemClicked(QListWidgetItem *item);
void on_pushButton_6_clicked();
void on_pushButton_7_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
private:
Ui::Form0 *ui;
BPlusTree* bplustree;
TrieTree* trietree;
InvertedIndex* invertedindex;
bool flag = 1;
bool flagmodify = 0;
bool flagnew = 0;
QLineEdit *lineEdit ;
QTimer *timer = new QTimer(this);
QCompleter *completer;
QStringListModel *model ;
QStringList matchingWords={};
void setReadOnly();
};
#endif // FORM0_H