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

Container Class Reference
[Layout]

#include <Container.h>

List of all members.

Public Member Functions

MusicSymbolFactorygetFactory ()
void setFactory (MusicSymbolFactory *)
 Container (PrintDevice *)
void setScore (ScoreMusic *)
QString name ()
void setPrintDevice (PrintDevice *)
PrintDevicegetPrintDevice ()
MeasureSectionContainergetMeasureSectionContainer (int i)
PaintergetPainter (int i)
void appendNote (MusicSymbol *)
void link (NoteMusic *nm, MusicSymbol *ms)
ScoreMusicgetScore ()

Public Attributes

AssoMCMS globalAssoMCMS

Protected Attributes

PrintDeviceprintDevice
QPtrList< MusicSymbolnoteSymbols
QPtrList< MeasureSectionContainermeasureSectionContainers
MusicSymbolFactoryfactory


Detailed Description

The container will draw the object whose positions are computed in the layout. Basically there is two references object for the graphical drawing

make the container a real side class


Constructor & Destructor Documentation

Container::Container PrintDevice p  ) 
 

Parameters:
s ScoreMusic of the top container We did some accessors because the set of a score must rebuild the layout consequently. After a set we call the pure virtual fonction init. *


Member Function Documentation

void Container::appendNote MusicSymbol ms  ) 
 

Append the noteMS to a vector (this is used to perform the collision detection of the slurs and beam)

MusicSymbolFactory * Container::getFactory  ) 
 

Returns:
the factory

MeasureSectionContainer * Container::getMeasureSectionContainer int  i  ) 
 

Returns:
the measure section container associated with the index i
Parameters:
i the index of the measure section.

Painter * Container::getPainter int  i  ) 
 

When a print is being done we get the screen painter save it somewhere and once it is done we restore it. this mean there cannot be any refreshment when a print is being done but this guarantee What You See Is What You Get !!!

ScoreMusic * Container::getScore  ) 
 

Returns:
The score (shared by all the pages) *

void Container::link NoteMusic nm,
MusicSymbol ms
 

Associate in the global association MCMS the note and the MS

Parameters:
nm the note music
ms the music symbol

QString Container::name  ) 
 

Returns:
Name of the Container *

void Container::setFactory MusicSymbolFactory f  ) 
 

set the factory


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