]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.h
Moved DevInst into the pv::device namespace
[pulseview.git] / pv / mainwindow.h
index ca4475024d97f9b33e5e4fdc985c4ea3e797f004..1acaf07227c7b8bd86a08d20ebda97e824f4115a 100644 (file)
 
 #include "sigsession.h"
 
+struct srd_decoder;
+
 class QVBoxLayout;
 
 namespace pv {
 
 class DeviceManager;
 
+namespace device {
+class DevInst;
+}
+
 namespace toolbars {
 class ContextBar;
 class SamplingBar;
@@ -69,9 +75,8 @@ private:
         * first device in the device list should be selected.
         */
        void update_device_list(
-               struct sr_dev_inst *selected_device = NULL);
-
-       static gint decoder_name_cmp(gconstpointer a, gconstpointer b);
+               boost::shared_ptr<pv::device::DevInst> selected_device =
+                       boost::shared_ptr<pv::device::DevInst>());
 
 private slots:
        void load_file(QString file_name);
@@ -81,6 +86,7 @@ private slots:
                const QString text, const QString info_text);
 
        void on_actionOpen_triggered();
+       void on_actionSaveAs_triggered();
        void on_actionQuit_triggered();
 
        void on_actionConnect_triggered();