#include <trace.hpp>
Definition at line 44 of file trace.hpp.
pv::view::Trace::Trace |
( |
QString |
name | ) |
|
|
protected |
void pv::view::Trace::add_colour_option |
( |
QWidget * |
parent, |
|
|
QFormLayout * |
form |
|
) |
| |
|
protected |
QColor pv::view::Trace::colour |
( |
| ) |
const |
Get the colour of the signal.
Definition at line 65 of file trace.cpp.
QMenu * pv::view::Trace::create_context_menu |
( |
QWidget * |
parent | ) |
|
|
virtual |
void pv::view::Trace::create_popup_form |
( |
| ) |
|
|
protected |
QRectF pv::view::Trace::label_rect |
( |
const QRectF & |
rect | ) |
const |
|
virtual |
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::view::ViewItem.
Definition at line 160 of file trace.cpp.
QString pv::view::Trace::name |
( |
| ) |
const |
Gets the name of this signal.
Definition at line 55 of file trace.cpp.
void pv::view::Trace::on_colour_changed |
( |
const QColor & |
colour | ) |
|
|
privateslot |
void pv::view::Trace::on_popup_closed |
( |
| ) |
|
|
privateslot |
void pv::view::Trace::on_text_changed |
( |
const QString & |
text | ) |
|
|
privateslot |
Paints a zero axis across the viewport.
- Parameters
-
p | the QPainter to paint into. |
pp | the painting parameters object to paint with. |
y | the y-offset of the axis. |
Definition at line 197 of file trace.cpp.
void pv::view::Trace::paint_label |
( |
QPainter & |
p, |
|
|
const QRect & |
rect, |
|
|
bool |
hover |
|
) |
| |
|
virtual |
Paints the signal label.
- Parameters
-
p | the QPainter to paint into. |
rect | the rectangle of the header area. |
hover | true if the label is being hovered over by the mouse. |
Reimplemented from pv::view::ViewItem.
Definition at line 83 of file trace.cpp.
void pv::view::Trace::populate_popup_form |
( |
QWidget * |
parent, |
|
|
QFormLayout * |
form |
|
) |
| |
|
protectedvirtual |
void pv::view::Trace::set_colour |
( |
QColor |
colour | ) |
|
Set the colour of the signal.
Definition at line 70 of file trace.cpp.
void pv::view::Trace::set_coloured_bg |
( |
bool |
state | ) |
|
Enables or disables the coloured background for this trace.
Definition at line 78 of file trace.cpp.
void pv::view::Trace::set_name |
( |
QString |
name | ) |
|
|
virtual |
const QPen pv::view::Trace::AxisPen |
|
staticprivate |
QColor pv::view::Trace::bgcolour_ |
|
protected |
const QColor pv::view::Trace::BrightBGColour |
|
staticprivate |
QColor pv::view::Trace::colour_ |
|
protected |
bool pv::view::Trace::coloured_bg_ |
|
protected |
bool pv::view::Trace::coloured_bg_state_ |
|
protected |
const QColor pv::view::Trace::DarkBGColour |
|
staticprivate |
const int pv::view::Trace::LabelHitPadding = 2 |
|
staticprivate |
QString pv::view::Trace::name_ |
|
protected |
QFormLayout* pv::view::Trace::popup_form_ |
|
private |
The documentation for this class was generated from the following files: