Numworks Epsilon  1.4.1
Graphing Calculator Operating System
values_function_parameter_controller.cpp
Go to the documentation of this file.
2 #include <assert.h>
3 
4 namespace Shared {
5 
7  ViewController(nullptr),
8  m_copyColumn(I18n::Message::CopyColumnInList),
9  m_selectableTableView(this, this, this),
10  m_function(nullptr),
11  m_symbol(symbol)
12 {
13 }
14 
16  strlcpy(m_pageTitle, I18n::translate(I18n::Message::FunctionColumn), k_maxNumberOfCharsInTitle);
17  for (int currentChar = 0; currentChar < k_maxNumberOfCharsInTitle-1; currentChar++) {
18  if (m_pageTitle[currentChar] == '(') {
19  m_pageTitle[currentChar-1] = *m_function->name();
20  m_pageTitle[currentChar+1] = m_symbol;
21  break;
22  }
23  }
24  return m_pageTitle;
25 }
26 
28  return &m_selectableTableView;
29 }
30 
32  m_function = function;
33 }
34 
39 }
40 
42  return 1;
43 };
44 
46  assert(index == 0);
47  return &m_copyColumn;
48 }
49 
51  return 1;
52 }
53 
56 }
57 
58 }
59 
Definition: i18n.h:6
#define assert(e)
Definition: assert.h:9
int16_t KDCoordinate
Definition: coordinate.h:6
size_t strlcpy(char *dst, const char *src, size_t len)
Definition: strlcpy.c:3
void reloadData(bool setFirstResponder=true)
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
Definition: i18n.cpp:5
const char * name() const
Definition: function.cpp:68
virtual HighlightCell * reusableCell(int index) override
static constexpr KDCoordinate ParameterCellHeight
Definition: metric.h:15
void setFirstResponder(Responder *responder)
Definition: app.cpp:62
Definition: view.h:23
App * app()
Definition: responder.cpp:77