#include #include #include #include #include bool InputEventHandler::handleBoxEvent(Ion::Events::Event event) { if (m_inputEventHandlerDelegate == nullptr) { return false; } NestedMenuController * box = nullptr; if (event == Ion::Events::Toolbox) { box = m_inputEventHandlerDelegate->toolboxForInputEventHandler(this); } else if (event == Ion::Events::Var) { box = m_inputEventHandlerDelegate->variableBoxForInputEventHandler(this); } if (box) { box->setSender(this); Container::activeApp()->displayModalViewController(box, 0.f, 0.f, Metric::PopUpTopMargin, Metric::PopUpLeftMargin, 0, Metric::PopUpRightMargin); return true; } return false; }