#include <cursorpair.hpp>
|
QString | format_string_sub (int time_precision, int freq_precision, bool show_unit=true) |
|
Definition at line 43 of file cursorpair.hpp.
pv::views::trace::CursorPair::CursorPair |
( |
View & |
view | ) |
|
Constructor.
- Parameters
-
view | A reference to the view that owns this cursor pair. |
Definition at line 46 of file cursorpair.cpp.
pv::views::trace::CursorPair::~CursorPair |
( |
| ) |
|
QMenu * pv::views::trace::CursorPair::create_header_context_menu |
( |
QWidget * |
parent | ) |
|
|
overridevirtual |
QPoint pv::views::trace::CursorPair::drag_point |
( |
const QRect & |
rect | ) |
const |
|
overridevirtual |
bool pv::views::trace::CursorPair::enabled |
( |
| ) |
const |
|
overridevirtual |
shared_ptr< Cursor > pv::views::trace::CursorPair::first |
( |
| ) |
const |
Returns a pointer to the first cursor.
Definition at line 78 of file cursorpair.cpp.
QString pv::views::trace::CursorPair::format_string |
( |
int |
max_width = 0 , |
|
|
std::function< double(const QString &)> |
query_size = [](const QString& s) -> double { (void)s; return 0; } |
|
) |
| |
QString pv::views::trace::CursorPair::format_string_sub |
( |
int |
time_precision, |
|
|
int |
freq_precision, |
|
|
bool |
show_unit = true |
|
) |
| |
|
private |
pair< float, float > pv::views::trace::CursorPair::get_cursor_offsets |
( |
| ) |
const |
float pv::views::trace::CursorPair::get_x |
( |
| ) |
const |
|
overridevirtual |
QRectF pv::views::trace::CursorPair::label_rect |
( |
const QRectF & |
rect | ) |
const |
|
overridevirtual |
Computes the outline rectangle of a label.
- Parameters
-
rect | the rectangle of the header area. |
- Returns
- Returns the rectangle of the signal label.
Reimplemented from pv::views::trace::ViewItem.
Definition at line 167 of file cursorpair.cpp.
void pv::views::trace::CursorPair::on_hover_point_changed |
( |
const QWidget * |
widget, |
|
|
const QPoint & |
hp |
|
) |
| |
|
slot |
void pv::views::trace::CursorPair::on_setting_changed |
( |
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
|
overridevirtual |
Paints the background layer of the item with a QPainter
- Parameters
-
p | the QPainter to paint into. |
pp | the painting parameters object to paint with. |
Reimplemented from pv::views::trace::ViewItem.
Definition at line 227 of file cursorpair.cpp.
void pv::views::trace::CursorPair::paint_label |
( |
QPainter & |
p, |
|
|
const QRect & |
rect, |
|
|
bool |
hover |
|
) |
| |
|
overridevirtual |
Paints the marker's label to the ruler.
- Parameters
-
p | The painter to draw with. |
rect | The rectangle of the ruler client area. |
hover | true if the label is being hovered over by the mouse. |
Reimplemented from pv::views::trace::ViewItem.
Definition at line 185 of file cursorpair.cpp.
shared_ptr< Cursor > pv::views::trace::CursorPair::second |
( |
| ) |
const |
Returns a pointer to the second cursor.
Definition at line 83 of file cursorpair.cpp.
const int pv::views::trace::CursorPair::DeltaPadding = 8 |
|
staticprivate |
QColor pv::views::trace::CursorPair::fill_color_ |
|
private |
shared_ptr<Cursor> pv::views::trace::CursorPair::first_ |
|
private |
QRectF pv::views::trace::CursorPair::label_area_ |
|
private |
bool pv::views::trace::CursorPair::label_incomplete_ |
|
private |
shared_ptr<Cursor> pv::views::trace::CursorPair::second_ |
|
private |
bool pv::views::trace::CursorPair::show_frequency_ |
|
private |
bool pv::views::trace::CursorPair::show_interval_ |
|
private |
bool pv::views::trace::CursorPair::show_samples_ |
|
private |
QSizeF pv::views::trace::CursorPair::text_size_ |
|
private |
The documentation for this class was generated from the following files: