Files
Upsilon/apps/shared/storage_values_function_parameter_controller.cpp
2018-11-23 12:04:01 +01:00

25 lines
747 B
C++

#include "storage_values_function_parameter_controller.h"
#include <assert.h>
namespace Shared {
const char * StorageValuesFunctionParameterController::title() {
strlcpy(m_pageTitle, I18n::translate(I18n::Message::FunctionColumn), k_maxNumberOfCharsInTitle);
for (int currentChar = 0; currentChar < k_maxNumberOfCharsInTitle-1; currentChar++) {
if (m_pageTitle[currentChar] == '(') {
m_pageTitle[currentChar-1] = *m_function->fullName();
m_pageTitle[currentChar+1] = m_symbol;
break;
}
}
return m_pageTitle;
}
void StorageValuesFunctionParameterController::didBecomeFirstResponder() {
m_selectableTableView.reloadData();
selectCellAtLocation(0, 0);
app()->setFirstResponder(&m_selectableTableView);
}
}