Skip to content

Commit

Permalink
Move LedgerLine up for some compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jan 19, 2024
1 parent 199368a commit 29fbb92
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions include/vrv/staff.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,49 @@ class Syl;
class TimeSpanningInterface;
class Tuning;

//----------------------------------------------------------------------------
// LedgerLine
//----------------------------------------------------------------------------

/**
* This is a class with no MEI equivalent for representing legder lines.
* A ledger line is represented by a list of dashes.
* Each dash is represented by a pair of points (left - right).
*/
class LedgerLine {
public:
/**
* @name Constructors, destructors, reset methods
* Reset method reset all attribute classes
*/
///@{
LedgerLine();
virtual ~LedgerLine();
virtual void Reset();
///@}

/**
* Add a dash to the ledger line object.
* If necessary merges overlapping dashes.
*/
void AddDash(int left, int right, int extension);

protected:
//
private:
//
public:
/**
* A list of dashes relative to the staff position.
*/
std::list<std::pair<int, int>> m_dashes;

protected:
//
private:
//
};

//----------------------------------------------------------------------------
// Staff
//----------------------------------------------------------------------------
Expand Down Expand Up @@ -249,49 +292,6 @@ class Staff : public Object,
///@}
};

//----------------------------------------------------------------------------
// LedgerLine
//----------------------------------------------------------------------------

/**
* This is a class with no MEI equivalent for representing legder lines.
* A ledger line is represented by a list of dashes.
* Each dash is represented by a pair of points (left - right).
*/
class LedgerLine {
public:
/**
* @name Constructors, destructors, reset methods
* Reset method reset all attribute classes
*/
///@{
LedgerLine();
virtual ~LedgerLine();
virtual void Reset();
///@}

/**
* Add a dash to the ledger line object.
* If necessary merges overlapping dashes.
*/
void AddDash(int left, int right, int extension);

protected:
//
private:
//
public:
/**
* A list of dashes relative to the staff position.
*/
std::list<std::pair<int, int>> m_dashes;

protected:
//
private:
//
};

} // namespace vrv

#endif

0 comments on commit 29fbb92

Please sign in to comment.