summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-09-29 10:00:23 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-10-02 18:04:40 -0600
commitf470d3e856e7dee3c6003aeff0c98005822c5f90 (patch)
tree20b9f2d212195a2a7f04442e4365d6715e05e385 /gtk2_ardour
parentbc3b65834991b126843e85618c2f5d1d3c7e9389 (diff)
remove all use of NO_PLUGIN_STATE #ifdef
We determined several years that we should never ever do this, and changed the basis for the free/demo copy because of that.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui_startup.cc44
-rw-r--r--gtk2_ardour/plugin_ui.cc38
2 files changed, 0 insertions, 82 deletions
diff --git a/gtk2_ardour/ardour_ui_startup.cc b/gtk2_ardour/ardour_ui_startup.cc
index e9875e9338..8e97cd5a98 100644
--- a/gtk2_ardour/ardour_ui_startup.cc
+++ b/gtk2_ardour/ardour_ui_startup.cc
@@ -551,50 +551,6 @@ ARDOUR_UI::starting ()
}
}
-#ifdef NO_PLUGIN_STATE
-
- ARDOUR::RecentSessions rs;
- ARDOUR::read_recent_sessions (rs);
-
- string path = Glib::build_filename (user_config_directory(), ".iknowaboutfreeversion");
-
- if (!Glib::file_test (path, Glib::FILE_TEST_EXISTS) && !rs.empty()) {
-
- /* already used Ardour, have sessions ... warn about plugin state */
-
- ArdourDialog d (_("Free/Demo Version Warning"), true);
- Label l;
- Button b (string_compose (_("Subscribe and support development of %1"), PROGRAM_NAME));
- CheckButton c (_("Don't warn me about this again"));
-
- l.set_markup (string_compose (_("<span weight=\"bold\" size=\"large\">%1</span>\n\n<b>%2</b>\n\n<i>%3</i>\n\n%4"),
- string_compose (_("This is a free/demo version of %1"), PROGRAM_NAME),
- _("It will not restore OR save any plugin settings"),
- _("If you load an existing session with plugin settings\n"
- "they will not be used and will be lost."),
- _("To get full access to updates without this limitation\n"
- "consider becoming a subscriber for a low cost every month.")));
- l.set_justify (JUSTIFY_CENTER);
-
- b.signal_clicked().connect (mem_fun(*this, &ARDOUR_UI::launch_subscribe));
-
- d.get_vbox()->pack_start (l, true, true);
- d.get_vbox()->pack_start (b, false, false, 12);
- d.get_vbox()->pack_start (c, false, false, 12);
-
- d.add_button (_("Quit now"), RESPONSE_CANCEL);
- d.add_button (string_compose (_("Continue using %1"), PROGRAM_NAME), RESPONSE_OK);
-
- d.show_all ();
-
- c.signal_toggled().connect (sigc::hide_return (sigc::bind (sigc::ptr_fun (toggle_file_existence), path)));
-
- if (d.run () != RESPONSE_OK) {
- _exit (EXIT_SUCCESS);
- }
- }
-#endif
-
/* go get a session */
const bool new_session_required = (ARDOUR_COMMAND_LINE::new_session || (!ARDOUR::Profile->get_mixbus() && brand_new_user));
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index c60214c5a4..a5962c140f 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -633,27 +633,9 @@ PlugUIBase::preset_selected (Plugin::PresetRecord preset)
}
}
-#ifdef NO_PLUGIN_STATE
-static bool seen_saving_message = false;
-
-static void show_no_plugin_message()
-{
- info << string_compose (_("Plugin presets are not supported in this build of %1. Consider paying for a full version"),
- PROGRAM_NAME)
- << endmsg;
- info << _("To get full access to updates without this limitation\n"
- "consider becoming a subscriber for a low cost every month.")
- << endmsg;
- info << X_("https://community.ardour.org/s/subscribe")
- << endmsg;
- ARDOUR_UI::instance()->popup_error(_("Plugin presets are not supported in this build, see the Log window for more information."));
-}
-#endif
-
void
PlugUIBase::add_plugin_setting ()
{
-#ifndef NO_PLUGIN_STATE
NewPluginPresetDialog d (plugin, _("New Preset"));
switch (d.run ()) {
@@ -672,43 +654,23 @@ PlugUIBase::add_plugin_setting ()
}
break;
}
-#else
- if (!seen_saving_message) {
- seen_saving_message = true;
- show_no_plugin_message();
- }
-#endif
}
void
PlugUIBase::save_plugin_setting ()
{
-#ifndef NO_PLUGIN_STATE
string const name = _preset_combo.get_text ();
plugin->remove_preset (name);
Plugin::PresetRecord const r = plugin->save_preset (name);
if (!r.uri.empty ()) {
plugin->load_preset (r);
}
-#else
- if (!seen_saving_message) {
- seen_saving_message = true;
- show_no_plugin_message();
- }
-#endif
}
void
PlugUIBase::delete_plugin_setting ()
{
-#ifndef NO_PLUGIN_STATE
plugin->remove_preset (_preset_combo.get_text ());
-#else
- if (!seen_saving_message) {
- seen_saving_message = true;
- show_no_plugin_message();
- }
-#endif
}
void