pulseview.git
6 months agoImplement expansion marker animation and its infrastructure
Soeren Apel [Mon, 23 Dec 2019 10:55:46 +0000 (11:55 +0100)]
Implement expansion marker animation and its infrastructure

6 months agostore session: do send end() packet after data export to output file
Gerhard Sittig [Sun, 29 Dec 2019 06:13:47 +0000 (07:13 +0100)]
store session: do send end() packet after data export to output file

Extend the StoreSession::store_proc() method to send a SR_DF_END packet
after all analog/logic data packets were sent and before the output file
and output module get shutdown.

This fixes bug #1470.

6 months agoFix another compile failure on non-64bit machines
Soeren Apel [Fri, 27 Dec 2019 16:47:14 +0000 (17:47 +0100)]
Fix another compile failure on non-64bit machines

6 months agoFix build for machines that are not 64 bit
Soeren Apel [Thu, 26 Dec 2019 23:20:37 +0000 (00:20 +0100)]
Fix build for machines that are not 64 bit

6 months agoDecodeTrace: Various fixes after the refactoring
Soeren Apel [Sun, 22 Dec 2019 23:59:51 +0000 (00:59 +0100)]
DecodeTrace: Various fixes after the refactoring

6 months agoDecodeTrace: Honor a decoder's shown flag
Soeren Apel [Sun, 22 Dec 2019 22:47:48 +0000 (23:47 +0100)]
DecodeTrace: Honor a decoder's shown flag

6 months agoInternal decoder class handling refactoring
Soeren Apel [Sun, 22 Dec 2019 22:45:23 +0000 (23:45 +0100)]
Internal decoder class handling refactoring

6 months agoIntroduce views::trace::RowData and everything that comes with it
Soeren Apel [Sun, 22 Dec 2019 20:30:51 +0000 (21:30 +0100)]
Introduce views::trace::RowData and everything that comes with it

6 months agoFix #1462 by letting help label adjust its size
Soeren Apel [Sun, 22 Dec 2019 17:20:57 +0000 (18:20 +0100)]
Fix #1462 by letting help label adjust its size

6 months agoFix #852 by handling ViewWidget::leaveEvent() properly
Soeren Apel [Sun, 22 Dec 2019 16:42:11 +0000 (17:42 +0100)]
Fix #852 by handling ViewWidget::leaveEvent() properly

6 months agoDecoderOutputView: Fix updating of the hex view
Soeren Apel [Sat, 21 Dec 2019 21:45:47 +0000 (22:45 +0100)]
DecoderOutputView: Fix updating of the hex view

6 months agoDecodeTrace: Fix on_setting_changed() handling
Soeren Apel [Sat, 21 Dec 2019 21:42:30 +0000 (22:42 +0100)]
DecodeTrace: Fix on_setting_changed() handling

6 months agoMake new views take over the main view's signal settings
Soeren Apel [Sat, 21 Dec 2019 21:38:48 +0000 (22:38 +0100)]
Make new views take over the main view's signal settings

6 months agoQHexView: Fix saved ASCII output
Soeren Apel [Fri, 20 Dec 2019 23:10:08 +0000 (00:10 +0100)]
QHexView: Fix saved ASCII output

6 months agoFix #977 properly by checking whether a row actually has annotations
Soeren Apel [Fri, 20 Dec 2019 20:05:54 +0000 (21:05 +0100)]
Fix #977 properly by checking whether a row actually has annotations

6 months agoFix #1446 by starting the decode only for the last PD in the stack
Soeren Apel [Fri, 20 Dec 2019 18:21:22 +0000 (19:21 +0100)]
Fix #1446 by starting the decode only for the last PD in the stack

6 months agoFix #1451 by only using decoder tags if they're available
Soeren Apel [Fri, 20 Dec 2019 15:51:46 +0000 (16:51 +0100)]
Fix #1451 by only using decoder tags if they're available

6 months agoQHexView: Fix selection display
Soeren Apel [Fri, 20 Dec 2019 09:28:56 +0000 (10:28 +0100)]
QHexView: Fix selection display

6 months agoDecoderOutputView: Implement saving
Soeren Apel [Fri, 20 Dec 2019 00:43:32 +0000 (01:43 +0100)]
DecoderOutputView: Implement saving

6 months agoAdd save feature to DecoderOutputView
Soeren Apel [Thu, 19 Dec 2019 08:32:45 +0000 (09:32 +0100)]
Add save feature to DecoderOutputView

6 months agoAdd DecoderOutputView save button and action
Soeren Apel [Wed, 18 Dec 2019 15:46:31 +0000 (16:46 +0100)]
Add DecoderOutputView save button and action

6 months agoDecoderOutputView: Allow for adaptive size constraints
Soeren Apel [Tue, 17 Dec 2019 08:36:43 +0000 (09:36 +0100)]
DecoderOutputView: Allow for adaptive size constraints

6 months agoUse 'd' shortcut to show/hide decoder selector, also ESC to hide it.
Uwe Hermann [Tue, 17 Dec 2019 06:19:36 +0000 (07:19 +0100)]
Use 'd' shortcut to show/hide decoder selector, also ESC to hide it.

6 months agoQHexView: Improve vertical slider handling
Soeren Apel [Sun, 15 Dec 2019 16:23:49 +0000 (17:23 +0100)]
QHexView: Improve vertical slider handling

6 months agoVarious binary output-related changes
Soeren Apel [Sun, 15 Dec 2019 16:20:51 +0000 (17:20 +0100)]
Various binary output-related changes

1) Remove some try..catch clauses that can easily be handled by if (...) instead
so that debugging unwanted exceptions is easier
2) Replace some iterator-based loops by loops using index-based container access
3) Replace the binary chunk container by a deque

6 months agoDecodeOutputView: Use delayed view updater and cache current chunk
Soeren Apel [Thu, 12 Dec 2019 22:18:23 +0000 (23:18 +0100)]
DecodeOutputView: Use delayed view updater and cache current chunk

6 months agoFix segfault and use bin class description
Soeren Apel [Thu, 12 Dec 2019 21:33:03 +0000 (22:33 +0100)]
Fix segfault and use bin class description

6 months agoAllow more than 256 binary output classes
Soeren Apel [Thu, 12 Dec 2019 20:31:34 +0000 (21:31 +0100)]
Allow more than 256 binary output classes

6 months agoQHexView: Use different colors for different chunks
Soeren Apel [Thu, 12 Dec 2019 15:14:44 +0000 (16:14 +0100)]
QHexView: Use different colors for different chunks

6 months agoDecoderOutputView: Directly use DecodeBinaryClass as data source
Soeren Apel [Thu, 12 Dec 2019 14:09:31 +0000 (15:09 +0100)]
DecoderOutputView: Directly use DecodeBinaryClass as data source

6 months agoQHexView: Fix cursor max pos
Soeren Apel [Thu, 12 Dec 2019 11:58:59 +0000 (12:58 +0100)]
QHexView: Fix cursor max pos

6 months agoDecoderOutputView: Make comboboxes auto-adjusting
Soeren Apel [Thu, 12 Dec 2019 11:36:43 +0000 (12:36 +0100)]
DecoderOutputView: Make comboboxes auto-adjusting

6 months agoImplement binary class selector
Soeren Apel [Thu, 12 Dec 2019 11:23:18 +0000 (12:23 +0100)]
Implement binary class selector

6 months agoVarious PD-related changes
Soeren Apel [Wed, 11 Dec 2019 21:34:19 +0000 (22:34 +0100)]
Various PD-related changes

1) Added decoder stack/remove signals
2) Added binary output class handling and refactored the code accordingly
3) Enabled the decoder output view to handle multiple decoders per signal

6 months agoDecodeSignal: Fix race condition
Soeren Apel [Tue, 10 Dec 2019 10:14:18 +0000 (11:14 +0100)]
DecodeSignal: Fix race condition

6 months agoMove DecodeChannel from data:: to data::decoder::
Soeren Apel [Sun, 8 Dec 2019 22:29:07 +0000 (23:29 +0100)]
Move DecodeChannel from data:: to data::decoder::

6 months agoConnect DecodeSignal and DecoderOutputView
Soeren Apel [Sun, 8 Dec 2019 17:34:52 +0000 (18:34 +0100)]
Connect DecodeSignal and DecoderOutputView

6 months agoDecodeSignal: Add binary data callback
Soeren Apel [Thu, 5 Dec 2019 22:22:46 +0000 (23:22 +0100)]
DecodeSignal: Add binary data callback

7 months agoSimplify QHexView interfaces
Soeren Apel [Sat, 30 Nov 2019 20:43:16 +0000 (21:43 +0100)]
Simplify QHexView interfaces

7 months agoIntegrate QHexView and make it better
Soeren Apel [Sat, 30 Nov 2019 20:16:12 +0000 (21:16 +0100)]
Integrate QHexView and make it better

7 months agoAdd QHexView
Soeren Apel [Fri, 29 Nov 2019 23:44:57 +0000 (00:44 +0100)]
Add QHexView

7 months agoDecoderOutput: Add format selector
Soeren Apel [Fri, 29 Nov 2019 22:36:56 +0000 (23:36 +0100)]
DecoderOutput: Add format selector

7 months agoDecoderOutput: Add selector box and fix signal handling
Soeren Apel [Fri, 29 Nov 2019 21:37:28 +0000 (22:37 +0100)]
DecoderOutput: Add selector box and fix signal handling

7 months agoSave/restore view type
Soeren Apel [Wed, 27 Nov 2019 20:06:54 +0000 (21:06 +0100)]
Save/restore view type

7 months agoChange parameter to ViewBase constructor
Soeren Apel [Wed, 27 Nov 2019 19:51:19 +0000 (20:51 +0100)]
Change parameter to ViewBase constructor

7 months agoImplement adding different view types
Soeren Apel [Mon, 25 Nov 2019 20:46:27 +0000 (21:46 +0100)]
Implement adding different view types

7 months agoMore preparation and some settings handling cleanup
Soeren Apel [Mon, 25 Nov 2019 11:13:44 +0000 (12:13 +0100)]
More preparation and some settings handling cleanup

7 months agoDecoderOutput: Add basic view skeleton
Soeren Apel [Mon, 25 Nov 2019 10:22:30 +0000 (11:22 +0100)]
DecoderOutput: Add basic view skeleton

7 months agoFix #1440 by moving shortcuts from the main window to the view
Soeren Apel [Sun, 24 Nov 2019 19:03:15 +0000 (20:03 +0100)]
Fix #1440 by moving shortcuts from the main window to the view

7 months agoFix clazy warnings
Soeren Apel [Wed, 20 Nov 2019 19:23:04 +0000 (20:23 +0100)]
Fix clazy warnings

7 months agoUse proposed clang-tidy fixes
Soeren Apel [Sun, 17 Nov 2019 20:15:04 +0000 (21:15 +0100)]
Use proposed clang-tidy fixes

7 months agoFix #1431 by using per-instance member variables
Soeren Apel [Fri, 15 Nov 2019 22:34:22 +0000 (23:34 +0100)]
Fix #1431 by using per-instance member variables

7 months agoLogging: Break srd stacktraces up into proper newlines
Soeren Apel [Fri, 15 Nov 2019 18:08:35 +0000 (19:08 +0100)]
Logging: Break srd stacktraces up into proper newlines

7 months agogitignore: Add *.qm
Soeren Apel [Mon, 11 Nov 2019 00:40:22 +0000 (01:40 +0100)]
gitignore: Add *.qm

7 months agoPrepare translations
Soeren Apel [Sun, 10 Nov 2019 19:45:58 +0000 (20:45 +0100)]
Prepare translations

7 months agoviews/trace: Fix two -fsanitize=undefined issues.
Uwe Hermann [Sat, 23 Nov 2019 18:38:46 +0000 (19:38 +0100)]
views/trace: Fix two -fsanitize=undefined issues.

