void FePresent::script_do_update( FeBasePresentable *bp ) { FePresent *fep = script_get_fep(); if ( fep ) { bp->on_new_list( fep->m_feSettings ); bp->on_new_selection( fep->m_feSettings ); fep->flag_redraw(); } }
void FePresent::script_do_update( FeBaseTextureContainer *tc ) { FePresent *fep = script_get_fep(); if ( fep ) { tc->on_new_list( fep->m_feSettings, false ); tc->on_new_selection( fep->m_feSettings ); fep->flag_redraw(); } }
std::string FePresent::script_get_base_path() { std::string path; FePresent *fep = script_get_fep(); if ( fep ) { FeSettings *fes = fep->get_fes(); if ( fes ) { int script_id = fep->get_script_id(); if ( script_id < 0 ) fes->get_path( FeSettings::Current, path ); else fes->get_plugin_full_path( script_id, path ); } } return path; }
void FePresent::script_flag_redraw() { FePresent *fep = script_get_fep(); if ( fep ) fep->flag_redraw(); }