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_WELCOMEWND_H__ //to avoid nested includes
22
#define __LM_WELCOMEWND_H__
24
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
25
#pragma interface "WelcomeWnd.cpp"
28
// For compilers that support precompilation, includes <wx/wx.h>.
29
#include <wx/wxprec.h>
40
#include <wx/dialog.h>
41
#include <wx/button.h>
42
#include <wx/html/htmlwin.h>
44
#include "../mdi/ChildFrame.h"
46
class wxHyperlinkCtrl;
47
class wxHyperlinkEvent;
50
class lmWelcomeWnd: public lmTDIChildFrame
52
DECLARE_DYNAMIC_CLASS(lmWelcomeWnd)
55
lmWelcomeWnd(wxWindow* parent, wxWindowID id = wxID_ANY);
59
void OnNewInLenmus(wxHyperlinkEvent& event);
60
void OnNewScore(wxHyperlinkEvent& event);
61
void OnQuickGuide(wxHyperlinkEvent& event);
62
void OnOpenEBooks(wxHyperlinkEvent& event);
63
void OnOpenRecent(wxHyperlinkEvent& event);
64
void OnCloseWindow(wxCloseEvent& event);
68
void CreateControls(int nRecentFiles, wxFileHistory* pHistory);
69
void ShowDocument(wxString& sDocName);
72
wxStaticBitmap* m_pBmpLeftBanner;
74
wxStaticText* m_pTxtTitle;
76
wxStaticText* m_pLearnTitle;
77
wxStaticBitmap* m_pLearnIcon;
78
wxHyperlinkCtrl* m_pLinkNewInLenmus;
79
wxHyperlinkCtrl* m_pLinkVisitWebsite;
80
wxStaticText* m_pPhonascusTitle;
81
wxStaticBitmap* m_pPhonascusIcon;
82
wxHyperlinkCtrl* m_pLinkOpenEBooks;
83
wxHyperlinkCtrl* m_pLinkQuickGuide;
84
wxStaticText* m_pScoreTitle;
85
wxStaticBitmap* m_pScoreIcon;
86
wxHyperlinkCtrl* m_pLinkNewScore;
87
wxStaticText* m_pRecentScoresTitle;
89
wxHyperlinkCtrl* m_pLinkRecent[9];
92
wxString m_sHeader; //html code to start a page
93
wxString m_sVersionNumber; //version number in format "x.x"
98
#endif // __LM_WELCOMEWND_H__