-
Notifications
You must be signed in to change notification settings - Fork 0
/
querynode.h
51 lines (36 loc) · 1005 Bytes
/
querynode.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
#ifndef QUERYNODE_H
#define QUERYNODE_H
#include <QVBoxLayout>
#include "querythread.h"
class QueryNode : public QVBoxLayout
{
Q_OBJECT
public:
QueryNode(QString parentClass = QString(), int level = 0);//filtering class
~QueryNode();
/** Returns the query part contributed by this node
*/
QString queryPart();
public slots:
void addSubjects(QList<QStringPair> subjectList);
void addPredicates(QList<QStringPair > predicateList);
signals:
void queryPartChanged(QString queryPart);
void addVarToOutput(QString varName);
void removeVarFromOutput(QString varName);
void removeClicked(QueryNode *qn);
private slots:
void addRestriction();
void addObjectToLayout();
void emitRemove();
void removeAllRestrictions();
void removeRestriction(QueryNode *qn);
void findObjects();
void findPredicates();
void updateQueryPart();
private:
void init();
class Private;
Private * const d;
};
#endif // QUERYNODE_H