21 #include "gtk2ardour-config.h"
25 #include <gtkmm/stock.h>
42 , donate_button (button_group,
_(
"I'd like to make a one-time donation"))
43 , subscribe_button (button_group,
_(
"Tell me more about becoming a subscriber"))
44 , existing_button (button_group,
_(
"I'm already a subscriber!"))
45 , next_time_button (button_group,
_(
"Ask about this the next time I export"))
46 , never_again_button (button_group,
_(
"Never ever ask me about this again"))
49 message.set_text (
_(
"Congratulations on your session export.\n\n\
50 It looks as if you may already be a subscriber. If so, thanks, and sorry\n\
51 to bother you again about this - I'm working on improving our subscriber system\n\
52 so that I don't have to keep annoying you with this message.\n\n\
53 If you're not a subscriber, perhaps you might consider supporting my work\n\
54 on Ardour with either a one-time donation or subscription. Nothing will \n\
55 happen if you choose not to do so. However Ardour's continuing development\n\
56 relies on a stable, sustainable income stream. Thanks for using Ardour!"));
58 message.set_text (
_(
"Congratulations on your session export.\n\n\
59 I hope you find Ardour a useful tool. I'd like to ask you to consider supporting\n\
60 its development with either a one-time donation or subscription. Nothing\n\
61 will happen if you choose not to do so. However Ardour's continuing development\n\
62 relies on a stable, sustainable income stream. Thanks for using Ardour!"));
71 get_vbox()->set_spacing (12);
72 get_vbox()->pack_start (
message);
75 set_border_width (12);
76 add_button (Stock::OK, RESPONSE_ACCEPT);
88 int response = run ();
114 bool really_subscribed;
115 bool maybe_subscribed;
119 if (Glib::file_test (path, Glib::FILE_TEST_EXISTS)) {
125 if (really_subscribed) {
129 return new NagScreen (why, maybe_subscribed);
139 ofstream nagfile (path.c_str());
149 ofstream subsfile (path.c_str());
159 ofstream subsfile (path.c_str());
176 if (file_test (path, FILE_TEST_EXISTS)) {
182 if (file_test (path, FILE_TEST_EXISTS)) {
204 const char* uri =
"http://ardour.org/subscribe";
void offer_to_subscribe()
Gtk::RadioButton next_time_button
Gtk::RadioButton subscribe_button
Gtk::RadioButton donate_button
static NagScreen * maybe_nag(std::string context)
LIBARDOUR_API std::string user_config_directory(int version=-1)
LIBARDOUR_API RCConfiguration * Config
static bool is_subscribed(bool &really)
Gtk::VButtonBox button_box
LIBPBD_API bool open_uri(const char *)
Gtk::RadioButton never_again_button
void mark_affirmed_subscriber()
NagScreen(std::string context, bool maybe_subscriber)
std::string string_compose(const std::string &fmt, const T1 &o1)
Gtk::RadioButton existing_button