forked from NHERI-SimCenter/EVW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathResponseWidget.h
49 lines (36 loc) · 1.12 KB
/
ResponseWidget.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
#ifndef RESPONSEWIDGET_H
#define RESPONSEWIDGET_H
#include <QWidget>
#include <QVector>
class QCustomPlot;
class QLineEdit;
class QCPGraph;
class QCPCurve;
class QCPItemTracer;
class MainWindow;
class ResponseWidget : public QWidget
{
Q_OBJECT
public:
explicit ResponseWidget(MainWindow *main, int mainWindowItem, QString &label, QString &xAxis, QString &yAxis, bool verticalLayout = true, bool scalesSame = true, QWidget *parent = 0);
~ResponseWidget();
int getItem();
void setItem(int);
void setData(QVector<double> &dataE, QVector<double> &dataW, QVector<double> &time, int numSteps, double dt);
void setData(QVector<double> &dataE, QVector<double> &xE, QVector<double> &dataW, QVector<double> &xW, int numSteps);
signals:
public slots:
void itemEditChanged(void);
private:
QCustomPlot *thePlot1;
QCustomPlot *thePlot2;
QLineEdit *theItemEdit;
int theItem; // floor or story #
int mainWindowItem; // tag used in call back
MainWindow *main;
QCPGraph *graph;
QCPItemTracer *groupTracer;
QCPCurve *curve1, *curve2;
bool scalesSame;
};
#endif // NODERESPONSEWIDGET_H