Set ONB default Splits printout format (Issue #2)
This commit is contained in:
parent
f7c36a56d4
commit
3dca717410
30
Lists/split_onb.listdef
Normal file
30
Lists/split_onb.listdef
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
|
||||||
|
<MeOSListDefinition version="3.9">
|
||||||
|
<ListName>ONB Results Split Print</ListName>
|
||||||
|
<Tag>split_onb</Tag>
|
||||||
|
<SplitPrint>
|
||||||
|
<Split>true</Split>
|
||||||
|
<Speed>false</Speed>
|
||||||
|
<Result>false</Result>
|
||||||
|
<Analysis>false</Analysis>
|
||||||
|
<Heading>true</Heading>
|
||||||
|
<NumClsResult>3</NumClsResult>
|
||||||
|
</SplitPrint>
|
||||||
|
<SortOrder>SortNameOnly</SortOrder>
|
||||||
|
<ListType>Runner</ListType>
|
||||||
|
<SubListType>None</SubListType>
|
||||||
|
<HeadFont scale="100" above="0"/>
|
||||||
|
<SubHeadFont scale="100" above="0"/>
|
||||||
|
<ListFont scale="100" above="0"/>
|
||||||
|
<SubListFont scale="100" above="0"/>
|
||||||
|
<Head>
|
||||||
|
</Head>
|
||||||
|
<SubHead>
|
||||||
|
</SubHead>
|
||||||
|
<List>
|
||||||
|
</List>
|
||||||
|
<SubList>
|
||||||
|
</SubList>
|
||||||
|
</MeOSListDefinition>
|
||||||
@ -1943,9 +1943,9 @@ void ListEditor::splitPrintList(gdioutput& gdi) {
|
|||||||
gdi.dropLine(0.5);
|
gdi.dropLine(0.5);
|
||||||
gdi.fillRight();
|
gdi.fillRight();
|
||||||
gdi.addCheckbox("Split", "Inkludera sträcktider", nullptr, isSP ? sp->includeSplitTimes : true);
|
gdi.addCheckbox("Split", "Inkludera sträcktider", nullptr, isSP ? sp->includeSplitTimes : true);
|
||||||
gdi.addCheckbox("Speed", "Inkludera tempo", nullptr, isSP ? sp->withSpeed : true);
|
gdi.addCheckbox("Speed", "Inkludera tempo", nullptr, isSP ? sp->withSpeed : false);
|
||||||
gdi.addCheckbox("Result", "Inkludera individuellt resultat", nullptr, isSP ? sp->withResult : true);
|
gdi.addCheckbox("Result", "Inkludera individuellt resultat", nullptr, isSP ? sp->withResult : false);
|
||||||
gdi.addCheckbox("Analysis", "Inkludera bomanalys", nullptr, isSP ? sp->withAnalysis : true);
|
gdi.addCheckbox("Analysis", "Inkludera bomanalys", nullptr, isSP ? sp->withAnalysis : false);
|
||||||
|
|
||||||
int maxX = gdi.getCX();
|
int maxX = gdi.getCX();
|
||||||
|
|
||||||
|
|||||||
@ -461,7 +461,12 @@ void oEvent::initProperties() {
|
|||||||
getPropertyInt("UseEventorUTC", 0);
|
getPropertyInt("UseEventorUTC", 0);
|
||||||
getPropertyInt("UseHourFormat", 1);
|
getPropertyInt("UseHourFormat", 1);
|
||||||
getPropertyInt("NameMode", LastFirst);
|
getPropertyInt("NameMode", LastFirst);
|
||||||
getPropertyInt("PlaySound", 0);
|
|
||||||
|
// Override with ONB Defaults
|
||||||
|
setProperty("PlaySound", 0);
|
||||||
|
setProperty("SplitDefaultRogaine", "split_onb");
|
||||||
|
setProperty("SplitDefaultIndividual", "split_onb");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void oEvent::listProperties(bool userProps, vector< pair<string, PropertyType> > &propNames) const {
|
void oEvent::listProperties(bool userProps, vector< pair<string, PropertyType> > &propNames) const {
|
||||||
|
|||||||
@ -4904,15 +4904,15 @@ void oRunner::printSplits(gdioutput& gdi) const {
|
|||||||
if (cls1) {
|
if (cls1) {
|
||||||
if (cls1->getClassType() == ClassType::oClassIndividual) {
|
if (cls1->getClassType() == ClassType::oClassIndividual) {
|
||||||
if (cls1->isRogaining())
|
if (cls1->isRogaining())
|
||||||
listId = "Tsplit_result_rogaining";
|
listId = "T" + oe->getPropertyString("SplitDefaultRogaine", "split_result_rogaining");
|
||||||
else
|
else
|
||||||
listId = "Tsplit_result_individual";
|
listId = "T" + oe->getPropertyString("SplitDefaultIndividual", "split_result_individual");
|
||||||
}
|
}
|
||||||
else if (cls1->getClassType() == ClassType::oClassRelay) {
|
else if (cls1->getClassType() == ClassType::oClassRelay) {
|
||||||
if (cls1->isRogaining())
|
if (cls1->isRogaining())
|
||||||
listId = "Tsplit_result_team_rogaining";
|
listId = "T" + oe->getPropertyString("SplitDefaultTeamRogaine", "split_result_team_rogaining");
|
||||||
else
|
else
|
||||||
listId = "Tsplit_result_team";
|
listId = "T" + oe->getPropertyString("SplitDefaultTeam", "split_result_team");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user