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> 39 bool isClosed()
const;
41 void enableMenu(
bool en =
true);
44 void mousePressEvent(QMouseEvent* e)
override;
45 void customEvent(QEvent* e)
override = 0;
47 void closeEvent(QCloseEvent* e)
override;
49 void setUpdateTime(
double t);
51 void setTitle(
const QString& title);
52 void setLineLabel(
unsigned int which,
const QString& label);
53 void setLineColor(
unsigned int which,
const QString& color);
54 void setLineWidth(
unsigned int which,
unsigned int width);
55 void setLineStyle(
unsigned int which, Qt::PenStyle style);
56 void setLineMarker(
unsigned int which, QwtSymbol::Style style);
57 void setMarkerAlpha(
unsigned int which,
unsigned int alpha);
60 QString lineLabel(
unsigned int which);
61 QString lineColor(
unsigned int which);
62 int lineWidth(
unsigned int which);
63 Qt::PenStyle lineStyle(
unsigned int which);
64 QwtSymbol::Style lineMarker(
unsigned int which);
65 int markerAlpha(
unsigned int which);
67 virtual void setSampleRate(
const QString& rate);
69 void setStop(
bool on);
72 void setGrid(
bool on);
73 void setAxisLabels(
bool en);
80 virtual void newData(
const QEvent*) = 0;
81 virtual void autoScale(
bool) = 0;
82 void updateGuiTimer();
84 virtual void onPlotPointSelected(
const QPointF p);
87 void plotPointSelected(
const QPointF p,
int type);
88 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