-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedgedialog.h
46 lines (32 loc) · 811 Bytes
/
edgedialog.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
#ifndef EDGEDIALOG_H
#define EDGEDIALOG_H
#include <QWidget>
#include <QDialog>
#include <QTableWidgetItem>
#include <QTableWidget>
#include <QGridLayout>
#include <QPushButton>
#include "graphui.h"
class EdgeDialog : public QDialog {
Q_OBJECT
public:
explicit EdgeDialog(GraphUi *graphUi, QWidget *parent = nullptr);
EdgeDialog(const EdgeDialog& another) = delete;
~EdgeDialog();
signals:
void updateGraph();
public slots:
void on_button_1_clicked();
void on_button_2_clicked();
void onTableItemChanged(int row, int column);
void tips();
private:
QTableWidget *tableWidget;
QGridLayout *layout;
QPushButton *button1, *button2;
GraphUi *ui;
QVector<QPair<QString, QString>> col1;
QVector<QPair<QString, QString>> col2;
QVector<QPair<int, int>> col3;
};
#endif // EDGEDIALOG_H