MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / XCursor

Method XCursor

DSView/pv/view/xcursor.cpp:36–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace view {
35
36XCursor::XCursor(View &view, int order, double value0, double value1) :
37 _view(view),
38 _yvalue(0.5),
39 _value0(value0),
40 _value1(value1),
41 _grabbed(XCur_None),
42 _order(order)
43{
44 _dsoSig = NULL;
45 _sig_index = -1;
46 _colour = Qt::blue;
47
48 for(auto s : _view.session().get_signals()) {
49 if (s->signal_type() == SR_CHANNEL_DSO){
50 DsoSignal *dsoSig = (DsoSignal*)s;
51 if (dsoSig->enabled()) {
52 _dsoSig = dsoSig;
53 break;
54 }
55 }
56 }
57
58 if (_dsoSig != NULL){
59 connect(_dsoSig, SIGNAL(sig_released(void*)), this, SLOT(on_signal_deleted(void*)));
60 _sig_index = _dsoSig->get_index();
61 }
62}
63
64XCursor::XCursor(const XCursor &x) :
65 QObject(),

Callers

nothing calls this directly

Calls 4

sessionMethod · 0.80
signal_typeMethod · 0.80
enabledMethod · 0.45
get_indexMethod · 0.45

Tested by

no test coverage detected