Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef GRAPHWIDGET
- #define GRAPHWIDGET
- #include <QWidget>
- #include <qwt/qwt_plot.h>
- #include <qwt/qwt_plot_curve.h>
- #include <qwt/qwt_plot_zoomer.h>
- #include <qwt/qwt_plot_magnifier.h>
- class QLineEdit;
- class QLabel;
- class QPushButton;
- class QProcess;
- class QHBoxLayout;
- class QVBoxLayout;
- class QtCAgraph : public QWidget {
- Q_OBJECT
- public:
- QtCAgraph(QWidget* parent = 0);
- ~QtCAgraph();
- signals:
- private slots:
- void updateClicked();
- void readFromStdout();
- void resetAutoscaleX();
- void resetAutoscaleY();
- private:
- QHBoxLayout* layout1;
- QVBoxLayout* layout2;
- QString program;
- QPushButton* updateButton;
- QPushButton* autoscaleXButton;
- QPushButton* autoscaleYButton;
- QLabel* autoscale;
- QLineEdit* pv_name;
- QProcess* proc;
- QwtPlot* graph;
- QwtPlotCurve* dataCurve;
- QwtPlotZoomer* zoomer;
- QwtPlotMagnifier* mag;
- double* datax;
- double* datay;
- int datasize;
- int i;
- void expandData();
- };
- #endif //GRAPHWIDGET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement