mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
898 B
C++
44 lines
898 B
C++
#ifndef REALWIDGET_H
|
|
#define REALWIDGET_H
|
|
|
|
#include <qapplication.h>
|
|
#include <qwidget.h>
|
|
#include <complex>
|
|
|
|
class RealDataEvent;
|
|
class Lineplot;
|
|
|
|
class RealWidget
|
|
: public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
RealWidget(QWidget* parent = 0);
|
|
virtual ~RealWidget();
|
|
|
|
public slots:
|
|
void customEvent( QEvent * e );
|
|
void setWidgetTitle(QString title);
|
|
void setWidgetAxisLabels(QString xLabel, QString yLabel);
|
|
void setWidgetXAxisScale(double xMin, double xMax);
|
|
void setWidgetYAxisScale(double yMin, double yMax);
|
|
void setWidgetXAxisAutoScale(bool on);
|
|
void setWidgetYAxisAutoScale(bool on);
|
|
void setWidgetXAxisRange(double xMin, double xMax);
|
|
|
|
protected:
|
|
virtual void timerEvent(QTimerEvent *event);
|
|
|
|
private:
|
|
void setData(RealDataEvent* e);
|
|
Lineplot* l_; //The line plot
|
|
|
|
double* dataPoints_;
|
|
int numPoints_;
|
|
int timerId_;
|
|
bool haveNewData_;
|
|
};
|
|
|
|
#endif // REALWIDGET_H
|