mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 08:41:01 +01:00
[escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
InputTextDelegate to avoid diamond inheritance
This commit is contained in:
26
apps/shared/input_event_handler_delegate_app.cpp
Normal file
26
apps/shared/input_event_handler_delegate_app.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "input_event_handler_delegate_app.h"
|
||||
#include "../apps_container.h"
|
||||
#include <cmath>
|
||||
#include <string.h>
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
namespace Shared {
|
||||
|
||||
InputEventHandlerDelegateApp::InputEventHandlerDelegateApp(Container * container, Snapshot * snapshot, ViewController * rootViewController) :
|
||||
::App(container, snapshot, rootViewController, I18n::Message::Warning),
|
||||
InputEventHandlerDelegate()
|
||||
{
|
||||
}
|
||||
|
||||
AppsContainer * InputEventHandlerDelegateApp::container() {
|
||||
return (AppsContainer *)(app()->container());
|
||||
}
|
||||
|
||||
Toolbox * InputEventHandlerDelegateApp::toolboxForInputEventHandler(InputEventHandler * textInput) {
|
||||
Toolbox * toolbox = container()->mathToolbox();
|
||||
toolbox->setSender(textInput);
|
||||
return toolbox;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user