bool CmdSchematicNetLabelAdd::performExecute() {
  mNetLabel = new SI_NetLabel(mNetSegment, mPosition, mRotation);  // can throw

  performRedo();  // can throw

  return true;
}
bool CmdBoardDesignRulesModify::performExecute() throw (Exception)
{
    mOldRules = mBoard.getDesignRules(); // memorize current design rules

    performRedo(); // can throw

    return true; // TODO: determine if the design rules were really modified
}
bool CmdCompAttrInstAdd::performExecute() throw (Exception)
{
    mAttrInstance = new ComponentAttributeInstance(mComponentInstance, mKey, mType, mValue, mUnit); // can throw

    performRedo(); // can throw

    return true;
}
bool CmdSchematicAdd::performExecute() throw (Exception)
{
    mSchematic = mProject.createSchematic(mName); // can throw

    performRedo(); // can throw

    return true;
}
bool CmdSchematicNetSegmentAdd::performExecute() {
  if (!mNetSegment) {
    // create new net segment
    mNetSegment = new SI_NetSegment(mSchematic, mNetSignal);  // can throw
  }

  performRedo();  // can throw

  return true;
}
bool CmdBoardNetSegmentAdd::performExecute() {
  if (!mNetSegment) {
    // create new net segment
    mNetSegment = new BI_NetSegment(mBoard, mNetSignal);  // can throw
  }

  performRedo();  // can throw

  return true;
}
bool CmdLibraryBaseElementEdit::performExecute() {
  performRedo();  // can throw

  if (mNewNames != mOldNames) return true;
  if (mNewDescriptions != mOldDescriptions) return true;
  if (mNewKeywords != mOldKeywords) return true;
  if (mNewVersion != mOldVersion) return true;
  if (mNewAuthor != mOldAuthor) return true;
  if (mNewDeprecated != mOldDeprecated) return true;
  return false;
}
Example #8
0
bool CmdBoardAdd::performExecute() {
  if (mBoardToCopy) {
    mBoard = mProject.createBoard(*mBoardToCopy, mName);  // can throw
  } else {
    mBoard = mProject.createBoard(mName);  // can throw
  }

  performRedo();  // can throw

  return true;
}
bool CmdFootprintPadEdit::performExecute() {
  performRedo();  // can throw

  if (mNewPackagePadUuid != mOldPackagePadUuid) return true;
  if (mNewBoardSide != mOldBoardSide) return true;
  if (mNewShape != mOldShape) return true;
  if (mNewWidth != mOldWidth) return true;
  if (mNewHeight != mOldHeight) return true;
  if (mNewPos != mOldPos) return true;
  if (mNewRotation != mOldRotation) return true;
  if (mNewDrillDiameter != mOldDrillDiameter) return true;
  return false;
}
bool CmdSymbolInstanceEdit::performExecute() throw (Exception)
{
    performRedo(); // can throw

    return true; // TODO: determine if the symbol was really modified
}
bool CmdProjectLibraryAddElement<ElementType>::performExecute() {
  performRedo();  // can throw

  return true;
}
bool CmdNetClassRemove::performExecute() throw (Exception)
{
    performRedo(); // can throw

    return true;
}
bool CmdSchematicNetLabelRemove::performExecute() throw (Exception)
{
    performRedo(); // can throw

    return true;
}
bool CmdCompAttrInstRemove::performExecute() throw (Exception)
{
    performRedo(); // can throw

    return true;
}
bool CmdDeviceInstanceRemove::performExecute() throw (Exception)
{
    performRedo(); // can throw

    return true;
}
bool CmdSchematicNetPointEdit::performExecute() {
  performRedo();  // can throw

  return true;  // TODO: determine if the netpoint was really modified
}
Example #17
0
bool CmdPackagePadEdit::performExecute() {
  performRedo();  // can throw

  if (mNewName != mOldName) return true;
  return false;
}
bool CmdSchematicNetSegmentAddElements::performExecute() {
  performRedo();  // can throw

  return true;
}