#include <libsigrok/libsigrok.hpp>
-#include "connect.h"
+#include "connect.hpp"
-#include "pv/devicemanager.h"
+#include "pv/devicemanager.hpp"
using std::list;
using std::map;
form_layout_(&form_),
drivers_(&form_),
serial_device_(&form_),
- scan_button_(tr("Scan for Devices"), this),
+ scan_button_(tr("&Scan for Devices"), this),
device_list_(this),
button_box_(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
Qt::Horizontal, this)
this, SLOT(device_selected(int)));
form_.setLayout(&form_layout_);
- form_layout_.addRow(tr("Driver"), &drivers_);
+ form_layout_.addRow(tr("&Driver"), &drivers_);
- form_layout_.addRow(tr("Serial Port"), &serial_device_);
+ form_layout_.addRow(tr("Serial &Port"), &serial_device_);
unset_connection();
* and sensors.
*/
bool supported_device = driver->config_check(
- ConfigKey::SAMPLERATE, ConfigKey::DEVICE_OPTIONS);
+ ConfigKey::LOGIC_ANALYZER, ConfigKey::DEVICE_OPTIONS) |
+ driver->config_check(
+ ConfigKey::OSCILLOSCOPE, ConfigKey::DEVICE_OPTIONS);
if (supported_device)
drivers_.addItem(QString("%1 (%2)").arg(