]> sigrok.org Git - pulseview.git/commit
Add serial_num/connection_id handling and save/restore last device
authorSoeren Apel <redacted>
Mon, 29 Sep 2014 21:31:55 +0000 (23:31 +0200)
committerBert Vermeulen <redacted>
Mon, 29 Sep 2014 21:37:05 +0000 (23:37 +0200)
commit6842b5fc481eb43d9aeea81f17e211820d6dc405
tree70515b3b4e7bc1103d9c9b44d6e2974d09faa6f0
parent858ae630aec11f2f1300897cc3ca127a4537e598
Add serial_num/connection_id handling and save/restore last device

This patch performs several correlated changes:
- Make use of sdi->serial_num and sdi->connection_id in
format_device_title()
- Add a Device::get_device_info() method that returns a map
with all device identification information that's available
- Add a DeviceManager::find_device_from_info() method which
returns the best match to a given set of device infos
- Add save/restore code to the MainWindow class that makes
use of the aforementioned maps to identify the currently
selected device.
pv/device/device.cpp
pv/device/device.h
pv/device/devinst.h
pv/device/file.cpp
pv/device/file.h
pv/devicemanager.cpp
pv/devicemanager.h
pv/mainwindow.cpp