예제 #1
0
void
MSLockDialog::setContents( const adcontrols::MSLockMethod& cm )
{
    if ( auto table = findChild< MolTable * >() )
        table->setContents( cm.molecules() );

    if ( auto form = findChild< MSLockForm * >() )
        form->setContents( cm );
}
예제 #2
0
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;
}