Commit Graph

1710 Commits

Author SHA1 Message Date
Gerhard Sittig 34f4a40baa util: Introduce string tokenize helper routine
Introduce a helper routine which splits a string into tokens that were
separated by a delimiter.
2017-06-25 20:32:58 +02:00
Soeren Apel a998be27f1 Fix #982 by correcting the bounding rect for the message 2017-06-17 21:21:53 +02:00
Uwe Hermann e2649143f1 CMakeLists.txt: Bump package version to 0.5.0.
0.5.0 will be the next major release. Bump now, so that
there is no confusion of tarball 0.4.0 and 0.5.0-git snapshots.
2017-06-15 16:16:58 +02:00
Uwe Hermann 7d2df30584 HACKING: Prefer git pull requests over mailing list patches.
Also, drop the reference to gitorious.org (no longer available).
2017-06-13 17:05:55 +02:00
Uwe Hermann 10906507eb HACKING: Update URL to Linux kernel coding style. 2017-06-13 16:49:11 +02:00
Uwe Hermann c0d2d35368 NEWS: Add list of user-visible changes so far. 2017-06-12 22:11:54 +02:00
Soeren Apel 1519e0fc59 View: Prevent header from being resized when view is resized 2017-06-12 19:06:22 +02:00
Uwe Hermann 09594425dd CMakeLists.txt: Install the PulseView icons. 2017-06-11 20:49:35 +02:00
Uwe Hermann 22fc985bc6 CMakeLists.txt: Install the AppData/AppStream file. 2017-06-11 20:26:57 +02:00
Uwe Hermann 96e282c426 CMakeLists.txt: Install the desktop file. 2017-06-11 20:25:01 +02:00
Uwe Hermann fce541c37f Rename sigrok-logo-notext.ico to pulseview.ico. 2017-06-11 20:12:41 +02:00
Uwe Hermann 311da12176 Rename sigrok-logo-notext.svg to pulseview.svg. 2017-06-11 20:07:15 +02:00
Uwe Hermann 5ea53b3c20 Rename sigrok-logo-notext.png to pulseview.png.
This is more specific and prevents any potential issues e.g. when
multiple distro packages might ship with a generic file like
sigrok-logo-notext.png that's supposed to be installed in the same place.
2017-06-11 20:05:50 +02:00
Uwe Hermann c666c34fb0 contrib/sigrok_mimeinfo.xml: Drop, moved to libsigrok. 2017-06-11 19:53:14 +02:00
Soeren Apel f23c46921d Adjust trace view namespace 2017-06-10 15:37:45 +02:00
Soeren Apel 1573bf16ba Move trace view files 2017-06-10 15:37:28 +02:00
Soeren Apel 4c7a19d3d7 DeviceManager: Don't perform scans with DMM drivers 2017-06-10 00:57:48 +02:00
Soeren Apel b760e6e052 View: Improve 2a9fcd621 by using settings_restored_
The timer is no longer needed as the introduction of
settings_restored_ allows us to determine whether we
should resize the trace label header to its proper
width when the show event is received.
This is because the show event is received only after
all widget resizing took place. This means that the
header pane sizes will be reliable at this point,
making this solution much cleaner than relying on
a timer repeatedly calling expand_header_to_fit().
2017-06-09 22:44:38 +02:00
Soeren Apel c031de4b8b Settings: Add method to set settings defaults 2017-06-09 22:06:02 +02:00
Soeren Apel 3ed18835d8 Main(Window): Let the UI and sessions be restored after w.show() 2017-06-09 21:57:21 +02:00
Soeren Apel e5cc818627 View: Set scroll_needs_defaults_ to true by default 2017-06-09 17:49:58 +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 7df44935d5 DecodeTrace: Change initial pin config description from ? to X 2017-06-08 14:57:54 +02:00
Soeren Apel ae1b6126c9 Fix #970 by making sure the session state handler can be called
Before, the session did call Session::stop_capture() and fired
the signal to notify of its capture state change. However, the
Session object was deleted before the next run of the Qt event
loop. As the Qt event loop dismisses signals originating from
deleted objects, the connected event handler
MainWindow::on_capture_state_changed() was never called.

