1
//---------------------------------------------------------------------------------------
2
// LenMus Phonascus: The teacher of music
3
// Copyright (c) 2002-2012 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_SPLASH_FRAME_H__ //to avoid nested includes
22
#define __LENMUS_SPLASH_FRAME_H__
25
#include "lenmus_standard_header.h"
28
#include <wx/wxprec.h>
32
#include <wx/bitmap.h>
39
//---------------------------------------------------------------------------------------
40
// style and options flags
41
#define lmSPLASH_CENTRE_ON_PARENT 0x01
42
#define lmSPLASH_CENTRE_ON_SCREEN 0x02
43
#define lmSPLASH_NO_CENTRE 0x00
44
#define lmSPLASH_TIMEOUT 0x04
45
#define lmSPLASH_NO_TIMEOUT 0x00
47
//---------------------------------------------------------------------------------------
48
class SplashFrame : public wxFrame
52
SplashFrame(const wxBitmap& bitmap, const wxColour& transparentColor,
53
long splashStyle, int milliseconds,
54
wxWindow* parent, wxWindowID id, const wxPoint& pos,
55
const wxSize& size, long style);
58
void SetWindowShape();
60
void TerminateSplash();
62
// event handlers (these functions should _not_ be virtual)
63
void OnPaint(wxPaintEvent& evt);
64
void OnWindowCreate(wxWindowCreateEvent& evt);
65
void OnNotify(wxTimerEvent& event);
66
void OnCloseWindow(wxCloseEvent& event);
75
wxColour m_transparentColor;
84
#endif // __LENMUS_SPLASH_FRAME_H__