]> sigrok.org Git - pulseview.git/log
pulseview.git
10 years agoRemoved undefined Annotation::set_row and set_pd_index
Joel Holdsworth [Wed, 5 Mar 2014 20:25:07 +0000 (21:25 +0100)]
Removed undefined Annotation::set_row and set_pd_index

10 years agoEnum: Reference gvariants in the values list
Joel Holdsworth [Tue, 11 Mar 2014 23:17:45 +0000 (00:17 +0100)]
Enum: Reference gvariants in the values list

10 years agoEnum: Use an iterator instead of iterating by indexes
Joel Holdsworth [Wed, 12 Mar 2014 20:34:37 +0000 (21:34 +0100)]
Enum: Use an iterator instead of iterating by indexes

10 years agoAdded decoder options binding for double values
Joel Holdsworth [Tue, 11 Mar 2014 22:35:02 +0000 (23:35 +0100)]
Added decoder options binding for double values

10 years agoAddded support for decoder options with a values list
Joel Holdsworth [Mon, 10 Mar 2014 23:46:09 +0000 (00:46 +0100)]
Addded support for decoder options with a values list

10 years agoMoved print_gvariant into DeviceOptions
Joel Holdsworth [Mon, 10 Mar 2014 22:11:11 +0000 (23:11 +0100)]
Moved print_gvariant into DeviceOptions

10 years agonsis: Fix the "working dir" path for PulseView.
Uwe Hermann [Tue, 11 Mar 2014 22:19:28 +0000 (23:19 +0100)]
nsis: Fix the "working dir" path for PulseView.

This was previously incorrectly set to the firmware/ subdir which
resulted in PDs not showing up in PulseView's Decoders->Add menu.

Thanks to Peter Newman for bringing up this issue.

10 years agoFix typo in header guard causing warning
Priit Laes [Fri, 7 Mar 2014 12:21:52 +0000 (14:21 +0200)]
Fix typo in header guard causing warning

10 years agoAdded missing include for boost::hash_combine
Joel Holdsworth [Tue, 4 Mar 2014 22:40:58 +0000 (22:40 +0000)]
Added missing include for boost::hash_combine

10 years agoOnly show first-level decoders in the menu
Joel Holdsworth [Tue, 4 Mar 2014 19:10:21 +0000 (19:10 +0000)]
Only show first-level decoders in the menu

10 years agoRemoved assert from DecoderStack
Joel Holdsworth [Tue, 4 Mar 2014 19:04:41 +0000 (19:04 +0000)]
Removed assert from DecoderStack

10 years agoFixed non-painting decode
Joel Holdsworth [Mon, 3 Mar 2014 22:27:50 +0000 (22:27 +0000)]
Fixed non-painting decode

10 years agoOnly update the decode state when decoding
Joel Holdsworth [Mon, 3 Mar 2014 22:13:40 +0000 (22:13 +0000)]
Only update the decode state when decoding

10 years agoCheck required probes before starting the decode thread
Joel Holdsworth [Mon, 3 Mar 2014 22:03:57 +0000 (22:03 +0000)]
Check required probes before starting the decode thread

10 years agoAdded an error message there are some unspecified required probes
Joel Holdsworth [Mon, 3 Mar 2014 18:51:14 +0000 (18:51 +0000)]
Added an error message there are some unspecified required probes

10 years agoRemoved unused parameter in DecoderStack::decode_proc
Joel Holdsworth [Mon, 3 Mar 2014 09:10:37 +0000 (09:10 +0000)]
Removed unused parameter in DecoderStack::decode_proc

Change-Id: I6ac5ef33b616f8e15628eb8888148140b19ad8e1

10 years agoNotify repaint after decode_data instead of inside annotation_callback
Joel Holdsworth [Sun, 2 Mar 2014 21:40:13 +0000 (21:40 +0000)]
Notify repaint after decode_data instead of inside annotation_callback

10 years agoEnable decode support by default
Joel Holdsworth [Sun, 2 Mar 2014 19:50:52 +0000 (19:50 +0000)]
Enable decode support by default

10 years agoImplemented threaded decode
Joel Holdsworth [Sun, 2 Mar 2014 17:27:12 +0000 (17:27 +0000)]
Implemented threaded decode

10 years agoRenamed DecoderStack::_mutex to _output_mutex
Joel Holdsworth [Sun, 2 Mar 2014 16:26:29 +0000 (16:26 +0000)]
Renamed DecoderStack::_mutex to _output_mutex

10 years agoRenamed SigSession::data_updated signal to data_received, and added the frame_ended...
Joel Holdsworth [Sun, 16 Feb 2014 21:24:44 +0000 (21:24 +0000)]
Renamed SigSession::data_updated signal to data_received, and added the frame_ended signal

10 years agoMoved inner decode loop into DecoderStack::decode_data
Joel Holdsworth [Sun, 16 Feb 2014 15:22:25 +0000 (15:22 +0000)]
Moved inner decode loop into DecoderStack::decode_data

10 years agoBegin a new decode session when a new frame begins
Joel Holdsworth [Sun, 16 Feb 2014 11:46:21 +0000 (11:46 +0000)]
Begin a new decode session when a new frame begins

10 years agoAdded a reference to the SigSession in DecoderStack
Joel Holdsworth [Sun, 16 Feb 2014 11:01:30 +0000 (11:01 +0000)]
Added a reference to the SigSession in DecoderStack

10 years agoAdded LogicSignal::get_data
Joel Holdsworth [Sun, 16 Feb 2014 10:55:27 +0000 (10:55 +0000)]
Added LogicSignal::get_data

10 years agoSamplingBar: Only use DefaultSampleCount if the _sample_count widget is unset.
Joel Holdsworth [Sat, 1 Mar 2014 16:30:07 +0000 (16:30 +0000)]
SamplingBar: Only use DefaultSampleCount if the _sample_count widget is unset.

This fixes bug #324

10 years agoUse boost::filesystem::path to get the filename from a path
Joel Holdsworth [Sat, 1 Mar 2014 10:49:05 +0000 (10:49 +0000)]
Use boost::filesystem::path to get the filename from a path

10 years agoDon't attempt to set SR_CONF_LIMIT_SAMPLES when it's not supported
Joel Holdsworth [Wed, 26 Feb 2014 21:45:30 +0000 (22:45 +0100)]
Don't attempt to set SR_CONF_LIMIT_SAMPLES when it's not supported

10 years agoShow the file-device in the selector when a file is loaded
Joel Holdsworth [Wed, 26 Feb 2014 21:31:39 +0000 (22:31 +0100)]
Show the file-device in the selector when a file is loaded

10 years agoSamplingBar: Surpressed a spurious update loop
Joel Holdsworth [Sat, 1 Mar 2014 08:51:58 +0000 (08:51 +0000)]
SamplingBar: Surpressed a spurious update loop

10 years agoMoved default device functionality into SigSession
Joel Holdsworth [Sat, 1 Mar 2014 08:51:37 +0000 (08:51 +0000)]
Moved default device functionality into SigSession

10 years agoMoved session creation into DevInst objects
Joel Holdsworth [Sat, 22 Feb 2014 12:45:36 +0000 (12:45 +0000)]
Moved session creation into DevInst objects

10 years agoRemoved a redundant call to SigSession::set_device
Joel Holdsworth [Sat, 22 Feb 2014 17:24:21 +0000 (17:24 +0000)]
Removed a redundant call to SigSession::set_device

10 years agoMoved SigSession::is_trigger_enabled into DevInst
Joel Holdsworth [Sat, 22 Feb 2014 12:57:04 +0000 (12:57 +0000)]
Moved SigSession::is_trigger_enabled into DevInst

10 years agoMoved DevInst::_sdi down into Device
Joel Holdsworth [Sat, 22 Feb 2014 10:35:39 +0000 (10:35 +0000)]
Moved DevInst::_sdi down into Device

10 years agoMoved DeviceManager::use_device and release_device into DevInst
Joel Holdsworth [Sat, 22 Feb 2014 09:23:33 +0000 (09:23 +0000)]
Moved DeviceManager::use_device and release_device into DevInst

10 years agoMade DeviceManager only handle Device objects
Joel Holdsworth [Sat, 22 Feb 2014 09:01:23 +0000 (09:01 +0000)]
Made DeviceManager only handle Device objects

10 years agoAdded pv::device::Device
Joel Holdsworth [Wed, 19 Feb 2014 22:50:07 +0000 (22:50 +0000)]
Added pv::device::Device

10 years agoMoved DevInst into the pv::device namespace
Joel Holdsworth [Wed, 19 Feb 2014 22:18:01 +0000 (22:18 +0000)]
Moved DevInst into the pv::device namespace

10 years agoIn View::zoom_one_to_one use View::get_visible_data
Joel Holdsworth [Sun, 16 Feb 2014 10:14:08 +0000 (10:14 +0000)]
In View::zoom_one_to_one use View::get_visible_data

10 years agoLogicSignal: Un-break trigger configuration. (bug #318)
Daniel Elstner [Thu, 27 Feb 2014 22:56:28 +0000 (23:56 +0100)]
LogicSignal: Un-break trigger configuration. (bug #318)

10 years agoDon't join with non-threads. Fixes 323
Marcus Comstedt [Sat, 22 Feb 2014 11:15:54 +0000 (12:15 +0100)]
Don't join with non-threads.  Fixes 323

10 years agoPass new unit_size argument to srd_inst_probe_set_all()
Daniel Elstner [Thu, 20 Feb 2014 05:33:21 +0000 (06:33 +0100)]
Pass new unit_size argument to srd_inst_probe_set_all()

10 years agodecode: Fix mixup of bytes vs samples
Daniel Elstner [Tue, 18 Feb 2014 22:41:33 +0000 (23:41 +0100)]
decode: Fix mixup of bytes vs samples

(DecoderStack::decode_proc): The final argument to srd_session_send()
is a byte count, not a sample count.
(LogicSnapshot::get_samples): Multiply start_sample by the unit size
to get the byte offset into the buffer.

10 years agomemaccess.cmake: Use STATUS instead of WARNING for output.
Uwe Hermann [Thu, 20 Feb 2014 13:35:28 +0000 (14:35 +0100)]
memaccess.cmake: Use STATUS instead of WARNING for output.

Using STATUS looks nicer here (and it's an informational message only).

Old:
CMake Warning at CMake/memaccess.cmake:39 (MESSAGE):
  Cross compiling - using portable code for memory access
Call Stack (most recent call first):
  CMakeLists.txt:93 (memaccess_check_unaligned_le)

New:
-- Cross compiling - using portable code for memory access

10 years agomemaccess.cmake: Cosmetics, whitespace, consistency fixes.
Uwe Hermann [Thu, 20 Feb 2014 13:34:47 +0000 (14:34 +0100)]
memaccess.cmake: Cosmetics, whitespace, consistency fixes.

Match the rest of PulseView's CMake file conventions more closely.

10 years agoSkip check for unportable sample pack/unpack when cross-compiling
Marcus Comstedt [Wed, 19 Feb 2014 18:40:34 +0000 (19:40 +0100)]
Skip check for unportable sample pack/unpack when cross-compiling

10 years agoCheck if unportable sample pack/unpack works and in that case use it.
Marcus Comstedt [Sun, 4 Aug 2013 22:35:02 +0000 (00:35 +0200)]
Check if unportable sample pack/unpack works and in that case use it.

10 years agoImplement portable LA sample packing and unpacking.
Marcus Comstedt [Sun, 4 Aug 2013 14:29:45 +0000 (16:29 +0200)]
Implement portable LA sample packing and unpacking.

10 years agoAdded row heading text
Joel Holdsworth [Thu, 13 Feb 2014 23:47:06 +0000 (23:47 +0000)]
Added row heading text

10 years agoFixed unit test CMakeLists.txt
Joel Holdsworth [Fri, 14 Feb 2014 17:29:28 +0000 (17:29 +0000)]
Fixed unit test CMakeLists.txt

Change-Id: Ib6f431ecc26e771ad18fb16118fe047eec8b734f

10 years agoPreallocate memory before samples are received.
Daniel King [Thu, 13 Feb 2014 20:16:17 +0000 (20:16 +0000)]
Preallocate memory before samples are received.

Preallocating memory for samples when a capture is started improves performance during the capture, as realloc() is called only once.

10 years agoNotify that config change when probes are enabled/disabled
Joel Holdsworth [Mon, 10 Feb 2014 22:08:35 +0000 (22:08 +0000)]
Notify that config change when probes are enabled/disabled

This fixes 296

10 years agoSweepTimingWidget: When the exact value isn't available try to set a close match
Joel Holdsworth [Tue, 11 Feb 2014 21:39:07 +0000 (21:39 +0000)]
SweepTimingWidget: When the exact value isn't available try to set a close match

10 years agoMoved all sr_probe modification into pv::DevInst
Joel Holdsworth [Mon, 10 Feb 2014 22:02:44 +0000 (22:02 +0000)]
Moved all sr_probe modification into pv::DevInst

10 years agoRemoved SigSession from Trace
Joel Holdsworth [Mon, 10 Feb 2014 21:46:18 +0000 (21:46 +0000)]
Removed SigSession from Trace

10 years agoRemoved _session.get_device calls from LogicSignal
Joel Holdsworth [Mon, 10 Feb 2014 21:28:07 +0000 (21:28 +0000)]
Removed _session.get_device calls from LogicSignal

10 years agoAdded DevInst pointer to Signal
Joel Holdsworth [Mon, 10 Feb 2014 21:26:32 +0000 (21:26 +0000)]
Added DevInst pointer to Signal

10 years agoUpdated the sample rate selector when the config is changed
Joel Holdsworth [Sun, 9 Feb 2014 19:45:21 +0000 (19:45 +0000)]
Updated the sample rate selector when the config is changed

10 years agoSamplingBar: Improved event loop protection
Joel Holdsworth [Tue, 11 Feb 2014 21:33:14 +0000 (21:33 +0000)]
SamplingBar: Improved event loop protection

10 years agoAdded DevInst::config_changed signal
Joel Holdsworth [Sun, 9 Feb 2014 19:30:23 +0000 (19:30 +0000)]
Added DevInst::config_changed signal

10 years agoMoved config getting/setting into DevInst
Joel Holdsworth [Sun, 9 Feb 2014 15:08:12 +0000 (15:08 +0000)]
Moved config getting/setting into DevInst

10 years agoFix some disappearing annotations
Joel Holdsworth [Sun, 9 Feb 2014 19:09:59 +0000 (19:09 +0000)]
Fix some disappearing annotations

10 years agoWrapped sr_dev_inst in a class: pv::DevInst
Joel Holdsworth [Sun, 9 Feb 2014 13:40:15 +0000 (13:40 +0000)]
Wrapped sr_dev_inst in a class: pv::DevInst

10 years agoDecodeTrace: Draw the error over the unresolved period
Joel Holdsworth [Sat, 8 Feb 2014 17:02:11 +0000 (17:02 +0000)]
DecodeTrace: Draw the error over the unresolved period

10 years agoDo not attempt to decode when required probes have not been specified
Joel Holdsworth [Sat, 8 Feb 2014 16:42:18 +0000 (16:42 +0000)]
Do not attempt to decode when required probes have not been specified

This fixes 204

10 years agoAdded some missing fromUtf8s
Joel Holdsworth [Sat, 8 Feb 2014 16:13:17 +0000 (16:13 +0000)]
Added some missing fromUtf8s

This fixes the issues mentioned in #307

10 years agoRowData: Removed _ann_start_index and _ann_end_index
Joel Holdsworth [Sat, 8 Feb 2014 09:48:48 +0000 (09:48 +0000)]
RowData: Removed _ann_start_index and _ann_end_index

This fixes #308

10 years agoImproved decode annotation colouring
Joel Holdsworth [Sat, 8 Feb 2014 13:35:17 +0000 (13:35 +0000)]
Improved decode annotation colouring

This fixes bug #311

10 years agoFixed decoder probes auto-select logic
Joel Holdsworth [Sat, 8 Feb 2014 10:04:51 +0000 (10:04 +0000)]
Fixed decoder probes auto-select logic

This fixes bug #310

10 years agoAdd bindings for new device options
Daniel Elstner [Wed, 5 Feb 2014 21:35:37 +0000 (22:35 +0100)]
Add bindings for new device options

Add device option bindings for the SR_CONF_TRIGGER_SLOPE,
SR_CONF_EXTERNAL_CLOCK and SR_CONF_CLOCK_EDGE settings.  For
now, the slope and edge settings use the generic combo box
widget.

10 years agoAdded show/hide decoder button
Joel Holdsworth [Sun, 2 Feb 2014 20:11:54 +0000 (20:11 +0000)]
Added show/hide decoder button

10 years agoAdded decoder show/hide icons
Joel Holdsworth [Sun, 2 Feb 2014 19:37:23 +0000 (19:37 +0000)]
Added decoder show/hide icons

10 years agoImproved row annotation colouring
Joel Holdsworth [Sun, 2 Feb 2014 19:24:34 +0000 (19:24 +0000)]
Improved row annotation colouring

10 years agoSplit annotation data set into rows, and improved painting.
Joel Holdsworth [Sun, 2 Feb 2014 17:48:47 +0000 (17:48 +0000)]
Split annotation data set into rows, and improved painting.

This has allowed the removal of Annotation::_row and Annotation::_pd_index

10 years agoFix bug #235. Add shortcut keys for View/Zoom In (Ctrl++) and View/Zoom Out (Ctrl+-)
ulflulfl [Sat, 1 Feb 2014 18:04:47 +0000 (18:04 +0000)]
Fix bug #235. Add shortcut keys for View/Zoom In (Ctrl++) and View/Zoom Out (Ctrl+-)

These are the shortcut keys for zoom in and out as suggested by
QT. Works with the normal keyboard and numpad keys.

Seems that the preferred simple + and - keys have an issue.
While the - key is working and displayed in the menu as expected,
the + key is zooming but not displayed at View/Zoom In
in the menu. I've tried several attempts.

10 years agoExtract only the subset of annotations that are in view.
Joel Holdsworth [Fri, 27 Dec 2013 14:00:41 +0000 (14:00 +0000)]
Extract only the subset of annotations that are in view.

To achieve this lists of annotations have been added sorted by
start sample and end sample

10 years agoDraw stacked decoder traces below the other PDs (avoids overlap).
Uwe Hermann [Sat, 1 Feb 2014 14:04:45 +0000 (15:04 +0100)]
Draw stacked decoder traces below the other PDs (avoids overlap).

Every stacked decoder is drawn below the PDs it stacks upon, so that all
of the annotations of all PDs in the stack can be seen, and no overlap
happens.

10 years agopv::data::decode::Annotation: Add pd_index() and set_pd_index().
Uwe Hermann [Sat, 1 Feb 2014 01:31:00 +0000 (02:31 +0100)]
pv::data::decode::Annotation: Add pd_index() and set_pd_index().

10 years agopv::view::DecodeTrace: Draw annotation rows according to PD metadata.
Uwe Hermann [Fri, 31 Jan 2014 20:29:56 +0000 (21:29 +0100)]
pv::view::DecodeTrace: Draw annotation rows according to PD metadata.

10 years agopv::data::DecoderStack: Set _row for each annotation.
Uwe Hermann [Fri, 31 Jan 2014 20:24:18 +0000 (21:24 +0100)]
pv::data::DecoderStack: Set _row for each annotation.

For each annotation, keep track of the "annotation row" it belongs to.

10 years agopv::data::decode::Annotation: Add row() and set_row().
Uwe Hermann [Fri, 31 Jan 2014 20:03:03 +0000 (21:03 +0100)]
pv::data::decode::Annotation: Add row() and set_row().

Keep track of the "annotation row" this annotation is supposed to be
displayed on.

10 years agodecoderstack.cpp: Improve two error messages a bit.
Uwe Hermann [Fri, 31 Jan 2014 00:04:36 +0000 (01:04 +0100)]
decoderstack.cpp: Improve two error messages a bit.

10 years agodecode: Clear error message upon every new session run.
Uwe Hermann [Thu, 30 Jan 2014 23:47:41 +0000 (00:47 +0100)]
decode: Clear error message upon every new session run.

When a decoder throws an exception, i.e. srd_session_send() returns an error,
PulseView shows a red "Failed to initialise decoder" banner in the
decode trace at the moment.

This can happen when e.g. invalid option values are set in the PD popup,
or invalid probe combinations, and so on. However, after the user resolved
the error condition (e.g. selected a proper set of probes / options) the
red error banner would still remain visible and no re-decoding would happen.

This patch fixes that.

10 years agoFixed layout of labeled widgets
Joel Holdsworth [Wed, 29 Jan 2014 21:32:06 +0000 (21:32 +0000)]
Fixed layout of labeled widgets

10 years agonsis: contrib/pulseview.nsi: Drop obsolete file.
Uwe Hermann [Tue, 28 Jan 2014 16:57:30 +0000 (17:57 +0100)]
nsis: contrib/pulseview.nsi: Drop obsolete file.

We're only using the cross-compile version pulseview_cross.nsi these
days since it is much more convenient, and the old native build file
was not working and/or up-to-date anyway.

10 years agoCMakeLists.txt, test/CMakeLists.txt: MinGW linking fix.
Uwe Hermann [Tue, 28 Jan 2014 16:55:51 +0000 (17:55 +0100)]
CMakeLists.txt, test/CMakeLists.txt: MinGW linking fix.

10 years agotest/CMakeLists.txt: Fix MinGW build of the tests.
Uwe Hermann [Tue, 28 Jan 2014 16:54:30 +0000 (17:54 +0100)]
test/CMakeLists.txt: Fix MinGW build of the tests.

10 years agoFixed off-by-one in DecoderStack::decode_proc
Joel Holdsworth [Sat, 25 Jan 2014 13:27:41 +0000 (13:27 +0000)]
Fixed off-by-one in DecoderStack::decode_proc

10 years agopv::prop::Int: Removed assert from Int::get_widget
Joel Holdsworth [Sat, 25 Jan 2014 12:07:57 +0000 (12:07 +0000)]
pv::prop::Int: Removed assert from Int::get_widget

10 years agopv::prop::String: Do not create a widget if the initial value could not be retrieved
Joel Holdsworth [Sat, 25 Jan 2014 12:06:25 +0000 (12:06 +0000)]
pv::prop::String: Do not create a widget if the initial value could not be retrieved

10 years agopv::prop::Double: Do not create a widget if the initial value could not be retrieved
Joel Holdsworth [Sat, 25 Jan 2014 12:06:11 +0000 (12:06 +0000)]
pv::prop::Double: Do not create a widget if the initial value could not be retrieved

10 years agopv::prop::Bool: Do not create a widget if the initial value could not be retrieved
Joel Holdsworth [Sat, 25 Jan 2014 12:05:38 +0000 (12:05 +0000)]
pv::prop::Bool: Do not create a widget if the initial value could not be retrieved

10 years agoSet default build type to RelWithDebInfo
Joel Holdsworth [Sat, 25 Jan 2014 11:22:16 +0000 (11:22 +0000)]
Set default build type to RelWithDebInfo

10 years agopv::prop::Enum: Do not create a widget if the initial value could not be retrieved
Joel Holdsworth [Sat, 25 Jan 2014 11:13:33 +0000 (11:13 +0000)]
pv::prop::Enum: Do not create a widget if the initial value could not be retrieved

10 years agoAdd an extra sample to the logic edges so that the end sample is visible
Joel Holdsworth [Sat, 25 Jan 2014 09:51:11 +0000 (09:51 +0000)]
Add an extra sample to the logic edges so that the end sample is visible

10 years agoFixed AnalogSnapshotTest
Joel Holdsworth [Sat, 25 Jan 2014 08:48:27 +0000 (08:48 +0000)]
Fixed AnalogSnapshotTest

This fixes bug #286

10 years agotest/CMakeLists.txt: Fix build on Windows/MinGW.
Uwe Hermann [Tue, 21 Jan 2014 19:31:14 +0000 (20:31 +0100)]
test/CMakeLists.txt: Fix build on Windows/MinGW.

On Windows/MinGW we need to use Boost's 'thread_win32' instead of
'thread' (was already done in the main CMakeLists.txt, but not yet
in test/CMakeLists.txt).

10 years agoPorted to new SR_CONF_LIMIT_SAMPLES config key
Joel Holdsworth [Sun, 19 Jan 2014 22:05:55 +0000 (22:05 +0000)]
Ported to new SR_CONF_LIMIT_SAMPLES config key

10 years agoShow a 1-2-5 list for the sample count widget
Joel Holdsworth [Sun, 19 Jan 2014 14:49:45 +0000 (14:49 +0000)]
Show a 1-2-5 list for the sample count widget