Blame view

build3/apps/shared/text_field_delegate_app.h 867 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  #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 * toolboxForTextField(TextField * textField) override;
  protected:
    TextFieldDelegateApp(Container * container, Snapshot * snapshot, ViewController * rootViewController);
  private:
    const char * privateXNT(TextField * textField);
  };
  
  }
  
  #endif