Commit Graph

22 Commits

Author SHA1 Message Date
Soeren Apel 641574bcc1 Rename colour* to color* 2018-04-15 08:19:59 +02:00
Soeren Apel c5d6200c96 Main: Create human-readable stack trace and notify user 2018-03-30 21:05:16 +02:00
Soeren Apel bcb4c327ee Add logging mechanism 2018-03-30 18:55:45 +02:00
Soeren Apel 4d48a00b1a GlobalSettings: Remove unneeded include/using 2018-02-24 00:18:27 +01:00
Uwe Hermann 7671200bd7 MinGW: Fix a compile error due to a missing #include.
In file included from [...]/pv/globalsettings.cpp:20:0:
  [...]/pv/globalsettings.hpp:31:12: error: 'std::function' has not been declared
   using std::function;
              ^
  test/CMakeFiles/pulseview-test.dir/build.make:88: recipe for target 'test/CMakeFiles/pulseview-test.dir/__/pv/globalsettings.cpp.obj' failed
  make[2]: *** [test/CMakeFiles/pulseview-test.dir/__/pv/globalsettings.cpp.obj] Error 1
  make[2]: *** Waiting for unfinished jobs....
  [  5%] Building CXX object CMakeFiles/pulseview.dir/pv/globalsettings.cpp.obj
  In file included from [...]/pv/globalsettings.cpp:20:0:
  [...]/pv/globalsettings.hpp:31:12: error: 'std::function' has not been declared
   using std::function;
              ^

Add #include <functional> everywhere where std::function is used. Only
the occurence in globalsettings.hpp was causing an actual build failure
on MinGW, though.
2018-02-10 22:10:10 +01:00
Soeren Apel d0c0573b3e Rework the callback mechanism for the global settings
Up to now, registered callbacks could not be unregistered
because std::function does not permit comparing for equality.

Using an interface class removes the need for std::function,
making the mechanism a little less elegant but at least fully
functional.
2018-02-07 19:41:56 +01:00
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
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 d3feec2322 Fix #831 by saving/restoring PD options 2017-07-06 00:37:08 +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
Soeren Apel c031de4b8b Settings: Add method to set settings defaults 2017-06-09 22:06:02 +02:00
Soeren Apel 1cc1c8dec1 Settings: Only show initial pin config UI elements if enabled 2017-06-08 22:08:19 +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 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 87a97d8aa1 Tie the "sticky scrolling" setting in with the settings mgmt 2017-03-12 21:32:35 +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