mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Clip displayed range in graph view in interactive curve
view range Change-Id: I4654a1f9c06420d6ade8a86a13c0d89f025f324f
This commit is contained in:
@@ -50,17 +50,18 @@ float HistogramParameterController::previousParameterAtIndex(int index) {
|
||||
return m_previousParameters[index];
|
||||
}
|
||||
|
||||
void HistogramParameterController::setParameterAtIndex(int parameterIndex, float f) {
|
||||
bool HistogramParameterController::setParameterAtIndex(int parameterIndex, float f) {
|
||||
assert(parameterIndex >= 0 && parameterIndex < 2);
|
||||
if (parameterIndex == 0) {
|
||||
if (f <= 0.0f) {
|
||||
app()->displayWarning(I18n::Message::ForbiddenValue);
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
m_store->setBarWidth(f);
|
||||
} else {
|
||||
m_store->setFirstDrawnBarAbscissa(f);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
HighlightCell * HistogramParameterController::reusableParameterCell(int index, int type) {
|
||||
|
||||
Reference in New Issue
Block a user