void MSLockDialog::setContents( const adcontrols::MSLockMethod& cm ) { if ( auto table = findChild< MolTable * >() ) table->setContents( cm.molecules() ); if ( auto form = findChild< MSLockForm * >() ) form->setContents( cm ); }
bool MSLockDialog::getContents( adcontrols::MSLockMethod& cm ) const { if ( auto form = findChild< MSLockForm * >() ) { if ( form->getContents( cm ) ) { if ( auto table = findChild< MolTable * >() ) table->getContents( cm.molecules() ); return true; } } return false; }