mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#ifndef GRAPH_LIST_PARAM_CONTROLLER_H
|
|
#define GRAPH_LIST_PARAM_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "../function.h"
|
|
#include "../function_store.h"
|
|
|
|
class ParameterController : public ViewController, public TableViewDataSource {
|
|
public:
|
|
ParameterController(Responder * parentResponder, Graph::FunctionStore * functionStore);
|
|
|
|
View * view() override;
|
|
const char * title() const override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void setFunction(Graph::Function * function);
|
|
void didBecomeFirstResponder() override;
|
|
|
|
void setActiveCell(int index);
|
|
int numberOfCells() override;
|
|
KDCoordinate cellHeight() override;
|
|
View * reusableCell(int index) override;
|
|
int reusableCellCount() override;
|
|
void willDisplayCellForIndex(View * cell, int index) override;
|
|
private:
|
|
bool handleEnter();
|
|
constexpr static int k_totalNumberOfCell = 3;
|
|
TableViewCell m_colorCell;
|
|
SwitchTableViewCell m_enableCell;
|
|
TableViewCell m_deleteCell;
|
|
TableView m_tableView;
|
|
int m_activeCell;
|
|
Graph::Function * m_function;
|
|
Graph::FunctionStore * m_functionStore;
|
|
};
|
|
|
|
#endif
|