Files
Upsilon/apps/shared/values_function_parameter_controller.h
Émilie Feral adc80cd71b [apps][escher] I18n
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
2017-03-16 15:12:12 +01:00

36 lines
943 B
C++

#ifndef SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
#define SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
#include <escher.h>
#include "function.h"
#include "../i18n.h"
namespace Shared {
class ValuesFunctionParameterController : public ViewController, public SimpleListViewDataSource {
public:
ValuesFunctionParameterController(char symbol);
View * view() override;
const char * title() override;
void didBecomeFirstResponder() override;
virtual int numberOfRows() override;
KDCoordinate cellHeight() override;
virtual HighlightCell * reusableCell(int index) override;
virtual int reusableCellCount() override;
virtual void setFunction(Function * function);
protected:
PointerTableCellWithChevron m_copyColumn;
SelectableTableView m_selectableTableView;
private:
constexpr static int k_maxNumberOfCharsInTitle = 16;
char m_pageTitle[k_maxNumberOfCharsInTitle];
Function * m_function;
char m_symbol;
};
}
#endif