[escher] Clean Field and Input class hierarchy:

Class hierarchy:
- InputEventHandler
- TextInput
- EditableField derives from InputEventHandler
- LayoutField, TextField and ExpressioField derives from EditableField
- TextArea and TextField derives from TextInput
This commit is contained in:
Émilie Feral
2018-10-19 14:31:50 +02:00
parent c2adbe28c5
commit 01e433a9f2
36 changed files with 123 additions and 85 deletions

View File

@@ -0,0 +1,13 @@
#include <escher/input_event_handler.h>
#include <escher/app.h>
#include <escher/toolbox.h>
#include <escher/metric.h>
bool InputEventHandler::handleToolboxEvent(App * app) {
if (toolbox() != nullptr) {
toolbox()->setSender(this);
app->displayModalViewController(toolbox(), 0.f, 0.f, Metric::PopUpTopMargin, Metric::PopUpLeftMargin, 0, Metric::PopUpRightMargin);
return true;
}
return false;
}