![]() |
PulseView
unreleased development snapshot
A Qt-based sigrok GUI
|
#include <logicsignal.hpp>
Public Member Functions | |
LogicSignal (pv::Session &session, shared_ptr< data::SignalBase > base) | |
virtual | ~LogicSignal ()=default |
virtual std::map< QString, QVariant > | save_settings () const |
virtual void | restore_settings (std::map< QString, QVariant > settings) |
virtual pair< int, int > | v_extents () const |
virtual void | paint_mid (QPainter &p, ViewItemPaintParams &pp) |
virtual void | paint_fore (QPainter &p, ViewItemPaintParams &pp) |
virtual vector< data::LogicSegment::EdgePair > | get_nearest_level_changes (uint64_t sample_pos) |
![]() | |
virtual void | set_name (QString name) |
bool | enabled () const |
shared_ptr< data::SignalBase > | base () const |
virtual void | save_settings (QSettings &settings) const |
virtual void | restore_settings (QSettings &settings) |
void | paint_back (QPainter &p, ViewItemPaintParams &pp) |
QMenu * | create_header_context_menu (QWidget *parent) |
void | delete_pressed () |
![]() | |
shared_ptr< data::SignalBase > | base () const |
virtual bool | is_selectable (QPoint pos) const |
virtual bool | is_draggable (QPoint pos) const |
virtual void | set_segment_display_mode (SegmentDisplayMode mode) |
virtual void | on_setting_changed (const QString &key, const QVariant &value) |
virtual void | paint_label (QPainter &p, const QRect &rect, bool hover) |
virtual void | paint_error (QPainter &p, const ViewItemPaintParams &pp) |
virtual QMenu * | create_view_context_menu (QWidget *parent, QPoint &click_pos) |
pv::widgets::Popup * | create_popup (QWidget *parent) |
QRectF | label_rect (const QRectF &rect) const |
virtual QRectF | hit_box_rect (const ViewItemPaintParams &pp) const |
void | set_current_segment (const int segment) |
int | get_current_segment () const |
virtual void | hover_point_changed (const QPoint &hp) |
![]() | |
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 |
![]() | |
ViewItem () | |
bool | selected () const |
bool | dragging () const |
void | drag () |
virtual void | drag_release () |
virtual void | mouse_left_press_event (const QMouseEvent *event) |
![]() | |
virtual const item_list & | child_items () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
template<class T > | |
vector< shared_ptr< T > > | list_by_type () |
Static Public Attributes | |
static const float | Oversampling = 2.0f |
static const QColor | EdgeColor |
static const QColor | HighColor |
static const QColor | LowColor |
static const QColor | SamplingPointColor |
static QColor | TriggerMarkerBackgroundColor = QColor(0xED, 0xD4, 0x00) |
static const int | TriggerMarkerPadding = 2 |
static const char * | TriggerMarkerIcons [8] |
![]() | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
Protected Slots | |
void | on_setting_changed (const QString &key, const QVariant &value) |
void | on_trigger () |
void | on_signal_height_changed (int height) |
![]() | |
virtual void | on_name_changed (const QString &text) |
void | on_disable () |
void | on_enabled_changed (bool enabled) |
![]() | |
virtual void | on_name_changed (const QString &text) |
virtual void | on_color_changed (const QColor &color) |
virtual void | on_error_message_changed (const QString &msg) |
void | on_popup_closed () |
Protected Member Functions | |
void | paint_caps (QPainter &p, QLineF *const lines, vector< pair< int64_t, bool > > &edges, bool level, double samples_per_pixel, double pixels_offset, float x_offset, float y_offset) |
shared_ptr< pv::data::LogicSegment > | get_logic_segment_to_paint () const |
void | init_trigger_actions (QWidget *parent) |
const vector< int32_t > | get_trigger_types () const |
QAction * | action_from_trigger_type (const sigrok::TriggerMatchType *type) |
const sigrok::TriggerMatchType * | trigger_type_from_action (QAction *action) |
void | populate_popup_form (QWidget *parent, QFormLayout *form) |
void | modify_trigger () |
virtual void | update_logic_level_offsets () |
![]() | |
Signal (pv::Session &session, shared_ptr< data::SignalBase > signal) | |
![]() | |
Trace (shared_ptr< data::SignalBase > signal) | |
~Trace () | |
void | paint_axis (QPainter &p, ViewItemPaintParams &pp, int y) |
void | paint_hover_marker (QPainter &p) |
void | add_color_option (QWidget *parent, QFormLayout *form) |
void | create_popup_form () |
Static Protected Member Functions | |
static const QIcon * | get_icon (const char *path) |
static const QPixmap * | get_pixmap (const char *path) |
![]() | |
static QPen | highlight_pen () |
Static Protected Attributes | |
static QCache< QString, const QIcon > | icon_cache_ |
static QCache< QString, const QPixmap > | pixmap_cache_ |
Additional Inherited Members | |
![]() | |
enum | SegmentDisplayMode { ShowLastSegmentOnly = 1, ShowLastCompleteSegmentOnly, ShowSingleSegmentOnly, ShowAllSegments, ShowAccumulatedIntensity } |
![]() | |
typedef vector< shared_ptr< ViewItem > > | item_list |
typedef ViewItemIterator< ViewItemOwner, ViewItem > | iterator |
typedef ViewItemIterator< const ViewItemOwner, ViewItem > | const_iterator |
![]() | |
static QColor | select_text_color (QColor background) |
![]() | |
int | visual_v_offset |
Definition at line 56 of file logicsignal.hpp.
pv::views::trace::LogicSignal::LogicSignal | ( | pv::Session & | session, |
shared_ptr< data::SignalBase > | base | ||
) |
|
virtualdefault |
|
protected |
|
staticprotected |
|
protected |
|
virtual |
Determines the closest level change (i.e. edge) to a given sample, which is useful for e.g. the "snap to edge" functionality.
sample_pos | Sample to use |
Implements pv::views::trace::Signal.
Reimplemented in pv::views::trace::AnalogSignal.
Definition at line 350 of file logicsignal.cpp.
|
staticprotected |
|
protected |
Definition at line 453 of file logicsignal.cpp.
|
protected |
Definition at line 420 of file logicsignal.cpp.
|
protected |
Definition at line 567 of file logicsignal.cpp.
|
protectedslot |
|
protectedslot |
Definition at line 660 of file logicsignal.cpp.
|
protectedslot |
Definition at line 647 of file logicsignal.cpp.
|
protected |
|
virtual |
Paints the foreground layer of the signal with a QPainter
p | the QPainter to paint into. |
pp | the painting parameters object to paint with. |
Reimplemented from pv::views::trace::ViewItem.
Reimplemented in pv::views::trace::AnalogSignal.
Definition at line 309 of file logicsignal.cpp.
|
virtual |
Paints the mid-layer of the signal with a QPainter
p | the QPainter to paint into. |
pp | the painting parameters object to paint with.. |
Reimplemented from pv::views::trace::ViewItem.
Reimplemented in pv::views::trace::AnalogSignal.
Definition at line 153 of file logicsignal.cpp.
|
protectedvirtual |
Reimplemented from pv::views::trace::Signal.
Reimplemented in pv::views::trace::MathSignal.
Definition at line 528 of file logicsignal.cpp.
|
virtual |
Reimplemented from pv::views::trace::Signal.
Reimplemented in pv::views::trace::AnalogSignal.
Definition at line 129 of file logicsignal.cpp.
|
virtual |
Reimplemented from pv::views::trace::Signal.
Reimplemented in pv::views::trace::AnalogSignal.
Definition at line 120 of file logicsignal.cpp.
|
protected |
|
protectedvirtual |
Reimplemented in pv::views::trace::AnalogSignal.
Definition at line 627 of file logicsignal.cpp.
|
virtual |
Computes the vertical extents of the contents of this row item.
Implements pv::views::trace::TraceTreeItem.
Reimplemented in pv::views::trace::AnalogSignal.
Definition at line 146 of file logicsignal.cpp.
|
static |
Definition at line 63 of file logicsignal.hpp.
|
protected |
Definition at line 139 of file logicsignal.hpp.
|
protected |
Definition at line 138 of file logicsignal.hpp.
|
protected |
Definition at line 140 of file logicsignal.hpp.
|
static |
Definition at line 64 of file logicsignal.hpp.
|
staticprotected |
Definition at line 154 of file logicsignal.hpp.
|
protected |
Definition at line 140 of file logicsignal.hpp.
|
static |
Definition at line 65 of file logicsignal.hpp.
|
static |
Definition at line 61 of file logicsignal.hpp.
|
staticprotected |
Definition at line 155 of file logicsignal.hpp.
|
static |
Definition at line 66 of file logicsignal.hpp.
|
protected |
Definition at line 139 of file logicsignal.hpp.
|
protected |
Definition at line 160 of file logicsignal.hpp.
|
protected |
Definition at line 142 of file logicsignal.hpp.
|
protected |
Definition at line 146 of file logicsignal.hpp.
|
protected |
Definition at line 152 of file logicsignal.hpp.
|
protected |
Definition at line 150 of file logicsignal.hpp.
|
protected |
Definition at line 149 of file logicsignal.hpp.
|
protected |
Definition at line 151 of file logicsignal.hpp.
|
protected |
Definition at line 144 of file logicsignal.hpp.
|
protected |
Definition at line 147 of file logicsignal.hpp.
|
protected |
Definition at line 148 of file logicsignal.hpp.
|
protected |
Definition at line 145 of file logicsignal.hpp.
|
static |
Definition at line 68 of file logicsignal.hpp.
|
static |
Definition at line 70 of file logicsignal.hpp.
|
static |
Definition at line 69 of file logicsignal.hpp.