Hi,

I would like to add the following feature to pulseview:
- when I left click on the Viewport, I would like to access the logic
data of the selected Trace and calculate the time between the last
signal change to the next signal change.

>From the viewport mousePressEvent, how to:
-  know which line/trace was selected (I guess it's based on the y()
pixel position of the click or maybe from the SelectableItem class
from which Trace and LogicSignal inherit from ?)
-  know the time (I guess it's based on the x()  pixel position of the
click or should I expose new methods on the Ruler class ?)
-  access the logic data to search for my signal changes (I guess it's
in LogicSignal, no ?)

Any partial guidance for any of the previous points will help me.

Thank you,

-- 
Pierre Gronlier

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to