[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

@@ -13,14 +13,14 @@ class VariableBoxController : public StackViewController {
public:
VariableBoxController(App * pythonDelegate, ScriptStore * scriptStore);
void didBecomeFirstResponder() override;
void setTextInputCaller(TextInput * textInput);
void setSender(InputEventHandler * sender);
void viewWillAppear() override;
void viewDidDisappear() override;
private:
class ContentViewController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource {
public:
ContentViewController(Responder * parentResponder, App * pythonDelegate, ScriptStore * scriptStore);
void setTextInputCaller(TextInput * textInput);
void setSender(InputEventHandler * sender);
void reloadData();
void addFunctionAtIndex(const char * functionName, int scriptIndex);
@@ -52,7 +52,7 @@ private:
ScriptNode m_scriptNodes[k_maxScriptNodesCount];
App * m_pythonDelegate;
ScriptStore * m_scriptStore;
TextInput * m_textInputCaller;
InputEventHandler * m_sender;
ScriptNodeCell m_leafCells[k_maxNumberOfDisplayedRows];
SelectableTableView m_selectableTableView;
};