| 964 | |
| 965 | |
| 966 | bool Viewer::OnNextImage(bool next) |
| 967 | { |
| 968 | if (!CurrImage) |
| 969 | return false; |
| 970 | |
| 971 | Config::ProfileData& profile = Config::GetProfileData(); |
| 972 | if (profile.ShowImportRaw) |
| 973 | return false; |
| 974 | |
| 975 | bool circ = SlideshowPlaying && profile.SlideshowLooping; |
| 976 | bool avail = next ? CurrImage->Next() : CurrImage->Prev(); |
| 977 | if (!circ && !avail) |
| 978 | return false; |
| 979 | |
| 980 | if (SlideshowPlaying) |
| 981 | SlideshowCountdown = profile.SlideshowPeriod; |
| 982 | |
| 983 | if (next) |
| 984 | { CurrImage = circ ? Images.NextCirc(CurrImage) : CurrImage->Next(); } |
| 985 | else |
| 986 | { CurrImage = circ ? Images.PrevCirc(CurrImage) : CurrImage->Prev(); } |
| 987 | |
| 988 | LoadCurrImage(); |
| 989 | return true; |
| 990 | } |
| 991 | |
| 992 | |
| 993 | bool Viewer::OnLastImage(bool last) |
nothing calls this directly
no outgoing calls
no test coverage detected