//attr_connected bool Ocio_log_convert::attr_connected(std::string attr_name) { //p_plug MPlug p_plug = get_plug(attr_name); //return return p_plug.isConnected(); };
//attribute_exists bool Ocio_log_convert::attribute_exists(std::string attr_name) { //p_plug MPlug p_plug = get_plug(attr_name); return !p_plug.isNull(); };
//set_int_attribute void Ocio_log_convert::set_int_attribute(std::string attr_name, int value) { //p_attr MPlug p_attr = get_plug(attr_name); //set value p_attr.setInt(value); };
//set_string_attribute void Ocio_log_convert::set_string_attribute(std::string attr_name, std::string value) { //p_attr MPlug p_attr = get_plug(attr_name); //ms_value MString ms_value(value.c_str()); //set value p_attr.setString(ms_value); };
void resource_dialog_prev::on_m_plugin_tb_pressed() { bbtk.map()->make_current(); select_res_dialog get_plug(this); get_plug.show_type<nsplugin>(); if (get_plug.exec() == QDialog::Accepted) { nsplugin * plg = get_plug.selected_resource<nsplugin>(); m_ui.m_plugin_le->setText(plg->name().c_str()); } m_ui.m_preview->make_current(); }
//get_string_attribute std::string Ocio_log_convert::get_string_attribute(std::string attr_name) { //p_attr MPlug p_attr = get_plug(attr_name); //ms_plug_value MString ms_plug_value = p_attr.asString(); //std_plug_value std::string std_plug_value(ms_plug_value.asChar()); return std_plug_value; };
// Get Brick connected to this Brick t_brick *get_brick_connected( t_brick *brick, int dir) { t_plug *plug = get_plug( brick, dir); t_plug *p; t_brick *target = NULL; if( dir == EAST) { p = plug->dst; if( p) target = p->brick; } else { p = plug->src; if( p) target = p->brick; } return target; }