mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
30 lines
867 B
C++
30 lines
867 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;
|
|
virtual bool textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) override;
|
|
Toolbox * toolboxForTextInput(TextInput * textInput) override;
|
|
protected:
|
|
TextFieldDelegateApp(Container * container, Snapshot * snapshot, ViewController * rootViewController);
|
|
private:
|
|
const char * privateXNT(TextField * textField);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|