MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getVersionString

Method getVersionString

Source/Core/CtrlrPanel/CtrlrPanel.cpp:964–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

962}
963
964const String CtrlrPanel::getVersionString(const bool includeVersionName, const bool includeTime, const String versionSeparator)
965{
966 String r;
967 String sep;
968
969 if (versionSeparator == "")
970 sep = owner.getProperty(Ids::ctrlrVersionSeparator).toString();
971 else
972 sep = versionSeparator;
973
974 int versionMajor = getProperty(Ids::panelVersionMajor);
975 int versionMinor = getProperty(Ids::panelVersionMinor);
976
977 r << versionMajor << sep << versionMinor;
978
979 if (includeVersionName && getProperty (Ids::panelVersionName).toString() != "")
980 {
981 r << sep + getProperty (Ids::panelVersionName).toString();
982 }
983
984 if (includeTime)
985 {
986 Time t = Time::getCurrentTime();
987
988 r << sep + t.formatted("%Y-%m-%d_%H-%M");
989 }
990
991 return (r);
992}
993
994int CtrlrPanel::cleanBogusProperties()
995{

Callers 11

setBundleInfoMethod · 0.45
CtrlrAboutMethod · 0.45
askForPanelFileToSaveMethod · 0.45
getVersionFunction · 0.45
bumpVersionFunction · 0.45
gitTagFunction · 0.45
writeInfoPlistFileMethod · 0.45
writeAppHeaderMethod · 0.45
createRCFileFunction · 0.45
createManifestElementMethod · 0.45

Calls 3

formattedMethod · 0.80
toStringMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected