mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph] Enable infinite values as domain bounds for cartesian
functions
This commit is contained in:
@@ -137,16 +137,18 @@ bool FloatParameterController<T>::textFieldShouldFinishEditing(TextField * textF
|
||||
template<typename T>
|
||||
bool FloatParameterController<T>::textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) {
|
||||
T floatBody;
|
||||
if (textFieldDelegateApp()->hasUndefinedValue(text, floatBody)) {
|
||||
int row = selectedRow();
|
||||
InfinityTolerance infTolerance = infinityAllowanceForRow(row);
|
||||
if (textFieldDelegateApp()->hasUndefinedValue(text, floatBody, infTolerance == InfinityTolerance::PlusInfinity, infTolerance == InfinityTolerance::MinusInfinity)) {
|
||||
return false;
|
||||
}
|
||||
if (!setParameterAtIndex(selectedRow(), floatBody)) {
|
||||
if (!setParameterAtIndex(row, floatBody)) {
|
||||
return false;
|
||||
}
|
||||
m_selectableTableView.reloadCellAtLocation(0, activeCell());
|
||||
m_selectableTableView.reloadData();
|
||||
if (event == Ion::Events::EXE || event == Ion::Events::OK) {
|
||||
m_selectableTableView.selectCellAtLocation(selectedColumn(), selectedRow()+1);
|
||||
m_selectableTableView.selectCellAtLocation(selectedColumn(), row + 1);
|
||||
} else {
|
||||
m_selectableTableView.handleEvent(event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user