예제 #1
0
void CQEventsWidget::slotBtnDeleteClicked()
{
  if (mpTblEvents->hasFocus())
    {deleteSelectedEvents();}

  updateDeleteBtns();
}
예제 #2
0
void CQCompartmentsWidget::slotBtnDeleteClicked()
{
  if (mpTblCompartments->hasFocus())
    {deleteSelectedCompartments();}

  updateDeleteBtns();
}
예제 #3
0
void CQSpeciesWidget::slotBtnDeleteClicked()
{
  if (mpTblSpecies->hasFocus())
    {deleteSelectedSpecies();}

  updateDeleteBtns();
}
예제 #4
0
void CQParameterSetsWidget::slotBtnDeleteClicked()
{
  if (mpTblParameterSets->hasFocus())
    {deleteSelected();}

  updateDeleteBtns();
}
예제 #5
0
void CQGlobalQuantitiesWidget::slotBtnDeleteClicked()
{
  if (mpTblGlobalQuantities->hasFocus())
    {deleteSelectedGlobalQuantities();}

  updateDeleteBtns();
}
예제 #6
0
void CQFunctionsWidget::slotBtnDeleteClicked()
{
  if (mpTblFunctions->hasFocus())
    {deleteSelectedFunctions();}

  updateDeleteBtns();
}
예제 #7
0
void CQReportsWidget::slotBtnDeleteClicked()
{
  if (mpTblReports->hasFocus())
    {deleteSelectedReports();}

  updateDeleteBtns();
}
예제 #8
0
void CQCompartmentsWidget::slotBtnClearClicked()
{
  int ret = CQMessageBox::question(this, tr("Confirm Delete"), "Delete all Compartments?",
                                   QMessageBox::Yes | QMessageBox::No, QMessageBox::No);

  if (ret == QMessageBox::Yes)
    {
      mpCompartmentDM->clear();
    }

  updateDeleteBtns();
}
예제 #9
0
void CQGlobalQuantitiesWidget::slotBtnClearClicked()
{

  int ret = CQMessageBox::question(this, tr("Confirm Delete"), "Delete all Quantities?",
                                   QMessageBox::Yes | QMessageBox::No, QMessageBox::No);

  if (ret == QMessageBox::Yes)
    {
      mpGlobalQuantityDM->clear();
    }

  updateDeleteBtns();
}
예제 #10
0
void CQFunctionsWidget::deleteSelectedFunctions()
{
  const QItemSelectionModel * pSelectionModel = mpTblFunctions->selectionModel();

  QModelIndexList mappedSelRows;
  size_t i, imax = mpFunctionDM->rowCount();

  for (i = 0; i < imax; i++)
    {
      if (pSelectionModel->isRowSelected((int) i, QModelIndex()))
        {
          mappedSelRows.append(mpProxyModel->mapToSource(mpProxyModel->index((int) i, 0)));
        }
    }

  if (mappedSelRows.empty())
    {return;}

  mpFunctionDM->removeRows(mappedSelRows);

  updateDeleteBtns();
}
예제 #11
0
void CQFunctionsWidget::slotBtnClearClicked()
{
  int ret = CQMessageBox::question(this, tr("Confirm Delete"), "Delete all non-built-in, non-mass-acion, Functions?",
                                   QMessageBox::Yes | QMessageBox::No, QMessageBox::No);

  if (ret == QMessageBox::Yes)
    {
      QModelIndexList mappedSelRows;
      size_t i, imax = mpFunctionDM->rowCount();

      for (i = 0; i < imax; i++)
        {
          mappedSelRows.append(mpFunctionDM->index((int) i, 0));
        }

      if (mappedSelRows.empty())
        return;

      mpFunctionDM->removeRows(mappedSelRows);
    }

  updateDeleteBtns();
}
예제 #12
0
void CQPlotsWidget::slotBtnNewClicked()
{
  mpPlotDM->insertRow();
  updateDeleteBtns();
}
예제 #13
0
void CQReportsWidget::slotBtnNewClicked()
{
  mpReportDM->insertRow(mpReportDM->rowCount() - 1, QModelIndex());
  updateDeleteBtns();
}
예제 #14
0
void CQParameterSetsWidget::slotBtnNewClicked()
{
  mpParameterSetsDM->insertRow(mpParameterSetsDM->rowCount(), QModelIndex());
  updateDeleteBtns();
}
예제 #15
0
void CQGlobalQuantitiesWidget::slotBtnNewClicked()
{
  mpGlobalQuantityDM->insertRow(mpGlobalQuantityDM->rowCount() - 1, QModelIndex());
  updateDeleteBtns();
}
예제 #16
0
void CQFunctionsWidget::slotBtnNewClicked()
{
  mpFunctionDM->insertRow();
  updateDeleteBtns();
}
예제 #17
0
void CQSpeciesWidget::slotBtnNewClicked()
{
  mpSpecieDM->insertRow();
  updateDeleteBtns();
}
예제 #18
0
void CQFunctionsWidget::slotBtnNewClicked()
{
  mpFunctionDM->insertRow(mpFunctionDM->rowCount(), QModelIndex());
  updateDeleteBtns();
}
예제 #19
0
void CQCompartmentsWidget::slotBtnNewClicked()
{
  mpCompartmentDM->insertRow();
  updateDeleteBtns();
}
예제 #20
0
void CQCompartmentsWidget::slotBtnNewClicked()
{
  mpCompartmentDM->insertRow(mpCompartmentDM->rowCount() - 1, QModelIndex());
  updateDeleteBtns();
}
예제 #21
0
void CQSpeciesWidget::slotBtnNewClicked()
{
  mpSpecieDM->insertRow(mpSpecieDM->rowCount() - 1, QModelIndex());
  updateDeleteBtns();
}