MCPcopy Create free account
hub / github.com/bluescan/tacentview / OnNextImage

Method OnNextImage

Src/TacentView.cpp:966–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964
965
966bool 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
993bool Viewer::OnLastImage(bool last)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected