PulseView
unreleased development snapshot
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 View * | view () |
virtual const View * | view () const |
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_header_context_menu (QWidget *parent) |
pv::widgets::Popup * | create_popup (QWidget *parent) |
int | owner_visual_v_offset () const |
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::views::trace::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 () |
virtual void | set_owner (TraceTreeItemOwner *owner) |
int | get_visual_y () const |
void | drag_by (const QPoint &delta) |
QPoint | drag_point (const QRect &rect) const |
Public Member Functions inherited from pv::views::trace::ViewItem | |
ViewItem () | |
virtual bool | is_selectable (QPoint pos) const |
bool | selected () const |
virtual bool | is_draggable (QPoint pos) 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, ViewItemPaintParams &pp) |
virtual void | paint_mid (QPainter &p, ViewItemPaintParams &pp) |
virtual void | paint_fore (QPainter &p, ViewItemPaintParams &pp) |
virtual QMenu * | create_view_context_menu (QWidget *parent, QPoint &click_pos) |
virtual void | delete_pressed () |
virtual void | hover_point_changed (const QPoint &hp) |
virtual void | mouse_left_press_event (const QMouseEvent *event) |
Public Member Functions inherited from pv::views::trace::TraceTreeItemOwner | |
virtual const item_list & | child_items () const |
vector< shared_ptr< TraceTreeItem > > | trace_tree_child_items () const |
void | clear_child_items () |
void | add_child_item (shared_ptr< TraceTreeItem > item) |
void | remove_child_item (shared_ptr< TraceTreeItem > item) |
virtual void | restack_items () |
pair< int, int > | v_extents () const |
Public Member Functions inherited from pv::views::trace::ViewItemOwner | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
template<class T > | |
vector< 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 | LineColor |
Additional Inherited Members | |
Public Types inherited from pv::views::trace::ViewItemOwner | |
typedef vector< shared_ptr< ViewItem > > | item_list |
typedef ViewItemIterator< ViewItemOwner, ViewItem > | iterator |
typedef ViewItemIterator< const ViewItemOwner, ViewItem > | const_iterator |
Static Public Member Functions inherited from pv::views::trace::ViewItem | |
static QColor | select_text_color (QColor background) |
Static Public Attributes inherited from pv::views::trace::ViewItem | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
Static Protected Member Functions inherited from pv::views::trace::ViewItem | |
static QPen | highlight_pen () |
Protected Attributes inherited from pv::views::trace::TraceTreeItem | |
TraceTreeItemOwner * | owner_ |
int | layout_v_offset_ |
int | visual_v_offset_ |
Protected Attributes inherited from pv::views::trace::ViewItem | |
QWidget * | context_parent_ |
QPoint | drag_point_ |
Protected Attributes inherited from pv::views::trace::ViewItemOwner | |
item_list | items_ |
Properties inherited from pv::views::trace::TraceTreeItem | |
int | visual_v_offset |
Definition at line 32 of file tracegroup.hpp.
|
virtual |
Virtual destructor
Definition at line 44 of file tracegroup.cpp.
|
virtual |
Reimplemented from pv::views::trace::ViewItem.
Definition at line 136 of file tracegroup.cpp.
|
virtual |
Reimplemented from pv::views::trace::ViewItem.
Definition at line 152 of file tracegroup.cpp.
|
virtual |
Returns the number of nested parents that this row item owner has.
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 163 of file tracegroup.cpp.
|
virtual |
Returns true if the item is visible and enabled.
Implements pv::views::trace::ViewItem.
Definition at line 50 of file tracegroup.cpp.
|
virtual |
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 190 of file tracegroup.cpp.
|
virtual |
Computes the outline rectangle of a label.
rect | the rectangle of the header area. |
Reimplemented from pv::views::trace::ViewItem.
Definition at line 116 of file tracegroup.cpp.
|
privateslot |
Definition at line 179 of file tracegroup.cpp.
|
virtual |
Returns the total vertical offset of this trace and all it's owners
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 158 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::views::trace::ViewItem.
Definition at line 85 of file tracegroup.cpp.
bool pv::views::trace::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 127 of file tracegroup.cpp.
|
virtual |
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 184 of file tracegroup.cpp.
|
virtual |
Returns the session of the onwer.
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 56 of file tracegroup.cpp.
|
virtual |
Returns the session of the onwer.
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 62 of file tracegroup.cpp.
void pv::views::trace::TraceGroup::ungroup | ( | ) |
Definition at line 168 of file tracegroup.cpp.
|
virtual |
Computes the vertical extents of the contents of this row item.
Implements pv::views::trace::TraceTreeItem.
Definition at line 80 of file tracegroup.cpp.
|
virtual |
Returns the view of the owner.
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 68 of file tracegroup.cpp.
|
virtual |
Returns the view of the owner.
Implements pv::views::trace::TraceTreeItemOwner.
Definition at line 74 of file tracegroup.cpp.
|
staticprivate |
Definition at line 40 of file tracegroup.hpp.
|
staticprivate |
Definition at line 39 of file tracegroup.hpp.
|
staticprivate |
Definition at line 37 of file tracegroup.hpp.
|
staticprivate |
Definition at line 38 of file tracegroup.hpp.