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:
@@ -26,8 +26,8 @@ VariableBoxController::ContentViewController::ContentViewController(Responder *
|
||||
}
|
||||
}
|
||||
|
||||
void VariableBoxController::ContentViewController::setTextInputCaller(TextInput * textInput) {
|
||||
m_textInputCaller = textInput;
|
||||
void VariableBoxController::ContentViewController::setSender(InputEventHandler * textInput) {
|
||||
m_sender = textInput;
|
||||
}
|
||||
|
||||
void VariableBoxController::ContentViewController::reloadData() {
|
||||
@@ -147,7 +147,7 @@ void VariableBoxController::ContentViewController::insertTextInCaller(const char
|
||||
char commandBuffer[k_maxScriptObjectNameSize];
|
||||
assert(commandBufferMaxSize <= k_maxScriptObjectNameSize);
|
||||
Shared::ToolboxHelpers::TextToInsertForCommandText(text, commandBuffer, commandBufferMaxSize, true);
|
||||
m_textInputCaller->handleEventWithText(commandBuffer);
|
||||
m_sender->handleEventWithText(commandBuffer);
|
||||
}
|
||||
|
||||
VariableBoxController::VariableBoxController(App * pythonDelegate, ScriptStore * scriptStore) :
|
||||
@@ -160,8 +160,8 @@ void VariableBoxController::didBecomeFirstResponder() {
|
||||
app()->setFirstResponder(&m_contentViewController);
|
||||
}
|
||||
|
||||
void VariableBoxController::setTextInputCaller(TextInput * textInput) {
|
||||
m_contentViewController.setTextInputCaller(textInput);
|
||||
void VariableBoxController::setSender(InputEventHandler * sender) {
|
||||
m_contentViewController.setSender(sender);
|
||||
}
|
||||
|
||||
void VariableBoxController::viewWillAppear() {
|
||||
|
||||
Reference in New Issue
Block a user