Commit Graph

128 Commits

Author SHA1 Message Date
Cenkron ffc00fdd59 Provide a settings checkbox for showing zero at the trigger 2018-02-07 19:41:51 +01:00
Soeren Apel 90ee1ed9a9 Convert threshold display setting to a multi-value choice 2017-08-20 16:18:50 +02:00
Soeren Apel 4433246b9e Implement graphical display of A2L thresholds 2017-08-01 14:42:20 +02:00
Uwe Hermann 7773ccaeb9 Fix the build with ENABLE_DECODE=n.
pv/dialogs/settings.cpp: In member function ‘QWidget* pv::dialogs::Settings::get_decoder_settings_form(QWidget*) const’:
  pv/dialogs/settings.cpp:218:1: error: no return statement in function returning non-void [-Werror=return-type]
2017-07-21 15:05:00 +02:00
Soeren Apel 48051ccba4 Introduce "logic trace height" setting 2017-07-16 22:37:12 +02:00
Soeren Apel daa5498601 Introduce "default div height" setting 2017-07-16 22:37:12 +02:00
Soeren Apel e91fb16660 Rename "always zoom-to-fit" to "zoom-to-fit during acquisition" 2017-07-06 00:37:08 +02:00
Soeren Apel 28ceff251c Fix #236 by introducing "zoom-to-fit when acquisition stops" option 2017-07-06 00:37:08 +02:00
Uwe Hermann 311da12176 Rename sigrok-logo-notext.svg to pulseview.svg. 2017-06-11 20:07:15 +02:00
Soeren Apel 72df22b8e6 Settings: Refactor out a checkbox creator method 2017-06-08 22:09:02 +02:00
Soeren Apel 1cc1c8dec1 Settings: Only show initial pin config UI elements if enabled 2017-06-08 22:08:19 +02:00
Soeren Apel 669686c18c Settings: Add decoder settings page 2017-06-08 16:02:04 +02:00
Soeren Apel edfe64fd63 Settings Dialog: Visually break up items in the about listing 2017-05-27 10:05:37 +02:00
Soeren Apel f7449c5067 Fix #895 by adapting to Qt5 and cleaning up properly
Relevant Qt commit:
https://codereview.qt-project.org/#/c/72637/
"QProgressDialog: don't require setValue(0) to be called."

"Fixed by starting the timer in the constructor (most code doesn't reuse
progress dialogs, so this fixes the most common case)"

This messes us up because we're (ab-)using the dialog
in a non-standard way.

https://bugreports.qt.io/browse/QTBUG-47042
"QProgressDialog is designed to show itself automatically, based
on an internal estimate for the duration of the operation and the
minimumDuration property. You never call show() or exec() on it
manually. You're also not supposed to keep it around when it's not
used. In 5.4, the only way to start the internal duration estimation
was to call setValue(0). But we noticed that many people didn't call
setValue(0)"

Workaround here:
https://bugreports.qt.io/browse/QTBUG-47042

"As a workaround I added the line m_progressDlg->reset(); in the main
window constructor in order to get the same behavior as in former
versions."
2017-05-26 19:36:04 +02:00
Uwe Hermann 0f5e2c7db1 About: Also list glibmm/boost/libsigrokdecode version details.
This fixes parts of bug #912.
2017-05-26 18:44:23 +02:00
Uwe Hermann 6579ca9227 About: Also show libsigrok libs and features.
This fixes parts of bug #912.
2017-05-26 18:44:14 +02:00
Martin Ling d008cab11b Avoid wrapping driver names etc in about box.
Fixes #111.
2017-05-13 19:15:07 +02:00
Gerhard Sittig fe934a93e0 Settings: About: alpha-sort list of protocol decoders
Sort the list of protocol decoders in the "About" page like
sigrok-cli(1) does.
2017-04-16 21:34:05 +02:00
Gerhard Sittig 6c34883054 Settings: About: add sigrok internal libraries to version list
Add version information for libsigrok and libsigrokdecode (when enabled)
to the list of used libraries in the "About" page.
2017-04-16 21:29:27 +02:00
Uwe Hermann 8ad61f4071 Add a hotkey and setting for showing/hiding the minor analog grid.
The vdiv grid is always shown and is what most users will expect. The
additional "minor" grid could be confusing, so make that configurable.
2017-03-31 19:32:51 +02:00
Uwe Hermann aca9aa834c Use alphabetical order for #includes.
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,llvm-include-order" -fix
2017-03-28 11:43:40 +02:00
Soeren Apel 213db299f1 Settings: Whitespace fix 2017-03-23 21:43:58 +01:00
Uwe Hermann 870ea3dbf3 Consistenty use auto-generated namespace comments.
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,google-readability-namespace-comments" -fix

