mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
#ifndef GRAPH_FUNCTION_PARAM_CONTROLLER_H
|
|
#define GRAPH_FUNCTION_PARAM_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "../function.h"
|
|
|
|
namespace Graph {
|
|
class FunctionParameterController : public ViewController, public SimpleListViewDataSource {
|
|
public:
|
|
FunctionParameterController(Responder * parentResponder);
|
|
|
|
View * view() override;
|
|
const char * title() const override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void didBecomeFirstResponder() override;
|
|
int numberOfRows() override;
|
|
KDCoordinate cellHeight() override;
|
|
TableViewCell * reusableCell(int index) override;
|
|
int reusableCellCount() override;
|
|
void willDisplayCellForIndex(TableViewCell * cell, int index) override;
|
|
|
|
void setFunction(Function * function);
|
|
private:
|
|
constexpr static int k_totalNumberOfCell = 2;
|
|
constexpr static int k_maxNumberOfCharsInTitle = 16;
|
|
char m_pageTitle[k_maxNumberOfCharsInTitle];
|
|
SwitchMenuListCell m_displayDerivativeColumn;
|
|
ChevronMenuListCell m_copyColumn;
|
|
SelectableTableView m_selectableTableView;
|
|
Function * m_function;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|