Skip to content

Commit

Permalink
Merge branch 'develop' into regex-performance
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-bayleaf committed Dec 16, 2024
2 parents fdae6f6 + 7546476 commit a714c84
Show file tree
Hide file tree
Showing 44 changed files with 191 additions and 385 deletions.
1 change: 0 additions & 1 deletion include/vrv/arpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Arpeg : public ControlElement,
public TimePointInterface,
public AttArpegLog,
public AttArpegVis,
public AttColor,
public AttEnclosingChars {
public:
/**
Expand Down
3 changes: 1 addition & 2 deletions include/vrv/beamspan.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ class BeamSpan : public ControlElement,
public PlistInterface,
public TimeSpanningInterface,
public AttBeamedWith,
public AttBeamRend,
public AttColor {
public AttBeamRend {
public:
/**
* @name Constructors, destructors, and other standard methods
Expand Down
1 change: 0 additions & 1 deletion include/vrv/bracketspan.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace vrv {
class BracketSpan : public ControlElement,
public TimeSpanningInterface,
public AttBracketSpanLog,
public AttColor,
public AttLineRend,
public AttLineRendBase {
public:
Expand Down
2 changes: 1 addition & 1 deletion include/vrv/breath.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace vrv {
/**
* This class models the MEI <breath> element.
*/
class Breath : public ControlElement, public TimePointInterface, public AttColor, public AttPlacementRelStaff {
class Breath : public ControlElement, public TimePointInterface, public AttPlacementRelStaff {
public:
/**
* @name Constructors, destructors, and other standard methods
Expand Down
1 change: 0 additions & 1 deletion include/vrv/caesura.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace vrv {
*/
class Caesura : public ControlElement,
public TimePointInterface,
public AttColor,
public AttExtSymAuth,
public AttExtSymNames,
public AttPlacementRelStaff {
Expand Down
2 changes: 2 additions & 0 deletions include/vrv/controlelement.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "altsyminterface.h"
#include "atts_shared.h"
#include "atts_visual.h"
#include "devicecontextbase.h"
#include "floatingobject.h"
#include "linkinginterface.h"
Expand All @@ -27,6 +28,7 @@ namespace vrv {
class ControlElement : public FloatingObject,
public AltSymInterface,
public LinkingInterface,
public AttColor,
public AttLabelled,
public AttTyped {
public:
Expand Down
5 changes: 3 additions & 2 deletions include/vrv/editortoolkit_neume.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class EditorToolkitNeume : public EditorToolkit {
///@{
bool Chain(jsonxx::Array actions);
bool DisplaceClefOctave(std::string elementId, std::string direction);
bool Drag(std::string elementId, int x, int y);
bool Drag(std::string elementId, int x, int y, bool topLevel = true);
bool Insert(std::string elementType, std::string staffId, int ulx, int uly, int lrx, int lry,
std::vector<std::pair<std::string, std::string>> attributes);
bool InsertToSyllable(std::string elementId);
Expand Down Expand Up @@ -102,7 +102,8 @@ class EditorToolkitNeume : public EditorToolkit {
* Helper functions for editor actions.
*/
///@{
bool AdjustPitchFromPosition(Object *obj, Clef *clef = NULL);
bool AdjustPitchAfterDrag(Object *obj, int y = 0);
bool AdjustPitchFromPosition(Object *obj);
bool AdjustClefLineFromPosition(Clef *clef, Staff *staff = NULL);
///@}
};
Expand Down
1 change: 0 additions & 1 deletion include/vrv/fermata.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ namespace vrv {
*/
class Fermata : public ControlElement,
public TimePointInterface,
public AttColor,
public AttEnclosingChars,
public AttExtSymAuth,
public AttExtSymNames,
Expand Down
1 change: 0 additions & 1 deletion include/vrv/gliss.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ namespace vrv {
*/
class Gliss : public ControlElement,
public TimeSpanningInterface,
public AttColor,
public AttLineRend,
public AttLineRendBase,
public AttNNumberLike {
Expand Down
1 change: 0 additions & 1 deletion include/vrv/hairpin.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace vrv {
*/
class Hairpin : public ControlElement,
public TimeSpanningInterface,
public AttColor,
public AttHairpinLog,
public AttHairpinVis,
public AttLineRendBase,
Expand Down
1 change: 0 additions & 1 deletion include/vrv/mnum.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class MNum : public ControlElement,
public TextListInterface,
public TextDirInterface,
public TimePointInterface,
public AttColor,
public AttLang,
public AttTypography {
public:
Expand Down
1 change: 0 additions & 1 deletion include/vrv/mordent.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ namespace vrv {
*/
class Mordent : public ControlElement,
public TimePointInterface,
public AttColor,
public AttExtSymAuth,
public AttExtSymNames,
public AttOrnamentAccid,
Expand Down
1 change: 0 additions & 1 deletion include/vrv/octave.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace vrv {
*/
class Octave : public ControlElement,
public TimeSpanningInterface,
public AttColor,
public AttExtender,
public AttLineRend,
public AttLineRendBase,
Expand Down
1 change: 0 additions & 1 deletion include/vrv/ornam.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Ornam : public ControlElement,
public TextListInterface,
public TextDirInterface,
public TimePointInterface,
public AttColor,
public AttOrnamentAccid {
public:
/**
Expand Down
1 change: 0 additions & 1 deletion include/vrv/pedal.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class System;
*/
class Pedal : public ControlElement,
public TimeSpanningInterface,
public AttColor,
public AttExtSymAuth,
public AttExtSymNames,
public AttPedalLog,
Expand Down
1 change: 0 additions & 1 deletion include/vrv/reh.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class TextElement;
class Reh : public ControlElement,
public TextDirInterface,
public TimePointInterface,
public AttColor,
public AttLang,
public AttVerticalGroup {
public:
Expand Down
1 change: 0 additions & 1 deletion include/vrv/repeatmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class RepeatMark : public ControlElement,
public TextListInterface,
public TextDirInterface,
public TimePointInterface,
public AttColor,
public AttExtSymAuth,
public AttExtSymNames,
public AttRepeatMarkLog {
Expand Down
1 change: 0 additions & 1 deletion include/vrv/slur.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ enum class PortatoSlurType { None, StemSide, Centered };

class Slur : public ControlElement,
public TimeSpanningInterface,
public AttColor,
public AttCurvature,
public AttLayerIdent,
public AttLineRendBase {
Expand Down
6 changes: 1 addition & 5 deletions include/vrv/tie.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ class Note;
/**
* This class models the MEI <tie> element.
*/
class Tie : public ControlElement,
public TimeSpanningInterface,
public AttColor,
public AttCurvature,
public AttLineRendBase {
class Tie : public ControlElement, public TimeSpanningInterface, public AttCurvature, public AttLineRendBase {
public:
/**
* @name Constructors, destructors, and other standard methods
Expand Down
1 change: 0 additions & 1 deletion include/vrv/trill.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ namespace vrv {
*/
class Trill : public ControlElement,
public TimeSpanningInterface,
public AttColor,
public AttExtender,
public AttExtSymAuth,
public AttExtSymNames,
Expand Down
1 change: 0 additions & 1 deletion include/vrv/turn.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ namespace vrv {
*/
class Turn : public ControlElement,
public TimePointInterface,
public AttColor,
public AttExtSymAuth,
public AttExtSymNames,
public AttOrnamentAccid,
Expand Down
5 changes: 1 addition & 4 deletions src/arpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ namespace vrv {

static const ClassRegistrar<Arpeg> s_factory("arpeg", ARPEG);

Arpeg::Arpeg()
: ControlElement(ARPEG, "arpeg-"), PlistInterface(), TimePointInterface(), AttArpegLog(), AttArpegVis(), AttColor()
Arpeg::Arpeg() : ControlElement(ARPEG, "arpeg-"), PlistInterface(), TimePointInterface(), AttArpegLog(), AttArpegVis()
{
this->RegisterInterface(PlistInterface::GetAttClasses(), PlistInterface::IsInterface());
this->RegisterInterface(TimePointInterface::GetAttClasses(), TimePointInterface::IsInterface());
this->RegisterAttClass(ATT_ARPEGLOG);
this->RegisterAttClass(ATT_ARPEGVIS);
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_ENCLOSINGCHARS);

this->Reset();
Expand All @@ -51,7 +49,6 @@ void Arpeg::Reset()
TimePointInterface::Reset();
this->ResetArpegLog();
this->ResetArpegVis();
this->ResetColor();
this->ResetEnclosingChars();

m_drawingXRel = 0;
Expand Down
3 changes: 0 additions & 3 deletions src/beamspan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ BeamSpan::BeamSpan()
, TimeSpanningInterface()
, AttBeamedWith()
, AttBeamRend()
, AttColor()
{
RegisterInterface(PlistInterface::GetAttClasses(), PlistInterface::IsInterface());
RegisterInterface(TimeSpanningInterface::GetAttClasses(), TimeSpanningInterface::IsInterface());
RegisterAttClass(ATT_BEAMEDWITH);
RegisterAttClass(ATT_BEAMREND);
RegisterAttClass(ATT_COLOR);

Reset();
InitBeamSegments();
Expand All @@ -61,7 +59,6 @@ void BeamSpan::Reset()
TimeSpanningInterface::Reset();
ResetBeamedWith();
ResetBeamRend();
ResetColor();

ClearBeamSegments();
}
Expand Down
3 changes: 0 additions & 3 deletions src/bracketspan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@ BracketSpan::BracketSpan()
: ControlElement(BRACKETSPAN, "bspan-")
, TimeSpanningInterface()
, AttBracketSpanLog()
, AttColor()
, AttLineRend()
, AttLineRendBase()
{
this->RegisterInterface(TimeSpanningInterface::GetAttClasses(), TimeSpanningInterface::IsInterface());
this->RegisterAttClass(ATT_BRACKETSPANLOG);
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_LINEREND);
this->RegisterAttClass(ATT_LINERENDBASE);

Expand All @@ -51,7 +49,6 @@ void BracketSpan::Reset()
ControlElement::Reset();
TimeSpanningInterface::Reset();
this->ResetBracketSpanLog();
this->ResetColor();
this->ResetLineRend();
this->ResetLineRendBase();
}
Expand Down
4 changes: 1 addition & 3 deletions src/breath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ namespace vrv {

static const ClassRegistrar<Breath> s_factory("breath", BREATH);

Breath::Breath() : ControlElement(BREATH, "breath-"), TimePointInterface(), AttColor(), AttPlacementRelStaff()
Breath::Breath() : ControlElement(BREATH, "breath-"), TimePointInterface(), AttPlacementRelStaff()
{
this->RegisterInterface(TimePointInterface::GetAttClasses(), TimePointInterface::IsInterface());
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_PLACEMENTRELSTAFF);

this->Reset();
Expand All @@ -39,7 +38,6 @@ void Breath::Reset()
{
ControlElement::Reset();
TimePointInterface::Reset();
this->ResetColor();
this->ResetPlacementRelStaff();
}

Expand Down
3 changes: 0 additions & 3 deletions src/caesura.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ static const ClassRegistrar<Caesura> s_factory("caesura", CAESURA);
Caesura::Caesura()
: ControlElement(CAESURA, "caesura-")
, TimePointInterface()
, AttColor()
, AttExtSymAuth()
, AttExtSymNames()
, AttPlacementRelStaff()
{
this->RegisterInterface(TimePointInterface::GetAttClasses(), TimePointInterface::IsInterface());
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_EXTSYMAUTH);
this->RegisterAttClass(ATT_EXTSYMNAMES);
this->RegisterAttClass(ATT_PLACEMENTRELSTAFF);
Expand All @@ -49,7 +47,6 @@ void Caesura::Reset()
{
ControlElement::Reset();
TimePointInterface::Reset();
this->ResetColor();
this->ResetPlacementRelStaff();
}

Expand Down
11 changes: 10 additions & 1 deletion src/controlelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ namespace vrv {
//----------------------------------------------------------------------------

ControlElement::ControlElement()
: FloatingObject(CONTROL_ELEMENT, "ce"), AltSymInterface(), LinkingInterface(), AttLabelled(), AttTyped()
: FloatingObject(CONTROL_ELEMENT, "ce")
, AltSymInterface()
, LinkingInterface()
, AttColor()
, AttLabelled()
, AttTyped()
{
this->RegisterInterface(AltSymInterface::GetAttClasses(), AltSymInterface::IsInterface());
this->RegisterInterface(LinkingInterface::GetAttClasses(), LinkingInterface::IsInterface());
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_LABELLED);
this->RegisterAttClass(ATT_TYPED);

Expand All @@ -43,6 +49,7 @@ ControlElement::ControlElement(ClassId classId)
{
this->RegisterInterface(AltSymInterface::GetAttClasses(), AltSymInterface::IsInterface());
this->RegisterInterface(LinkingInterface::GetAttClasses(), LinkingInterface::IsInterface());
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_LABELLED);
this->RegisterAttClass(ATT_TYPED);

Expand All @@ -54,6 +61,7 @@ ControlElement::ControlElement(ClassId classId, const std::string &classIdStr)
{
this->RegisterInterface(AltSymInterface::GetAttClasses(), AltSymInterface::IsInterface());
this->RegisterInterface(LinkingInterface::GetAttClasses(), LinkingInterface::IsInterface());
this->RegisterAttClass(ATT_COLOR);
this->RegisterAttClass(ATT_LABELLED);
this->RegisterAttClass(ATT_TYPED);

Expand All @@ -67,6 +75,7 @@ void ControlElement::Reset()
FloatingObject::Reset();
AltSymInterface::Reset();
LinkingInterface::Reset();
this->ResetColor();
this->ResetLabelled();
this->ResetTyped();
}
Expand Down
Loading

0 comments on commit a714c84

Please sign in to comment.