2019-09-23 16:49:06 -04:00
/*
* Copyright ( C ) 2005 - 2007 Doug McLain < doug @ nostar . net >
* Copyright ( C ) 2005 - 2017 Tim Mayberry < mojofunk @ gmail . com >
* Copyright ( C ) 2005 - 2019 Paul Davis < paul @ linuxaudiosystems . com >
* Copyright ( C ) 2005 Karsten Wiese < fzuuzf @ googlemail . com >
* Copyright ( C ) 2005 Taybin Rutkin < taybin @ taybin . com >
* Copyright ( C ) 2006 - 2015 David Robillard < d @ drobilla . net >
* Copyright ( C ) 2007 - 2012 Carl Hetherington < carl @ carlh . net >
* Copyright ( C ) 2008 - 2010 Sakari Bergen < sakari . bergen @ beatwaves . net >
* Copyright ( C ) 2012 - 2019 Robin Gareus < robin @ gareus . org >
* Copyright ( C ) 2013 - 2015 Colin Fletcher < colin . m . fletcher @ googlemail . com >
* Copyright ( C ) 2013 - 2016 John Emmas < john @ creativepost . co . uk >
* Copyright ( C ) 2013 - 2016 Nick Mainsbridge < mainsbridge @ gmail . com >
* Copyright ( C ) 2014 - 2018 Ben Loftis < ben @ harrisonconsoles . com >
* Copyright ( C ) 2015 André Nusser < andre . nusser @ googlemail . com >
* Copyright ( C ) 2016 - 2018 Len Ovens < len @ ovenwerks . net >
* Copyright ( C ) 2017 Johannes Mueller < github @ johannes - mueller . org >
*
* 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 . ,
* 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA .
*/
# ifdef WAF_BUILD
# include "gtk2ardour-config.h"
# include "gtk2ardour-version.h"
# endif
# include "pbd/openuri.h"
2019-12-14 17:31:24 -05:00
# include "ardour_message.h"
2019-09-23 16:49:06 -04:00
# include "ardour_ui.h"
2020-08-19 11:40:02 -04:00
# include "pbd/i18n.h"
2019-09-23 16:49:06 -04:00
using namespace ARDOUR ;
using namespace PBD ;
using namespace Gtk ;
using namespace std ;
void
ARDOUR_UI : : launch_chat ( )
{
2019-12-14 17:31:24 -05:00
ArdourMessageDialog dialog ( _ ( " <b>Just ask and wait for an answer. \n It may take from minutes to hours.</b> " ) , true ) ;
2019-09-23 16:49:06 -04:00
dialog . set_title ( _ ( " About the Chat " ) ) ;
dialog . set_secondary_text ( _ ( " When you're inside the chat just ask your question and wait for an answer. The chat is occupied by real people with real lives so many of them are passively online and might not read your question before minutes or hours later. \n So please be patient and wait for an answer. \n \n You should just leave the chat window open and check back regularly until someone has answered your question. " ) ) ;
switch ( dialog . run ( ) ) {
case RESPONSE_OK :
2022-10-05 16:41:01 -04:00
open_uri ( " https://ardour.org/chat " ) ;
2019-09-23 16:49:06 -04:00
break ;
default :
break ;
}
}
void
2020-05-28 14:26:24 -04:00
ARDOUR_UI : : launch_tutorial ( )
2019-09-23 16:49:06 -04:00
{
PBD : : open_uri ( Config - > get_tutorial_manual_url ( ) ) ;
}
void
ARDOUR_UI : : launch_reference ( )
{
PBD : : open_uri ( Config - > get_reference_manual_url ( ) ) ;
}
void
ARDOUR_UI : : launch_tracker ( )
{
2022-10-05 16:41:01 -04:00
PBD : : open_uri ( " https://tracker.ardour.org " ) ;
2019-09-23 16:49:06 -04:00
}
void
ARDOUR_UI : : launch_subscribe ( )
{
2022-10-05 16:45:03 -04:00
PBD : : open_uri ( " https://community.ardour.org/subscribe " ) ;
2019-09-23 16:49:06 -04:00
}
void
ARDOUR_UI : : launch_website ( )
{
2022-10-05 16:41:01 -04:00
PBD : : open_uri ( " https://ardour.org " ) ;
2019-09-23 16:49:06 -04:00
}
void
ARDOUR_UI : : launch_website_dev ( )
{
2022-10-05 16:41:01 -04:00
PBD : : open_uri ( " https://ardour.org/development.html " ) ;
2019-09-23 16:49:06 -04:00
}
void
ARDOUR_UI : : launch_forums ( )
{
PBD : : open_uri ( " https://community.ardour.org/forums " ) ;
}
void
ARDOUR_UI : : launch_howto_report ( )
{
2022-10-05 16:41:01 -04:00
PBD : : open_uri ( " https://ardour.org/reporting_bugs " ) ;
2019-09-23 16:49:06 -04:00
}