Remove ArdourPrompter wrapper
authorRobin Gareus <robin@gareus.org>
Mon, 17 Jul 2017 03:18:48 +0000 (05:18 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 17 Jul 2017 19:06:04 +0000 (21:06 +0200)
24 files changed:
gtk2_ardour/ardour_ui.cc
gtk2_ardour/ardour_ui.h
gtk2_ardour/audio_time_axis.cc
gtk2_ardour/axis_view.h
gtk2_ardour/editor_markers.cc
gtk2_ardour/editor_mouse.cc
gtk2_ardour/editor_ops.cc
gtk2_ardour/editor_route_groups.cc
gtk2_ardour/editor_snapshots.cc
gtk2_ardour/generic_pluginui.cc
gtk2_ardour/location_ui.cc
gtk2_ardour/midi_time_axis.cc
gtk2_ardour/mixer_ui.cc
gtk2_ardour/plugin_ui.cc
gtk2_ardour/processor_box.cc
gtk2_ardour/prompter.cc [deleted file]
gtk2_ardour/prompter.h [deleted file]
gtk2_ardour/route_time_axis.cc
gtk2_ardour/route_ui.cc
gtk2_ardour/route_ui.h
gtk2_ardour/session_import_dialog.cc
gtk2_ardour/sfdb_ui.cc
gtk2_ardour/time_axis_view.h
gtk2_ardour/wscript

index b24fbafb05d530f9791bb26a0e76b0d87fac6efd..00e3129dc059391c07f451c97f70feac4e0d9175 100644 (file)
@@ -78,6 +78,7 @@
 #include "gtkmm2ext/window_title.h"
 
 #include "widgets/fastmeter.h"
+#include "widgets/prompter.h"
 
 #include "ardour/ardour.h"
 #include "ardour/audio_backend.h"
@@ -163,7 +164,6 @@ typedef uint64_t microseconds_t;
 #include "opts.h"
 #include "pingback.h"
 #include "processor_box.h"
-#include "prompter.h"
 #include "public_editor.h"
 #include "rc_option_editor.h"
 #include "route_time_axis.h"
@@ -2886,7 +2886,7 @@ ARDOUR_UI::quick_snapshot_session (bool switch_to_it)
 
 
 bool
-ARDOUR_UI::process_snapshot_session_prompter (ArdourPrompter& prompter, bool switch_to_it)
+ARDOUR_UI::process_snapshot_session_prompter (Prompter& prompter, bool switch_to_it)
 {
        string snapname;
 
@@ -2932,7 +2932,7 @@ ARDOUR_UI::process_snapshot_session_prompter (ArdourPrompter& prompter, bool swi
 void
 ARDOUR_UI::snapshot_session (bool switch_to_it)
 {
-       ArdourPrompter prompter (true);
+       Prompter prompter (true);
 
        prompter.set_name ("Prompter");
        prompter.add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_ACCEPT);
@@ -2977,7 +2977,7 @@ ARDOUR_UI::rename_session ()
                return;
        }
 
-       ArdourPrompter prompter (true);
+       Prompter prompter (true);
        string name;
 
        prompter.set_name ("Prompter");
@@ -3119,7 +3119,7 @@ ARDOUR_UI::transport_rec_enable_blink (bool onoff)
 }
 
 bool
-ARDOUR_UI::process_save_template_prompter (ArdourPrompter& prompter)
+ARDOUR_UI::process_save_template_prompter (Prompter& prompter)
 {
        string name;
 
@@ -3148,7 +3148,7 @@ ARDOUR_UI::process_save_template_prompter (ArdourPrompter& prompter)
 void
 ARDOUR_UI::save_template ()
 {
-       ArdourPrompter prompter (true);
+       Prompter prompter (true);
 
        if (!check_audioengine (_main_window)) {
                return;
index f66f9b467b7c6afbe84c570c02116ae5961d1cde..42a4f20c79865c06b7f194afc1d535b58b58d87e 100644 (file)
@@ -125,7 +125,6 @@ class ConnectionEditor;
 class DuplicateRouteDialog;
 class MainClock;
 class Mixer_UI;
-class ArdourPrompter;
 class PublicEditor;
 class SaveAsDialog;
 class SessionDialog;
@@ -154,6 +153,7 @@ namespace Gtk {
 }
 
 namespace ArdourWidgets {
+       class Prompter;
        class Tabbable;
 }
 
@@ -652,7 +652,7 @@ private:
 
        void open_session ();
        void open_recent_session ();
-       bool process_save_template_prompter (ArdourPrompter& prompter);
+       bool process_save_template_prompter (ArdourWidgets::Prompter& prompter);
        void save_template ();
        void manage_templates ();
 
@@ -697,7 +697,7 @@ private:
 
        guint32  last_key_press_time;
 
-       bool process_snapshot_session_prompter (ArdourPrompter& prompter, bool switch_to_it);
+       bool process_snapshot_session_prompter (ArdourWidgets::Prompter& prompter, bool switch_to_it);
        void snapshot_session (bool switch_to_it);
 
        void quick_snapshot_session (bool switch_to_it);  //does not promtp for name, just makes a timestamped file
index ae3c22b091955c06c2227d18b10c21e2937b210f..72af2f846cec8282b9250e82bc5b995c3f4015ac 100644 (file)
@@ -48,7 +48,6 @@
 #include "automation_time_axis.h"
 #include "keyboard.h"
 #include "playlist_selector.h"
-#include "prompter.h"
 #include "public_editor.h"
 #include "audio_region_view.h"
 #include "audio_streamview.h"
index ac38db86c06387d11590b718c3169f704c8beb0d..bacaa8410de8bfb6ff6c7d05d84ee423751ad352 100644 (file)
@@ -32,7 +32,6 @@
 #include "ardour/session_handle.h"
 
 #include "gui_object.h"
-#include "prompter.h"
 #include "selectable.h"
 
 namespace PBD {
index 8723aad488b7834832e032870f0be9fac015f63f..64018f3f21cc418b11c9c0d8d081cc1ce6be7ab7 100644 (file)
 #include "canvas/item.h"
 #include "canvas/rectangle.h"
 
+#include "widgets/prompter.h"
+
 #include "editor.h"
 #include "marker.h"
 #include "selection.h"
 #include "editing.h"
 #include "gui_thread.h"
 #include "actions.h"
-#include "prompter.h"
 #include "editor_drag.h"
 
 #include "pbd/i18n.h"
@@ -1612,7 +1613,7 @@ Editor::rename_marker(ArdourMarker *marker)
                return;
        }
 
-       ArdourPrompter dialog (true);
+       ArdourWidgets::Prompter dialog (true);
        string txt;
 
        dialog.set_prompt (_("New Name:"));
index 13b5e6e8e56f597bf8b0288e07d044eb153ec622..6e71587c577e371dd0848b13b5c7cb73073d1c49 100644 (file)
@@ -46,6 +46,8 @@
 #include "ardour/session.h"
 #include "ardour/types.h"
 
+#include "widgets/prompter.h"
+
 #include "actions.h"
 #include "ardour_ui.h"
 #include "editor.h"
@@ -58,7 +60,6 @@
 #include "region_gain_line.h"
 #include "automation_time_axis.h"
 #include "control_point.h"
-#include "prompter.h"
 #include "selection.h"
 #include "keyboard.h"
 #include "editing.h"
@@ -2352,7 +2353,7 @@ Editor::mouse_rename_region (ArdourCanvas::Item* /*item*/, GdkEvent* /*event*/)
 {
        using namespace Gtkmm2ext;
 
-       ArdourPrompter prompter (false);
+       ArdourWidgets::Prompter prompter (false);
 
        prompter.set_prompt (_("Name for region:"));
        prompter.set_initial_text (clicked_regionview->region()->name());
index 0441ee9e524f5a17329385f89a3ac49c28441fc1..ea3e3ac74fffb67573ae900b3516f47f20708d6e 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "widgets/choice.h"
 #include "widgets/popup.h"
+#include "widgets/prompter.h"
 
 #include "ardour/audio_track.h"
 #include "ardour/audioregion.h"
@@ -2121,7 +2122,7 @@ Editor::choose_new_marker_name(string &name) {
                return true;
        }
 
-       ArdourPrompter dialog (true);
+       Prompter dialog (true);
 
        dialog.set_prompt (_("New Name:"));
 
index 13a74fb44ae841847b6296b23d3ffacef4c38e69..bdbbb5d908f6c921c249e2fd1dc02513d901fe88 100644 (file)
@@ -45,7 +45,6 @@
 #include "gui_thread.h"
 #include "keyboard.h"
 #include "marker.h"
-#include "prompter.h"
 #include "route_group_dialog.h"
 #include "route_time_axis.h"
 #include "time_axis_view.h"
index 8ab16cc48b70499d07341a0c955337d7fa8838af..355e4a3d8888a10a003a7c3a8705885fd5e70dac 100644 (file)
 #include "ardour/session_directory.h"
 
 #include "widgets/choice.h"
+#include "widgets/prompter.h"
 
 #include "editor_snapshots.h"
 #include "ardour_ui.h"
 #include "pbd/i18n.h"
 #include "utils.h"
-#include "prompter.h"
 
 using namespace std;
 using namespace PBD;
@@ -143,7 +143,7 @@ EditorSnapshots::popup_context_menu (int button, int32_t time, std::string snaps
 void
 EditorSnapshots::rename (std::string old_name)
 {
-       ArdourPrompter prompter(true);
+       ArdourWidgets::Prompter prompter(true);
 
        string new_name;
 
index 0f665d78917f753ce0bcbd2bfb102ea980a5c43c..1bd682a0a8afd74a9c74474fb250835e762bc0ce 100644 (file)
@@ -48,7 +48,6 @@
 #include "widgets/slider_controller.h"
 #include "widgets/tooltips.h"
 
-#include "prompter.h"
 #include "plugin_ui.h"
 #include "gui_thread.h"
 #include "automation_controller.h"
index 83c261e47446cbd87037e986db8c0d273b07ceac..658b7326d9a25ff6b0fc1e5a8b17ea5776706dc0 100644 (file)
@@ -33,7 +33,6 @@
 #include "gui_thread.h"
 #include "keyboard.h"
 #include "location_ui.h"
-#include "prompter.h"
 #include "utils.h"
 #include "public_editor.h"
 #include "ui_config.h"
index c572b2fac8d8a6f4f21d02dd9171d38dad7cf085..7bd7141c4e6353a86f626bd693841d33a0a57d68 100644 (file)
@@ -82,7 +82,6 @@
 #include "plugin_selector.h"
 #include "plugin_ui.h"
 #include "point_selection.h"
-#include "prompter.h"
 #include "region_view.h"
 #include "rgb_macros.h"
 #include "selection.h"
index 14a33ff361c5f304da5c90ab5d8c37943bed7858..1a4a897a72de5924e289a668bed814bed495bcf2 100644 (file)
@@ -63,7 +63,6 @@
 #include "public_editor.h"
 #include "mouse_cursors.h"
 #include "ardour_ui.h"
-#include "prompter.h"
 #include "utils.h"
 #include "route_sorter.h"
 #include "actions.h"
index eb1dd55eced989a901ef9485c688c9bcd75fbaae..011151e29b3c668d21edb54173d0be6e81d5c12a 100644 (file)
@@ -63,7 +63,6 @@
 
 #include "ardour_window.h"
 #include "ardour_ui.h"
-#include "prompter.h"
 #include "plugin_ui.h"
 #include "utils.h"
 #include "gui_thread.h"
index ec29255d90464fc554176a71352d742a8e1ae012..1f5538c5777166e80673b7d82c1237c973209c72 100644 (file)
@@ -41,6 +41,7 @@
 #include "gtkmm2ext/rgb_macros.h"
 
 #include "widgets/choice.h"
+#include "widgets/prompter.h"
 #include "widgets/tooltips.h"
 
 #include "ardour/amp.h"
@@ -3222,7 +3223,7 @@ ProcessorBox::idle_delete_processor (boost::weak_ptr<Processor> weak_processor)
 void
 ProcessorBox::rename_processor (boost::shared_ptr<Processor> processor)
 {
-       ArdourPrompter name_prompter (true);
+       Prompter name_prompter (true);
        string result;
        name_prompter.set_title (_("Rename Processor"));
        name_prompter.set_prompt (_("New name:"));
diff --git a/gtk2_ardour/prompter.cc b/gtk2_ardour/prompter.cc
deleted file mode 100644 (file)
index 6cf9018..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-    Copyright (C) 2002 Paul Davis
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    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., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#include "prompter.h"
-
-ArdourPrompter::ArdourPrompter (bool modal)
-       : ArdourWidgets::Prompter (modal)
-{
-}
-
diff --git a/gtk2_ardour/prompter.h b/gtk2_ardour/prompter.h
deleted file mode 100644 (file)
index b01f845..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
-    Copyright (C) 2002 Paul Davis
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    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., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#ifndef __ardour_gtk_prompter_h__
-#define __ardour_gtk_prompter_h__
-
-#include "widgets/prompter.h"
-
-class ArdourPrompter : public ArdourWidgets::Prompter
-{
-public:
-       ArdourPrompter (bool modal = false);
-};
-
-#endif /* __ardour_gtk_prompter_h__ */
index 7cce7e69796d53a215904d2a7bd1688629a019b3..816365948af31e0686f0840c095d03c04617ee0f 100644 (file)
@@ -59,6 +59,7 @@
 #include "gtkmm2ext/utils.h"
 
 #include "widgets/ardour_button.h"
+#include "widgets/prompter.h"
 #include "widgets/tooltips.h"
 
 #include "ardour_ui.h"
@@ -74,7 +75,6 @@
 #include "paste_context.h"
 #include "playlist_selector.h"
 #include "point_selection.h"
-#include "prompter.h"
 #include "public_editor.h"
 #include "region_view.h"
 #include "rgb_macros.h"
@@ -1125,7 +1125,7 @@ RouteTimeAxisView::set_align_choice (RadioMenuItem* mitem, AlignChoice choice, b
 void
 RouteTimeAxisView::rename_current_playlist ()
 {
-       ArdourPrompter prompter (true);
+       Prompter prompter (true);
        string name;
 
        boost::shared_ptr<Track> tr = track();
@@ -1226,7 +1226,7 @@ RouteTimeAxisView::use_new_playlist (bool prompt, vector<boost::shared_ptr<Playl
                // TODO: The prompter "new" button should be de-activated if the user
                // specifies a playlist name which already exists in the session.
 
-               ArdourPrompter prompter (true);
+               Prompter prompter (true);
 
                if (copy) {
                        prompter.set_title (_("New Copy Playlist"));
index 39283e0136817625c68581e03b81062c1606c84d..a935ec3c5d2633d54046f75547e716e3e09bc1c5 100644 (file)
@@ -54,6 +54,7 @@
 
 #include "widgets/ardour_button.h"
 #include "widgets/binding_proxy.h"
+#include "widgets/prompter.h"
 
 #include "ardour_dialog.h"
 #include "ardour_ui.h"
@@ -66,7 +67,6 @@
 #include "latency_gui.h"
 #include "mixer_strip.h"
 #include "plugin_pin_dialog.h"
-#include "prompter.h"
 #include "rgb_macros.h"
 #include "route_time_axis.h"
 #include "route_ui.h"
@@ -1670,7 +1670,7 @@ RouteUI::verify_new_route_name (const std::string& name)
 void
 RouteUI::route_rename ()
 {
-       ArdourPrompter name_prompter (true);
+       ArdourWidgets::Prompter name_prompter (true);
        string result;
        bool done = false;
 
@@ -1896,7 +1896,7 @@ RouteUI::adjust_latency ()
 }
 
 bool
-RouteUI::process_save_template_prompter (ArdourPrompter& prompter, const std::string& dir)
+RouteUI::process_save_template_prompter (Prompter& prompter, const std::string& dir)
 {
        std::string path;
        std::string safe_name;
@@ -1936,7 +1936,7 @@ RouteUI::save_as_template ()
                return;
        }
 
-       ArdourPrompter prompter (true); // modal
+       Prompter prompter (true); // modal
 
        prompter.set_title (_("Save As Template"));
        prompter.set_prompt (_("Template name:"));
index d4f15f0c7b64fa818970aa043202292f9f9a31b3..011498124ebb810c6b8e47af571097d26e2d72ee 100644 (file)
@@ -57,6 +57,7 @@ namespace Gtk {
 
 namespace ArdourWidgets {
        class ArdourButton;
+       class Prompter;
 }
 
 class ArdourWindow;
@@ -242,7 +243,7 @@ public:
        virtual void map_frozen ();
 
        void adjust_latency ();
-       bool process_save_template_prompter (ArdourPrompter& prompter, const std::string& dir);
+       bool process_save_template_prompter (ArdourWidgets::Prompter& prompter, const std::string& dir);
        void save_as_template ();
 
        static Gtkmm2ext::ActiveState solo_active_state (boost::shared_ptr<ARDOUR::Stripable>);
index d4dd945b460865e47fe388731f87335cd52362cb..775b73607637c8a9058bf9aef46e547dcfc0e8f1 100644 (file)
@@ -31,9 +31,9 @@
 #include "ardour/tempo_map_importer.h"
 
 #include "gtkmm2ext/utils.h"
+#include "widgets/prompter.h"
 
 #include "gui_thread.h"
-#include "prompter.h"
 #include "session_import_dialog.h"
 
 #include "pbd/i18n.h"
@@ -285,7 +285,7 @@ SessionImportDialog::end_dialog ()
 std::pair<bool, string>
 SessionImportDialog::open_rename_dialog (string text, string name)
 {
-       ArdourPrompter prompter(true);
+       ArdourWidgets::Prompter prompter(true);
        string new_name;
 
        prompter.set_name ("Prompter");
index 5664665014152c08241b1ab717c1a3ad9ebd69a9..c9788c8314fcb79a341e433ac42461e53c5570b0 100644 (file)
@@ -63,7 +63,6 @@
 #include "ardour_ui.h"
 #include "editing.h"
 #include "gui_thread.h"
-#include "prompter.h"
 #include "sfdb_ui.h"
 #include "editing.h"
 #include "gain_meter.h"
index 10701563bf3c11a746af7a721405602c4b8cfcd4..7a06c26a6498fe2515a1209142b7e3aae39e8bbd 100644 (file)
@@ -46,7 +46,6 @@
 
 #include "widgets/focus_entry.h"
 
-#include "prompter.h"
 #include "axis_view.h"
 #include "enums.h"
 #include "editing.h"
index 96a5e7229f4e27064e58a72a7fa3d63539a380d7..6b0b4037c453d64f26fa0d495bcf188a716ae6c3 100644 (file)
@@ -199,7 +199,6 @@ gtk2_ardour_sources = [
         'processor_selection.cc',
         'patch_change_dialog.cc',
         'progress_reporter.cc',
-        'prompter.cc',
         'public_editor.cc',
         'quantize_dialog.cc',
         'rc_option_editor.cc',