Add PCB document filename handling in AltiumParser and SpecificationPCBController. Updated .gitignore and app_icon.rc for consistency. Enhanced PDF rendering with proper resolution handling.
This commit is contained in:
@@ -523,12 +523,23 @@ bool MainController::parseFile(const QString &filePath) {
|
||||
// Создаем временную модель для парсинга
|
||||
ComponentModel tempModel;
|
||||
success = m_altiumParser->parsePrjPcbFile(filePath, &tempModel);
|
||||
// Сохраняем имя PcbDoc файла в контроллере спецификации, если оно было найдено
|
||||
if (success && m_specificationPCBController) {
|
||||
QString pcbDocFileName = m_altiumParser->getPcbDocFileName();
|
||||
if (!pcbDocFileName.isEmpty()) {
|
||||
m_specificationPCBController->setPcbDocFileName(pcbDocFileName);
|
||||
}
|
||||
}
|
||||
} else if (extension == "schdoc") {
|
||||
ComponentModel tempModel;
|
||||
success = m_altiumParser->parseSchDoc(filePath, &tempModel);
|
||||
} else if (extension == "pcbdoc") {
|
||||
ComponentModel tempModel;
|
||||
success = m_altiumParser->parsePcbDoc(filePath, &tempModel);
|
||||
// Сохраняем имя PcbDoc файла в контроллере спецификации
|
||||
if (success && m_specificationPCBController) {
|
||||
m_specificationPCBController->setPcbDocFileName(filePath);
|
||||
}
|
||||
} else if (extension == "csv") {
|
||||
ComponentModel tempModel;
|
||||
success = m_altiumParser->parseCsvBom(filePath, &tempModel);
|
||||
|
||||
Reference in New Issue
Block a user