mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 19:49:58 +02:00
[apps/graph/values] Create a simple version of the parameter page of the table of values
Change-Id: Ic4a1091ba3c49097f838df13aa03a802497af873
This commit is contained in:
29
apps/graph/values/values_parameter_controller.h
Normal file
29
apps/graph/values/values_parameter_controller.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef GRAPH_VALUES_PARAM_CONTROLLER_H
|
||||
#define GRAPH_VALUES_PARAM_CONTROLLER_H
|
||||
|
||||
#include <escher.h>
|
||||
|
||||
class ValuesParameterController : public ViewController, public ListViewDataSource {
|
||||
public:
|
||||
ValuesParameterController(Responder * parentResponder);
|
||||
|
||||
View * view() override;
|
||||
const char * title() const override;
|
||||
bool handleEvent(Ion::Events::Event event) override;
|
||||
void didBecomeFirstResponder() override;
|
||||
|
||||
void setActiveCell(int index);
|
||||
int numberOfRows() override;
|
||||
KDCoordinate cellHeight() override;
|
||||
View * reusableCell(int index) override;
|
||||
int reusableCellCount() override;
|
||||
private:
|
||||
constexpr static int k_totalNumberOfCell = 3;
|
||||
TableViewCell m_intervalStartCell;
|
||||
TableViewCell m_intervalEndCell;
|
||||
TableViewCell m_intervalStepCell;
|
||||
ListView m_listView;
|
||||
int m_activeCell;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user