Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

MathGUI.h

Go to the documentation of this file.
00001 
00002 // MathGUI = a WYSIWYG equation editor + a powerful math engine      //
00003 // Copyright (C) 2003 by Francesco Montorsi                          //
00004 //                                                                   //
00005 // This library is free software; you can redistribute it and/or     //
00006 // modify it under the terms of the GNU Lesser General Public        //
00007 // License as published by the Free Software Foundation; either      //
00008 // version 2.1 of the License, or (at your option) any later         //
00009 // version.                                                          //
00010 //                                                                   //
00011 // This library is distributed in the hope that it will be useful,   //
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of    //
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the      //
00014 // GNU Lesser General Public License for more details.               //
00015 //                                                                   //
00016 // You should have received a copy of the GNU Lesser General Public  //
00017 // License along with this program; if not, write to the Free        //
00018 // Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,   //
00019 // MA 02111-1307, USA.                                               //
00020 //                                                                   //
00021 // For any comment, suggestion or feature request, please contact    //
00022 // the administrator of the project at frm@users.sourceforge.net     //
00023 //                                                                   //
00030 
00031 
00032 
00033 #ifndef MATHGUI_H
00034 #define MATHGUI_H
00035 
00036 
00037 // For compilers that support precompilation, the file wxprec.h
00038 // will include the precompiled "wx.h" header file.
00039 #include <wx/wxprec.h>
00040 
00041 #ifndef WX_PRECOMP
00042 // If precompilation is not supported, include your minimal 
00043 // set of headers here, or wx.h
00044 #include <wx/wx.h>
00045 #endif
00046 
00047 
00048 // this is part of MathCore library which is required to use
00049 // the MathGUI library....
00050 class mcMathCore;
00051 
00052 
00053 BEGIN_DECLARE_EVENT_TYPES()
00054    DECLARE_EVENT_TYPE( mgEVT_SYNTAX_ERROR, mgMATHGUI_GENERAL_EVENTS_BASEID )
00055 END_DECLARE_EVENT_TYPES()
00056 
00057 
00062 #define EVT_SYNTAX_ERROR(winid, fn)                         \
00063    DECLARE_EVENT_TABLE_ENTRY( mgEVT_SYNTAX_ERROR, winid,       \
00064       wxID_ANY, (wxObjectEventFunction) (wxEventFunction)         \
00065       wxStaticCastEvent( wxCommandEventFunction, & fn ),       \
00066       (wxObject *) NULL ),
00067 
00068 
00069 
00070 
00079 class mgMathGUI
00080 {
00081 
00082 protected:
00083 
00086    static mgMathGUI *g_pTheInstance;
00087 
00091    wxString m_strBaseConfigPath;
00092 
00095    mcMathCore *m_pCore;
00096 
00098    static wxApp *m_pApp;
00099 
00100 public:
00101 
00102    mgMathGUI();
00103    virtual ~mgMathGUI();
00104 
00105 
00108    static void OnError(const wxString &);
00109 
00110 
00112    static mgMathGUI *Get();
00113 
00115    static void Set(mgMathGUI *);
00116 
00117 
00119    static void Setup(wxApp *);
00120 
00122    static void Cleanup();
00123 };
00124 
00125 
00126 #endif   // MATHGUI_H
00127 
00128 


Documentation generated with Doxygen on Sun Feb 6 17:19:26 2005
Visit MathStudio home page for more info

[ Top ]