MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / pinsPlacedMessage

Method pinsPlacedMessage

static_libs/common/project.cpp:413–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413bool Project::pinsPlacedMessage()
414{
415
416 if (m_isPinsPlaced == false) {
417 QMessageBox msgbx(QMessageBox::Information,
418 "",
419 QObject::tr("Board dimensions may have changed.\n"
420 "It is advisable to perform automatic placement of the pins\n"
421 "by selecting the necessary work items.\n\n"
422 "Continue saving?"),
423 QMessageBox::Yes | QMessageBox::No, nullptr);
424 {
425 auto label(msgbx.findChild<QLabel*>());
426 label->setPixmap(QIcon::fromTheme("snap-nodes-cusp").pixmap(label->size()));
427 }
428 return msgbx.exec() == QMessageBox::No;
429 }
430 return false;
431 /* Размеры платы могли измениться.
432 * Выполните автоматическое размещение штифтов, выбрав необходимые рабочие элементы.
433 * Продолжить сохранение?
434 */
435}
436
437bool Project::isUntitled() { return m_isUntitled; }
438

Callers 2

saveGCodeFileMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected