2 #include "../constant.h" 3 #include "../apps_container.h" 12 FloatParameterController::FloatParameterController(
Responder * parentResponder) :
69 return reusableParameterCellCount(type);
76 return reusableParameterCell(index, type);
122 double floatBody = Expression::approximateToScalar<double>(text, *globalContext);
127 if (!setParameterAtIndex(
selectedRow(), floatBody)) {
156 void FloatParameterController::buttonAction() {
161 I18n::Message FloatParameterController::okButtonText() {
162 return I18n::Message::Ok;
169 parameterController->buttonAction();
176 m_okButton =
nullptr;
int indexFromCumulatedHeight(KDCoordinate offsetY) override
int numberOfColumns() override
Responder * parentResponder() const
int reusableCellCount(int type) override
bool selectCellAtLocation(int i, int j, bool setFirstResponder=true)
virtual SelectableTableView * selectableTableView()
virtual void scrollToCell(int i, int j)
HighlightCell * reusableCell(int index, int type) override
void reloadData(bool setFirstResponder=true)
int typeAtLocation(int i, int j) override
StackViewController * stackController()
void setAccessoryText(const char *text)
void didBecomeFirstResponder() override
void displayWarning(I18n::Message warningMessage)
View * loadView() override
void unloadView(View *view) override
void reloadCellAtLocation(int i, int j)
void willExitResponderChain(Responder *nextFirstResponder) override
Poincare::Context * globalContext()
static constexpr int LargeNumberOfSignificantDigits
virtual double parameterAtIndex(int index)=0
bool textFieldShouldFinishEditing(TextField *textField, Ion::Events::Event event) override
static constexpr KDCoordinate ParameterCellHeight
void willDisplayCellForIndex(HighlightCell *cell, int index) override
virtual int numberOfRows()=0
void setFirstResponder(Responder *responder)
bool handleEvent(Ion::Events::Event event) override
virtual bool handleEvent(Ion::Events::Event event) override
void selectCellAtLocation(int i, int j)
bool textFieldDidFinishEditing(TextField *textField, const char *text, Ion::Events::Event event) override
bool textFieldShouldFinishEditing(TextField *textField, Ion::Events::Event event) override
KDCoordinate cumulatedHeightFromIndex(int j) override
KDCoordinate rowHeight(int j) override
void viewWillAppear() override
void viewWillAppear() override