X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fexportmenu.hpp;h=f3f104ddc2151eff445def182c8bcb0673cd45ba;hb=39dce56b0e0b4daba503663e44ee6c86a754ddc2;hp=7cd44070e0dbd44602c10179e89969d28f66e71d;hpb=ce6001b8b3b21778218f07549b165ac848ceffd2;p=pulseview.git
diff --git a/pv/widgets/exportmenu.hpp b/pv/widgets/exportmenu.hpp
index 7cd4407..f3f104d 100644
--- a/pv/widgets/exportmenu.hpp
+++ b/pv/widgets/exportmenu.hpp
@@ -14,18 +14,20 @@
* 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 .
*/
-#ifndef PULSEVIEW_PV_WIDGETS_EXPORTMENU_H
-#define PULSEVIEW_PV_WIDGETS_EXPORTMENU_H
+#ifndef PULSEVIEW_PV_WIDGETS_EXPORTMENU_HPP
+#define PULSEVIEW_PV_WIDGETS_EXPORTMENU_HPP
#include
#include
#include
+using std::shared_ptr;
+using std::vector;
+
namespace sigrok {
class Context;
class OutputFormat;
@@ -39,21 +41,21 @@ class ExportMenu : public QMenu
Q_OBJECT;
public:
- ExportMenu(QWidget *parent, std::shared_ptr context,
- QAction *open_action = nullptr);
+ ExportMenu(QWidget *parent, shared_ptr context,
+ vectoropen_actions = vector());
private Q_SLOTS:
void on_action(QObject *action);
Q_SIGNALS:
- void format_selected(std::shared_ptr format);
+ void format_selected(shared_ptr format);
private:
- std::shared_ptr context_;
+ shared_ptr context_;
QSignalMapper mapper_;
};
-} // widgets
-} // pv
+} // namespace widgets
+} // namespace pv
-#endif // PULSEVIEW_PV_WIDGETS_EXPORTMENU_H
+#endif // PULSEVIEW_PV_WIDGETS_EXPORTMENU_HPP