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

« back to all changes in this revision

Viewing changes to src/app/toolbox/ToolNotes.h

  • Committer: cecilios
  • Date: 2008-09-13 17:53:40 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:trunk:387

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
class lmCheckButton;
35
34
class lmBitmapButton;
36
35
 
 
36
//--------------------------------------------------------------------------------
 
37
// Group for octave number
 
38
//--------------------------------------------------------------------------------
 
39
class lmGrpOctave: public lmToolButtonsGroup
 
40
{
 
41
public:
 
42
    lmGrpOctave(lmToolPage* pParent, wxBoxSizer* pMainSizer);
 
43
    ~lmGrpOctave() {}
 
44
 
 
45
    //implement virtual methods
 
46
    void CreateControls(wxBoxSizer* pMainSizer);
 
47
    inline lmEToolGroupID GetToolGroupID() { return lmGRP_Octave; }
 
48
 
 
49
        //access to options
 
50
        inline int GetOctave() { return m_nSelButton; }
 
51
        inline void SetOctave(int nOctave) { SelectButton(nOctave); }
 
52
 
 
53
};
 
54
 
 
55
 
 
56
//--------------------------------------------------------------------------------
 
57
// Group for voice number
 
58
//--------------------------------------------------------------------------------
 
59
class lmGrpVoice: public lmToolButtonsGroup
 
60
{
 
61
public:
 
62
    lmGrpVoice(lmToolPage* pParent, wxBoxSizer* pMainSizer);
 
63
    ~lmGrpVoice() {}
 
64
 
 
65
    //implement virtual methods
 
66
    void CreateControls(wxBoxSizer* pMainSizer);
 
67
    inline lmEToolGroupID GetToolGroupID() { return lmGRP_Voice; }
 
68
 
 
69
        //access to options
 
70
        inline int GetVoice() { return m_nSelButton; }
 
71
        inline void SetVoice(int nVoice) { SelectButton(nVoice); }
 
72
 
 
73
};
 
74
 
37
75
 
38
76
//--------------------------------------------------------------------------------
39
77
// Group for Note duration
177
215
 
178
216
        //access to options
179
217
 
 
218
    //interface with Octave group
 
219
        inline int GetOctave() { return m_pGrpOctave->GetOctave(); }
 
220
 
 
221
    //interface with voice group
 
222
        inline int GetVoice() { return m_pGrpVoice->GetVoice(); }
 
223
 
180
224
    //interface with NoteDuration group
181
225
    inline void EnableGrpNoteDuration(bool fEnabled) { m_pGrpNoteDuration->EnableGroup(fEnabled); }
182
226
    inline void SetNoteDuration(lmENoteType nNoteType) { return m_pGrpNoteDuration->SelectButton((int)nNoteType - 1); }
227
271
    lmGrpNoteDots*      m_pGrpNoteDots;
228
272
    lmGrpTieTuplet*     m_pGrpTieTuplet;
229
273
    lmGrpBeams*         m_pGrpBeams;
 
274
        lmGrpOctave*            m_pGrpOctave;
 
275
        lmGrpVoice*                     m_pGrpVoice;
230
276
 
231
277
        //options
232
278
        wxBitmapComboBox*       m_pCboNotehead;