1
//---------------------------------------------------------------------------------------
2
// This file is part of the Lomse library.
3
// Copyright (c) 2010 Lomse project
5
// Lomse is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software Foundation,
7
// either version 3 of the License, or (at your option) any later version.
9
// Lomse is distributed in the hope that it will be useful, but WITHOUT ANY
10
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
// PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License along
14
// with Lomse; if not, see <http://www.gnu.org/licenses/>.
16
// For any comment, suggestion or feature request, please contact the manager of
17
// the project at cecilios@users.sourceforge.net
19
//--------------------------------------------------------------------------------------
21
#ifndef __LOMSE_BOX_SLICE_H__ //to avoid nested includes
22
#define __LOMSE_BOX_SLICE_H__
24
#include "lomse_basic.h"
25
#include "lomse_gm_basic.h"
28
//using namespace std;
33
//forward declarations
35
class GmoBoxSliceInstr;
37
//class lmTimeGridTable;
40
//---------------------------------------------------------------------------------------
41
// GmoBoxSlice: a system column
42
class GmoBoxSlice : public GmoBox
45
GmoBoxSystem* m_pBoxSystem; //parent system box
46
// int m_nAbsMeasure; //number of this measure (absolute, 1..n)
47
// int m_nNumInSystem; //number of slice for this system (0..n-1)
49
// //start and end positions
53
// lmTimeGridTable* m_pGridTable;
56
GmoBoxSlice(GmoBoxSystem* pParent, int nAbsMeasure); //, int nNumInSystem,
57
//LUnits xStart=0, LUnits xEnd=0);
60
// inline void UpdateSize(LUnits xStart, LUnits xEnd) {
66
// void DrawSelRectangle(lmPaper* pPaper);
69
// inline int GetNumMeasure() const { return m_nAbsMeasure; }
72
GmoBoxSliceInstr* add_box_for_instrument(ImoInstrument* pInstr);
73
// GmoBoxSliceInstr* GetSliceInstr(int i) const { return (GmoBoxSliceInstr*)m_Boxes[i]; }
75
// //implementation of virtual methods from base class
76
// int GetPageNumber() const;
78
// //owners and related
79
// GmoBoxSystem* GetOwnerSystem() { return m_pBoxSystem; }
80
// GmoBoxScore* GetOwnerBoxScore();
81
// GmoBoxPage* GetOwnerBoxPage();
84
// void SetBottomSpace(LUnits uyValue);
86
// //grid table: xPositions/timepos
87
// inline void SetTimeGridTable(lmTimeGridTable* pGridTable) { m_pGridTable = pGridTable; }
88
// float GetGridTimeForPosition(LUnits uxPos);
89
// void DrawTimeLines(lmPaper* pPaper, wxColour color, LUnits uyTop,
97
#endif // __LOMSE_BOX_SLICE_H__