| 119 | } |
| 120 | |
| 121 | void mitk::Stepper::Decrease() |
| 122 | { |
| 123 | if (this->GetPos() > 0) |
| 124 | { |
| 125 | this->SetPos(this->GetPos() - 1); |
| 126 | } |
| 127 | else if (m_AutoRepeat) |
| 128 | { |
| 129 | if (!m_PingPong) |
| 130 | { |
| 131 | this->SetPos(this->GetSteps() - 1); |
| 132 | } |
| 133 | else |
| 134 | { |
| 135 | m_InverseDirection = false; |
| 136 | if (this->GetPos() < this->GetSteps() - 1) |
| 137 | { |
| 138 | this->SetPos(this->GetPos() + 1); |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | void mitk::Stepper::Next() |
| 145 | { |