1
//---------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2011 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 __LENMUS_ART_PROVIDER_H__ //to avoid nested includes
22
#define __LENMUS_ART_PROVIDER_H__
24
#include <wx/wxprec.h>
25
#include <wx/artprov.h>
27
#include "lenmus_injectors.h"
33
//forward declarations
35
//---------------------------------------------------------------------------------------
36
// resources are identified by an wxArtId. This is just a string. To assign LenMus
37
// identifiers and not to collide with wxWidgets identifiers, mine will be
38
// just a number prefixed with characters "lm"
39
enum { // ids for bitmaps, icons, etc.
50
Tool_Max //It must be the last one and it is used to compute size
54
//---------------------------------------------------------------------------------------
55
class ArtProvider : public wxArtProvider
58
ApplicationScope& m_appScope;
61
ArtProvider(ApplicationScope& appScope);
64
virtual wxBitmap CreateBitmap(const wxArtID& id, const wxArtClient& client,
69
#endif // __LENMUS_ART_PROVIDER_H__