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

Method fileHandler

GGEasy/forms/formsutil/formsutil.cpp:60–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void FormsUtil::fileHandler(GCode::File* file)
61{
62 if (--fileCount == 0)
63 cancel();
64
65 if (file == nullptr) {
66 QMessageBox::information(this, tr("Warning"), tr("The tool doesn`t fit in the Working items!"));
67 return;
68 }
69
70 file->setFileName(m_fileName + "_" + file->name());
71 file->setSide(boardSide);
72 if (fileId > -1) {
73 exit(-123456);
74 // App::project()->reload(fileId, file);
75 // m_editMode = false;
76 // fileId = -1;
77 } else {
78 App::project()->addFile(file);
79 }
80}
81
82void FormsUtil::timerEvent(QTimerEvent* event)
83{

Callers

nothing calls this directly

Calls 4

setFileNameMethod · 0.80
nameMethod · 0.45
setSideMethod · 0.45
addFileMethod · 0.45

Tested by

no test coverage detected