mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[apps] Factorize the method textFieldDidReceiveEvent in the abstract
class float parameter controller Change-Id: I374e46664f6514246fff6378d97ae142c7130ca9
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "float_parameter_controller.h"
|
||||
#include "constant.h"
|
||||
#include "apps_container.h"
|
||||
#include "text_field_delegate_app.h"
|
||||
#include <assert.h>
|
||||
|
||||
FloatParameterController::FloatParameterController(Responder * parentResponder) :
|
||||
@@ -40,6 +41,11 @@ bool FloatParameterController::textFieldDidFinishEditing(TextField * textField,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool FloatParameterController::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {
|
||||
TextFieldDelegateApp * myApp = (TextFieldDelegateApp *)app();
|
||||
return myApp->textFieldDidReceiveEvent(textField, event);
|
||||
}
|
||||
|
||||
void FloatParameterController::tableViewDidChangeSelection(SelectableTableView * t, int previousSelectedCellX, int previousSelectedCellY) {
|
||||
EditableTextMenuListCell * myCell = (EditableTextMenuListCell *)t->cellAtLocation(previousSelectedCellX, previousSelectedCellY);
|
||||
myCell->setEditing(false);
|
||||
|
||||
Reference in New Issue
Block a user