mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[shared] Clean class names containing storage
This commit is contained in:
43
apps/shared/function_curve_parameter_controller.cpp
Normal file
43
apps/shared/function_curve_parameter_controller.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
#include "function_curve_parameter_controller.h"
|
||||
#include <assert.h>
|
||||
|
||||
namespace Shared {
|
||||
|
||||
FunctionCurveParameterController::FunctionCurveParameterController(InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor) :
|
||||
ViewController(nullptr),
|
||||
m_goToCell(I18n::Message::Goto),
|
||||
m_selectableTableView(this, this, this),
|
||||
m_record()
|
||||
{
|
||||
}
|
||||
|
||||
View * FunctionCurveParameterController::view() {
|
||||
return &m_selectableTableView;
|
||||
}
|
||||
|
||||
void FunctionCurveParameterController::didBecomeFirstResponder() {
|
||||
if (selectedRow() < 0) {
|
||||
selectCellAtLocation(0, 0);
|
||||
}
|
||||
app()->setFirstResponder(&m_selectableTableView);
|
||||
}
|
||||
|
||||
bool FunctionCurveParameterController::handleGotoSelection() {
|
||||
if (m_record.isNull()) {
|
||||
return false;
|
||||
}
|
||||
goToParameterController()->setRecord(m_record);
|
||||
StackViewController * stack = (StackViewController *)parentResponder();
|
||||
stack->push(goToParameterController());
|
||||
return true;
|
||||
}
|
||||
|
||||
KDCoordinate FunctionCurveParameterController::cellHeight() {
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
void FunctionCurveParameterController::setRecord(Ion::Storage::Record record) {
|
||||
m_record = record;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user