Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

Attributes Class Reference

#include <Attributes.h>

Inheritance diagram for Attributes:

XMLMarker List of all members.

Public Member Functions

 Attributes (XMLMarker *, QString nsp, QString nom, QXmlAttributes xml)
virtual void characters (QString s)
virtual bool endXMLMarker ()
bool isValidDescendant (QString s)
void setNStaves (int)
void setDivisions (int)

Public Attributes

AttributesMusicattributes

Detailed Description

! This is the basic class for putting attributes to a measure In fact those attributes dont only apply to a measure but also Thy can apply to a Staff ( A Measure can have several staff)


Constructor & Destructor Documentation

Attributes::Attributes XMLMarker p,
QString  nsp,
QString  nom,
QXmlAttributes  xmlatts
 

Construction of the AttributesMusic is done at the beginning of the marker.


Member Function Documentation

bool Attributes::endXMLMarker  )  [virtual]
 

Attributes marker sets the attributes properties of a measure. By default an attribute should be applied to the first staff if staff is not specified Thouhgt there is a unique marker string, we must distinguish two kinds of attributes.

  • The attributes that starts a measure. Like time beats and beats-type
  • The attributes that are in the middle of the measure. For example a key could change in the middle of a measure. This is done whith the condtion that the current position in the measure is 0.

Reimplemented from XMLMarker.

bool Attributes::isValidDescendant QString  s  )  [virtual]
 

The valid descendant is a note

Parameters:
s the name of the descendant

Reimplemented from XMLMarker.

void Attributes::setDivisions int  divisions  ) 
 

Set the number of divisions

void Attributes::setNStaves int  i  ) 
 

This sets the number of staves


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:30 2004 for Alternate Take by doxygen 1.3.6