Files
Upsilon/apps/shared/storage_values_function_parameter_controller.cpp
Émilie Feral a063b00fb7 [graph] StorageDerivativeParameterController &
StorageValuesFunctionParameterController titles cannot be computed
before being in the responder chain (they need to access
app()->functionStore())
2018-11-23 12:04:03 +01:00

23 lines
702 B
C++

#include "storage_values_function_parameter_controller.h"
#include "storage_function_app.h"
#include <assert.h>
namespace Shared {
const char * StorageValuesFunctionParameterController::title() {
return m_pageTitle;
}
void StorageValuesFunctionParameterController::viewWillAppear() {
StorageFunctionApp * myApp = static_cast<StorageFunctionApp *>(app());
myApp->functionStore()->modelForRecord(m_record)->nameWithArgument(m_pageTitle, StorageFunction::k_maxNameWithArgumentSize, m_symbol);
}
void StorageValuesFunctionParameterController::didBecomeFirstResponder() {
m_selectableTableView.reloadData();
selectCellAtLocation(0, 0);
app()->setFirstResponder(&m_selectableTableView);
}
}