| 96 | } |
| 97 | |
| 98 | void mitk::Stepper::Increase() |
| 99 | { |
| 100 | if (this->GetPos() < this->GetSteps() - 1) |
| 101 | { |
| 102 | this->SetPos(this->GetPos() + 1); |
| 103 | } |
| 104 | else if (m_AutoRepeat) |
| 105 | { |
| 106 | if (!m_PingPong) |
| 107 | { |
| 108 | this->SetPos(0); |
| 109 | } |
| 110 | else |
| 111 | { |
| 112 | m_InverseDirection = true; |
| 113 | if (this->GetPos() > 0) |
| 114 | { |
| 115 | this->SetPos(this->GetPos() - 1); |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | void mitk::Stepper::Decrease() |
| 122 | { |