Two variables were being accessed before initialization in some cases.

  pv/views/trace/view.cpp:1199:6: runtime error: load of value 124, which is not a valid value for type 'bool'
  pv/views/trace/view.cpp:1199:6: runtime error: load of value 105, which is not a valid value for type 'bool'

  pv/views/trace/cursorpair.cpp:252:7: runtime error: load of value 24, which is not a valid value for type 'bool'
  pv/views/trace/cursorpair.cpp:252:7: runtime error: load of value 200, which is not a valid value for type 'bool'

7 months agoFix typo
Soeren Apel [Sat, 9 Nov 2019 22:16:49 +0000 (23:16 +0100)]
Fix typo

7 months agoDecodeTrace: Add fallback icon for edit-paste action
Soeren Apel [Sat, 9 Nov 2019 20:47:13 +0000 (21:47 +0100)]
DecodeTrace: Add fallback icon for edit-paste action

7 months agoFix compiler warnings
Soeren Apel [Fri, 8 Nov 2019 09:07:14 +0000 (10:07 +0100)]
Fix compiler warnings

7 months agoAdd temporary snapping disable menu to markers and cursors
Miklos Marton [Wed, 10 Jul 2019 07:55:47 +0000 (09:55 +0200)]
Add temporary snapping disable menu to markers and cursors

Add context menu to the cursors and time markers for temporary disabling
the snapping to digital edges of the markers.

7 months agoConnect dialog: Fix an issue where serial ports can't be selected
Uwe Hermann [Thu, 7 Nov 2019 22:48:01 +0000 (23:48 +0100)]
Connect dialog: Fix an issue where serial ports can't be selected

Without this fix, clicking the "Serial Port" radio button would not
enable the serial port dropdown (it would remain grayed out).

7 months agoFix #1107 more by copying also to the mouse selection buffer on X11
Soeren Apel [Thu, 7 Nov 2019 21:53:00 +0000 (22:53 +0100)]
Fix #1107 more by copying also to the mouse selection buffer on X11

7 months agoFix #1412 more by allowing the PD stack menu to be scrolled
Soeren Apel [Thu, 7 Nov 2019 21:49:11 +0000 (22:49 +0100)]
Fix #1412 more by allowing the PD stack menu to be scrolled

7 months agoFix #977 by introducing a setting for always showing all rows
Soeren Apel [Thu, 7 Nov 2019 21:40:07 +0000 (22:40 +0100)]
Fix #977 by introducing a setting for always showing all rows

7 months agoFix #1107 by implementing a copy-to-clipboard menu entry
Soeren Apel [Wed, 6 Nov 2019 21:43:51 +0000 (22:43 +0100)]
Fix #1107 by implementing a copy-to-clipboard menu entry

In the process, it turned out that the sample range for
cursor position-based menu commands was wrong: it didn't
take the width of the viewport header into account. This
is now fixed as well.

7 months agoFix #1362 by also saving decoder visibility
Soeren Apel [Wed, 6 Nov 2019 20:16:01 +0000 (21:16 +0100)]
Fix #1362 by also saving decoder visibility

7 months agoFix #1412 by only showing suitable PDs, not all of them
Soeren Apel [Wed, 6 Nov 2019 19:43:56 +0000 (20:43 +0100)]
Fix #1412 by only showing suitable PDs, not all of them

7 months agoFix #1400 by matching decoder selectors only for current session
Soeren Apel [Tue, 5 Nov 2019 21:25:50 +0000 (22:25 +0100)]
Fix #1400 by matching decoder selectors only for current session

9 months agoCMakeLists.txt: Show detected Qt version.
Uwe Hermann [Thu, 3 Oct 2019 18:58:11 +0000 (20:58 +0200)]
CMakeLists.txt: Show detected Qt version.

9 months agoBump required Qt version to >= 5.3.
Uwe Hermann [Sat, 7 Sep 2019 17:25:36 +0000 (19:25 +0200)]
Bump required Qt version to >= 5.3.

This is necessary since we now use QSignalBlocker, which was introduced
in Qt 5.3.

9 months agoTrace: Use scroll bars for popups with too much content
Soeren Apel [Tue, 13 Aug 2019 07:18:46 +0000 (09:18 +0200)]
Trace: Use scroll bars for popups with too much content

This fixes bug #183.

