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:
2025-12-09 13:04:04 +03:00
parent 3467003721
commit f6e42ba8f7
8 changed files with 241 additions and 54 deletions
+11
View File
@@ -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);