#include "trace.h"
-struct sr_channel;
+namespace sigrok {
+ class Channel;
+}
namespace pv {
class SignalData;
}
-namespace device {
-class DevInst;
-}
-
namespace view {
class Signal : public Trace
Q_OBJECT
protected:
- Signal(std::shared_ptr<pv::device::DevInst> dev_inst,
- const sr_channel *const channel);
+ Signal(std::shared_ptr<sigrok::Channel> channel);
public:
/**
void enable(bool enable = true);
- const sr_channel* channel() const;
+ std::shared_ptr<sigrok::Channel> channel() const;
virtual void populate_popup_form(QWidget *parent, QFormLayout *form);
void delete_pressed();
- bool eventFilter(QObject *obj, QEvent *evt);
-
private Q_SLOTS:
void on_disable();
protected:
- std::shared_ptr<pv::device::DevInst> _dev_inst;
- const sr_channel *const _channel;
+ std::shared_ptr<sigrok::Channel> _channel;
QComboBox *_name_widget;
bool _updating_name_widget;