///////////////////////////////////////// // open catalogue void CComDlg::on_pushButton_3_clicked() ///////////////////////////////////////// { if (tComets.count() != 0) { if (msgBoxQuest(this, cSaveQuest) == QMessageBox::Yes) { comSave(curCometCatName, this); } } deleteTracking(MO_COMET); releaseHoldObject(MO_COMET); pcMainWnd->removeQuickInfo(MO_COMET); g_comAstChanged = true; comClear(); QString name = QFileDialog::getOpenFileName(this, tr("Open a File"), QStandardPaths::writableLocation(QStandardPaths::DataLocation) + "/data/catalogue/comets", "Comets file (*.cdf)"); if (name.isEmpty()) { fillList(); updateDlg(); return; } comLoad(name); fillList(); updateDlg(); }
/* * ======== tsk1_func ======== * Receive and return messages until the die request comes. */ Void tsk1_func(UArg arg0, UArg arg1) { UInt16 hostProcId = MultiProc_getId("MPU"); while (Ipc_attach(hostProcId) < 0); UInt16 appProcId = MultiProc_getId("AppM3"); while (Ipc_attach(appProcId) < 0); comInitCoPro(); computationThread(); comClear(); Ipc_detach(appProcId); Ipc_detach(hostProcId); }
///////////////////////////////////////// // remove all void CComDlg::on_pushButton_4_clicked() ///////////////////////////////////////// { if (tComets.count() != 0) { if (msgBoxQuest(this, cSaveQuest) == QMessageBox::Yes) { comSave(curCometCatName, this); } } deleteTracking(MO_COMET); releaseHoldObject(MO_COMET); pcMainWnd->removeQuickInfo(MO_COMET); g_comAstChanged = true; comClear(); fillList(); updateDlg(); }