using namespace Gtkmm2ext;
using namespace ARDOUR;
-static string poor_mans_glob (string path)
-{
- string copy = path;
- replace_all (copy, "~", Glib::get_home_dir());
- return copy;
-}
-
void
OptionEditorComponent::add_widget_to_page (OptionEditorPage* p, Gtk::Widget* w)
{
using namespace ARDOUR;
using namespace ARDOUR_UI_UTILS;
-static string poor_mans_glob (string path)
-{
- string copy = path;
- replace_all (copy, "~", Glib::get_home_dir());
- return copy;
-}
-
SessionDialog::SessionDialog (bool require_new, const std::string& session_name, const std::string& session_path, const std::string& template_name, bool cancel_not_quit)
: ArdourDialog (_("Session Setup"), true, true)
, new_only (require_new)
ArdourStartup* ArdourStartup::the_startup = 0;
-static string poor_mans_glob (string path)
-{
- string copy = path;
- replace_all (copy, "~", Glib::get_home_dir());
- return copy;
-}
-
ArdourStartup::ArdourStartup ()
: _response (RESPONSE_OK)
, config_modified (false)
RelativePath="..\pbd\receiver.h"
>
</File>
+ <File
+ RelativePath="..\pbd\replace_all.h"
+ >
+ </File>
<File
RelativePath="..\pbd\resource.h"
>
#include "pbd/libpbd_visibility.h"
LIBPBD_API int replace_all (std::string& str, const std::string& target, const std::string& replacement);
+LIBPBD_API std::string poor_mans_glob (std::string path);
#endif // __pbd_replace_all_h__
*/
#include "pbd/replace_all.h"
+#include "glibmm/miscutils.h"
int
replace_all (std::string& str,
return cnt;
}
+std::string
+poor_mans_glob (std::string path)
+{
+ std::string copy = path;
+ replace_all (copy, "~", Glib::get_home_dir());
+ return copy;
+}
+