-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainDialog.h
126 lines (108 loc) · 3.19 KB
/
MainDialog.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
Copyright 2014 Wouter Spekkink
Authors : Wouter Spekkink <[email protected]>
Website : http://www.wouterspekkink.org
This file is part of Dynamic Networks.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 2014 Wouter Spekkink. All rights reserved.
Dynamic Networks is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Dynamic Networks is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MAINDIALOG_H
#define MAINDIALOG_H
// See what more to add later
#include <QtGui>
#include <QApplication>
#include <QDialog>
#include "InputTable.h"
#include "MatCollection.h"
#include "EdgeFinder.h"
#include "CsvOutput.h"
//#include "MetricsFinder.h"
#include "ActorSelectionDialog.h"
#include "MetricsDialog.h"
#include "TwoModeEdges.h"
#include <vector>
#include <string>
class QPushButton;
class QComboBox;
class QLabel;
class QSpinBox;
class QCheckBox;
class MainDialog : public QDialog {
Q_OBJECT
public:
MainDialog(QWidget *parent=0);
signals:
void sendFile(const QString &file, const QString &sep);
private slots:
void getFile();
void setSep(const QString &selection);
void setNetworkType(const QString &selection);
void enableNetwork();
void fireFileSend();
void enableCalc();
void calculateNetwork();
void getDetails();
void setGranularity(int value);
void resetFileImport();
void setLowerBound(int value);
void setUpperBound(int value);
void chooseGranBound(const QString &selection);
void findEdges();
void enableEdges();
void enableSave();
void saveEdgesFile();
//void enableMetrics();
//void openMetricsDialog();
void openAgentDialog();
void closing();
private:
QLabel *topLabel;
QLabel *middleLabel;
QLabel *lowerLabel;
QString fileName;
QString sep;
QString networkType;
QPushButton *openFile;
QComboBox *sepSelector;
QPushButton *importFile;
InputTable *inputTable;
QComboBox *networkSelector;
QPushButton *exitButton;
MatCollection *matCollection;
QPushButton *goNetwork;
std::vector<std::string> tableHeader;
std::vector<std::string> nameList;
int maxGranularity;
int curGranularity;
QLabel *granLabel;
QSpinBox *chooseGranularity;
int lowerBound;
int upperBound;
QSlider *chooseLowerBound;
QSlider *chooseUpperBound;
QSpinBox *monitorUpper;
QSpinBox *monitorLower;
QLabel *lowerMonLabel;
QLabel *upperMonLabel;
EdgeFinder *edgeFinder;
QPushButton *goEdges;
QPushButton *saveEdges;
QPushButton *openMetrics;
QString selectedAgent;
QLabel *agentLabel;
QLabel *currentAgent;
QPushButton *changeAgent;
QCheckBox *slide;
TwoModeEdges *twoModeEdges;
};
#endif