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

« back to all changes in this revision

Viewing changes to include/lenmus_dlg_debug.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-2011 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 __LENMUS_DLG_DEBUG_H__        //to avoid nested includes
 
22
#define __LENMUS_DLG_DEBUG_H__
 
23
 
 
24
#include <wx/dialog.h>
 
25
 
 
26
#include <wx/html/htmlwin.h>        //GCC complains if forward declaration of wxHtmlWindow !
 
27
//class wxHtmlWindow;
 
28
 
 
29
//forward declarations
 
30
class wxButton;
 
31
class wxTextCtrl;
 
32
class wxWindow;
 
33
 
 
34
namespace lenmus
 
35
{
 
36
 
 
37
//---------------------------------------------------------------------------------------
 
38
class DlgDebug : public wxDialog
 
39
{
 
40
   DECLARE_DYNAMIC_CLASS(DlgDebug)
 
41
 
 
42
public:
 
43
    DlgDebug(wxWindow* parent, wxString sTitle, wxString sData, bool fSave = true);
 
44
    virtual ~DlgDebug();
 
45
 
 
46
    void OnOK(wxCommandEvent& WXUNUSED(event));
 
47
    void OnSave(wxCommandEvent& WXUNUSED(event));
 
48
 
 
49
    void AppendText(wxString sText);
 
50
 
 
51
private:
 
52
    wxTextCtrl*     m_pTxtData;
 
53
    bool            m_fSave;        //true to include 'Save' button
 
54
 
 
55
    DECLARE_EVENT_TABLE()
 
56
};
 
57
 
 
58
//---------------------------------------------------------------------------------------
 
59
class lmHtmlDlg : public wxDialog
 
60
{
 
61
public:
 
62
        lmHtmlDlg(wxWindow* pParent, const wxString& sTitle, bool fSaveButton = false);
 
63
        ~lmHtmlDlg();
 
64
 
 
65
    void CreateControls(bool fSaveButton);
 
66
    void SetContent(const wxString& sContent);
 
67
 
 
68
    // event handlers
 
69
    void OnAcceptClicked(wxCommandEvent& WXUNUSED(event));
 
70
    void OnSaveClicked(wxCommandEvent& WXUNUSED(event));
 
71
 
 
72
 
 
73
private:
 
74
        wxHtmlWindow*   m_pHtmlWnd;
 
75
        wxButton*       m_pBtnAccept;
 
76
        wxButton*       m_pBtnSave;
 
77
 
 
78
    DECLARE_EVENT_TABLE()
 
79
};
 
80
 
 
81
 
 
82
}   // namespace lenmus
 
83
 
 
84
#endif    // __LENMUS_DLG_DEBUG_H__