11 #ifndef DISPLAY_FORM_H
12 #define DISPLAY_FORM_H
16 #include <QtGui/QtGui>
19 #include <qwt_plot_grid.h>
20 #include <qwt_plot_layout.h>
40 void enableMenu(
bool en =
true);
43 void mousePressEvent(QMouseEvent* e)
override;
44 void customEvent(QEvent* e)
override = 0;
46 void closeEvent(QCloseEvent* e)
override;
48 void setUpdateTime(
double t);
50 void setTitle(
const QString& title);
51 void setLineLabel(
unsigned int which,
const QString& label);
52 void setLineColor(
unsigned int which,
const QString& color);
53 void setLineWidth(
unsigned int which,
unsigned int width);
54 void setLineStyle(
unsigned int which, Qt::PenStyle style);
55 void setLineMarker(
unsigned int which, QwtSymbol::Style style);
56 void setMarkerAlpha(
unsigned int which,
unsigned int alpha);
59 QString lineLabel(
unsigned int which);
60 QString lineColor(
unsigned int which);
61 int lineWidth(
unsigned int which);
62 Qt::PenStyle lineStyle(
unsigned int which);
63 QwtSymbol::Style lineMarker(
unsigned int which);
64 int markerAlpha(
unsigned int which);
66 virtual void setSampleRate(
const QString& rate);
68 void setStop(
bool on);
71 void setGrid(
bool on);
72 void setAxisLabels(
bool en);
79 virtual void newData(
const QEvent*) = 0;
80 virtual void autoScale(
bool) = 0;
81 void updateGuiTimer();
83 virtual void onPlotPointSelected(
const QPointF p);
86 void plotPointSelected(
const QPointF p,
int type);
87 void toggleGrid(
bool en);
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:41
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:18