mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-23 13:42:55 +08:00
fix compile errors
This commit is contained in:
parent
80fcecf533
commit
3aee725b2f
@ -34,7 +34,7 @@ project(DSLogic)
|
||||
|
||||
option(DISABLE_WERROR "Build without -Werror" TRUE)
|
||||
option(ENABLE_SIGNALS "Build with UNIX signals" TRUE)
|
||||
option(ENABLE_DECODE "Build with libsigrokdecode" TRUE)
|
||||
option(ENABLE_DECODE "Build with libsigrokdecode" FALSE)
|
||||
option(ENABLE_COTIRE "Enable cotire" FALSE)
|
||||
option(ENABLE_TESTS "Enable unit tests" FALSE)
|
||||
option(STATIC_PKGDEPS_LIBS "Statically link to (pkg-config) libraries" FALSE)
|
||||
@ -154,7 +154,6 @@ set(DSLogic_SOURCES
|
||||
pv/prop/string.cpp
|
||||
pv/prop/binding/binding.cpp
|
||||
pv/prop/binding/deviceoptions.cpp
|
||||
pv/prop/binding/decoderoptions.cpp
|
||||
pv/toolbars/filebar.cpp
|
||||
pv/toolbars/logobar.cpp
|
||||
pv/toolbars/samplingbar.cpp
|
||||
|
@ -40,7 +40,7 @@ Annotation::Annotation(const srd_proto_data *const pdata) :
|
||||
(const srd_proto_data_annotation*)pdata->data;
|
||||
assert(pda);
|
||||
|
||||
_format = pda->ann_format;
|
||||
_format = pda->ann_class;
|
||||
|
||||
const char *const *annotations = (char**)pda->ann_text;
|
||||
while(*annotations) {
|
||||
|
@ -521,9 +521,11 @@ bool MainWindow::eventFilter(QObject *object, QEvent *event)
|
||||
else
|
||||
on_trigger(!_trigger_dock->isVisible());
|
||||
break;
|
||||
#ifdef ENABLE_DECODE
|
||||
case Qt::Key_D:
|
||||
on_protocol(!_protocol_dock->isVisible());
|
||||
break;
|
||||
#endif
|
||||
case Qt::Key_M:
|
||||
on_measure(!_measure_dock->isVisible());
|
||||
break;
|
||||
|
@ -476,9 +476,10 @@ void SigSession::init_signals()
|
||||
unsigned int dso_probe_count = 0;
|
||||
unsigned int analog_probe_count = 0;
|
||||
|
||||
|
||||
#ifdef ENABLE_DECODE
|
||||
// Clear the decode traces
|
||||
_decode_traces.clear();
|
||||
#endif
|
||||
|
||||
// Detect what data types we will receive
|
||||
if(_dev_inst) {
|
||||
@ -786,11 +787,13 @@ void SigSession::data_feed_in(const struct sr_dev_inst *sdi,
|
||||
_cur_dso_snapshot.reset();
|
||||
_cur_analog_snapshot.reset();
|
||||
}
|
||||
#ifdef ENABLE_DECODE
|
||||
for (vector< shared_ptr<view::DecodeTrace> >::iterator i =
|
||||
_decode_traces.begin();
|
||||
i != _decode_traces.end();
|
||||
i++)
|
||||
(*i)->decoder()->stop_decode();
|
||||
#endif
|
||||
frame_ended();
|
||||
break;
|
||||
}
|
||||
|
@ -222,7 +222,9 @@ private:
|
||||
mutable boost::mutex _signals_mutex;
|
||||
std::vector< boost::shared_ptr<view::Signal> > _signals;
|
||||
std::vector< boost::shared_ptr<view::GroupSignal> > _group_traces;
|
||||
#ifdef ENABLE_DECODE
|
||||
std::vector< boost::shared_ptr<view::DecodeTrace> > _decode_traces;
|
||||
#endif
|
||||
|
||||
mutable boost::mutex _data_mutex;
|
||||
boost::shared_ptr<data::Logic> _logic_data;
|
||||
|
@ -5,8 +5,8 @@
|
||||
namespace pv {
|
||||
namespace view {
|
||||
|
||||
dslDial::dslDial(quint64 div, quint64 step,
|
||||
QVector<quint64> value, QVector<QString> unit)
|
||||
dslDial::dslDial(const quint64 div, const quint64 step,
|
||||
const QVector<quint64> value, const QVector<QString> unit)
|
||||
{
|
||||
assert(div > 0);
|
||||
assert(step > 0);
|
||||
|
@ -10,8 +10,8 @@ namespace view {
|
||||
class dslDial
|
||||
{
|
||||
public:
|
||||
dslDial(quint64 div, quint64 step,
|
||||
QVector<quint64> value, QVector<QString> unit);
|
||||
dslDial(const quint64 div, const quint64 step,
|
||||
const QVector<quint64> value, const QVector<QString> unit);
|
||||
virtual ~dslDial();
|
||||
|
||||
public:
|
||||
|
@ -113,9 +113,9 @@ DsoSignal::DsoSignal(boost::shared_ptr<pv::device::DevInst> dev_inst,
|
||||
_trig_vpos(probe->index * 0.5 + 0.25),
|
||||
_zeroPos(probe->index * 0.5 + 0.25)
|
||||
{
|
||||
QVector<uint64_t> vValue;
|
||||
QVector<quint64> vValue;
|
||||
QVector<QString> vUnit;
|
||||
QVector<uint64_t> hValue;
|
||||
QVector<quint64> hValue;
|
||||
QVector<QString> hUnit;
|
||||
for(quint64 i = 0; i < vDialValueCount; i++)
|
||||
vValue.append(vDialValue[i]);
|
||||
|
@ -45,8 +45,8 @@ private:
|
||||
static const float EnvelopeThreshold;
|
||||
|
||||
static const int HitCursorMargin = 3;
|
||||
static const uint64_t vDialValueCount = 10;
|
||||
static const uint64_t vDialValueStep = 1000;
|
||||
static const quint64 vDialValueCount = 10;
|
||||
static const quint64 vDialValueStep = 1000;
|
||||
static const uint64_t vDialUnitCount = 2;
|
||||
static const uint64_t hDialValueCount = 22;
|
||||
static const uint64_t hDialValueStep = 1000;
|
||||
|
1
libsigrok4DSLogic/libsigrokdecode
Submodule
1
libsigrok4DSLogic/libsigrokdecode
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 280d554c29fc234d27be77d602436395d01da6dd
|
Loading…
x
Reference in New Issue
Block a user