void ClassEditor::duplicateStimResponse() { int id = getIdFromSelection(); if (id > 0) { int newId = _entity->duplicate(id); // Select the newly created stim selectId(newId); } // Call the method of the child class to update the widgets update(); }
void CustomStimEditor::addStimType() { // Add a new stim type with the lowest free custom id int id = _stimTypes.getFreeCustomStimId(); _stimTypes.add(id, string::to_string(id), "CustomStimType", _("Custom Stim"), ICON_CUSTOM_STIM, true); selectId(id); }
void CustomButton::selectedBtn() { emit selectId(m_id); }