| 67 | }; |
| 68 | |
| 69 | Action evaluateKeys(int key, Qt::KeyboardModifiers) { |
| 70 | if (key == Qt::Key_N) |
| 71 | return Action::NavigateNextCurve; |
| 72 | else if (key == Qt::Key_P) |
| 73 | return Action::NavigatePrevCurve; |
| 74 | else if (key == Qt::Key_T) |
| 75 | return Action::NewTextLabel; |
| 76 | else if (key == Qt::Key_R) |
| 77 | return Action::NewReferenceRange; |
| 78 | else if (key == Qt::Key_L) |
| 79 | return Action::NewReferenceLine; |
| 80 | else if (key == Qt::Key_I) |
| 81 | return Action::NewImage; |
| 82 | else if (key == Qt::Key_M) |
| 83 | return Action::NewCustomPoint; |
| 84 | else if (key == Qt::Key_Escape) |
| 85 | return Action::Abort; |
| 86 | else if (key == Qt::Key_Left) |
| 87 | return Action::MoveLeft; |
| 88 | else if (key == Qt::Key_Right) |
| 89 | return Action::MoveRight; |
| 90 | else if (key == Qt::Key_Up) |
| 91 | return Action::MoveUp; |
| 92 | else if (key == Qt::Key_Down) |
| 93 | return Action::MoveDown; |
| 94 | return Action::Abort; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /** |