Ejemplo n.º 1
0
/////////////////////////////////////////
// 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();
}
Ejemplo n.º 2
0
/*
 *  ======== 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);
}
Ejemplo n.º 3
0
/////////////////////////////////////////
// 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();
}