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

« back to all changes in this revision

Viewing changes to src/exercises/ctrols/lenmus_ear_intervals_ctrol.cpp

  • Committer: cecilios
  • Date: 2012-09-07 17:42:21 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:branches/TRY-5.0:721
initial commit with all changes for 5.1. See changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    //ctrol options
81
81
    m_pConstrains->set_theory_mode(false);
82
82
    m_pConstrains->SetButtonsEnabledAfterSolution(true);
 
83
    m_pConstrains->set_height(4000.0);      //minimum problem box height = 40mm
83
84
    m_nPlayMM = 320;    //score build with whole notes, so metronome rate 320
84
85
                        //will force to play at 80 notes/minute
85
86
 
134
135
    ImoInlineWrapper* pBox;
135
136
 
136
137
    ImoStyle* pBtStyle = m_pDoc->create_private_style();
137
 
    pBtStyle->set_string_property(ImoStyle::k_font_name, "sans-serif");
138
 
    pBtStyle->set_float_property(ImoStyle::k_font_size, 8.0f);
 
138
    pBtStyle->font_name( "sans");
 
139
    pBtStyle->font_size( 8.0f);
139
140
 
140
141
    ImoStyle* pRowStyle = m_pDoc->create_private_style();
141
 
    pRowStyle->set_lunits_property(ImoStyle::k_font_size, 10.0f);
142
 
    pRowStyle->set_lunits_property(ImoStyle::k_margin_bottom, 0.0f);
 
142
    pRowStyle->font_size( 10.0f);
 
143
    pRowStyle->margin_bottom( 0.0f);
143
144
 
144
145
    USize buttonSize(3300.0f, height);
145
146
    LUnits rowWidth = 3500.0f;
323
324
    prepare_score(m_pitch[0], m_pitch[1], &m_pProblemScore);
324
325
 
325
326
    //compute the right answer
 
327
//    FIntval intval = oIntv.get_interval();
326
328
    m_sAnswer = oIntv.get_interval_name();
327
329
 
328
330
    //compute the index for the button that corresponds to the right answer