Style fixes
Add -s / --settings parameter to load a session setup file
Fix #1147 by implementing decoder selector subwindow
Fix #971: Allow saving/restoring of session setups
mainbar: fix build without libsigrokdecode We must not include decodesignal.hpp if we're not using libsigrokdecode or the build will fail due to libsigrokdecode.hpp not being present in the system. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Don't use QMessageBox::setInformativeText() When using it, the extended error message text is not reliably appended to the dialog text.
Fix #1035 by checking for exceptions when accessing config Also fixes #651 because it makes Device::read_config() generic.
Fix two warnings
Replace (double)0 by 0.0
MainBar: Disallow negative sample rates
MainBar: Disable custom samplerate by default Without this, the edit may be left in editable mode once the external clock was enabled and disabled again.
MainBar: Fix warning message introduced by bc4b9ccfc78d9d0 "sr: hwdriver: Option 'external_clock' not available for this device instance." Avoid this message by checking if the EXTERNAL_CLOCK property is actually supplied by the driver.
Accept user-entered sample rates when external clock is enabled
Centralize session error notification
fix catching polymorphic types by value Compiling with GCC 8 produces a new warning about catching polymorphic types by value. Proper way is to use references instead. /home/sharkcz/projects/pulseview/main.cpp: In function ‘int main(int, char**)’: /home/sharkcz/projects/pulseview/main.cpp:229:22: error: catching polymorphic type ‘class std::exception’ by value [-Werror=catch-value=] } catch (exception e) { ^ cc1plus: all warnings being treated as errors
MainBar: Style fixes
Fix #928 by catching errors if config_list() fails MainBar::config_list() may fail so catch errors and don't segfault. Discovered using an OLS with unknown firmware not supporting metadata. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fix #1038 by catching invalid cursor ranges
MainBar: fixup file extension filter in "Import File" dialog The previous implementation used a "*" filter when a file of any other format than srzip got imported. This happened to be a duplicate of "All files", and ignored the list of filename extensions provided by the input formats. This change does respect the input format's file extensions, and copes with the lack of such a list (raw binary), as well as lists that have one (most formats), or multiple extensions (raw analog). This fixes bug #1039. Another byproduct of the change is that extensions and their decoration (separators, parentheses) move outside of tr() calls. These technical details shall not concern translators, and translations for human languages shall not break the filter mechanism. This implementation might be "too complex, computationally expensive". But it works, and fixes an issue, and the code path executes seldom and waits for user interaction anyway. Cost reduction can get applied later.
Don't set SR_CONF_LIMIT_FRAMES to 1