mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/*/function_app] Inline inputViewController getter in header
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -59,10 +59,6 @@ App::App(Snapshot * snapshot) :
|
||||
{
|
||||
}
|
||||
|
||||
InputViewController * App::inputViewController() {
|
||||
return &m_inputViewController;
|
||||
}
|
||||
|
||||
SequenceContext * App::localContext() {
|
||||
return &m_sequenceContext;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user