]> sigrok.org Git - pulseview.git/commitdiff
Add "save selection range as..." to the export menu on the toolbar
authorSoeren Apel <redacted>
Wed, 4 Nov 2015 16:03:26 +0000 (17:03 +0100)
committerSoeren Apel <redacted>
Wed, 4 Nov 2015 16:56:17 +0000 (17:56 +0100)
pv/mainwindow.cpp
pv/toolbars/mainbar.cpp

index 0184ef0937c2fd6029cbd0899c8d6719ed3899db..c3f8fdb8bad914e19fd010a153fb1294c6b67df0 100644 (file)
@@ -134,6 +134,11 @@ QAction* MainWindow::action_save_as() const
        return action_save_as_;
 }
 
+QAction* MainWindow::action_save_selection_as() const
+{
+       return action_save_selection_as_;
+}
+
 QAction* MainWindow::action_connect() const
 {
        return action_connect_;
index 3b1698669a9ac8634a8af1ce87a7786f02cd6833..50e1908fb66031005cefbbadcbc9439461c1ace3 100644 (file)
@@ -112,6 +112,7 @@ MainBar::MainBar(Session &session, MainWindow &main_window) :
 
        vector<QAction *> open_actions;
        open_actions.push_back(main_window.action_save_as());
+       open_actions.push_back(main_window.action_save_selection_as());
 
        widgets::ExportMenu *export_menu = new widgets::ExportMenu(this,
                session.device_manager().context(),