To remedy this, we call Session::stop_capture() before the
destruction of the object and force a run of the event loop
immediately afterwards. This way, the event handler is called
and the run/stop button updated properly.
2017-06-07 18:18:24 +02:00
Soeren Apel dc4ada2bfd Fix #775 by catching and handling the thrown exception 2017-06-06 19:46:00 +02:00
Soeren Apel d8d053b6e5 MainWindow: Don't try to close a session when there is none 2017-06-06 19:28:07 +02:00
Soeren Apel 4cc2e925cf View: Introduce settings_restored_
This way, UI elements can decide whether they can change UI
settings or whether they are already using user-set values.
2017-06-06 16:17:26 +02:00
Soeren Apel 99d4a087a0 Update man page 2017-06-06 16:17:26 +02:00
Soeren Apel 41e2ade4fc Update cli usage hint and remove unnecessary description text
I don't know any cli tool that shows a description text
on the same line as the usage and sigrok-cli doesn't do it
either, so it shouldn't be there.
As I don't see any other place where it would make sense,
I remove it completely.
2017-06-06 16:17:26 +02:00
Soeren Apel ed77633334 Replace non-ASCII characters 2017-06-06 16:17:26 +02:00
Soeren Apel 156f06e95f Fix #862 by implementing -c / --clean 2017-06-06 16:17:26 +02:00
Soeren Apel 2a9fcd6212 Fix #969 by scheduling another call after a small delay 2017-06-06 16:17:26 +02:00
Uwe Hermann bb19aac494 Drop some trailing whitespace. 2017-06-06 11:57:35 +02:00
Uwe Hermann b0e15aa24c Fix sigrok spelling in two places. 2017-06-06 10:24:30 +02:00
Sergey Alirzaev 75ab6b87f1 permit file names not containing dots on import 2017-06-06 10:23:40 +02:00
Uwe Hermann 407c9ebeb1 Allow users to set initial pin states for decoders.
This uses the new srd_inst_initial_pins_set_all() libsigrokdecode API
which allows frontends to set the assumed initial pins (i.e., the assumed
state of the pins before the first sample of a capture) to user-specified
values.

The assumed initial pins can be either low, or high, or "use same value
as the first sample of the capture".
2017-06-05 18:15:26 +02:00
Uwe Hermann 7ba8dbe527 Installer: Whitespace consistency fixes. 2017-06-05 18:10:34 +02:00
Soeren Apel 9f95aad19f Device: Minor whitespace change 2017-06-05 17:17:46 +02:00
Soeren Apel a9627352f2 Device: Make capability listing more robust 2017-06-05 17:17:46 +02:00
Soeren Apel 0e206885e6 Installer: Rename Examples.lnk 2017-06-05 17:17:45 +02:00
Soeren Apel 3a5b7f7513 Installer: Remove examples start menu entry when uninstalling 2017-06-05 17:17:45 +02:00
Soeren Apel 76750c410e View: Optimize header pane sizing
Before, the header pane didn't resize to accomodate all signals
when a new session was created and a driver selected (e.g. demo).
To fix this, the header pane autosizing was put in a method of
its own and is now called when new signals are added.

Also, the name of header_fully_visible() needed adjustment
because it also returned true when it *wasn't* 100% visible
due to the margin of error that we permit. It's now called
header_was_shrunk() and its return value logic inverted.
2017-06-05 17:17:40 +02:00
Uwe Hermann b8f93b68d7 Installer: Add "PulseView" to uninstaller/Zadig links.
Windows 10 merges all links of the same vendor ("sigrok" here) into one
section in the Start menu. If PulseView and sigrok-cli are installed,
there will be two "Uninstall" links and the user will not know which one
uninstalls which program.
2017-06-04 20:52:11 +02:00
Soeren Apel 4bbd53c938 Installer: Place set of example .sr files in separate section 2017-06-04 20:47:56 +02:00
Soeren Apel ebe0a19686 Installer: Update icon cache also after uninstallation 2017-06-04 20:47:56 +02:00
Soeren Apel bf627f7065 Installer: Force icon cache refresh 2017-06-04 20:44:34 +02:00
Soeren Apel 63ebd7fe19 Fix #964 by adding an option to register the .sr extension with PV 2017-06-03 22:54:32 +02:00
Soeren Apel 25e734c848 Don't use Q_EMIT, it's not needed anymore
The Q_EMIT macro (just like the regular Qt emit) is syntactic
sugar to let people who read the code know that a method call
placed somewhere is actually a signal.

We don't use Q_EMIT consistently throughout PV and I don't
think it's really needed anyway, so this patch removes the
few remaining instances.
2017-06-03 22:44:28 +02:00