]> sigrok.org Git - pulseview.git/log
pulseview.git
9 years agoFix objectName warnings.
Soeren Apel [Sun, 14 Sep 2014 14:47:57 +0000 (16:47 +0200)]
Fix objectName warnings.

Fix the following warnings:

  QMainWindow::saveState(): 'objectName' not set for QToolBar 'Main Toolbar'
  QMainWindow::saveState(): 'objectName' not set for QToolBar 'Sampling Bar'

9 years agoAutomatically save/restore main window state
Soeren Apel [Fri, 12 Sep 2014 22:43:26 +0000 (00:43 +0200)]
Automatically save/restore main window state

Fix bug #326 by saving the main window state when closing and
restoring it on startup. The default window size is 1000x720 so
that the window can still be seen entirely when on a 1024x768 screen.
This wouldn't be the case with a default size of 1024x768.

9 years agoGeneric auto-focusing for first line edit of popup
Soeren Apel [Thu, 11 Sep 2014 21:11:43 +0000 (23:11 +0200)]
Generic auto-focusing for first line edit of popup

As there is a generic approach to hooking into the line edits
in popups, use that to also do auto-focus/auto-select-all.

9 years agoUse a generic approach when adding the "close on enter" hook for popups
Soeren Apel [Tue, 9 Sep 2014 20:45:40 +0000 (22:45 +0200)]
Use a generic approach when adding the "close on enter" hook for popups

Implement a generic approach to the "close on enter" feature
in popups by installing the key event handler on the first editable
widget it finds in the popup.

9 years agoReplace ann_format with ann_class.
Uwe Hermann [Mon, 15 Sep 2014 18:26:48 +0000 (20:26 +0200)]
Replace ann_format with ann_class.

The naming has been changed to "annotation class" a while ago.

9 years agotest/CMakeLists.txt: Fix build.
Uwe Hermann [Wed, 10 Sep 2014 16:39:35 +0000 (18:39 +0200)]
test/CMakeLists.txt: Fix build.

9 years agoSubclass QApplication to catch exceptions in handlers.
Martin Ling [Sat, 6 Sep 2014 13:15:08 +0000 (14:15 +0100)]
Subclass QApplication to catch exceptions in handlers.

9 years agoTrace: Fixed a doxygen comment
Joel Holdsworth [Sun, 24 Aug 2014 18:25:24 +0000 (19:25 +0100)]
Trace: Fixed a doxygen comment

9 years agoMake decoder popups close when pressing enter
Soeren Apel [Tue, 2 Sep 2014 18:26:10 +0000 (20:26 +0200)]
Make decoder popups close when pressing enter

9 years agoandroid: Minor whitespace fixes.
Uwe Hermann [Sun, 31 Aug 2014 17:51:13 +0000 (19:51 +0200)]
android: Minor whitespace fixes.

9 years agoAndroid: Bundle Qt libs with the APK
Marcus Comstedt [Fri, 29 Aug 2014 20:10:54 +0000 (22:10 +0200)]
Android: Bundle Qt libs with the APK

9 years agoicons: Renamed probe.svg to channels.svg
Joel Holdsworth [Sun, 31 Aug 2014 16:18:53 +0000 (17:18 +0100)]
icons: Renamed probe.svg to channels.svg

9 years agoRename 'probe' to 'channel' everywhere.
Martin Ling [Wed, 27 Aug 2014 18:55:48 +0000 (19:55 +0100)]
Rename 'probe' to 'channel' everywhere.

9 years agoAdd missing default to switch/case block.
Martin Ling [Wed, 27 Aug 2014 18:40:59 +0000 (19:40 +0100)]
Add missing default to switch/case block.

9 years agoMake unit_size in Snapshot class unsigned.
Martin Ling [Wed, 27 Aug 2014 18:31:05 +0000 (19:31 +0100)]
Make unit_size in Snapshot class unsigned.

9 years agoRemove broken assert().
Martin Ling [Wed, 27 Aug 2014 18:36:56 +0000 (19:36 +0100)]
Remove broken assert().

This is no longer valid since c82c7e4 changed _data to a std::vector.

9 years agoRemove obsolete input module support.
Bert Vermeulen [Mon, 25 Aug 2014 15:29:40 +0000 (17:29 +0200)]
Remove obsolete input module support.

This no longer works against libsigrok, which has an entirely new
API for input modules.

