21 #ifndef PULSEVIEW_PV_VIEW_LOGICSIGNAL_HPP
22 #define PULSEVIEW_PV_VIEW_LOGICSIGNAL_HPP
34 class TriggerMatchType;
68 std::shared_ptr<devices::Device> device,
69 std::shared_ptr<sigrok::Channel>
channel,
70 std::shared_ptr<pv::data::Logic>
data);
74 std::shared_ptr<pv::data::SignalData>
data()
const;
76 std::shared_ptr<pv::data::Logic>
logic_data()
const;
112 void paint_caps(QPainter &p, QLineF *
const lines,
113 std::vector< std::pair<int64_t, bool> > &edges,
114 bool level,
double samples_per_pixel,
double pixels_offset,
115 float x_offset,
float y_offset);
121 const sigrok::TriggerMatchType *match);
127 static const QIcon*
get_icon(
const char *path);
128 static const QPixmap*
get_pixmap(
const char *path);
137 std::shared_ptr<pv::data::Logic>
data_;
155 #endif // PULSEVIEW_PV_VIEW_LOGICSIGNAL_HPP
QAction * action_from_trigger_type(const sigrok::TriggerMatchType *match)
void scale_handle_dragged(int offset)
int scale_handle_offset() const
static const QIcon * get_icon(const char *path)
QAction * trigger_falling_
static const QColor SignalColours[10]
static QColor TriggerMarkerBackgroundColour
QAction * trigger_rising_
void set_logic_data(std::shared_ptr< pv::data::Logic > data)
virtual void paint_fore(QPainter &p, const ViewItemPaintParams &pp)
const std::vector< int32_t > get_trigger_types() const
void populate_popup_form(QWidget *parent, QFormLayout *form)
LogicSignal(pv::Session &session, std::shared_ptr< devices::Device > device, std::shared_ptr< sigrok::Channel > channel, std::shared_ptr< pv::data::Logic > data)
std::shared_ptr< sigrok::Channel > channel() const
static const QColor LowColour
static const QColor HighColour
static const QPixmap * get_pixmap(const char *path)
const sigrok::TriggerMatchType * trigger_type_from_action(QAction *action)
void paint_mid(QPainter &p, const ViewItemPaintParams &pp)
static const QColor EdgeColour
std::shared_ptr< pv::devices::Device > device_
std::pair< int, int > v_extents() const
const sigrok::TriggerMatchType * trigger_match_
void paint_caps(QPainter &p, QLineF *const lines, std::vector< std::pair< int64_t, bool > > &edges, bool level, double samples_per_pixel, double pixels_offset, float x_offset, float y_offset)
static QCache< QString, const QPixmap > pixmap_cache_
static const int TriggerMarkerPadding
void init_trigger_actions(QWidget *parent)
static QCache< QString, const QIcon > icon_cache_
std::shared_ptr< pv::data::Logic > logic_data() const
std::shared_ptr< pv::data::SignalData > data() const
QAction * trigger_change_
std::shared_ptr< pv::data::Logic > data_
static const float Oversampling
static const char * TriggerMarkerIcons[8]