X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=9fac1a67f8d400933d4a95b2c2b12eca29c483d0;hb=eae3bbbbfd35aef309c186e278ff7ab2d90f362a;hp=aebc25401bb85d34cad008e28c99fa0104c8dce3;hpb=cafe470ed977ab3bff1a865439a261c9f0eb397d;p=pulseview.git diff --git a/pv/view/view.hpp b/pv/view/view.hpp index aebc2540..9fac1a67 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -32,8 +32,8 @@ #include #include -#include #include +#include #include "cursorpair.hpp" #include "flag.hpp" @@ -67,7 +67,8 @@ class Trace; class Viewport; class TriggerMarker; -class CustomAbstractScrollArea : public QAbstractScrollArea { +class CustomAbstractScrollArea : public QAbstractScrollArea +{ Q_OBJECT public: @@ -76,7 +77,8 @@ public: bool viewportEvent(QEvent *event); }; -class View : public ViewBase, public TraceTreeItemOwner { +class View : public ViewBase, public TraceTreeItemOwner +{ Q_OBJECT private: @@ -210,11 +212,21 @@ public: */ void enable_coloured_bg(bool state); + /** + * Returns true if the trace background should be drawn with a coloured background. + */ + bool coloured_bg() const; + /** * Enable or disable showing sampling points. */ void enable_show_sampling_points(bool state); + /** + * Enable or disable showing the analog minor grid. + */ + void enable_show_analog_minor_grid(bool state); + /** * Returns true if cursors are displayed. false otherwise. */