projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use libsigrok C++ bindings (patch version 7).
[pulseview.git]
/
pv
/
view
/
signal.h
diff --git
a/pv/view/signal.h
b/pv/view/signal.h
index e5e919548be0679147730823eaf113785c3871fe..7028b29e9fb31cdc182b5396ba2e7fa7f9ba75b8 100644
(file)
--- a/
pv/view/signal.h
+++ b/
pv/view/signal.h
@@
-21,15
+21,19
@@
#ifndef PULSEVIEW_PV_VIEW_SIGNAL_H
#define PULSEVIEW_PV_VIEW_SIGNAL_H
#ifndef PULSEVIEW_PV_VIEW_SIGNAL_H
#define PULSEVIEW_PV_VIEW_SIGNAL_H
+#include <memory>
+
#include <QComboBox>
#include <QWidgetAction>
#include <stdint.h>
#include <QComboBox>
#include <QWidgetAction>
#include <stdint.h>
-#include <libsigrok/libsigrok.h>
-
#include "trace.h"
#include "trace.h"
+namespace sigrok {
+ class Channel;
+}
+
namespace pv {
namespace data {
namespace pv {
namespace data {
@@
-43,7
+47,7
@@
class Signal : public Trace
Q_OBJECT
protected:
Q_OBJECT
protected:
- Signal(
pv::SigSession &session, sr_probe *const probe
);
+ Signal(
std::shared_ptr<sigrok::Channel> channel
);
public:
/**
public:
/**
@@
-51,6
+55,8
@@
public:
*/
void set_name(QString name);
*/
void set_name(QString name);
+ virtual std::shared_ptr<pv::data::SignalData> data() const = 0;
+
/**
* Returns true if the trace is visible and enabled.
*/
/**
* Returns true if the trace is visible and enabled.
*/
@@
-58,7
+64,7
@@
public:
void enable(bool enable = true);
void enable(bool enable = true);
-
const sr_probe* probe
() const;
+
std::shared_ptr<sigrok::Channel> channel
() const;
virtual void populate_popup_form(QWidget *parent, QFormLayout *form);
virtual void populate_popup_form(QWidget *parent, QFormLayout *form);
@@
-66,11
+72,11
@@
public:
void delete_pressed();
void delete_pressed();
-private
slots
:
+private
Q_SLOTS
:
void on_disable();
protected:
void on_disable();
protected:
- s
r_probe *const _probe
;
+ s
td::shared_ptr<sigrok::Channel> _channel
;
QComboBox *_name_widget;
bool _updating_name_widget;
QComboBox *_name_widget;
bool _updating_name_widget;