-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
121 lines (102 loc) · 3.39 KB
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
class Lineage;
#include <QMainWindow>
#include <QHash>
#include <QActionGroup>
#include <QList>
#include <QVector>
#include <QStringList>
#include "simulation.h"
#define VERSION 3.1
namespace Ui {
class MainWindow;
}
class Simulation;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
Simulation *TheSim;
bool gotsomedata;
void logtext(QString text, int level=OUTPUT_QUIET);
void setProgress(int current, int max);
double getchanceextinct();
double getchancespeciate();
double getchancemutate();
double getthreshold();
void plotcounts(QList<QHash<int, int> *> *data, bool showtable);
int getgenerations();
int getiterations();
QActionGroup *alignmentGroup, *characterGroup, *parameterGroup;
void do_trees(int mode, int iter, Lineage *rootlineage);
int getmaxleafcount();
int getabsthreshold();
double getRDTthreshold();
bool throw_away_on_leaf_limit();
bool calculate_character_trees();
bool per_tree_output();
bool correct_number_trees_wanted();
bool character_matrix();
bool distance_matrix();
int getIDTthreshold();
int getSCTthreshold();
int getMCTthreshold();
int getTCTthreshold();
bool getIncludeFossils();
bool getEnforceMonophyly();
bool getTaxonomyTypeInUse(int mode);
int getCharacterMutationMode();
double getmutatechancevariation();
int getextramutations();
int getSTTthreshold();
int getFDTPLUSsplitthreshold();
double getextinctionmodifier();
double getspeciationmodifier();
void proportionaltables(QList<QList<int> *> *data, QList<QList<int> *> *satdata);
bool getSaturationNeeded();
QString getSaturationFileName();
bool getTableFileNeeded();
QString getCombinedTablesFileName();
QList<QStringList> csvdata,csvdatabins;
void outputmaxgenussizefile(QVector<QList<maxgenusdatapoint> > *data);
bool getCoupleRates();
int getParameterMode();
int get_precise_leaf_count();
double getspeciationchangeperstep();
double getextinctionchangeperstep();
void CSV_warning();
QString getCSVfilename();
public slots:
void on_actionExit_triggered();
void on_actionLogged_triggered();
void on_actionStart_triggered();
void on_actionStop_triggered();
void on_actionSet_Export_Folder_2_triggered();
void on_actionChart_to_PDF_triggered();
private slots:
void on_action_UseFDT_triggered();
void on_action_UseIDT_triggered();
void on_action_UseFDTPLUS_triggered();
void on_action_UseSCT_triggered();
void on_action_UseRDT_triggered();
void on_action_UseTCT_triggered();
void on_action_UseSTT_triggered();
void on_actionAbout_triggered();
void on_action_UseUnclassified_triggered();
void on_actionLog_scale_Y_axis_triggered();
void on_pushButton_clicked();
void on_OutputPath_textChanged(const QString &arg1);
void on_actionRates_from_CSV_file_triggered();
void on_SelectCSV_clicked();
private:
Ui::MainWindow *ui;
void setupGraphs();
void addGraph(int index, QString colour, int treemode);
QList<int> graphindices; //position is
void outputTable(QString name, QVector<double> x, QVector<double> y, QHash<int, int> *count);
void outputproportionalTable(QString name, QList<int> *data, QList<int> *satdata);
};
#endif // MAINWINDOW_H