10 months agoorg.sigrok.PulseView.appdata.xml: Fix a few warnings.
Uwe Hermann [Thu, 8 Aug 2019 19:46:25 +0000 (21:46 +0200)]
org.sigrok.PulseView.appdata.xml: Fix a few warnings.

  I - org.sigrok.PulseView.appdata.xml:org.sigrok.PulseView.desktop:20
      Consider using a secure (HTTPS) URL for 'http://sigrok.org/wiki/FAQ'
  I - org.sigrok.PulseView.appdata.xml:org.sigrok.PulseView.desktop:19
      Consider using a secure (HTTPS) URL for
      'http://sigrok.org/bugzilla/enter_bug.cgi?format=guided&product=PulseView'
  I - org.sigrok.PulseView.appdata.xml:org.sigrok.PulseView.desktop:18
      Consider using a secure (HTTPS) URL for 'http://sigrok.org/wiki/PulseView'
  I - org.sigrok.PulseView.appdata.xml:org.sigrok.PulseView.desktop:23
      Consider using a secure (HTTPS) URL for
      'http://sigrok.org/wimg/e/ee/PulseView_I2C_DS1307_Decode.png'

  I - org.sigrok.PulseView.appdata.xml:org.sigrok.PulseView.desktop:10
      First 'description/p' paragraph might be too short (< 80 characters).

10 months agoExtend .gitignore
Miklos Marton [Fri, 2 Aug 2019 11:46:20 +0000 (13:46 +0200)]
Extend .gitignore

11 months agomanpage: Update keyboard shortcuts.
Uwe Hermann [Wed, 31 Jul 2019 20:46:12 +0000 (22:46 +0200)]
manpage: Update keyboard shortcuts.

11 months agoadding up/down to zoom in/out for quick navigation
Joe FitzPatrick [Wed, 24 Jul 2019 14:53:24 +0000 (07:53 -0700)]
adding up/down to zoom in/out for quick navigation

11 months agoAdd home and end shortcuts
Miklos Marton [Wed, 10 Jul 2019 14:15:33 +0000 (16:15 +0200)]
Add home and end shortcuts

11 months agocursors: Fix mouse cursor shape to be horizontal arrows.
Uwe Hermann [Sat, 6 Jul 2019 13:58:20 +0000 (15:58 +0200)]
cursors: Fix mouse cursor shape to be horizontal arrows.

11 months agoAdd shortcuts to + and - buttons for zooming in and out horizontally
Miklos Marton [Mon, 20 May 2019 09:27:37 +0000 (11:27 +0200)]
Add shortcuts to + and - buttons for zooming in and out horizontally

11 months agoConnect dialog: Fix scan for certain USB devices.
Uwe Hermann [Fri, 5 Jul 2019 20:58:08 +0000 (22:58 +0200)]
Connect dialog: Fix scan for certain USB devices.

