mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
table view data source & selectable table view delegate Change-Id: I90fbd61e271db3754c13bd0069b95c2026de6814
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
#ifndef GRAPH_DERIVATIVE_PARAM_CONTROLLER_H
|
|
#define GRAPH_DERIVATIVE_PARAM_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "../cartesian_function.h"
|
|
|
|
namespace Graph {
|
|
|
|
class ValuesController;
|
|
|
|
class DerivativeParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource {
|
|
public:
|
|
DerivativeParameterController(ValuesController * valuesController);
|
|
|
|
View * view() override;
|
|
const char * title() override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void didBecomeFirstResponder() override;
|
|
int numberOfRows() override;
|
|
KDCoordinate cellHeight() override;
|
|
HighlightCell * reusableCell(int index) override;
|
|
int reusableCellCount() override;
|
|
|
|
void setFunction(CartesianFunction * function);
|
|
private:
|
|
#if COPY_COLUMN
|
|
constexpr static int k_totalNumberOfCell = 2;
|
|
#else
|
|
constexpr static int k_totalNumberOfCell = 1;
|
|
#endif
|
|
constexpr static int k_maxNumberOfCharsInTitle = 16;
|
|
char m_pageTitle[k_maxNumberOfCharsInTitle];
|
|
MessageTableCell m_hideColumn;
|
|
#if COPY_COLUMN
|
|
MessageTableCellWithChevron m_copyColumn;
|
|
#endif
|
|
SelectableTableView m_selectableTableView;
|
|
CartesianFunction * m_function;
|
|
ValuesController * m_valuesController;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|