void ObjectModel::set_path(const Raul::Path& p) { _path = p; _symbol = p.symbol(); INGEN_EMIT_THIS(moved); }
ObjectModel::ObjectModel(Shared::LV2URIMap& uris, const Raul::Path& path) : ResourceImpl(uris, path) , _meta(uris, Raul::URI("http://example.org/FIXME")) , _path(path) , _symbol((path == Path::root()) ? "root" : path.symbol()) { }
/** Rename */ virtual void set_path(const Raul::Path& new_path) { _path = new_path; const char* const new_sym = new_path.symbol(); if (new_sym[0] != '\0') { _symbol = Raul::Symbol(new_sym); } set_uri(Node::path_to_uri(new_path)); }
void set_path(const Raul::Path& path) { remove(); const char* text = (path.is_root()) ? "/" : path.symbol(); Gtk::Label* lab = manage(new Gtk::Label(text)); lab->set_padding(0, 0); lab->show(); add(*lab); if (_view && _view->graph()->path() != path) _view.reset(); }