Before the fix, selecting "USB" (it's selected by default) in the
"Connect to device" dialog would incorrectly set a conn parameter to
some serial or HID devices, even for scans for pure USB devices which are
neither of those.

This fixes bug #1403.

11 months agoDon't return valid time() for the cursor pair
Soeren Apel [Wed, 3 Jul 2019 07:45:09 +0000 (09:45 +0200)]
Don't return valid time() for the cursor pair

11 months agoStyle and architecture fixes
Soeren Apel [Sun, 30 Jun 2019 11:29:10 +0000 (13:29 +0200)]
Style and architecture fixes

11 months agoShow relative time of flags on hover
jaseg [Mon, 10 Jun 2019 03:56:32 +0000 (12:56 +0900)]
Show relative time of flags on hover

With this change, when the mouse hovers over any flag or cursor, the
flags change labels to show their time relative to the item being
hovered over. When hovering over the interval label of a cursor pair,
the relative time to the nearest end of the interval is shown. While
pressing shift, the regular labels are shown again.

11 months agoAccept new position on enter press in cursor popups
jaseg [Sun, 9 Jun 2019 11:53:05 +0000 (20:53 +0900)]
Accept new position on enter press in cursor popups

11 months agoFix ruler double-click to add cursor in right position
jaseg [Sun, 9 Jun 2019 11:52:35 +0000 (20:52 +0900)]
Fix ruler double-click to add cursor in right position

11 months agoTrace View: Move ruler time conversion from View to Ruler
Soeren Apel [Wed, 26 Jun 2019 20:20:25 +0000 (22:20 +0200)]
Trace View: Move ruler time conversion from View to Ruler

12 months agoShow ruler timestamps in cursors and popups
jaseg [Sun, 9 Jun 2019 11:07:55 +0000 (20:07 +0900)]
Show ruler timestamps in cursors and popups

Prior to this absolute timestamps would be shown, even with the zero
point set somewhere else.

12 months agoFixes
Soeren Apel [Fri, 21 Jun 2019 20:53:17 +0000 (22:53 +0200)]
Fixes

12 months agoMake cursor pair drop precision when too small
jaseg [Sun, 9 Jun 2019 10:35:20 +0000 (19:35 +0900)]
Make cursor pair drop precision when too small

Currently, often the label just displays "...". With this change, it
will gracefully drop precision and less important parts (frequency,
unit) when there's not enough space to print the full string. The full
string is still available in the tooltip appearing on hover.

12 months agoFixes
Soeren Apel [Thu, 20 Jun 2019 18:03:02 +0000 (20:03 +0200)]
Fixes

12 months agoTrace view: Allow setting cursors via shift-drag
jaseg [Sat, 8 Jun 2019 02:19:48 +0000 (11:19 +0900)]
Trace view: Allow setting cursors via shift-drag

12 months agodecoder_selector: Apply decoder upon pressing enter.
Uwe Hermann [Sun, 30 Jun 2019 21:04:00 +0000 (23:04 +0200)]
decoder_selector: Apply decoder upon pressing enter.

If only one decoder matches the filter, apply it when the user presses enter.

12 months agodecoder_selector: Fix an issue with PD auto-stacking.
Uwe Hermann [Sun, 30 Jun 2019 18:04:00 +0000 (20:04 +0200)]
decoder_selector: Fix an issue with PD auto-stacking.

Before the fix, PDs with common prefix would incorrectly be found as
a match. Example: Both "spi" and "spiflash" would be considered valid
candidates when looking for PDs which emit "spi" OUTPUT_PYTHON output.

12 months agodecoder_selector: Expand "All Decoders" if the user filtered
Uwe Hermann [Sat, 29 Jun 2019 20:58:13 +0000 (22:58 +0200)]
decoder_selector: Expand "All Decoders" if the user filtered

12 months agodecoder_selector: Auto-place the keyboard cursor in the filter.
Uwe Hermann [Sat, 29 Jun 2019 18:59:32 +0000 (20:59 +0200)]
decoder_selector: Auto-place the keyboard cursor in the filter.

14 months agoSession: Use a monotonic clock to measure acquisition time.
Tilman Sauerbeck [Sat, 4 May 2019 19:14:24 +0000 (21:14 +0200)]
Session: Use a monotonic clock to measure acquisition time.

14 months agoSession: Print duration of last acquisition only.
Tilman Sauerbeck [Sat, 4 May 2019 19:11:08 +0000 (21:11 +0200)]
Session: Print duration of last acquisition only.

This resets the timer at the start of a new acquisition.

14 months agoStyle fixes
Soeren Apel [Mon, 22 Apr 2019 13:39:13 +0000 (15:39 +0200)]
Style fixes

14 months agoRemove redundant isNull() check - isEmpty is a superset of isNull
Devan Lai [Fri, 19 Apr 2019 05:15:19 +0000 (22:15 -0700)]
Remove redundant isNull() check - isEmpty is a superset of isNull

14 months agoAdd -s / --settings parameter to load a session setup file
Devan Lai [Fri, 19 Apr 2019 04:38:15 +0000 (21:38 -0700)]
Add -s / --settings parameter to load a session setup file

14 months agoFix #1375 by searching across all model columns
Soeren Apel [Sun, 21 Apr 2019 06:44:10 +0000 (08:44 +0200)]
Fix #1375 by searching across all model columns

This way, a search for "i2c" includes the ID field, not just the name.