[apps/*/function_app] Inline inputViewController getter in header

This commit is contained in:
Ruben Dashyan
2019-08-30 15:31:40 +02:00
parent 4ecf6835e7
commit 8053e683c0
4 changed files with 6 additions and 10 deletions

View File

@@ -68,10 +68,6 @@ App::App(Snapshot * snapshot) :
{
}
InputViewController * App::inputViewController() {
return &m_inputViewController;
}
CodePoint App::XNT() {
if (m_inputViewController.isEditing()) {
int selectedFunctionIndex = m_listController.selectedRow();

View File

@@ -33,10 +33,12 @@ public:
static App * app() {
return static_cast<App *>(Container::activeApp());
}
InputViewController * inputViewController() override;
CodePoint XNT() override;
NestedMenuController * variableBoxForInputEventHandler(InputEventHandler * textInput) override;
CartesianFunctionStore * functionStore() override { return static_cast<CartesianFunctionStore *>(Shared::FunctionApp::functionStore()); }
InputViewController * inputViewController() override {
return &m_inputViewController;
}
private:
App(Snapshot * snapshot);
ListController m_listController;

View File

@@ -59,10 +59,6 @@ App::App(Snapshot * snapshot) :
{
}
InputViewController * App::inputViewController() {
return &m_inputViewController;
}
SequenceContext * App::localContext() {
return &m_sequenceContext;
}

View File

@@ -35,12 +35,14 @@ public:
static App * app() {
return static_cast<App *>(Container::activeApp());
}
InputViewController * inputViewController() override;
// TODO: override variableBoxForInputEventHandler to lock sequence in the variable box once they appear there
// NestedMenuController * variableBoxForInputEventHandler(InputEventHandler * textInput) override;
CodePoint XNT() override { return 'n'; }
SequenceContext * localContext() override;
SequenceStore * functionStore() override { return static_cast<SequenceStore *>(Shared::FunctionApp::functionStore()); }
InputViewController * inputViewController() override {
return &m_inputViewController;
}
private:
App(Snapshot * snapshot);
SequenceContext m_sequenceContext;