Files
Upsilon/apps/graph/values/editable_value_cell.h
Émilie Feral 5ff87c1ba2 [apps/graph/values] Make editable value cell inherit from value cell
Change-Id: I7aa93c4a5b70d892966bf65ec53f942bafb7cc86
2016-12-08 15:21:52 +01:00

27 lines
657 B
C++

#ifndef GRAPH_EDITABLE_VALUE_CELL_H
#define GRAPH_EDITABLE_VALUE_CELL_H
#include <escher.h>
#include <poincare.h>
#include "value_cell.h"
namespace Graph {
class EditableValueCell : public ValueCell, public Responder {
public:
EditableValueCell();
const char * editedText() const;
View * subviewAtIndex(int index) override;
void layoutSubviews() override;
bool handleEvent(Ion::Events::Event event) override;
void editValue(const char * initialText, int cursorLocation, void * context, Invocation::Action successAction);
private:
TextField m_textField;
char m_textBody[255];
bool m_isEditing;
Invocation m_successAction;
};
}
#endif