PaperGraphWidget.h
623 Bytes
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
#ifndef PAPERGRAPHWIDGET_H
#define PAPERGRAPHWIDGET_H
#include "stdafx.h"
#include "GraphItem.h"
class PaperGraphWidget : public QWidget
{
Q_OBJECT
public:
PaperGraphWidget(QWidget *parent = 0);
void make_graph(const char* filename);
//main window slots
void read_more();
void might_know();
void topk_with_total();
void topk_with_target();
void find_shortest_path();
void reset_color();
//test
void test();
private slots:
void handleSelectionChanged(int idx);
private:
void initscene();
QGraphicsScene *scene;
GraphItem *graphItem = nullptr;
QComboBox *testCombo;
};
#endif // PAPERGRAPHWIDGET_H