projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve size and positioning of Tabbable's after being torn off, hidden, reshown...
[ardour.git]
/
libs
/
ardour
/
pannable.cc
diff --git
a/libs/ardour/pannable.cc
b/libs/ardour/pannable.cc
index fb890a5e341d409c5fc4c847adece87113e926d4..f589024435ed281f6953c82c08f8ecc363eda5ac 100644
(file)
--- a/
libs/ardour/pannable.cc
+++ b/
libs/ardour/pannable.cc
@@
-20,6
+20,7
@@
#include "pbd/error.h"
#include "pbd/convert.h"
#include "pbd/compose.h"
#include "pbd/error.h"
#include "pbd/convert.h"
#include "pbd/compose.h"
+#include "pbd/boost_debug.h"
#include "ardour/debug.h"
#include "ardour/automation_control.h"
#include "ardour/debug.h"
#include "ardour/automation_control.h"
@@
-48,6
+49,8
@@
Pannable::Pannable (Session& s)
, _has_state (false)
, _responding_to_control_auto_state_change (0)
{
, _has_state (false)
, _responding_to_control_auto_state_change (0)
{
+ //boost_debug_shared_ptr_mark_interesting (this, "pannable");
+
add_control (pan_azimuth_control);
add_control (pan_elevation_control);
add_control (pan_width_control);
add_control (pan_azimuth_control);
add_control (pan_elevation_control);
add_control (pan_width_control);
@@
-182,7
+185,7
@@
Pannable::get_state ()
}
XMLNode&
}
XMLNode&
-Pannable::state (bool
full
)
+Pannable::state (bool
/*full*/
)
{
XMLNode* node = new XMLNode (X_("Pannable"));
{
XMLNode* node = new XMLNode (X_("Pannable"));
@@
-236,30
+239,30
@@
Pannable::set_state (const XMLNode& root, int version)
/* old school (alpha1-6) XML info */
/* old school (alpha1-6) XML info */
- if ((*niter)->name() ==
pan_azimuth_control->name(
)) {
+ if ((*niter)->name() ==
X_("azimuth"
)) {
prop = (*niter)->property (X_("value"));
if (prop) {
prop = (*niter)->property (X_("value"));
if (prop) {
- pan_azimuth_control->set_value (atof (prop->value()));
+ pan_azimuth_control->set_value (atof (prop->value())
, Controllable::NoGroup
);
}
}
- } else if ((*niter)->name() ==
pan_width_control->name(
)) {
+ } else if ((*niter)->name() ==
X_("width"
)) {
prop = (*niter)->property (X_("value"));
if (prop) {
prop = (*niter)->property (X_("value"));
if (prop) {
- pan_width_control->set_value (atof (prop->value()));
+ pan_width_control->set_value (atof (prop->value())
, Controllable::NoGroup
);
}
}
- } else if ((*niter)->name() ==
pan_elevation_control->name(
)) {
+ } else if ((*niter)->name() ==
X_("elevation"
)) {
prop = (*niter)->property (X_("value"));
if (prop) {
prop = (*niter)->property (X_("value"));
if (prop) {
- pan_elevation_control->set_value (atof (prop->value()));
+ pan_elevation_control->set_value (atof (prop->value())
, Controllable::NoGroup
);
}
}
- } else if ((*niter)->name() ==
pan_frontback_control->name(
)) {
+ } else if ((*niter)->name() ==
X_("frontback"
)) {
prop = (*niter)->property (X_("value"));
if (prop) {
prop = (*niter)->property (X_("value"));
if (prop) {
- pan_frontback_control->set_value (atof (prop->value()));
+ pan_frontback_control->set_value (atof (prop->value())
, Controllable::NoGroup
);
}
}
- } else if ((*niter)->name() ==
pan_lfe_control->name(
)) {
+ } else if ((*niter)->name() ==
X_("lfe"
)) {
prop = (*niter)->property (X_("value"));
if (prop) {
prop = (*niter)->property (X_("value"));
if (prop) {
- pan_lfe_control->set_value (atof (prop->value()));
+ pan_lfe_control->set_value (atof (prop->value())
, Controllable::NoGroup
);
}
}
}
}
}
}