Files
Upsilon/apps/graph/values/derivative_parameter_controller.h
Émilie Feral 4dc34856f3 [apps/graph] Fix bug: select the right column title when hiding and
displaying derivative column in value page

Change-Id: Ic5b222a4d245991bd8de05ca243de9c2d38f994b
2017-02-17 16:35:08 +01:00

39 lines
1.0 KiB
C++

#ifndef GRAPH_DERIVATIVE_PARAM_CONTROLLER_H
#define GRAPH_DERIVATIVE_PARAM_CONTROLLER_H
#include <escher.h>
#include "../function.h"
namespace Graph {
class ValuesController;
class DerivativeParameterController : public ViewController, public SimpleListViewDataSource {
public:
DerivativeParameterController(ValuesController * valuesController);
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 setFunction(Function * function);
private:
constexpr static int k_totalNumberOfCell = 2;
constexpr static int k_maxNumberOfCharsInTitle = 16;
char m_pageTitle[k_maxNumberOfCharsInTitle];
MenuListCell m_hideColumn;
ChevronMenuListCell m_copyColumn;
SelectableTableView m_selectableTableView;
Function * m_function;
ValuesController * m_valuesController;
};
}
#endif