]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/connect.hpp
Build fixes for Qt5 Windows/mingw/MXE support.
[pulseview.git] / pv / dialogs / connect.hpp
index 0cb50fbff060edd6bcb6c4c5e554a19ca18fb0fd..e14972abd47150824dec6d811596df855bcec014 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef PULSEVIEW_PV_CONNECT_HPP
@@ -23,6 +22,7 @@
 
 #include <memory>
 
+#include <QCheckBox>
 #include <QComboBox>
 #include <QDialog>
 #include <QDialogButtonBox>
@@ -69,11 +69,11 @@ private:
 
        void unset_connection();
 
-       void set_serial_connection(std::shared_ptr<sigrok::Driver> driver);
-       void set_tcp_connection(std::shared_ptr<sigrok::Driver> driver);
-
 private Q_SLOTS:
-       void device_selected(int index);
+       void driver_selected(int index);
+
+       void serial_toggled(bool checked);
+       void tcp_toggled(bool checked);
 
        void scan_pressed();
 
@@ -89,10 +89,10 @@ private:
 
        QComboBox serial_devices_;
 
-       QWidget tcp_endpoint_;
-       QHBoxLayout tcp_endpoint_layout_;
-       QLineEdit tcp_host_;
-       QSpinBox tcp_port_;
+       QWidget *tcp_config_;
+       QLineEdit *tcp_host_;
+       QSpinBox *tcp_port_;
+       QCheckBox *tcp_use_vxi_;
 
        QPushButton scan_button_;
        QListWidget device_list_;