| 39 | void ImagePreview::finish() {} |
| 40 | |
| 41 | void ImagePreview::eventOccurred(Event *e) |
| 42 | { |
| 43 | menuform->eventOccured(e); |
| 44 | |
| 45 | if (e->type() == EVENT_KEY_DOWN) |
| 46 | { |
| 47 | if (e->keyboard().KeyCode == SDLK_ESCAPE) |
| 48 | { |
| 49 | fw().stageQueueCommand({StageCmd::Command::POP}); |
| 50 | return; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | if (e->type() == EVENT_FORM_INTERACTION && |
| 55 | e->forms().EventFlag == FormEventType::TextEditFinish) |
| 56 | { |
| 57 | updateImage(); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | void ImagePreview::update() { menuform->update(); } |
| 62 |
nothing calls this directly
no test coverage detected