diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2015-05-10 20:02:23 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-05-10 20:02:23 -0700 |
commit | fa247a9f587651dedfa74ac2b56dc9c3e86a171e (patch) | |
tree | 62c2bd45d9ce1e09ff089087f9db295e62265b31 /gr-qtgui/include/gnuradio/qtgui/TimeDomainDisplayPlot.h | |
parent | ef6485cbbec903250821bc4b70bd5ae70099d15e (diff) | |
parent | 6af7eb5d2db7cecca4aa18b3d0959af630ec00da (diff) |
Merge branch 'maint'
Diffstat (limited to 'gr-qtgui/include/gnuradio/qtgui/TimeDomainDisplayPlot.h')
-rw-r--r-- | gr-qtgui/include/gnuradio/qtgui/TimeDomainDisplayPlot.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gr-qtgui/include/gnuradio/qtgui/TimeDomainDisplayPlot.h b/gr-qtgui/include/gnuradio/qtgui/TimeDomainDisplayPlot.h index 4b743e0b92..47fc0b3c69 100644 --- a/gr-qtgui/include/gnuradio/qtgui/TimeDomainDisplayPlot.h +++ b/gr-qtgui/include/gnuradio/qtgui/TimeDomainDisplayPlot.h @@ -37,6 +37,10 @@ class TimeDomainDisplayPlot: public DisplayPlot { Q_OBJECT + Q_PROPERTY ( QColor tag_text_color READ getTagTextColor WRITE setTagTextColor ) + Q_PROPERTY ( QColor tag_background_color READ getTagBackgroundColor WRITE setTagBackgroundColor ) + Q_PROPERTY ( Qt::BrushStyle tag_background_style READ getTagBackgroundStyle WRITE setTagBackgroundStyle ) + public: TimeDomainDisplayPlot(int nplots, QWidget*); virtual ~TimeDomainDisplayPlot(); @@ -52,6 +56,10 @@ public: double sampleRate() const; + const QColor getTagTextColor(); + const QColor getTagBackgroundColor(); + const Qt::BrushStyle getTagBackgroundStyle(); + public slots: void setSampleRate(double sr, double units, const std::string &strunits); @@ -72,6 +80,10 @@ public slots: void attachTriggerLines(bool en); void setTriggerLines(double x, double y); + void setTagTextColor(QColor c); + void setTagBackgroundColor(QColor c); + void setTagBackgroundStyle(Qt::BrushStyle b); + private: void _resetXAxisPoints(); void _autoScale(double bottom, double top); @@ -88,6 +100,10 @@ private: std::vector< std::vector<QwtPlotMarker*> > d_tag_markers; std::vector<bool> d_tag_markers_en; + QColor d_tag_text_color; + QColor d_tag_background_color; + Qt::BrushStyle d_tag_background_style; + QwtPlotMarker *d_trigger_lines[2]; }; |