| 287 | } |
| 288 | |
| 289 | void CtrlrLuaConsole::menuItemSelected(int menuItemID, int topLevelMenuIndex) |
| 290 | { |
| 291 | if (topLevelMenuIndex == 0 && menuItemID==1) |
| 292 | { |
| 293 | owner.getWindowManager().toggle (CtrlrPanelWindowManager::LuaConsole, false); |
| 294 | } |
| 295 | if (menuItemID == 2) |
| 296 | { |
| 297 | snips.add (inputDocument.getAllContent()); |
| 298 | } |
| 299 | if (menuItemID >= 1024 && menuItemID < 4096) |
| 300 | { |
| 301 | runCode (snips[menuItemID-1024]); |
| 302 | } |
| 303 | if (menuItemID >= 4096) |
| 304 | { |
| 305 | snips.remove (menuItemID-4096); |
| 306 | } |
| 307 | if (menuItemID == 3) |
| 308 | { |
| 309 | owner.setProperty (Ids::uiLuaConsoleInputRemoveAfterRun, !owner.getProperty(Ids::uiLuaConsoleInputRemoveAfterRun)); |
| 310 | } |
| 311 | owner.setProperty (Ids::uiLuaConsoleSnips, snips.joinIntoString("$")); |
| 312 | } |
| 313 | |
| 314 | void CtrlrLuaConsole::focusGained(FocusChangeType cause) |
| 315 | { |
nothing calls this directly
no test coverage detected