diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-09 13:44:22 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-09 13:44:22 +0000 |
commit | e701adea419300f2cf7e760f14e7b17b9046b478 (patch) | |
tree | 5c2fe2575f023bf73767ec89dfa61efc9f2049c8 /libs | |
parent | e1d730705636c7219da711eb46cbaf157849f560 (diff) |
add code to display announcements, and parameterize several URL's used in the program
git-svn-id: svn://localhost/ardour2/branches/3.0@14197 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/rc_configuration_vars.h | 8 | ||||
-rw-r--r-- | libs/pbd/openuri.cc | 5 | ||||
-rw-r--r-- | libs/pbd/pbd/openuri.h | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/libs/ardour/ardour/rc_configuration_vars.h b/libs/ardour/ardour/rc_configuration_vars.h index c153bfd34a..1564d01315 100644 --- a/libs/ardour/ardour/rc_configuration_vars.h +++ b/libs/ardour/ardour/rc_configuration_vars.h @@ -206,3 +206,11 @@ CONFIG_VARIABLE (bool, use_tooltips, "use-tooltips", true) CONFIG_VARIABLE (std::string, mixer_strip_visibility, "mixer-strip-visibility", "PhaseInvert,SoloSafe,SoloIsolated,Group,MeterPoint") CONFIG_VARIABLE (bool, allow_non_quarter_pulse, "allow-non-quarter-pulse", false) CONFIG_VARIABLE (bool, show_region_gain, "show-region-gain", false) + +/* web addresses used in the program */ + +CONFIG_VARIABLE (std::string, osx_pingback_url, "osx-pingback-url", "https://community.ardour.org/pingback/osx/") +CONFIG_VARIABLE (std::string, linux_pingback_url, "linux-pingback-url", "https://community.ardour.org/pingback/linux/") +CONFIG_VARIABLE (std::string, tutorial_manual_url, "tutorial-manual-url", "http://ardour.org/flossmanual") +CONFIG_VARIABLE (std::string, reference_manual_url, "reference-manual-url", "http://manual.ardour.org/") +CONFIG_VARIABLE (std::string, updates_url, "updates-url", "http://ardour.org/whatsnew.html") diff --git a/libs/pbd/openuri.cc b/libs/pbd/openuri.cc index a43c78a792..45154d0ad1 100644 --- a/libs/pbd/openuri.cc +++ b/libs/pbd/openuri.cc @@ -55,3 +55,8 @@ PBD::open_uri (const char* uri) #endif } +bool +PBD::open_uri (const std::string& uri) +{ + return open_uri (uri.c_str()); +} diff --git a/libs/pbd/pbd/openuri.h b/libs/pbd/pbd/openuri.h index 0e74c6da90..ec17b5a34a 100644 --- a/libs/pbd/pbd/openuri.h +++ b/libs/pbd/pbd/openuri.h @@ -20,8 +20,11 @@ #ifndef __libpbd_openuri_h__ #define __libpbd_openuri_h__ +#include <string> + namespace PBD { bool open_uri (const char*); + bool open_uri (const std::string&); } #endif |