20 #ifndef PULSEVIEW_PV_VIEWS_TRACE_LOGICSIGNAL_HPP 21 #define PULSEVIEW_PV_VIEWS_TRACE_LOGICSIGNAL_HPP 33 using std::shared_ptr;
40 class TriggerMatchType;
70 static const char* TriggerMarkerIcons[8];
76 virtual std::map<QString, QVariant> save_settings()
const;
77 virtual void restore_settings(std::map<QString, QVariant> settings);
83 virtual pair<int, int> v_extents()
const;
106 virtual vector<data::LogicSegment::EdgePair> get_nearest_level_changes(uint64_t sample_pos);
109 void paint_caps(QPainter &p, QLineF *
const lines,
110 vector< pair<int64_t, bool> > &edges,
111 bool level,
double samples_per_pixel,
double pixels_offset,
112 float x_offset,
float y_offset);
114 shared_ptr<pv::data::LogicSegment> get_logic_segment_to_paint()
const;
116 void init_trigger_actions(QWidget *parent);
118 const vector<int32_t> get_trigger_types()
const;
119 QAction* action_from_trigger_type(
const sigrok::TriggerMatchType *type);
120 const sigrok::TriggerMatchType* trigger_type_from_action(
122 void populate_popup_form(QWidget *parent, QFormLayout *form);
123 void modify_trigger();
125 static const QIcon* get_icon(
const char *path);
126 static const QPixmap* get_pixmap(
const char *path);
128 virtual void update_logic_level_offsets();
131 void on_setting_changed(
const QString &key,
const QVariant &
value);
135 void on_signal_height_changed(
int height);
167 #endif // PULSEVIEW_PV_VIEWS_TRACE_LOGICSIGNAL_HPP static QColor TriggerMarkerBackgroundColor
const sigrok::TriggerMatchType * trigger_match_
bool show_sampling_points_
T value(details::expression_node< T > *n)
QAction * trigger_change_
static const QColor HighColor
static QCache< QString, const QPixmap > pixmap_cache_
static const float Oversampling
QAction * trigger_rising_
const vector< int32_t > trigger_types_
QAction * trigger_falling_
static const int TriggerMarkerPadding
QSpinBox * signal_height_sb_
static const QColor SamplingPointColor
static QCache< QString, const QIcon > icon_cache_
static const QColor EdgeColor
static const QColor LowColor