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

« back to all changes in this revision

Viewing changes to include/lenmus_app.h

  • Committer: cecilios
  • Date: 2012-09-07 17:42:21 UTC
  • Revision ID: svn-v4:2587a929-2f0e-0410-ae78-fe6f687d5efe:branches/TRY-5.0:721
initial commit with all changes for 5.1. See changelog

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
using lenmus::TheApp;
40
40
DECLARE_APP(lenmus::TheApp)
41
41
 
 
42
////BUG_BYPASS: by some reason (not yet found) <wx/debug.h> includes the definition of this function
 
43
//void wxOnAssert(const wxChar *szFile,
 
44
//                int nLine,
 
45
//                const char *szFunc,
 
46
//                const wxChar *szCond,
 
47
//                const wxChar *szMsg) {}
 
48
 
42
49
 
43
50
namespace lenmus
44
51
{
50
57
DECLARE_EVENT_TYPE(LM_EVT_CHANGE_LANGUAGE, -1)
51
58
const int k_id_change_language = ::wxNewId();
52
59
 
53
 
 
54
60
//---------------------------------------------------------------------------------------
55
61
// Define the application
56
62
class TheApp : public wxApp
79
85
//    wxString GetLanguageCanonicalName() { return m_pLocale->GetCanonicalName(); }
80
86
//    wxString GetLocaleName() { return m_pLocale->GetLocale(); }
81
87
//    wxString GetLocaleSysName() { return m_pLocale->GetSysName(); }
82
 
//
83
 
//      //overrides
 
88
 
 
89
        //overrides
84
90
//      virtual int FilterEvent(wxEvent& event);
85
 
//    virtual void OnFatalException();
 
91
    virtual void OnFatalException();
86
92
//    virtual void OnInitCmdLine(wxCmdLineParser& parser);
87
93
//    virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
88
94
//
89
95
//    ApplicationScope& app_scope() { return m_appScope; }
90
96
//    LibraryScope& library_scope() { return m_appScope.library_scope(); }
91
97
 
 
98
    ////override
 
99
    //void OnAssertFailure(const wxChar *file, int line, const wxChar *func, const wxChar *cond,
 
100
    //                     const wxChar *msg) {};
 
101
 
 
102
 
92
103
private:
93
104
    bool do_application_setup();
94
105
    void do_application_cleanup();
106
117
//    void SendForensicLog(wxString& sLogFile, bool fHandlingCrash);
107
118
//    void ParseCommandLine();
108
119
    void set_up_current_language();
 
120
    void inform_lomse_about_fonts_path();
109
121
    void create_main_frame();
110
122
    void wait_and_destroy_splash();
111
123
    void show_welcome_window();