00001 #ifndef MEASURESECTIONGR_H
00002 #define MEASURESECTIONGR_H
00003 #include "Graphical.h"
00004 #include <qlist.h>
00005
00006 #include "../MS/MusicSymbol.h"
00007 #include "../graphical/Constraint.h"
00008 #include "AssoMCMS.h"
00009 #include "Collision.h"
00010 #include "MeasureGr.h"
00011 #define BEFOREFIRSTPASS 0
00012 #define AFTERFIRSTPASS 1
00013 #define AFTERSECONDPASS 2
00014
00023 class MeasureSectionGr:public Graphical{
00024 int measureSectionIndex;
00025 bool isFirstPass;
00026 int status;
00027 int pageNumber;
00028
00029 QList<MeasureGr> parts;
00030 QList<MusicSymbol> * symbols;
00031
00032 AssoMCMS assoMCMS;
00033
00034 void computeCollision();
00035 int lineIndex;
00036
00037 Constraint * constraint ;
00038
00039 public:
00040 MeasureSectionGr(Constraint *,Graphical * parent,Container * container,int indice,int lineIndex,int pgnb);
00041 void update();
00042
00043
00044 void firstPass();
00045 void collisionDetectionPass();
00046 void secondPass();
00047 double y();
00048 double x();
00049 double getEndOfMeasureSection();
00050 void paint();
00051 void closeMeasureSection();
00052 };
00053 #endif