47 snprintf (buf,
sizeof (buf),
"%f", editor.
get_y_origin());
59 if (node.
name() !=
X_(
"SelectionMemento")) {
63 if ((prop = node.
property (
"mouse-mode"))) {
68 if ((prop = node.
property (
"zoom"))) {
74 if ((prop = node.
property (
"left-frame")) != 0) {
76 if (sscanf (prop->
value().c_str(),
"%" PRId64, &pos) == 1) {
84 if ((prop = node.
property (
"y-origin")) != 0) {
89 for (XMLNodeList::const_iterator i = children.begin(); i != children.end(); ++i) {
const std::string & value() const
virtual Editing::MouseMode current_mouse_mode() const =0
virtual void reset_y_origin(double pos)=0
const std::string & name() const
Representation of the interface of the Editor class.
int set_state(const XMLNode &, int version)
const XMLNodeList & children(const std::string &str=std::string()) const
std::list< XMLNode * > XMLNodeList
XMLProperty * property(const char *)
virtual framecnt_t get_current_zoom() const =0
const char * enum2str(SnapType m)
virtual double get_y_origin() const =0
virtual Selection & get_selection() const =0
XMLProperty * add_property(const char *name, const std::string &value)
static PublicEditor & instance()
void add_child_nocopy(XMLNode &)
MouseMode str2mousemode(const string &str)
virtual void set_mouse_mode(Editing::MouseMode m, bool force=false)=0
XMLNode & get_state() const
virtual framepos_t leftmost_sample() const =0
virtual void reset_x_origin(framepos_t frame)=0
double atof(const string &s)
virtual void reset_zoom(framecnt_t)=0
int set_state(XMLNode const &, int)