]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/inputoutputoptions.hpp
Session: Fix issue #67 by improving error handling
[pulseview.git] / pv / dialogs / inputoutputoptions.hpp
index 037f3d41b008ab43ba12eb06a0672d7725e2ab97..11c905a4ca61eef498b597f9f2afaf1724cb955b 100644 (file)
 
 #include <pv/binding/inputoutput.hpp>
 
+using std::map;
+using std::shared_ptr;
+using std::string;
+
 namespace pv {
 namespace dialogs {
 
@@ -43,17 +47,16 @@ public:
         * @param title the title of the dialog.
         * @param options the map of options to use as a template.
         * @param parent the parent widget of the dialog.
-        */ 
+        */
        InputOutputOptions(const QString &title,
-               const std::map<std::string, std::shared_ptr<sigrok::Option>>
-                       &options,
+               const map<string, shared_ptr<sigrok::Option>> &options,
                QWidget *parent);
 
        /**
         * Gets the map of selected options.
         * @return the options.
         */
-       const std::map<std::string, Glib::VariantBase>& options() const;
+       const map<string, Glib::VariantBase>& options() const;
 
 protected:
        void accept();
@@ -67,4 +70,4 @@ private:
 } // namespace dialogs
 } // namespace pv
 
-#endif // PULSEVIEW_PV_INPUTOUTPUTOPTIONS_HPP
+#endif // PULSEVIEW_PV_DIALOGS_INPUTOUTPUTOPTIONS_HPP