PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <tracegroup.hpp>
Public Member Functions | |
virtual | ~TraceGroup () |
bool | enabled () const |
pv::Session & | session () |
const pv::Session & | session () const |
virtual pv::view::View * | view () |
virtual const pv::view::View * | view () const |
std::pair< int, int > | v_extents () const |
void | paint_label (QPainter &p, const QRect &rect, bool hover) |
QRectF | label_rect (const QRectF &rect) const |
bool | pt_in_label_rect (int left, int right, const QPoint &point) |
QMenu * | create_context_menu (QWidget *parent) |
pv::widgets::Popup * | create_popup (QWidget *parent) |
int | owner_visual_v_offset () const |
void | restack_items () |
unsigned int | depth () const |
void | ungroup () |
void | row_item_appearance_changed (bool label, bool content) |
void | extents_changed (bool horz, bool vert) |
Public Member Functions inherited from pv::view::TraceTreeItem | |
TraceTreeItem () | |
TraceTreeItemOwner * | owner () const |
void | select (bool select=true) |
int | layout_v_offset () const |
void | set_layout_v_offset (int v_offset) |
int | visual_v_offset () const |
void | set_visual_v_offset (int v_offset) |
void | force_to_v_offset (int v_offset) |
void | animate_to_layout_v_offset () |
void | set_owner (pv::view::TraceTreeItemOwner *owner) |
int | get_visual_y () const |
void | drag_by (const QPoint &delta) |
QPoint | point (const QRect &rect) const |
void | set_bgcolour_state (bool state) |
Public Member Functions inherited from pv::view::RowItem | |
virtual void | hover_point_changed () |
Public Member Functions inherited from pv::view::ViewItem | |
ViewItem () | |
bool | selected () const |
virtual bool | is_draggable () const |
bool | dragging () const |
void | drag () |
virtual void | drag_release () |
virtual QRectF | hit_box_rect (const ViewItemPaintParams &pp) const |
virtual void | paint_back (QPainter &p, const ViewItemPaintParams &pp) |
virtual void | paint_mid (QPainter &p, const ViewItemPaintParams &pp) |
virtual void | paint_fore (QPainter &p, const ViewItemPaintParams &pp) |
virtual void | delete_pressed () |
Public Member Functions inherited from pv::view::TraceTreeItemOwner | |
virtual const item_list & | child_items () const |
std::vector< std::shared_ptr< TraceTreeItem > > | trace_tree_child_items () const |
void | clear_child_items () |
void | add_child_item (std::shared_ptr< TraceTreeItem > item) |
void | remove_child_item (std::shared_ptr< TraceTreeItem > item) |
std::pair< int, int > | v_extents () const |
bool | reassign_bgcolour_states (bool next_bgcolour_state) |
Public Member Functions inherited from pv::view::ViewItemOwner | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
template<class T > | |
std::vector< std::shared_ptr< T > > | list_by_type () |
Private Slots | |
void | on_ungroup () |
Static Private Attributes | |
static const int | Padding = 8 |
static const int | Width = 12 |
static const int | LineThickness = 5 |
static const QColor | LineColour |
Additional Inherited Members | |
Public Types inherited from pv::view::ViewItemOwner | |
typedef std::vector< std::shared_ptr< ViewItem > > | item_list |
typedef ViewItemIterator< ViewItemOwner, ViewItem > | iterator |
typedef ViewItemIterator< const ViewItemOwner, ViewItem > | const_iterator |
Static Public Member Functions inherited from pv::view::ViewItem | |
static QColor | select_text_colour (QColor background) |
Static Public Attributes inherited from pv::view::ViewItem | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
Static Protected Member Functions inherited from pv::view::ViewItem | |
static QPen | highlight_pen () |
Protected Attributes inherited from pv::view::TraceTreeItem | |
TraceTreeItemOwner * | owner_ |
int | layout_v_offset_ |
int | visual_v_offset_ |
bool | bgcolour_state_ |
Protected Attributes inherited from pv::view::ViewItem | |
QWidget * | context_parent_ |
QPoint | drag_point_ |
Protected Attributes inherited from pv::view::ViewItemOwner | |
item_list | items_ |
Properties inherited from pv::view::TraceTreeItem | |
int | visual_v_offset |
Definition at line 30 of file tracegroup.hpp.
|
virtual |
Virtual destructor
Definition at line 43 of file tracegroup.cpp.
|
virtual |
Reimplemented from pv::view::ViewItem.
Definition at line 135 of file tracegroup.cpp.
|
virtual |
Reimplemented from pv::view::ViewItem.
Definition at line 147 of file tracegroup.cpp.
|
virtual |
Returns the number of nested parents that this row item owner has.
Implements pv::view::TraceTreeItemOwner.
Definition at line 192 of file tracegroup.cpp.
|
virtual |
Returns true if the item is visible and enabled.
Implements pv::view::ViewItem.
Definition at line 49 of file tracegroup.cpp.
|
virtual |
Implements pv::view::TraceTreeItemOwner.
Definition at line 219 of file tracegroup.cpp.
|
virtual |
Computes the outline rectangle of a label.
rect | the rectangle of the header area. |
Reimplemented from pv::view::ViewItem.
Definition at line 115 of file tracegroup.cpp.
|
privateslot |
Definition at line 208 of file tracegroup.cpp.
|
virtual |
Returns the total vertical offset of this trace and all it's owners
Implements pv::view::TraceTreeItemOwner.
Definition at line 153 of file tracegroup.cpp.
|
virtual |
Paints the signal label.
p | the QPainter to paint into. |
right | the x-coordinate of the right edge of the header area. |
hover | true if the label is being hovered over by the mouse. |
Reimplemented from pv::view::ViewItem.
Definition at line 84 of file tracegroup.cpp.
bool pv::view::TraceGroup::pt_in_label_rect | ( | int | left, |
int | right, | ||
const QPoint & | point | ||
) |
Determines if a point is in the header label rect.
left | the x-coordinate of the left edge of the header area. |
right | the x-coordinate of the right edge of the header area. |
point | the point to test. |
Definition at line 126 of file tracegroup.cpp.
|
virtual |
Reimplemented from pv::view::TraceTreeItemOwner.
Definition at line 158 of file tracegroup.cpp.
|
virtual |
Implements pv::view::TraceTreeItemOwner.
Definition at line 213 of file tracegroup.cpp.
|
virtual |
Returns the session of the onwer.
Implements pv::view::TraceTreeItemOwner.
Definition at line 55 of file tracegroup.cpp.
|
virtual |
Returns the session of the onwer.
Implements pv::view::TraceTreeItemOwner.
Definition at line 61 of file tracegroup.cpp.
void pv::view::TraceGroup::ungroup | ( | ) |
Definition at line 197 of file tracegroup.cpp.
|
virtual |
Computes the vertical extents of the contents of this row item.
Implements pv::view::TraceTreeItem.
Definition at line 79 of file tracegroup.cpp.
|
virtual |
Returns the view of the owner.
Implements pv::view::TraceTreeItemOwner.
Definition at line 67 of file tracegroup.cpp.
|
virtual |
Returns the view of the owner.
Implements pv::view::TraceTreeItemOwner.
Definition at line 73 of file tracegroup.cpp.
|
staticprivate |
Definition at line 38 of file tracegroup.hpp.
|
staticprivate |
Definition at line 37 of file tracegroup.hpp.
|
staticprivate |
Definition at line 35 of file tracegroup.hpp.
|
staticprivate |
Definition at line 36 of file tracegroup.hpp.