| 509 | } |
| 510 | |
| 511 | bool ScopyMainWindow_API::loadSetup(QString filename, QString path) |
| 512 | { |
| 513 | QString fullPath = path + "/" + filename; |
| 514 | bool setupLoaded = false; |
| 515 | if(QFile::exists(fullPath)) { |
| 516 | m_w->load(fullPath); |
| 517 | setupLoaded = true; |
| 518 | } else { |
| 519 | qWarning(CAT_SCOPY_API) << "File " << filename << " does not exist"; |
| 520 | } |
| 521 | return setupLoaded; |
| 522 | } |
| 523 | |
| 524 | bool ScopyMainWindow_API::saveSetup(QString filename, QString path) |
| 525 | { |