X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdialogs%2Fconnect.hpp;h=f34268ddb6fde5a383cd56e42dd165da04b497e7;hp=e14972abd47150824dec6d811596df855bcec014;hb=926934b87183a33306c030ed0a01dfea630fa36d;hpb=efdec55aec1a137460fa362a381ed1904182bfed diff --git a/pv/dialogs/connect.hpp b/pv/dialogs/connect.hpp index e14972a..f34268d 100644 --- a/pv/dialogs/connect.hpp +++ b/pv/dialogs/connect.hpp @@ -29,11 +29,13 @@ #include #include #include -#include #include #include +#include #include +using std::shared_ptr; + namespace sigrok { class Driver; } @@ -44,8 +46,8 @@ class HardwareDevice; } } -Q_DECLARE_METATYPE(std::shared_ptr); -Q_DECLARE_METATYPE(std::shared_ptr); +Q_DECLARE_METATYPE(shared_ptr); +Q_DECLARE_METATYPE(shared_ptr); namespace pv { @@ -60,12 +62,12 @@ class Connect : public QDialog public: Connect(QWidget *parent, pv::DeviceManager &device_manager); - std::shared_ptr get_selected_device() const; + shared_ptr get_selected_device() const; private: void populate_drivers(); - void populate_serials(std::shared_ptr driver); + void populate_serials(shared_ptr driver); void unset_connection(); @@ -87,12 +89,13 @@ private: QComboBox drivers_; - QComboBox serial_devices_; + QWidget *serial_config_; + QComboBox serial_devices_, serial_baudrate_; QWidget *tcp_config_; QLineEdit *tcp_host_; QSpinBox *tcp_port_; - QCheckBox *tcp_use_vxi_; + QComboBox *tcp_protocol_; QPushButton scan_button_; QListWidget device_list_;