1
//--------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2010 LenMus project
5
// This program 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
// This program 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 with this
14
// program. 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 __LM_KBDCMDPARSER_H__ //to avoid nested includes
22
#define __LM_KBDCMDPARSER_H__
24
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
25
#pragma interface "KbdCmdParser.cpp"
28
#include "../score/defs.h" //for lmEAccidentals
37
bool ParserCommand(wxString sCmd);
39
//get results for notes/rests
40
lmEAccidentals GetAccidentals() { return m_nAcc; }
41
int GetDots() { return m_nDots; }
42
bool GetTiedPrev() { return m_fTiedPrev; }
51
lmEAccidentals m_nAcc;
55
wxString m_sBuff; //string to parse
56
int m_iFirst; //index to first char not yet processed
57
int m_iMax; //index to last char + 1
61
#endif // __LM_KBDCMDPARSER_H__