Skip to content

Commit

Permalink
Add support for meterSig@color
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Feb 7, 2024
1 parent 7607b26 commit 0a82570
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/vrv/metersig.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class ScoreDefInterface;
* This class models the MEI <meterSig> element.
*/
class MeterSig : public LayerElement,
public AttColor,
public AttEnclosingChars,
public AttExtSymNames,
public AttMeterSigLog,
Expand Down
2 changes: 2 additions & 0 deletions src/iomei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2629,6 +2629,7 @@ void MEIOutput::WriteMeterSig(pugi::xml_node currentNode, MeterSig *meterSig)
}

this->WriteLayerElement(currentNode, meterSig);
meterSig->WriteColor(currentNode);
meterSig->WriteEnclosingChars(currentNode);
meterSig->WriteMeterSigLog(currentNode);
meterSig->WriteMeterSigVis(currentNode);
Expand Down Expand Up @@ -6689,6 +6690,7 @@ bool MEIInput::ReadMeterSig(Object *parent, pugi::xml_node meterSig)
this->UpgradeMeterSigTo_5_0(meterSig, vrvMeterSig);
}

vrvMeterSig->ReadColor(meterSig);
vrvMeterSig->ReadEnclosingChars(meterSig);
vrvMeterSig->ReadExtSymNames(meterSig);
vrvMeterSig->ReadMeterSigLog(meterSig);
Expand Down
3 changes: 3 additions & 0 deletions src/metersig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ static const ClassRegistrar<MeterSig> s_factory("meterSig", METERSIG);

MeterSig::MeterSig()
: LayerElement(METERSIG, "msig-")
, AttColor()
, AttEnclosingChars()
, AttExtSymNames()
, AttMeterSigLog()
, AttMeterSigVis()
, AttTypography()
, AttVisibility()
{
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_ENCLOSINGCHARS);
this->RegisterAttClass(ATT_EXTSYMNAMES);
this->RegisterAttClass(ATT_METERSIGLOG);
Expand All @@ -53,6 +55,7 @@ MeterSig::~MeterSig() {}
void MeterSig::Reset()
{
LayerElement::Reset();
this->ResetColor();
this->ResetEnclosingChars();
this->ResetExtSymNames();
this->ResetMeterSigLog();
Expand Down

0 comments on commit 0a82570

Please sign in to comment.