mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
28 lines
910 B
C++
28 lines
910 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:
|
|
TextFieldDelegateApp(Container * container, ViewController * rootViewController, I18n::Message name = (I18n::Message)0, I18n::Message upperName = (I18n::Message)0, const Image * icon = nullptr);
|
|
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;
|
|
private:
|
|
bool cursorInToken(TextField * textField, const char * token);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|