Switch to the format used by clang-tidy to allow easy, automatic,
tool-based maintenance / checking of the comments.

This also found a few instances of comments that were out of sync.
2017-03-23 19:42:18 +01:00
Uwe Hermann c063290ac7 Random simplifications, cosmetics/whitespace/consistency fixes. 2017-03-23 19:42:18 +01:00
Uwe Hermann f54fc97e8c Use nullptr in a few places.
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,modernize-use-nullptr" -fix
2017-03-23 17:59:00 +01:00
Uwe Hermann 83b1c8d251 Remove unused "using" declarations.
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,misc-unused-using-decls" -fix

(with manual add-on fixes such as dropping unused headers as well,
and commenting some false-positive cases)
2017-03-23 17:59:00 +01:00
Soeren Apel 20c80c8aa4 Settings: Add Qt version 2017-03-22 23:42:23 +01:00
Uwe Hermann 6f925ba9d6 Don't use std:: in the code directly (where possible).
Use "using std::foo" to make the actual code itself a lot more readable.

There are some exceptions where we usually cannot do this, e.g. std::thread
often conflicts with "thread" from Qt or Boost.
2017-03-18 20:00:51 +01:00
Uwe Hermann 051ba3b399 Add a hotkey to show/hide sampling points.
This is also hooked up into the global settings, so it will be
persistent across multiple PulseView runs.

This fixes (parts of) bug #485.
2017-03-17 23:56:05 +01:00
Soeren Apel e6d42eec32 Settings: Activate first item upon dialog creation 2017-03-13 08:56:03 +01:00
Soeren Apel 2b0aa8fd5a Settings: Change icon for "Views" 2017-03-13 08:18:47 +01:00
Soeren Apel 87a97d8aa1 Tie the "sticky scrolling" setting in with the settings mgmt 2017-03-12 21:32:35 +01:00
Soeren Apel 33a94f9bf2 Settings: Change view settings shortcuts 2017-03-12 16:34:41 +01:00
Soeren Apel 4e4d72b22a Integrate the about dialog into the settings dialog 2017-03-12 16:34:41 +01:00
Soeren Apel b14db788ee Settings: Prettify the settings dialog 2017-03-12 15:42:12 +01:00
Uwe Hermann 13e475e412 Use nullptr in a few places.
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,modernize-use-nullptr" -fix
2017-03-11 13:06:03 +01:00
Soeren Apel 2cca9ebfdc GlobalSettings: Implement undo function for the "cancel" button 2017-03-07 23:31:41 +01:00
Soeren Apel bf9f12687c Implement initial version of the settings management 2017-03-07 22:59:35 +01:00
Soeren Apel 5ccfc97e20 Confirm with user when trying to close sessions with unsaved data 2017-01-19 22:01:43 +01:00
Gerhard Sittig efdec55aec license: remove FSF postal address from boiler plate license text
Remove the FSF postal address as it might change (it did in the past).
Reference the gnu.org website instead which is more stable.
2017-01-07 16:11:15 +01:00
Soeren Apel 1ebe875c5a Connect dialog: Fix up UI and allow for VXI 2016-06-26 19:10:55 +02:00
Soeren Apel f21fd40b1b Connect dialog: Fix constructor initialization order 2016-06-26 19:10:54 +02:00
whitequark 26f209b713 Connect dialog: Add support for connecting to raw-tcp devices
This fixes bug #769.
2016-06-26 19:10:23 +02:00
Soeren Apel be7645e8d0 Connect dialog: Make button caption more clear
Users are expecting *any* device to be found when pressing
the "Scan for Devices" button. As that is not what it's doing,
we need to clarify what it does.
2016-05-03 21:11:40 +02:00
Uwe Hermann 744aa24fc5 Prefer Qt string multi-arg form over arg chaining.
This has performance/memory advantages and avoids some potential bugs
and/or security problems.
2016-02-13 20:41:33 +01:00
Martin Ling 7bb0fbf4d3 Update to new configuration API. 2015-12-31 18:20:06 +01:00
Uwe Hermann 2ad82c2e40 Various minor whitespace and consistency fixes. 2015-12-26 15:10:01 +01:00
Uwe Hermann 3d79f52139 Minor whitespace cosmetics. 2015-11-04 23:53:59 +01:00
Soeren Apel d2fc6be9af Introduce "save selection range as..." feature 2015-11-04 17:56:17 +01:00
Aurelien Jacobs db8a1b5c7e avoid using deprecated std::autoptr
This fixes the following g++-5 warning:
pv/dialogs/about.hpp:51:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
  std::auto_ptr<QTextDocument> supportedDoc;
2015-10-24 23:22:35 +02:00