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

« back to all changes in this revision

Viewing changes to src/app/WelcomeWnd.h

  • Committer: cecilios
  • Date: 2011-06-12 17:25:18 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:branches/TRY-5.0:687
Initial update for v5.0 first working core using lomse

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//--------------------------------------------------------------------------------------
2
 
//    LenMus Phonascus: The teacher of music
3
 
//    Copyright (c) 2002-2010 LenMus project
4
 
//
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.
8
 
//
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.
12
 
//
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/>.
15
 
//
16
 
//    For any comment, suggestion or feature request, please contact the manager of
17
 
//    the project at cecilios@users.sourceforge.net
18
 
//
19
 
//-------------------------------------------------------------------------------------
20
 
 
21
 
#ifndef __LM_WELCOMEWND_H__        //to avoid nested includes
22
 
#define __LM_WELCOMEWND_H__
23
 
 
24
 
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
25
 
#pragma interface "WelcomeWnd.cpp"
26
 
#endif
27
 
 
28
 
// For compilers that support precompilation, includes <wx/wx.h>.
29
 
#include <wx/wxprec.h>
30
 
 
31
 
#ifdef __BORLANDC__
32
 
#pragma hdrstop
33
 
#endif
34
 
 
35
 
#ifndef WX_PRECOMP
36
 
#include <wx/wx.h>
37
 
#endif
38
 
 
39
 
// headers
40
 
#include <wx/dialog.h>
41
 
#include <wx/button.h>
42
 
#include <wx/html/htmlwin.h>
43
 
 
44
 
#include "../mdi/ChildFrame.h"
45
 
 
46
 
class wxHyperlinkCtrl;
47
 
class wxHyperlinkEvent;
48
 
class wxFileHistory;
49
 
 
50
 
class lmWelcomeWnd: public lmTDIChildFrame
51
 
{
52
 
   DECLARE_DYNAMIC_CLASS(lmWelcomeWnd)
53
 
 
54
 
public:
55
 
    lmWelcomeWnd(wxWindow* parent, wxWindowID id = wxID_ANY);
56
 
    ~lmWelcomeWnd();
57
 
 
58
 
    //event handlers
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);
65
 
 
66
 
 
67
 
private:
68
 
    void CreateControls(int nRecentFiles, wxFileHistory* pHistory);
69
 
    void ShowDocument(wxString& sDocName);
70
 
 
71
 
    //controls on dialog
72
 
        wxStaticBitmap*     m_pBmpLeftBanner;
73
 
 
74
 
        wxStaticText*       m_pTxtTitle;
75
 
 
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;
88
 
 
89
 
        wxHyperlinkCtrl*    m_pLinkRecent[9];
90
 
 
91
 
    //other variables
92
 
    wxString        m_sHeader;          //html code to start a page
93
 
    wxString        m_sVersionNumber;   //version number in format "x.x"
94
 
 
95
 
    DECLARE_EVENT_TABLE()
96
 
};
97
 
 
98
 
#endif    // __LM_WELCOMEWND_H__