projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Cursors Delta display
[pulseview.git]
/
pv
/
view
/
cursorpair.h
diff --git
a/pv/view/cursorpair.h
b/pv/view/cursorpair.h
index b152b8083a2db4ff0db7932569e7ae08c836abc3..42e6e51fa32ca3c764ac521b1d16318983e56825 100644
(file)
--- a/
pv/view/cursorpair.h
+++ b/
pv/view/cursorpair.h
@@
-32,6
+32,9
@@
namespace view {
class CursorPair
{
class CursorPair
{
+private:
+ static const int DeltaPadding;
+
public:
/**
* Constructor.
public:
/**
* Constructor.
@@
-60,6
+63,8
@@
public:
const Cursor& second() const;
public:
const Cursor& second() const;
public:
+ QRectF get_label_rect(const QRect &rect) const;
+
void draw_markers(QPainter &p,
const QRect &rect, unsigned int prefix);
void draw_markers(QPainter &p,
const QRect &rect, unsigned int prefix);
@@
-67,11
+72,15
@@
public:
void draw_viewport_foreground(QPainter &p, const QRect &rect);
void draw_viewport_foreground(QPainter &p, const QRect &rect);
+ void compute_text_size(QPainter &p, unsigned int prefix);
+
std::pair<float, float> get_cursor_offsets() const;
private:
Cursor _first, _second;
const View &_view;
std::pair<float, float> get_cursor_offsets() const;
private:
Cursor _first, _second;
const View &_view;
+
+ QSizeF _text_size;
};
} // namespace view
};
} // namespace view