void CQEventsWidget::slotBtnDeleteClicked() { if (mpTblEvents->hasFocus()) {deleteSelectedEvents();} updateDeleteBtns(); }
void CQCompartmentsWidget::slotBtnDeleteClicked() { if (mpTblCompartments->hasFocus()) {deleteSelectedCompartments();} updateDeleteBtns(); }
void CQSpeciesWidget::slotBtnDeleteClicked() { if (mpTblSpecies->hasFocus()) {deleteSelectedSpecies();} updateDeleteBtns(); }
void CQParameterSetsWidget::slotBtnDeleteClicked() { if (mpTblParameterSets->hasFocus()) {deleteSelected();} updateDeleteBtns(); }
void CQGlobalQuantitiesWidget::slotBtnDeleteClicked() { if (mpTblGlobalQuantities->hasFocus()) {deleteSelectedGlobalQuantities();} updateDeleteBtns(); }
void CQFunctionsWidget::slotBtnDeleteClicked() { if (mpTblFunctions->hasFocus()) {deleteSelectedFunctions();} updateDeleteBtns(); }
void CQReportsWidget::slotBtnDeleteClicked() { if (mpTblReports->hasFocus()) {deleteSelectedReports();} updateDeleteBtns(); }
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(); }
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(); }
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(); }
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(); }
void CQPlotsWidget::slotBtnNewClicked() { mpPlotDM->insertRow(); updateDeleteBtns(); }
void CQReportsWidget::slotBtnNewClicked() { mpReportDM->insertRow(mpReportDM->rowCount() - 1, QModelIndex()); updateDeleteBtns(); }
void CQParameterSetsWidget::slotBtnNewClicked() { mpParameterSetsDM->insertRow(mpParameterSetsDM->rowCount(), QModelIndex()); updateDeleteBtns(); }
void CQGlobalQuantitiesWidget::slotBtnNewClicked() { mpGlobalQuantityDM->insertRow(mpGlobalQuantityDM->rowCount() - 1, QModelIndex()); updateDeleteBtns(); }
void CQFunctionsWidget::slotBtnNewClicked() { mpFunctionDM->insertRow(); updateDeleteBtns(); }
void CQSpeciesWidget::slotBtnNewClicked() { mpSpecieDM->insertRow(); updateDeleteBtns(); }
void CQFunctionsWidget::slotBtnNewClicked() { mpFunctionDM->insertRow(mpFunctionDM->rowCount(), QModelIndex()); updateDeleteBtns(); }
void CQCompartmentsWidget::slotBtnNewClicked() { mpCompartmentDM->insertRow(); updateDeleteBtns(); }
void CQCompartmentsWidget::slotBtnNewClicked() { mpCompartmentDM->insertRow(mpCompartmentDM->rowCount() - 1, QModelIndex()); updateDeleteBtns(); }
void CQSpeciesWidget::slotBtnNewClicked() { mpSpecieDM->insertRow(mpSpecieDM->rowCount() - 1, QModelIndex()); updateDeleteBtns(); }