#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEW_HPP
#define PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEW_HPP
-#include <stdint.h>
-
+#include <cstdint>
#include <list>
#include <memory>
#include <set>
#include <QTimer>
#include <pv/data/signaldata.hpp>
-#include <pv/views/viewbase.hpp>
#include <pv/util.hpp>
+#include <pv/views/viewbase.hpp>
#include "cursorpair.hpp"
#include "flag.hpp"
class Viewport;
class TriggerMarker;
-class CustomAbstractScrollArea : public QAbstractScrollArea {
+class CustomAbstractScrollArea : public QAbstractScrollArea
+{
Q_OBJECT
public:
- CustomAbstractScrollArea(QWidget *parent = 0);
+ CustomAbstractScrollArea(QWidget *parent = nullptr);
void setViewportMargins(int left, int top, int right, int bottom);
bool viewportEvent(QEvent *event);
};
-class View : public ViewBase, public TraceTreeItemOwner {
+class View : public ViewBase, public TraceTreeItemOwner
+{
Q_OBJECT
private:
static const int ScaleUnits[3];
public:
- explicit View(Session &session, bool is_main_view=false, QWidget *parent = 0);
+ explicit View(Session &session, bool is_main_view=false, QWidget *parent = nullptr);
Session& session();
const Session& session() const;
*/
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.
*/