9 years agoDon't use Qt-defined keywords, they can cause problems with other headers.
Martin Ling [Sat, 19 Jul 2014 18:15:55 +0000 (19:15 +0100)]
Don't use Qt-defined keywords, they can cause problems with other headers.

9 years agoOnly use one central .gitignore file.
Uwe Hermann [Wed, 27 Aug 2014 17:44:00 +0000 (19:44 +0200)]
Only use one central .gitignore file.

9 years agoSnapshot classes: Use vector instead of raw pointer
Jens Steinhauser [Wed, 27 Aug 2014 09:12:40 +0000 (11:12 +0200)]
Snapshot classes: Use vector instead of raw pointer

As a side-effect this turns a segfault (see bug #397) into a segfault
with a more usable message:

  terminate called after throwing an instance of 'std::bad_alloc'
    what():  std::bad_alloc
  Aborted (core dumped)

9 years agoMake trace popup combobox behave more user-friendly
Soeren Apel [Tue, 26 Aug 2014 13:40:00 +0000 (15:40 +0200)]
Make trace popup combobox behave more user-friendly

9 years agoPopulate signal popup combo box with signal name instead of probe name
Soeren Apel [Tue, 26 Aug 2014 12:13:38 +0000 (14:13 +0200)]
Populate signal popup combo box with signal name instead of probe name

9 years agoFix bug 298 by enhancing signal and trace popup behavior
Soeren Apel [Tue, 26 Aug 2014 11:18:40 +0000 (13:18 +0200)]
Fix bug 298 by enhancing signal and trace popup behavior

9 years agoFix two errors with clang 3.6.
Uwe Hermann [Wed, 27 Aug 2014 13:29:48 +0000 (15:29 +0200)]
Fix two errors with clang 3.6.

[...]/pv/view/viewport.cpp:202:6: error: using integer absolute value
function 'abs' when argument is of floating point
type [-Werror,-Wabsolute-value]
        if (abs(w) >= 1.0) {
            ^
[...]/pv/view/viewport.cpp:202:6: note: use function 'std::abs' instead
        if (abs(w) >= 1.0) {
            ^~~
            std::abs

[...]/pv/widgets/sweeptimingwidget.cpp:172:33: error: absolute value
function 'abs' given an argument of type 'long' but has parameter of
type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
                const int64_t this_variance = abs(
                                              ^
[...]/pv/widgets/sweeptimingwidget.cpp:172:33: note: use function
'std::abs' instead
                const int64_t this_variance = abs(
                                              ^~~
                                              std::abs

9 years agoandroid/: Add some missing license headers.
Uwe Hermann [Tue, 26 Aug 2014 21:10:36 +0000 (23:10 +0200)]
android/: Add some missing license headers.

9 years agoandroid/: Whitespace and consistency fixes.
Uwe Hermann [Tue, 26 Aug 2014 21:08:47 +0000 (23:08 +0200)]
android/: Whitespace and consistency fixes.

Use one tab as indentation for all XML and Java files.

9 years agoview: Minor whitespace fixes.
Uwe Hermann [Tue, 26 Aug 2014 20:52:55 +0000 (22:52 +0200)]
view: Minor whitespace fixes.

9 years agoAndroid: Use environment setup from library instead
Marcus Comstedt [Fri, 18 Jul 2014 14:17:37 +0000 (16:17 +0200)]
Android: Use environment setup from library instead

9 years agoAdded files for building Android APK
Marcus Comstedt [Wed, 16 Jul 2014 14:56:43 +0000 (16:56 +0200)]
Added files for building Android APK

9 years agoInstall logging callbacks for Android
Marcus Comstedt [Wed, 16 Jul 2014 14:45:48 +0000 (16:45 +0200)]
Install logging callbacks for Android

9 years agoSetup environment for SRD on Android
Marcus Comstedt [Wed, 16 Jul 2014 14:16:10 +0000 (16:16 +0200)]
Setup environment for SRD on Android

9 years agoCMakeLists.txt: For Android, make a library out of the native code
Marcus Comstedt [Wed, 16 Jul 2014 14:07:45 +0000 (16:07 +0200)]
CMakeLists.txt: For Android, make a library out of the native code

9 years agoView: Implement pinch-zoom
Marcus Comstedt [Sat, 19 Jul 2014 08:04:19 +0000 (10:04 +0200)]
View: Implement pinch-zoom

The special handling of a moveMoveEvent without a preceeding
mousePressEvent is a workaround for an issue where you won't get
an emulated mousePressEvent for the primary touch after a multitouch
gesture where you release the primary touch before the secondary touch.

9 years agoCheck for device instances before blindly trying to release them.
Bert Vermeulen [Sun, 3 Aug 2014 12:24:02 +0000 (14:24 +0200)]
Check for device instances before blindly trying to release them.

9 years agoFix comment and increase readability in probes.cpp
Soeren Apel [Sun, 3 Aug 2014 12:12:13 +0000 (14:12 +0200)]
Fix comment and increase readability in probes.cpp

9 years agoFix bug #392 by improving empty list/map handling
Soeren Apel [Sun, 3 Aug 2014 12:12:12 +0000 (14:12 +0200)]
Fix bug #392 by improving empty list/map handling

9 years agoRemove output modules from about dialog.
Bert Vermeulen [Sat, 26 Jul 2014 01:09:04 +0000 (03:09 +0200)]
Remove output modules from about dialog.

PulseView doesn't support output modules at all.

9 years agoDrop references to obsolete sigrok-commits mailing list.
Uwe Hermann [Tue, 22 Jul 2014 22:03:08 +0000 (00:03 +0200)]
Drop references to obsolete sigrok-commits mailing list.

9 years agoUpdate to new session API.
Martin Ling [Sat, 19 Jul 2014 17:19:47 +0000 (18:19 +0100)]
Update to new session API.

9 years agoIgnore *.cpp_parameters.
Bert Vermeulen [Mon, 14 Jul 2014 22:29:39 +0000 (00:29 +0200)]
Ignore *.cpp_parameters.

9 years agoMarginWidget: Disable system background
Marcus Comstedt [Tue, 8 Jul 2014 08:55:05 +0000 (10:55 +0200)]
MarginWidget: Disable system background

This fixes a rendering problem on Android.

9 years agoCMakeLists.txt: Put quotes back for CXX_FLAGS only
Marcus Comstedt [Mon, 7 Jul 2014 10:26:28 +0000 (12:26 +0200)]
CMakeLists.txt: Put quotes back for CXX_FLAGS only

Turns out these were needed after all.

9 years agoDeclare a virtual destructor for SignalData
Marcus Comstedt [Sat, 17 May 2014 10:37:15 +0000 (12:37 +0200)]
Declare a virtual destructor for SignalData

This fixes the following error:

error: deleting object of polymorphic class type 'pv::data::Analog'
which has non-virtual destructor might cause undefined behaviour
[-Werror=delete-non-virtual-dtor]

Also, the same error for pv::data::Logic.

9 years agoAdd missing #include <cassert> in multiple files
Marcus Comstedt [Sun, 29 Jun 2014 10:55:48 +0000 (12:55 +0200)]
Add missing #include <cassert> in multiple files

9 years agoFix compilation on 32-bit systems
Marcus Comstedt [Sun, 29 Jun 2014 12:09:03 +0000 (14:09 +0200)]
Fix compilation on 32-bit systems

storesession.h was declaring fields as std::atomic<uint64_t>, a type
not avaiable on 32-bit systems.  However, the values stored in these
fields were only used as input to QProgressDialog, which takes int,
not uint64_t.  So the fields could just as well be std::atomic<int>.

Also, added code to scale the progress values down if they would not
fit in an int.  (This would have been needed even if the fields were
to remain as uint64_t.)

9 years agoCMakeLists.txt: Pass -DENABLE_SIGNALS to the compiler.
Uwe Hermann [Mon, 16 Jun 2014 17:27:27 +0000 (19:27 +0200)]
CMakeLists.txt: Pass -DENABLE_SIGNALS to the compiler.

Until now only the cmake variable ENABLE_SIGNALS was used to add
signalhandler.{cpp,h} to the list of files to build.

However, main.cpp also uses '#ifdef ENABLE_SIGNALS' which didn't work
so far, since -DENABLE_SIGNALS was not passed to the compiler.

(one effect being that PulseView cannot be killed via CTRL-C from
an xterm or the like)

This fixes bug #368.

9 years agoUse 'struct' for test cases defined with BOOST_AUTO_TEST_CASE.
Jens Steinhauser [Mon, 9 Jun 2014 15:35:36 +0000 (17:35 +0200)]
Use 'struct' for test cases defined with BOOST_AUTO_TEST_CASE.

9 years agoAdd missing files to test/CMakeLists.txt.
Jens Steinhauser [Mon, 9 Jun 2014 14:57:15 +0000 (16:57 +0200)]
Add missing files to test/CMakeLists.txt.

9 years agoIgnore Qt5-generated moc and qrc files.
Bert Vermeulen [Tue, 10 Jun 2014 15:09:23 +0000 (17:09 +0200)]
Ignore Qt5-generated moc and qrc files.

9 years agoCMakeLists.txt: Drop quotes causing invalid include paths for Qt5
Marcus Comstedt [Tue, 10 Jun 2014 13:35:38 +0000 (15:35 +0200)]
CMakeLists.txt: Drop quotes causing invalid include paths for Qt5

9 years agoAllow PulseView to be built with Qt5
Marcus Comstedt [Thu, 15 May 2014 19:45:03 +0000 (21:45 +0200)]
Allow PulseView to be built with Qt5

cmake will auto-detect Qt4 or Qt5.  If both are available, Qt5 will be
selected unless FORCE_QT4 is set to TRUE.

9 years agotest/CMakeLists.txt: Drop obsolete boost-thread references.
Uwe Hermann [Mon, 9 Jun 2014 14:07:26 +0000 (16:07 +0200)]
test/CMakeLists.txt: Drop obsolete boost-thread references.

9 years agoINSTALL: libboost-thread is no longer needed.
Uwe Hermann [Mon, 9 Jun 2014 14:01:33 +0000 (16:01 +0200)]
INSTALL: libboost-thread is no longer needed.

9 years agoINSTALL: Document C++11 compiler support requirement.
Uwe Hermann [Mon, 9 Jun 2014 14:01:13 +0000 (16:01 +0200)]
INSTALL: Document C++11 compiler support requirement.

9 years agoChange QApplication::translate to tr, removing deprecated UTF8 parameter
Marcus Comstedt [Thu, 15 May 2014 19:48:11 +0000 (21:48 +0200)]
Change QApplication::translate to tr, removing deprecated UTF8 parameter

9 years agoUpdate #include directives to work with Qt5 as well as Qt4
Marcus Comstedt [Thu, 15 May 2014 19:47:02 +0000 (21:47 +0200)]
Update #include directives to work with Qt5 as well as Qt4

9 years ago.gitignore: Added new Qt compiler intermediate
Joel Holdsworth [Thu, 5 Jun 2014 20:30:04 +0000 (21:30 +0100)]
.gitignore: Added new Qt compiler intermediate

9 years agoDecoderStack: Fixed thread dead-lock
Joel Holdsworth [Thu, 5 Jun 2014 20:28:59 +0000 (21:28 +0100)]
DecoderStack: Fixed thread dead-lock

9 years agoSigSession: Fixed std::thread joining
Joel Holdsworth [Thu, 29 May 2014 22:22:52 +0000 (23:22 +0100)]
SigSession: Fixed std::thread joining

9 years agoproperty: add the necessary include file for std::function
Aurelien Jacobs [Tue, 3 Jun 2014 15:07:27 +0000 (17:07 +0200)]
property: add the necessary include file for std::function

This fixes the following error:

/home/aurel/devel/sigrok/pulseview/pv/prop/property.h:39:15: error: ‘function’ in namespace ‘std’ does not name a template type
  typedef std::function<GVariant* ()> Getter;

9 years agoDon't use obsolete channel-based triggers.
Bert Vermeulen [Fri, 30 May 2014 21:09:38 +0000 (23:09 +0200)]
Don't use obsolete channel-based triggers.

9 years agoHeader: Do not clip away the selection.
Jens Steinhauser [Sat, 24 May 2014 15:36:17 +0000 (17:36 +0200)]
Header: Do not clip away the selection.

9 years agoCursorHeader: Do not clip away the selection.
Jens Steinhauser [Sat, 24 May 2014 14:41:22 +0000 (16:41 +0200)]
CursorHeader: Do not clip away the selection.

9 years agoCursorHeader: Use the same number format as the ruler.
Jens Steinhauser [Wed, 21 May 2014 13:02:13 +0000 (15:02 +0200)]
CursorHeader: Use the same number format as the ruler.

9 years agoCursorHeader: Make the size dependend on the used font.
Jens Steinhauser [Wed, 21 May 2014 10:16:03 +0000 (12:16 +0200)]
CursorHeader: Make the size dependend on the used font.

9 years agoUse a separate widget to hold the cursor labels.
Jens Steinhauser [Fri, 23 May 2014 19:36:54 +0000 (21:36 +0200)]
Use a separate widget to hold the cursor labels.

This way the cursor labels don't overlap with the ruler.

9 years agoMainWindow: Remember directory of last file that was opened/saved.
Jens Steinhauser [Fri, 23 May 2014 15:29:49 +0000 (17:29 +0200)]
MainWindow: Remember directory of last file that was opened/saved.

9 years agomain: Use only the domain, not the whole URL.
Jens Steinhauser [Fri, 23 May 2014 15:05:17 +0000 (17:05 +0200)]
main: Use only the domain, not the whole URL.

9 years agoDeviceOptions::print_vdiv: Replace C-style string formatting with QString arg formatting
Joel Holdsworth [Sat, 24 May 2014 10:23:08 +0000 (11:23 +0100)]
DeviceOptions::print_vdiv: Replace C-style string formatting with QString arg formatting

9 years agoReplaced boost::bind with C++11 lambdas
Joel Holdsworth [Sat, 24 May 2014 10:17:27 +0000 (11:17 +0100)]
Replaced boost::bind with C++11 lambdas

9 years agoReplaced boost::function with std::function
Joel Holdsworth [Fri, 23 May 2014 22:32:20 +0000 (23:32 +0100)]
Replaced boost::function with std::function

9 years agoUsed a std::atomic for StoreSession::_units_stores and _unit_count
Joel Holdsworth [Fri, 23 May 2014 22:22:37 +0000 (23:22 +0100)]
Used a std::atomic for StoreSession::_units_stores and _unit_count

9 years agoReplaced boost::thread/mutex etc. with std equivalents
Joel Holdsworth [Tue, 20 May 2014 22:51:00 +0000 (23:51 +0100)]
Replaced boost::thread/mutex etc. with std equivalents

9 years agoReplaced boost::shared_ptr with std::shared_ptr
Joel Holdsworth [Tue, 20 May 2014 21:58:55 +0000 (22:58 +0100)]
Replaced boost::shared_ptr with std::shared_ptr

9 years agoReplaced BOOST_FOREACH with C++11 range-based for loops
Joel Holdsworth [Tue, 20 May 2014 21:15:50 +0000 (22:15 +0100)]
Replaced BOOST_FOREACH with C++11 range-based for loops

9 years agoReplaced lengthy iterator types with the auto keyword
Joel Holdsworth [Tue, 20 May 2014 18:21:06 +0000 (19:21 +0100)]
Replaced lengthy iterator types with the auto keyword

9 years agoEnabled C++11 build
Joel Holdsworth [Tue, 20 May 2014 18:20:29 +0000 (19:20 +0100)]
Enabled C++11 build

9 years agoHeader: Invisible traces shouldn't influence the width.
Jens Steinhauser [Thu, 22 May 2014 20:03:28 +0000 (22:03 +0200)]
Header: Invisible traces shouldn't influence the width.

9 years agoSamplingBar: Use nicer time format in the tooltip.
Jens Steinhauser [Thu, 22 May 2014 20:03:23 +0000 (22:03 +0200)]
SamplingBar: Use nicer time format in the tooltip.

9 years agoPut the time format function into a separate file.
Jens Steinhauser [Thu, 22 May 2014 20:03:22 +0000 (22:03 +0200)]
Put the time format function into a separate file.

9 years agoSamplingBar: Show total sampling time in a tooltip.
Jens Steinhauser [Thu, 22 May 2014 20:03:21 +0000 (22:03 +0200)]
SamplingBar: Show total sampling time in a tooltip.

9 years agoSigSession: Fix typo in comment.
Jens Steinhauser [Thu, 22 May 2014 20:03:20 +0000 (22:03 +0200)]
SigSession: Fix typo in comment.

9 years agoMainWindow: Add missing toolbar buttons.
Jens Steinhauser [Thu, 22 May 2014 20:03:18 +0000 (22:03 +0200)]
MainWindow: Add missing toolbar buttons.

9 years agoMainWindow: Add shortcuts for the open/save menu items.
Jens Steinhauser [Thu, 22 May 2014 20:03:16 +0000 (22:03 +0200)]
MainWindow: Add shortcuts for the open/save menu items.

9 years agoBump PulseView version to 0.2.0. pulseview-0.2.x pulseview-0.2.0
Uwe Hermann [Tue, 6 May 2014 21:43:20 +0000 (23:43 +0200)]
Bump PulseView version to 0.2.0.

9 years agoBump libsigrok/libsigrokdecode dependencies to 0.3.0 each.
Uwe Hermann [Tue, 6 May 2014 21:41:25 +0000 (23:41 +0200)]
Bump libsigrok/libsigrokdecode dependencies to 0.3.0 each.

9 years agoNEWS: Add list of user-visible changes so far.
Uwe Hermann [Tue, 6 May 2014 07:00:00 +0000 (09:00 +0200)]
NEWS: Add list of user-visible changes so far.

9 years agoFix polymorphic function lookup problem
Marcus Comstedt [Sun, 6 Apr 2014 15:04:42 +0000 (17:04 +0200)]
Fix polymorphic function lookup problem

Instead of taking min() of a qreal and a double, use two doubles.
(The result is assigned to a double anyway.)

Fixes build problem on Android

10 years agoINSTALL: Mention missing dependency libboost-filesystem.
Uwe Hermann [Sun, 13 Apr 2014 19:09:34 +0000 (21:09 +0200)]
INSTALL: Mention missing dependency libboost-filesystem.

10 years agoRename 'probe' to 'channel' (libsigrokdecode change).
Uwe Hermann [Sat, 5 Apr 2014 12:00:56 +0000 (14:00 +0200)]
Rename 'probe' to 'channel' (libsigrokdecode change).

Variables of type 'struct srd_channel *' are consistently named 'pdch' to
make them easily distinguishable from libsigrok's 'struct sr_channel *'
variables that are consistently named 'ch'.

10 years agonsis: Drop embedded Python installer, ship local DLL and modules.
Uwe Hermann [Fri, 4 Apr 2014 17:58:23 +0000 (19:58 +0200)]
nsis: Drop embedded Python installer, ship local DLL and modules.

10 years agoFixed test suite when ENABLE_DECODE=n
Joel Holdsworth [Tue, 25 Mar 2014 20:53:08 +0000 (20:53 +0000)]
Fixed test suite when ENABLE_DECODE=n

10 years agoDeviceOptions: Added an error handler for the case when a device exposes an enum...
Joel Holdsworth [Sun, 23 Mar 2014 14:24:58 +0000 (14:24 +0000)]
DeviceOptions: Added an error handler for the case when a device exposes an enum with no values list

10 years agoUpdate for 'probe' -> 'channel' rename in libsigrok.
Uwe Hermann [Mon, 24 Mar 2014 21:49:57 +0000 (22:49 +0100)]
Update for 'probe' -> 'channel' rename in libsigrok.

This is an update related to bug #259.

10 years agoUpdate for 'probe_group' -> 'channel_group' rename in libsigrok.
Uwe Hermann [Thu, 20 Mar 2014 22:19:35 +0000 (23:19 +0100)]
Update for 'probe_group' -> 'channel_group' rename in libsigrok.

This is an update related to bug #259.

10 years agoHeader/Viewport: Manually trigger the signals_changed event at construction
Joel Holdsworth [Sat, 22 Mar 2014 10:20:44 +0000 (10:20 +0000)]
Header/Viewport: Manually trigger the signals_changed event at construction

This fixes #338

10 years agonsis: Put sigrok-dumps *.sr files into the installer.
Uwe Hermann [Thu, 20 Mar 2014 12:18:36 +0000 (13:18 +0100)]
nsis: Put sigrok-dumps *.sr files into the installer.

These are useful for people to have around for conveniently testing
various frontend features and protocol decoders etc.

10 years agoReworked SamplingBar device selection logic
Joel Holdsworth [Sun, 16 Mar 2014 09:54:04 +0000 (10:54 +0100)]
Reworked SamplingBar device selection logic

  * Split on_device_selected into update_device_config_widgets. This allows
    the widgets to be updated with calling SigSession::set_device.

  * Don't rely on the on_device_selected event handler to update the device
    config widgets. If MainWindow selects a device, that device may be the
    0th drop-down element, and already selected in which case there will be
    no device_selected signal, because there was no change in the selection.
    We now surpress on_device_selected with _updating_device_selector, then
    set the selected device in the drop-down, then call
    update_device_config_widgets to manually update the widgets.

  * Combined set_selected_device into set_device_list, so that the two can
    be set in one operation.

  * This fixes bug #334

10 years agoSet PopupToolButton::_popup to NULL at construction
Joel Holdsworth [Sat, 15 Mar 2014 18:56:17 +0000 (19:56 +0100)]
Set PopupToolButton::_popup to NULL at construction

10 years agoRevert back to the default device if a session file failed to load
Joel Holdsworth [Sat, 15 Mar 2014 08:28:33 +0000 (09:28 +0100)]
Revert back to the default device if a session file failed to load

This fixes #331