~s-cecilio/lenmus/v5.1.x

« back to all changes in this revision

Viewing changes to src/score/TimeSignature.cpp

  • Committer: cecilios
  • Date: 2008-09-22 16:39:15 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:trunk:389

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
//
13
13
//    You should have received a copy of the GNU General Public License along with this
14
14
//    program. If not, see <http://www.gnu.org/licenses/>.
15
 
 
16
15
//
17
16
//    For any comment, suggestion or feature request, please contact the manager of
18
17
//    the project at cecilios@users.sourceforge.net
34
33
#include "wx/wx.h"
35
34
#endif
36
35
 
37
 
#include "wx/image.h"
38
36
#include "Score.h"
39
37
#include "Staff.h"
40
38
#include "VStaff.h"
41
39
#include "Context.h"
 
40
#include "../sound/SoundManager.h"
 
41
 
42
42
 
43
43
//-------------------------------------------------------------------------------------------------
44
44
// lmTimeSignature object implementation
133
133
                m_nId, m_nType, m_rTimePos );
134
134
    }
135
135
 
136
 
    //base class information
137
 
        sDump += lmStaffObj::Dump();
138
 
    sDump += _T("\n");
 
136
    //base class
 
137
    sDump += lmStaffObj::Dump();
 
138
    sDump += _T("\n");
 
139
 
 
140
    //contexts
 
141
    int nIndent = 5;
 
142
    for (int i=0; i < lmMAX_STAFF; i++)
 
143
    {
 
144
        if (m_pContext[i])
 
145
            sDump += m_pContext[i]->Dump(nIndent);
 
146
        else
 
147
        {
 
148
            sDump.append(nIndent * lmLDP_INDENT_STEP, _T(' '));
 
149
            sDump += _T("Context: NULL\n");
 
150
        }
 
151
    }
 
152
    sDump += _T("\n");
 
153
 
139
154
    return sDump;
140
155
}
141
156
 
223
238
    }
224
239
 
225
240
        // set total width (incremented in one line for after space)
226
 
        return GetShapeForStaff(1)->GetWidth() + m_pVStaff->TenthsToLogical(10, m_nStaffNum);
 
241
        return GetShape(1)->GetWidth() + m_pVStaff->TenthsToLogical(10, m_nStaffNum);
227
242
 
228
243
}
229
244