#include "new_session_dialog.h"
#include "about.h"
#include "splash.h"
+#include "nag.h"
#include "utils.h"
#include "gui_thread.h"
#include "theme_manager.h"
about->show_all ();
}
+void
+ARDOUR_UI::launch_chat ()
+{
+#ifdef __APPLE__
+ NagScreen::open_uri("http://widget.mibbit.com/?settings=c06958ab4aa3b0c077669dd47e0c138e&server=irc.freenode.net&channel=%23ardour-osx&noServerNotices=true&noServerMotd=true");
+#else
+ NagScreen::open_uri("http://widget.mibbit.com/?settings=c06958ab4aa3b0c077669dd47e0c138e&server=irc.freenode.net&channel=%23ardour&noServerNotices=true&noServerMotd=true");
+#endif
+}
+
void
ARDOUR_UI::hide_about ()
{
act = ActionManager::register_toggle_action (common_actions, X_("ToggleBigClock"), _("Big Clock"), mem_fun(*this, &ARDOUR_UI::toggle_big_clock_window));
ActionManager::session_sensitive_actions.push_back (act);
ActionManager::register_action (common_actions, X_("About"), _("About"), mem_fun(*this, &ARDOUR_UI::show_about));
+ ActionManager::register_action (common_actions, X_("Chat"), _("Chat"), mem_fun(*this, &ARDOUR_UI::launch_chat));
ActionManager::register_toggle_action (common_actions, X_("ToggleThemeManager"), _("Theme Manager"), mem_fun(*this, &ARDOUR_UI::toggle_theme_manager));
ActionManager::register_toggle_action (common_actions, X_("ToggleKeyEditor"), _("Keybindings"), mem_fun(*this, &ARDOUR_UI::toggle_key_editor));
static NagScreen* maybe_nag (std::string context);
void nag ();
+ static bool open_uri (const char*);
private:
NagScreen (std::string context, bool maybe_subscriber);
void mark_affirmed_subscriber ();
void offer_to_donate ();
void offer_to_subscribe ();
- bool open_uri (const char*);
static bool is_subscribed (bool& really);
};