示例#1
0
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);
}
示例#2
0
  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);
  }