if(auxType!=AuxSymbolType::Nb_Types&&nbAux==0)log.log(Log::LineType::Warning,i18n("Symbol without needed auxilliary symbol (type=%1)").tqarg(auxType.type()));
if(auxType!=AuxSymbolType::Nb_Types&&nbAux==0)log.log(Log::LineType::Warning,i18n("Symbol without needed auxilliary symbol (type=%1)").arg(auxType.type()));
printQ(i18n("the 2nd argument is a list of name+address, one on each line","%1 was written by\n%2").arg(TQString(about->programName())).tqarg(authorlist));
printQ(i18n("the 2nd argument is a list of name+address, one on each line","%1 was written by\n%2").arg(TQString(about->programName())).arg(authorlist));
}
}else{
printQ(i18n("%1 was written by somebody who wants to remain anonymous.").tqarg(about->programName()));
printQ(i18n("%1 was written by somebody who wants to remain anonymous.").arg(about->programName()));
}
if(!about->bugAddress().isEmpty())
{
if(about->bugAddress()=="submit@bugs.kde.org")
printQ(i18n("Please use http://bugs.kde.org to report bugs, do not mail the authors directly.\n"));
else
printQ(i18n("Please use %1 to report bugs, do not mail the authors directly.\n").tqarg(about->bugAddress()));
printQ(i18n("Please use %1 to report bugs, do not mail the authors directly.\n").arg(about->bugAddress()));
log(Log::LineType::Warning,i18n("Vdd (%1 V) is too low for high-voltage programming\n(piklab only supports high-voltage programming at the moment).\nMinimum required is %2 V.")
log(Log::LineType::Warning,i18n("Could not restore band gap bits because programmer does not support writing config bits."));
returntrue;
}
log(Log::DebugLevel::Normal,TQString(" Write config with band gap bits: %2").tqarg(toHexLabel(cdata[0],device()->nbCharsWord(Pic::MemoryRangeType::Config))));
log(Log::DebugLevel::Normal,TQString(" Write config with band gap bits: %2").arg(toHexLabel(cdata[0],device()->nbCharsWord(Pic::MemoryRangeType::Config))));
log(Log::LineType::SoftError,i18n("Cannot erase specified range because of programmer limitations."));
returnfalse;
}
if(!askContinue(i18n("%1: Erasing this range only is not supported with this programmer. This will erase the whole chip and restore the other memory ranges.").tqarg(type.label()))){
if(!askContinue(i18n("%1: Erasing this range only is not supported with this programmer. This will erase the whole chip and restore the other memory ranges.").arg(type.label()))){
if(!ok)qFatal("Cannot extract rmask value for user id");
if(!data()->_userIdRecommendedMask.isInside(data()->mask(type)))qFatal(TQString("rmask is not inside mask %1 (%2)").tqarg(toHexLabel(data()->_userIdRecommendedMask,8)).tqarg(toHexLabel(data()->mask(type),8)));
if(!data()->_userIdRecommendedMask.isInside(data()->mask(type)))qFatal(TQString("rmask is not inside mask %1 (%2)").arg(toHexLabel(data()->_userIdRecommendedMask,8)).arg(toHexLabel(data()->mask(type),8)));
if(!hasValue(mask,*it))qFatal(TQString("Value %1 not defined in mask %2").tqarg(toHexLabel(*it,data()->nbCharsWord(MemoryRangeType::Config))).tqarg(mask.name));
if(!hasValue(mask,*it))qFatal(TQString("Value %1 not defined in mask %2").arg(toHexLabel(*it,data()->nbCharsWord(MemoryRangeType::Config))).arg(mask.name));
MessageBox::detailedSorry(i18n("Could not find file."),i18n("File: %1").tqarg(url.pretty()),Log::Show);
MessageBox::detailedSorry(i18n("Could not find file."),i18n("File: %1").arg(url.pretty()),Log::Show);
return;
}
PURL::Urlpurl=url;
MessageBox::Resultcopy=MessageBox::No;
if(!url.isInto(_project->directory())){
copy=MessageBox::questionYesNoCancel(i18n("File \"%1\" is not inside the project directory. Do you want to copy the file to your project directory?").tqarg(url.pretty()),
copy=MessageBox::questionYesNoCancel(i18n("File \"%1\" is not inside the project directory. Do you want to copy the file to your project directory?").arg(url.pretty()),
if(!MessageBox::askContinue(i18n("The selected toolchain can only compile a single source file and you have selected %1 source files. Continue anyway? ").tqarg(nb)))return;
if(!MessageBox::askContinue(i18n("The selected toolchain can only compile a single source file and you have selected %1 source files. Continue anyway? ").arg(nb)))return;
MessageBox::detailedSorry(i18n("Could not run \"pikloops\""),i18n("The Pikloops utility (%1) is not installed in your system.").tqarg("http://pikloops.sourceforge.net"),Log::Show);
MessageBox::detailedSorry(i18n("Could not run \"pikloops\""),i18n("The Pikloops utility (%1) is not installed in your system.").arg("http://pikloops.sourceforge.net"),Log::Show);
if(!ok)returnerrorExit(i18n("Number format not recognized."),ARG_ERROR);
if(v>maxValue(NumberBase::Hex,nbChars))returnerrorExit(i18n("The given value is too large (max: %1).").tqarg(toHexLabel(maxValue(NumberBase::Hex,nbChars),nbChars)),ARG_ERROR);
if(v>maxValue(NumberBase::Hex,nbChars))returnerrorExit(i18n("The given value is too large (max: %1).").arg(toHexLabel(maxValue(NumberBase::Hex,nbChars),nbChars)),ARG_ERROR);
if(!ok)returnerrorExit(i18n("The selected programmer does not supported the specified hardware configuration (\"%1\").").tqarg(_hardware),NOT_SUPPORTED_ERROR);
if(!ok)returnerrorExit(i18n("The selected programmer does not supported the specified hardware configuration (\"%1\").").arg(_hardware),NOT_SUPPORTED_ERROR);
if(state!=Process::Exited)TEST_FAILED_RETURN("Error while running compilation")
if(_helper->_cprocess->exitCode()!=0)TEST_FAILED_RETURN(TQString("Error in compilation for %1:\n%2%3").tqarg(data.name()).tqarg(_helper->_cprocess->sout()+_helper->_cprocess->serr()).tqarg(TQString()))
if(_helper->_cprocess->exitCode()!=0)TEST_FAILED_RETURN(TQString("Error in compilation for %1:\n%2%3").arg(data.name()).arg(_helper->_cprocess->sout()+_helper->_cprocess->serr()).arg(TQString()))
if(state!=Process::Exited)TEST_FAILED_RETURN("Error while running linking")
if(_helper->_lprocess->exitCode()!=0)TEST_FAILED_RETURN(TQString("Error in linking for %1:\n%2%3").tqarg(data.name()).tqarg(_helper->_lprocess->sout()+_helper->_lprocess->serr()).tqarg(TQString()))
if(_helper->_lprocess->exitCode()!=0)TEST_FAILED_RETURN(TQString("Error in linking for %1:\n%2%3").arg(data.name()).arg(_helper->_lprocess->sout()+_helper->_lprocess->serr()).arg(TQString()))
}
// load hex file
if(!_fhex->openForRead())TEST_FAILED_RETURN("")
TQStringListerrors,warnings;
Device::Memory::WarningTypeswarningTypes;
if(!_memory1->load(_fhex->stream(),errors,warningTypes,warnings))TEST_FAILED_RETURN(TQString("Error loading hex into memory: %1").tqarg(errors.join("")))
log(Log::LineType::Warning,i18n("The number of active breakpoints is higher than the maximum for the current debugger (%1): disabling the last breakpoint.").tqarg(max));
log(Log::LineType::Warning,i18n("The number of active breakpoints is higher than the maximum for the current debugger (%1): disabling the last breakpoint.").arg(max));
log(Log::LineType::Warning,""+i18n("Code is present in bootloader reserved area (at address %1). It will be ignored.").tqarg(toHexLabel(address,device().nbCharsAddress())));
log(Log::LineType::Warning,""+i18n("Code is present in bootloader reserved area (at address %1). It will be ignored.").arg(toHexLabel(address,device().nbCharsAddress())));
log(Log::LineType::Warning,""+i18n("Code is present in bootloader reserved area (at address %1). It will be ignored.").tqarg(toHexLabel(address,device().nbCharsAddress())));
log(Log::LineType::Warning,""+i18n("Code is present in bootloader reserved area (at address %1). It will be ignored.").arg(toHexLabel(address,device().nbCharsAddress())));
if(devices.count()==0)log(Log::LineType::Error,i18n("Unknown id returned by bootloader (%1 read and %2 expected).").tqarg(toHexLabel(_id,2)).tqarg(toHexLabel(id,2)));
elselog(Log::LineType::Error,i18n("Id returned by bootloader corresponds to other devices: %1 (%2 read and %3 expected).").tqarg(devices.join("")).tqarg(toHexLabel(_id, 2)).tqarg(toHexLabel(id, 2)));
if(devices.count()==0)log(Log::LineType::Error,i18n("Unknown id returned by bootloader (%1 read and %2 expected).").arg(toHexLabel(_id,2)).arg(toHexLabel(id,2)));
elselog(Log::LineType::Error,i18n("Id returned by bootloader corresponds to other devices: %1 (%2 read and %3 expected).").arg(devices.join("")).arg(toHexLabel(_id, 2)).arg(toHexLabel(id, 2)));
// we can't ask for "continue anyway?" because bootloader can timeout...
log(Log::LineType::Warning,""+i18n("Code is present in bootloader reserved area (at address %1). It will be ignored.").tqarg(toHexLabel(address,device().nbCharsAddress())));
log(Log::LineType::Warning,""+i18n("Code is present in bootloader reserved area (at address %1). It will be ignored.").arg(toHexLabel(address,device().nbCharsAddress())));
return(log?log->askContinue(i18n("There were errors detecting supported devices for the selected toolchain (%1). Please check the toolchain configuration. Continue anyway?").tqarg(label())):false);
return(log?log->askContinue(i18n("There were errors detecting supported devices for the selected toolchain (%1). Please check the toolchain configuration. Continue anyway?").arg(label())):false);
returni18n("<a href=\"%1\">BoostBasic Compiler</a> is a Basic compiler distributed by SourceBoost Technologies.").tqarg("http://www.sourceboost.com/Products/BoostBasic/Overview.html");
returni18n("<a href=\"%1\">BoostBasic Compiler</a> is a Basic compiler distributed by SourceBoost Technologies.").arg("http://www.sourceboost.com/Products/BoostBasic/Overview.html");
returni18n("<a href=\"%1\">BoostC Compiler</a> is a C compiler distributed by SourceBoost Technologies.").tqarg("http://www.sourceboost.com/Products/BoostC/Overview.html");
returni18n("<a href=\"%1\">BoostC Compiler</a> is a C compiler distributed by SourceBoost Technologies.").arg("http://www.sourceboost.com/Products/BoostC/Overview.html");
returni18n("<a href=\"%1\">BoostC++ Compiler</a> is a C compiler distributed by SourceBoost Technologies.").tqarg("http://www.sourceboost.com/Products/BoostCpp/Overview.html");
returni18n("<a href=\"%1\">BoostC++ Compiler</a> is a C compiler distributed by SourceBoost Technologies.").arg("http://www.sourceboost.com/Products/BoostCpp/Overview.html");
returni18n("<qt><a href=\"%1\">C18</a> is a C compiler distributed by Microchip.</qt>").tqarg("http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&part=SW006011");
returni18n("<qt><a href=\"%1\">C18</a> is a C compiler distributed by Microchip.</qt>").arg("http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&part=SW006011");
@ -77,8 +77,8 @@ SourceLine::List GPUtils::SourceGenerator::sourceFileContent(PURL::ToolType, con
if(!hasShared){
for(uinti=1;i<rdata.nbBanks;i++){
uintaddress=first+i*rdata.nbBytesPerBank();
lines.appendNotIndentedCode(TQString("INT_VAR%1 UDATA ").tqarg(i)+toHexLabel(address,rdata.nbCharsAddress()),i18n("variables used for context saving"));
lines.appendNotIndentedCode(TQString("w_saved%1 RES 1").tqarg(i),i18n("variable used for context saving"));
lines.appendNotIndentedCode(TQString("INT_VAR%1 UDATA ").arg(i)+toHexLabel(address,rdata.nbCharsAddress()),i18n("variables used for context saving"));
lines.appendNotIndentedCode(TQString("w_saved%1 RES 1").arg(i),i18n("variable used for context saving"));
returni18n("The <a href=\"%1\">PIC30 ToolChain</a> is a toolsuite for 16-bit PICs available from Microchip. Most of it is available under the GNU Public License.").tqarg("http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010065&part=SW006012");
returni18n("The <a href=\"%1\">PIC30 ToolChain</a> is a toolsuite for 16-bit PICs available from Microchip. Most of it is available under the GNU Public License.").arg("http://microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010065&part=SW006012");
returni18n("The <a href=\"%1\">Small Devices C Compiler</a> is an open-source C compiler for several families of microcontrollers.").tqarg("http://sdcc.sourceforge.net");
returni18n("The <a href=\"%1\">Small Devices C Compiler</a> is an open-source C compiler for several families of microcontrollers.").arg("http://sdcc.sourceforge.net");
if(package.types[j]==i)qFatal(TQString("Duplicated package type %1").tqarg(types[k]));
if(package.types[j]==i)qFatal(TQString("Duplicated package type %1").arg(types[k]));
uintj=0;
for(;j<Package::MAX_NB;j++)
if(nb==Package::TYPE_DATA[i].nbPins[j])break;
if(j==Package::MAX_NB)qFatal(TQString("Package %1 does not have the correct number of pins %2 (%3)").tqarg(types[k]).tqarg(nb).tqarg(Package::TYPE_DATA[i].nbPins[0]));
if(j==Package::MAX_NB)qFatal(TQString("Package %1 does not have the correct number of pins %2 (%3)").arg(types[k]).arg(nb).arg(Package::TYPE_DATA[i].nbPins[0]));
package.types.append(i);
break;
}
if(Package::TYPE_DATA[i].name==0)qFatal(TQString("Unknown package type \"%1\"").tqarg(types[k]));
if(Package::TYPE_DATA[i].name==0)qFatal(TQString("Unknown package type \"%1\"").arg(types[k]));