mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
@@ -109,14 +109,14 @@ bool App::handleEvent(Ion::Events::Event event) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool App::textInputDidReceiveEvent(TextInput * textInput, Ion::Events::Event event) {
|
||||
bool App::textInputDidReceiveEvent(InputEventHandler * textInput, Ion::Events::Event event) {
|
||||
const char * pythonText = Helpers::PythonTextForEvent(event);
|
||||
if (pythonText != nullptr) {
|
||||
textInput->handleEventWithText(pythonText);
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::Var) {
|
||||
m_variableBoxController.setTextInputCaller(textInput);
|
||||
m_variableBoxController.setSender(textInput);
|
||||
displayModalViewController(&m_variableBoxController, 0.f, 0.f, Metric::PopUpTopMargin, Metric::PopUpLeftMargin, 0, Metric::PopUpRightMargin);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user