#include <QAbstractScrollArea>
#include <QSizeF>
-#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 Session;
+namespace data {
+class Logic;
+}
+
namespace views {
namespace TraceView {
static const pv::util::Timestamp MinScale;
static const int MaxScrollValue;
- static const int MaxViewAutoUpdateRate;
static const int ScaleUnits[3];
virtual void clear_signals();
- virtual void add_signal(const shared_ptr<Signal> signal);
+ void add_signal(const shared_ptr<Signal> signal);
#ifdef ENABLE_DECODE
virtual void clear_decode_signals();
*/
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.
*/
void signals_changed();
void capture_state_updated(int state);
- void data_updated();
- void perform_delayed_view_update();
+ virtual void perform_delayed_view_update();
void process_sticky_events();
bool sticky_scrolling_;
bool coloured_bg_;
bool always_zoom_to_fit_;
- QTimer delayed_view_updater_;
pv::util::Timestamp tick_period_;
pv::util::SIPrefix tick_prefix_;