void GAPCExtension::reemitMoleculeChanged(Structure* s) { // Make copy of s to pass to editor GlobalSearch::Structure* newS = new GlobalSearch::Structure(*s); // Reset filename to something unique newS->setFileName(s->fileName() + "/usermodified.cml"); emit moleculeChanged(newS, Extension::DeleteOld); }
void ExampleSearchExtension::reemitMoleculeChanged(GlobalSearch::Structure *s) { // Make copy of s to pass to editor GlobalSearch::Structure *newS = new GlobalSearch::Structure (*s); // Reset filename to something unique newS->setFileName(s->fileName() + "/usermodified.cml"); // Make any pre-vis cleanup changes you'd like here. emit moleculeChanged(newS, Extension::DeleteOld); }