]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.h
Added UI error handling for file loading and capturing
[pulseview.git] / pv / mainwindow.h
index 32b8f6f30da3af195bb1c6899ed3aa96f02a7272..8b7973744a881a19f421d91c1046394d3c6938f8 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef PULSEVIEW_PV_MAINWINDOW_H
 #define PULSEVIEW_PV_MAINWINDOW_H
 
+#include <list>
+
 #include <QMainWindow>
 
 #include "sigsession.h"
@@ -51,15 +53,21 @@ public:
 
 private:
        void setup_ui();
+       void scan_devices();
+
+       void session_error(const QString text, const QString info_text);
 
 private:
 
        SigSession _session;
+       std::list<sr_dev_inst*> _devices;
+
        pv::view::View *_view;
 
        QMenuBar *_menu_bar;
        QMenu *_menu_file;
        QAction *_action_open;
+       QAction *_action_connect;
        QAction *_action_quit;
 
        QMenu *_menu_view;
@@ -79,9 +87,15 @@ private:
 private slots:
        void load_file(QString file_name);
 
+
+       void show_session_error(
+               const QString text, const QString info_text);
+
        void on_actionOpen_triggered();
        void on_actionQuit_triggered();
 
+       void on_actionConnect_triggered();
+
        void on_actionViewZoomIn_triggered();
 
        void on_actionViewZoomOut_triggered();