Beispiel #1
0
void
ObjectModel::set_path(const Raul::Path& p)
{
	_path   = p;
	_symbol = p.symbol();
	INGEN_EMIT_THIS(moved);
}
Beispiel #2
0
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())
{
}
Beispiel #3
0
	/** 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));
	}
Beispiel #4
0
		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();
		}