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

Setup.h

Go to the documentation of this file.
00001 
00002 // MathCore = 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 //                                                                   //
00025 
00026 
00027 
00028 // this is generated automatically by configure script with autoconf...
00029 // we cannot embed all the stuff of this file into it...
00030 #include "mc/config.h"
00031 
00032 // sanity check
00033 #ifndef mcVERSION_STRING
00034 #error The config.h file is not valid !
00035 #endif
00036 
00037 
00038 // Conditional compilation
00039 // -----------------------
00040 
00041 #ifndef mcDISABLE_GUI
00042  #define mcENABLE_GUI
00043 #endif
00044 #ifndef mcDISABLE_MATH
00045  #define mcENABLE_MATH
00046 #endif
00047 #ifndef mcDISABLE_IO
00048  #define mcENABLE_IO
00049 #endif
00050 #ifndef mcDISABLE_DATA
00051  #define mcENABLE_DATA
00052 #endif
00053 
00054 
00055 
00056 // External libraries dependencies
00057 // -------------------------------
00058 
00059 /* CINT support with wxScript is still buggy. */
00060 #define wxSCRIPT_NO_CINT
00061 
00062 /* UNDERC support with wxScript is still buggy. */
00063 #define wxSCRIPT_NO_UNDERC
00064 
00065 
00066 /* Without libxml2, MathCore compiles but MathML functions won't work. */
00067 #ifndef mcDISABLE_LIBXML2
00068  #define mcUSE_LIBXML2
00069 #endif
00070 
00071 /* Without GMP, MathCore compiles but mcValue-derived classes won't work perfectly. */
00072 #ifndef mcDISABLE_GMP
00073  #define mcUSE_GMP
00074 #endif
00075 
00076 /* Without wxScript, MathCore compiles but mcFunction won't work completely. */
00077 #ifndef mcDISABLE_WXSCRIPT
00078  #define mcUSE_WXSCRIPT
00079 #endif
00080 
00081 
00082 
00083 
00084 // Debug mode macros
00085 // -----------------
00086 
00087 /* If defined, various log messages will be sent using the mcLog function. */
00088 #ifdef __MCDEBUG__
00089  #define mcENABLE_LOG
00090 
00091  //#define mcENABLE_VERBOSE_CHECK
00092 #endif
00093 
00094 /* If defined, some additional operation will be done to collect static info. */
00095 #ifdef __MCDEBUG__
00096  //#define mcENABLE_COW_DEBUG
00097 #endif
00098 
00099 /* If not defined, enable the COW */
00100 #ifndef mcDISABLE_COW
00101  #define mcENABLE_COW
00102 #else
00103  #undef mcENABLE_COW
00104  #undef mcENABLE_COW_DEBUG
00105  #undef mcENABLE_COW_DEEPDEBUG
00106 #endif
00107 
00108 /* If defined, mcElementArray::Draw() function will draw also the center line */
00109 #ifdef __MCDEBUG__
00110  //#define mcELEMENTARRAY_DBG_DRAWCENTERLINE
00111 #endif
00112 
00113 /* If defined, mcElementArray::DrawSelection() will draw some decorations */
00114 /* around the selection rectangle... */
00115 //#define mcELEMENTARRAY_DRAW_DECORATIONS
00116 
00117 /* If defined, mcMathLine won't use the bitmap and, when requested, */
00118 /* it will directly draw the math object in the given DC */
00119 //#define mcMATHLINE_DONOT_USE_BITMAP
00120 
00121 /* If defined, the cursor will always be kept as long as possible. */
00122 //#define mcGUI_CURSOR_LONG_AS_POSSIBLE
00123 
00124 /* If defined, mcMathSystem will draw a bounding rectangle to show its size */
00125 //#define mcMATHSYSTEM_DRAW_BOUNDINGBOX
00126 
00127 
00128 
00129 // VERSION CONTROL - "inspired" from wxWidgets' one
00130 // ----------------------------------------------------
00131 
00132 /*  check if the current version is at least major.minor.release */
00133 #define mcCHECK_VERSION(major,minor,release) \
00134     (mcMAJOR_VERSION > (major) || \
00135     (mcMAJOR_VERSION == (major) && mcMINOR_VERSION > (minor)) || \
00136     (mcMAJOR_VERSION == (major) && mcMINOR_VERSION == (minor) && \
00137  mcRELEASE_NUMBER >= (release)))
00138  
00139 


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

[ Top ]