projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
View: Provide a clear setup path for the initial v_offset value
[pulseview.git]
/
pv
/
view
/
view.hpp
diff --git
a/pv/view/view.hpp
b/pv/view/view.hpp
index b64c09d2c019ab00ee3c56b0a8ef0732b1af2c92..42fa322cc50b7e47f42ee51e1145a60ecf97c19b 100644
(file)
--- a/
pv/view/view.hpp
+++ b/
pv/view/view.hpp
@@
-171,6
+171,12
@@
public:
*/
void enable_sticky_scrolling(bool state);
*/
void enable_sticky_scrolling(bool state);
+ /**
+ * Enables or disables coloured trace backgrounds. If they're not
+ * coloured then they will use alternating colors.
+ */
+ void enable_coloured_bg(bool state);
+
/**
* Returns true if cursors are displayed. false otherwise.
*/
/**
* Returns true if cursors are displayed. false otherwise.
*/
@@
-261,10
+267,14
@@
private:
void update_scroll();
void update_scroll();
+ void reset_scroll();
+
+ void set_scroll_default();
+
void update_layout();
/**
void update_layout();
/**
- * Satis
i
fies TraceTreeItem functionality.
+ * Satisfies TraceTreeItem functionality.
* @param p the QPainter to paint into.
* @param rect the rectangle of the header area.
* @param hover true if the label is being hovered over by the mouse.
* @param p the QPainter to paint into.
* @param rect the rectangle of the header area.
* @param hover true if the label is being hovered over by the mouse.
@@
-294,9
+304,9
@@
private:
bool eventFilter(QObject *object, QEvent *event);
bool eventFilter(QObject *object, QEvent *event);
- bool viewportEvent(QEvent *e);
+ bool viewportEvent(QEvent *e
vent
);
- void resizeEvent(QResizeEvent *e);
+ void resizeEvent(QResizeEvent *e
vent
);
public:
void row_item_appearance_changed(bool label, bool content);
public:
void row_item_appearance_changed(bool label, bool content);
@@
-384,12
+394,15
@@
private:
std::list< std::shared_ptr<Flag> > flags_;
char next_flag_text_;
std::list< std::shared_ptr<Flag> > flags_;
char next_flag_text_;
- std::
shared_ptr<TriggerMarker> trigger_marker
_;
+ std::
vector< std::shared_ptr<TriggerMarker> > trigger_markers
_;
QPoint hover_point_;
unsigned int sticky_events_;
QTimer lazy_event_handler_;
QPoint hover_point_;
unsigned int sticky_events_;
QTimer lazy_event_handler_;
+
+ // This is true when the defaults couldn't be set due to insufficient info
+ bool scroll_needs_defaults;
};
} // namespace view
};
} // namespace view