-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathplotwindow.h
95 lines (80 loc) · 2.35 KB
/
plotwindow.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
/*
* CLASS
* Copyright (c) 2010-2013 Meteorology and Air Quality section, Wageningen University and Research centre
* Copyright (c) 2011-2013 Jordi Vila-Guerau de Arellano
* Copyright (c) 2011-2013 Chiel van Heerwaarden
* Copyright (c) 2011-2013 Bart van Stratum
* Copyright (c) 2011-2013 Kees van den Dries
*
* This file is part of CLASS
*
* CLASS 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.
* CLASS 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 CLASS. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PLOTWINDOW_H
#define PLOTWINDOW_H
#include "mainwindow.h"
#include "subplot.h"
#include "QPaintEvent"
#include "QPainter"
#include "QTreeWidget"
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#include <QtGui/QWidget>
#include <QtGui/QTabWidget>
#else
#include <QtWidgets/QWidget>
#include <QtWidgets/QTabWidget>
#endif
class modelrun;
class subplot;
namespace Ui
{
class plotwindow;
}
class plotwindow : public QMainWindow
{
Q_OBJECT
public:
plotwindow(QMap<int,modelrun> *, QList<int> *, QMainWindow *);
~plotwindow();
plotarea *plotar;
QList<int> *selectedruns;
QList<int> *initialselected;
QMap<int, modelrun> *runlist;
QString plotvarx, plotvary;
public slots:
void addrun(int num);
void deleterun(int num);
void updateselectedruns();
void setinitialplotvar();
void changeaxis();
void zoomebymouse();
void cursormoved();
void viewmenutriggered();
void toggleadvancedsettings(bool);
void toggleaxissettings(bool);
void togglemodelruns(bool);
void selectadvanceddata(QTreeWidgetItem*,int);
void changeplottype();
signals:
void graphclosed(plotwindow* plot);
protected:
void mouseMoveEvent(QMouseEvent *);
private:
bool MacOS;
Ui::plotwindow *ui;
void closeEvent(QCloseEvent *event);
QStringList outputnames;
void updateplotdata();
void getdata(outputvar*, modelrun, QString);
void setplotvar(const QString, QString*);
};
#endif // PLOTWINDOW_H