UIConfiguration::store_color_theme ()
{
XMLNode* root;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
root = new XMLNode("Ardour");
UIConfiguration::get_state ()
{
XMLNode* root;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
root = new XMLNode("Ardour");
UIConfiguration::get_variables (std::string which_node)
{
XMLNode* node;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
node = new XMLNode (which_node);
void
UIConfiguration::load_modifiers (XMLNode const & node)
{
- PBD::LocaleGuard lg ("POSIX");
+ PBD::LocaleGuard lg ("C");
XMLNodeList const nlist = node.children();
XMLNodeConstIterator niter;
XMLProperty const *name;
return;
}
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
XMLNode* node = new XMLNode(X_("Videomonitor"));
if (!node) return;
if (!_session) { return ; }
_session->SaveSession.connect_same_thread (sessionsave, boost::bind (&VideoTimeLine::save_session, this));
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
XMLNode* node = _session->extra_xml (X_("Videotimeline"));
int
VideoTimeLine::set_state (const XMLNode& node, int /*version*/)
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
const XMLProperty* propoffset = node.property (X_("VideoOffset"));
if (propoffset) {
video_offset = atoll(propoffset->value());
VideoTimeLine::get_state ()
{
XMLNode* node = new XMLNode (X_("Videotimeline"));
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
node->add_property (X_("VideoOffset"), video_offset_p);
return *node;
}
{
XMLNode& node (Diskstream::get_state());
char buf[64] = "";
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
boost::shared_ptr<ChannelList> c = channels.reader();
snprintf (buf, sizeof(buf), "%u", (unsigned int) c->size());
XMLNodeIterator niter;
uint32_t nchans = 1;
XMLNode* capture_pending_node = 0;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
/* prevent write sources from being created */
{
XMLNode* fnode;
XMLProperty* prop;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
/* This is called after all session state has been restored but before
have been made ports and connections are established.
void
AUPlugin::add_state (XMLNode* root) const
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
CFDataRef xmlData;
CFPropertyListRef propertyList;
{
int ret = -1;
CFPropertyListRef propertyList;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (node.name() != state_node_name()) {
error << _("Bad node sent to AUPlugin::set_state") << endmsg;
{
XMLNode& node (Region::state ());
char buf[64];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
snprintf (buf, sizeof (buf), "%u", (uint32_t) _sources.size());
node.add_property ("channels", buf);
{
XMLNode& node (get_basic_state());
XMLNode *child;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
child = node.add_child ("Envelope");
{
const XMLNodeList& nlist = node.children();
const XMLProperty *prop;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
boost::shared_ptr<Playlist> the_playlist (_playlist.lock());
suspend_property_changes ();
{
XMLNode* root = new XMLNode (X_("AutomationList"));
char buf[64];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
root->add_property ("automation-id", EventTypeMap::instance().to_symbol(_parameter));
int
AutomationList::set_state (const XMLNode& node, int version)
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
XMLNodeList nlist = node.children();
XMLNode* nsos;
XMLNodeIterator niter;
{
XMLNode* node = new XMLNode ("Diskstream");
char buf[64];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
node->add_property ("flags", enum_2_string (_flags));
node->add_property ("playlist", _playlist->name());
string str;
vector<string>::iterator ci;
int n;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
Glib::Threads::Mutex::Lock lm (io_lock);
node->add_property("name", _name);
const XMLProperty* prop;
XMLNodeConstIterator iter;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
/* force use of non-localized representation of decimal point,
since we use it a lot in XML files and so forth.
{
const XMLProperty* prop;
XMLNodeConstIterator iter;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
/* force use of non-localized representation of decimal point,
since we use it a lot in XML files and so forth.
{
XMLNode *child;
char buf[16];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
for (uint32_t i = 0; i < parameter_count(); ++i){
const char *data;
uint32_t port_id;
#endif
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;
const char *data;
uint32_t port_id;
#endif
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (node.name() != state_node_name()) {
error << _("Bad node sent to LadspaPlugin::set_state") << endmsg;
XMLNode* child;
char buf[16];
- LocaleGuard lg(X_("POSIX"));
+ LocaleGuard lg(X_("C"));
for (uint32_t i = 0; i < parameter_count(); ++i) {
if (parameter_is_input(i) && parameter_is_control(i)) {
const char* sym;
const char* value;
uint32_t port_id;
- LocaleGuard lg(X_("POSIX"));
+ LocaleGuard lg(X_("C"));
if (node.name() != state_node_name()) {
error << _("Bad node sent to LV2Plugin::set_state") << endmsg;
{
XMLNode& node (Diskstream::get_state());
char buf[64];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (_write_source && _session.get_record_enabled()) {
XMLNodeList nlist = node.children();
XMLNodeIterator niter;
XMLNode* capture_pending_node = 0;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
/* prevent write sources from being created */
{
XMLNode* fnode;
XMLProperty* prop;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
/* This is called after all session state has been restored but before
have been made ports and connections are established.
XMLNode&
MonitorProcessor::state (bool full)
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
XMLNode& node (Processor::state (full));
char buf[64];
XMLNodeList nlist = node.children ();
XMLNodeConstIterator niter;
const XMLProperty *prop;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if ((prop = node.property (X_("bypassed"))) != 0) {
set_bypassed (string_is_affirmative (prop->value ()));
Plugin::get_state ()
{
XMLNode* root = new XMLNode (state_node_name ());
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
root->add_property (X_("last-preset-uri"), _last_preset.uri);
root->add_property (X_("last-preset-label"), _last_preset.label);
RCConfiguration::get_state ()
{
XMLNode* root;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
root = new XMLNode("Ardour");
RCConfiguration::get_variables ()
{
XMLNode* node;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
node = new XMLNode ("Config");
XMLNode *node = new XMLNode ("Region");
char buf[64];
char buf2[64];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
const char* fe = NULL;
/* custom version of 'add_properties (*node);'
SessionConfiguration::get_state ()
{
XMLNode* root;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
root = new XMLNode ("Ardour");
root->add_child_nocopy (get_variables ());
SessionConfiguration::get_variables ()
{
XMLNode* node;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
node = new XMLNode ("Config");
XMLNode* node;
if (((node = find_named_node (root, X_("Config"))) != 0)) {
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
set_variables(*node);
info << _("Loaded custom session defaults.") << endmsg;
} else {
int
Session::load_options (const XMLNode& node)
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
config.set_variables (node);
return 0;
}
{
XMLNode* node = new XMLNode (X_("Speakers"));
char buf[32];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
for (vector<Speaker>::const_iterator i = _speakers.begin(); i != _speakers.end(); ++i) {
XMLNode* speaker = new XMLNode (X_("Speaker"));
XMLNodeConstIterator i;
const XMLProperty* prop;
double a, e, d;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
int n = 0;
_speakers.clear ();
{
const XMLProperty *prop;
BBT_Time start;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if ((prop = node.property ("start")) == 0) {
error << _("TempoSection XML node has no \"start\" property") << endmsg;
{
XMLNode *root = new XMLNode (xml_state_node_name);
char buf[256];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
snprintf (buf, sizeof (buf), "%" PRIu32 "|%" PRIu32 "|%" PRIu32,
start().bars,
{
const XMLProperty *prop;
BBT_Time start;
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if ((prop = node.property ("start")) == 0) {
error << _("MeterSection XML node has no \"start\" property") << endmsg;
{
XMLNode *root = new XMLNode (xml_state_node_name);
char buf[256];
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
snprintf (buf, sizeof (buf), "%" PRIu32 "|%" PRIu32 "|%" PRIu32,
start().bars,
void
VSTPlugin::add_state (XMLNode* root) const
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
if (_plugin->flags & 32 /* effFlagsProgramsChunks */) {
int
VSTPlugin::set_state (const XMLNode& node, int version)
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
int ret = -1;
if (node.name() != state_node_name()) {
string
SVAModifier::to_string () const
{
- PBD::LocaleGuard lg ("POSIX");
+ PBD::LocaleGuard lg ("C");
stringstream ss;
switch (type) {
Controllable::get_state ()
{
XMLNode* node = new XMLNode (xml_node_name);
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
char buf[64];
node->add_property (X_("name"), _name); // not reloaded from XML state, just there to look at
int
Controllable::set_state (const XMLNode& node, int /*version*/)
{
- LocaleGuard lg (X_("POSIX"));
+ LocaleGuard lg (X_("C"));
const XMLProperty* prop;
Stateful::save_extra_xml (node);