copasi/UI/CQUnitDetail.cpp
/*!
    Load any saved values to the screen
 */
Load any saved values to the screen
Load any saved values to the screen
void CQUnitDetail::load()
{
  if (mpUnitDefinition == NULL) return;
  mpEditExpression->setText(FROM_UTF8(mpUnitDefinition->getExpression()));
  mpExpressionValidator->saved();
  mpEditSymbol->setText(FROM_UTF8(mpUnitDefinition->getSymbol()));
  if (mpUnitDefinition->isReadOnly())
    {
      mpEditExpression->setEnabled(false);
      mpEditSymbol->setEnabled(false);
    }
  else
    {
      mpEditExpression->setEnabled(true);
      mpEditSymbol->setEnabled(true);
    }
//  
  mChanged = false;
}
void CQUnitDetail :: load ( ) { if ( mpUnitDefinition == NULL ) return ; mpEditExpression -> setText ( FROM_UTF8 ( mpUnitDefinition -> getExpression ( ) ) ) ; mpExpressionValidator -> saved ( ) ; mpEditSymbol -> setText ( FROM_UTF8 ( mpUnitDefinition -> getSymbol ( ) ) ) ; if ( mpUnitDefinition -> isReadOnly ( ) ) { mpEditExpression -> setEnabled ( false ) ; mpEditSymbol -> setEnabled ( false ) ; } else { mpEditExpression -> setEnabled ( true ) ; mpEditSymbol -> setEnabled ( true ) ; } mChanged = false ; }
Load any saved values to the screen
Load any saved values to the screen
// Expression // Symbol //  // Expression //  mpExpressionEMW->mpExpressionWidget->setExpression(mpModelValue->getExpression()); //  // Update Expression Widget //  mpExpressionEMW->updateWidget(); //  // Initial Expression //  mpInitialExpressionEMW->mpExpressionWidget->setExpression(mpModelValue->getInitialExpression()); //  // Update Initial Expression Widget //  mpInitialExpressionEMW->updateWidget(); //  // Type dependent display of values ////  slotTypeChanged(mpComboBoxType->currentIndex()); //  // Use Initial Expression //  if (mpModelValue->getStatus() == CModelEntity::Status::ASSIGNMENT || //      mpModelValue->getInitialExpression() == "") //    { //      mpBoxUseInitialExpression->setChecked(false); //      //      slotInitialTypeChanged(false); //} //  else //    { //      mpBoxUseInitialExpression->setChecked(true); //      //      slotInitialTypeChanged(true); //}