Line 751... |
Line 751... |
return 0 ;
|
return 0 ;
|
}
|
}
|
ifileList = m_iprjPath.entryList(inameFilter,QDir::Files) ;
|
ifileList = m_iprjPath.entryList(inameFilter,QDir::Files) ;
|
if(!ifileList.count())
|
if(!ifileList.count())
|
{
|
{
|
qDebug() << "Please Check the path \""<< m_iprjPath.absolutePath() <<"\" to verify the " << inameFilter.at(0) << "file exist !";
|
//qDebug() << "Please Check the path \""<< m_iprjPath.absolutePath() <<"\" to verify the " << inameFilter.at(0) << "file exist !";
|
|
QMessageBox::warning(NULL, QObject::tr("EziDebug"),QObject::tr("Please Check the path \n \"%1\" \n to verify the %2 file exist!").arg(m_iprjPath.absolutePath()) \
|
|
.arg(inameFilter.at(0))) ;
|
|
// .arg(inameFilter.at(0))));
|
return 0 ;
|
return 0 ;
|
}
|
}
|
else if(ifileList.count() > 1)
|
else if(ifileList.count() > 1)
|
{
|
{
|
qDebug() << "Please Delete the unnecessary file " << inameFilter.at(0) ;
|
qDebug() << "Please Delete the unnecessary file " << inameFilter.at(0) ;
|
|
QMessageBox::warning(NULL, QObject::tr("EziDebug"),QObject::tr("Please delete the unnecessary \"%1\"file!").arg(inameFilter.at(0)));
|
return 0 ;
|
return 0 ;
|
}
|
}
|
else
|
else
|
{
|
{
|
m_iprjName = const_cast<QString&>(ifileList.at(0));
|
m_iprjName = const_cast<QString&>(ifileList.at(0));
|
Line 4145... |
Line 4149... |
{
|
{
|
preupdateProgressBar(updateFlag,(20+(i/ifileList.count())*15));
|
preupdateProgressBar(updateFlag,(20+(i/ifileList.count())*15));
|
|
|
if(addFile(ifileList.at(i),partScanType,addinfolist))
|
if(addFile(ifileList.at(i),partScanType,addinfolist))
|
{
|
{
|
|
#if 0
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("扫描文件错误"), tr("是否继续扫描?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("扫描文件错误"), tr("是否继续扫描?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
|
#else
|
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("EziDebug"), tr("Scan file Error , do you want to continue to scan file ?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
|
#endif
|
|
|
if(rb == QMessageBox::Yes)
|
if(rb == QMessageBox::Yes)
|
{
|
{
|
++i;
|
++i;
|
continue ;
|
continue ;
|
}
|
}
|
Line 4189... |
Line 4198... |
addinfolist.append(paddFileInfo);
|
addinfolist.append(paddFileInfo);
|
}
|
}
|
else
|
else
|
{
|
{
|
// 如果出错 ,提示是否继续扫描
|
// 如果出错 ,提示是否继续扫描
|
|
#if 0
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("扫描文件错误"), tr("是否继续扫描?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("扫描文件错误"), tr("是否继续扫描?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
|
#else
|
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("EziDebug"), tr("Scan file Error , do you want to continue to scan file ?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
|
#endif
|
|
|
if(rb == QMessageBox::Yes)
|
if(rb == QMessageBox::Yes)
|
{
|
{
|
++i;
|
++i;
|
continue ;
|
continue ;
|
}
|
}
|
Line 4389... |
Line 4403... |
|
|
void EziDebugPrj::setXilinxErrCheckedFlag(bool flag)
|
void EziDebugPrj::setXilinxErrCheckedFlag(bool flag)
|
{
|
{
|
m_isDisXilinxErrChecked = flag ;
|
m_isDisXilinxErrChecked = flag ;
|
}
|
}
|
|
|
void EziDebugPrj::setLogFileName(const QString& filename)
|
void EziDebugPrj::setLogFileName(const QString& filename)
|
{
|
{
|
m_ilogFileName = filename ;
|
m_ilogFileName = filename ;
|
return ;
|
return ;
|
}
|
}
|
Line 4558... |
Line 4573... |
{
|
{
|
if(pnewVlgFile->scanFile(this,type,addedinfoList,deletedinfoList))
|
if(pnewVlgFile->scanFile(this,type,addedinfoList,deletedinfoList))
|
{
|
{
|
qDebug() << "traverseAllCodeFile:scan file failed! FILE NAME" << i.key();
|
qDebug() << "traverseAllCodeFile:scan file failed! FILE NAME" << i.key();
|
//dynamic_cast<QWidget*>(this->parent())
|
//dynamic_cast<QWidget*>(this->parent())
|
|
#if 0
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("扫描文件错误"), tr("是否继续扫描?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("扫描文件错误"), tr("是否继续扫描?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
|
#else
|
|
QMessageBox::StandardButton rb = QMessageBox::question(NULL, tr("EziDebug"), tr("Scan file Error , do you want to continue to scan file ?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
|
|
#endif
|
|
|
if(rb == QMessageBox::Yes)
|
if(rb == QMessageBox::Yes)
|
{
|
{
|
++i;
|
++i;
|
continue ;
|
continue ;
|
}
|
}
|
Line 4658... |
Line 4678... |
if(!m_imoduleMap.contains(m_itopModule))
|
if(!m_imoduleMap.contains(m_itopModule))
|
{
|
{
|
qDebug() << "EziDebug Error: There is no Topmodule definition!";
|
qDebug() << "EziDebug Error: There is no Topmodule definition!";
|
return 1;
|
return 1;
|
}
|
}
|
|
|
/*根据topmodule 构造树状显示结构的数据信息*/
|
/*根据topmodule 构造树状显示结构的数据信息*/
|
// if (!m_imoduleMap.contains(m_itopModule))
|
// if (!m_imoduleMap.contains(m_itopModule))
|
// {
|
// {
|
// qDebug() << " there is not topModule!";
|
// qDebug() << " there is not topModule!";
|
// return 1 ;
|
// return 1 ;
|
// }
|
// }
|
|
|
EziDebugInstanceTreeItem* item = new EziDebugInstanceTreeItem(m_itopModule,m_itopModule);
|
EziDebugInstanceTreeItem* item = new EziDebugInstanceTreeItem(m_itopModule,m_itopModule);
|
if(!item)
|
if(!item)
|
{
|
{
|
qDebug() << "Error:There is no memory left!";
|
qDebug() << "Error:There is no memory left!";
|
return 1 ;
|
return 1 ;
|