mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-10 04:15:53 +00:00
Added graphwindow
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define STATGENGRAPHWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <qwt/qwt_plot.h>
|
||||
|
||||
namespace Ui {
|
||||
class StatgenGraphWindow;
|
||||
@ -12,11 +13,24 @@ class StatgenGraphWindow : public QMainWindow
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit StatgenGraphWindow(QWidget *parent = 0);
|
||||
explicit StatgenGraphWindow(QWidget *parent = 0, QString inputfile = "");
|
||||
~StatgenGraphWindow();
|
||||
|
||||
void paintGraph();
|
||||
void readData();
|
||||
|
||||
private slots:
|
||||
void on_graph_pushButton_save_clicked();
|
||||
|
||||
private:
|
||||
Ui::StatgenGraphWindow *ui;
|
||||
QwtPlot *plot;
|
||||
QVector<double> x_axis;
|
||||
QVector<double> p_points;
|
||||
QVector<double> pn_points;
|
||||
int type;
|
||||
QString _inputfile;
|
||||
|
||||
void keyPressEvent(QKeyEvent *pressedKey);
|
||||
};
|
||||
|
||||
#endif /* STATGENGRAPHWINDOW_H */
|
||||
|
Reference in New Issue
Block a user