[apps/graph] Use storage controllers in Values

This commit is contained in:
Léa Saviot
2018-10-12 11:18:04 +02:00
committed by Émilie Feral
parent ca3f88185f
commit c0e4eaa56b
14 changed files with 479 additions and 462 deletions

View File

@@ -0,0 +1,24 @@
#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);
}
}