diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-12-12 14:43:24 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-12-12 14:43:24 +0000 |
commit | bc89fe0147c04b67141936d109c00dfd4d69cc4b (patch) | |
tree | 544ff450c40fe1f43853a8420228a26f27f1eafb /gtk2_ardour/nag.h | |
parent | 30daaebaa2d90d6b0e8673143ccc3cacd7bd1753 (diff) |
most of the 2.X->3.0 commit (up to rev 4299) except for gtk2_ardour/editor_canvas.cc; builds and runs and does a few specific things but expect it to be buggy for a while yet
git-svn-id: svn://localhost/ardour2/branches/3.0@4313 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/nag.h')
-rw-r--r-- | gtk2_ardour/nag.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gtk2_ardour/nag.h b/gtk2_ardour/nag.h new file mode 100644 index 0000000000..5872e28f3b --- /dev/null +++ b/gtk2_ardour/nag.h @@ -0,0 +1,39 @@ +#ifndef __gtk_ardour_nag_h__ +#define __gtk_ardour_nag_h__ + +#include "ardour_dialog.h" + +#include <gtkmm/label.h> +#include <gtkmm/radiobutton.h> +#include <gtkmm/buttonbox.h> + +class NagScreen : public ArdourDialog +{ + public: + ~NagScreen(); + + static NagScreen* maybe_nag (std::string context); + void nag (); + + private: + NagScreen (std::string context, bool maybe_subscriber); + + Gtk::Label message; + Gtk::VButtonBox button_box; + Gtk::RadioButtonGroup button_group; + Gtk::RadioButton donate_button; + Gtk::RadioButton subscribe_button; + Gtk::RadioButton existing_button; + Gtk::RadioButton next_time_button; + Gtk::RadioButton never_again_button; + + void mark_never_again (); + void mark_subscriber (); + void mark_affirmed_subscriber (); + void offer_to_donate (); + void offer_to_subscribe (); + bool open_uri (const char*); + static bool is_subscribed (bool& really); +}; + +#endif /* __gtk_ardour_nag_h__ */ |