projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update cursor action's state whenever the cursor state changes
[pulseview.git]
/
pv
/
views
/
trace
/
view.hpp
diff --git
a/pv/views/trace/view.hpp
b/pv/views/trace/view.hpp
index a351fd9306332f0169e917c16c6bbf2246a07368..1551bc0b13a09ce8e3f5e95c412fa997bc20d228 100644
(file)
--- a/
pv/views/trace/view.hpp
+++ b/
pv/views/trace/view.hpp
@@
-105,6
+105,12
@@
public:
~View();
~View();
+ /**
+ * Resets the view to its default state after construction. It does however
+ * not reset the signal bases or any other connections with the session.
+ */
+ virtual void reset_view_state();
+
Session& session();
const Session& session() const;
Session& session();
const Session& session() const;
@@
-242,15
+248,15
@@
public:
pair<pv::util::Timestamp, pv::util::Timestamp> get_time_extents() const;
/**
pair<pv::util::Timestamp, pv::util::Timestamp> get_time_extents() const;
/**
- * Enables or disables colo
u
red trace backgrounds. If they're not
- * colo
u
red then they will use alternating colors.
+ * Enables or disables colored trace backgrounds. If they're not
+ * colored then they will use alternating colors.
*/
*/
- void enable_colo
u
red_bg(bool state);
+ void enable_colored_bg(bool state);
/**
/**
- * Returns true if the trace background should be drawn with a colo
u
red background.
+ * Returns true if the trace background should be drawn with a colored background.
*/
*/
- bool colo
u
red_bg() const;
+ bool colored_bg() const;
/**
* Enable or disable showing sampling points.
/**
* Enable or disable showing sampling points.
@@
-337,6
+343,9
@@
Q_SIGNALS:
/// @param mode is a value of Trace::SegmentDisplayMode
void segment_display_mode_changed(int mode, bool segment_selectable);
/// @param mode is a value of Trace::SegmentDisplayMode
void segment_display_mode_changed(int mode, bool segment_selectable);
+ /// Emitted when the cursors are shown/hidden
+ void cursor_state_changed(bool show);
+
public Q_SLOTS:
void trigger_event(int segment_id, util::Timestamp location);
public Q_SLOTS:
void trigger_event(int segment_id, util::Timestamp location);
@@
-490,7
+499,7
@@
private:
bool header_was_shrunk_;
bool sticky_scrolling_;
bool header_was_shrunk_;
bool sticky_scrolling_;
- bool colo
u
red_bg_;
+ bool colored_bg_;
bool always_zoom_to_fit_;
pv::util::Timestamp tick_period_;
bool always_zoom_to_fit_;
pv::util::Timestamp tick_period_;