Files
Upsilon/apps/shared/text_field_delegate_app.h
Émilie Feral e702c1f61b [apps/graph][apps/regression][app/sequence] Move model and range
versions to the snapshot

Change-Id: I6ec56ab59d734c0c43a5df32462173c611cc68b3
2017-05-18 14:16:41 +02:00

30 lines
874 B
C++

#ifndef SHARED_TEXT_FIELD_DELEGATE_APP_H
#define SHARED_TEXT_FIELD_DELEGATE_APP_H
#include <poincare.h>
#include <escher.h>
#include "../i18n.h"
class AppsContainer;
namespace Shared {
class TextFieldDelegateApp : public ::App, public TextFieldDelegate {
public:
virtual ~TextFieldDelegateApp() = default;
virtual Poincare::Context * localContext();
AppsContainer * container();
virtual const char * XNT();
bool textFieldShouldFinishEditing(TextField * textField, Ion::Events::Event event) override;
bool textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) override;
Toolbox * toolboxForTextField(TextField * textField) override;
protected:
TextFieldDelegateApp(Container * container, Snapshot * snapshot, ViewController * rootViewController);
private:
bool cursorInToken(TextField * textField, const char * token);
};
}
#endif