ewx.h

Go to the documentation of this file.
00001 /* Eliot                                                                     */
00002 /* Copyright (C) 1999  Antoine Fraboulet                                     */
00003 
00004 /*                                                                           */
00005 /* This file is part of Eliot.                                               */
00006 /*                                                                           */
00007 /* Eliot is free software; you can redistribute it and/or modify             */
00008 /* it under the terms of the GNU General Public License as published by      */
00009 /* the Free Software Foundation; either version 2 of the License, or         */
00010 /* (at your option) any later version.                                       */
00011 /*                                                                           */
00012 /* Eliot is distributed in the hope that it will be useful,                  */
00013 /* but WITHOUT ANY WARRANTY; without even the implied warranty of            */
00014 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             */
00015 /* GNU General Public License for more details.                              */
00016 /*                                                                           */
00017 /* You should have received a copy of the GNU General Public License         */
00018 /* along with this program; if not, write to the Free Software               */
00019 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00020 
00021 /**
00022  *  \file   ewx.h
00023  *  \brief  Eliot wxwidgets switch and defines
00024  *  \author Antoine Fraboulet
00025  *  \date   2002
00026  */
00027 
00028 #ifndef __EWX__
00029 #define __EWX__
00030 
00031 #ifdef DEBUG
00032 #  define debug(x...) { fprintf(stderr,x); }
00033 #else
00034 #  define debug(x...)
00035 #endif
00036 
00037 #if defined(TRACE_TODO)
00038 #  define TODO(x...) {                                                   \
00039        fprintf(stderr,"** TODO ** %s:%d: ", __FILE__, __LINE__); \
00040        fprintf(stderr,x);                                                \
00041        }
00042 #else
00043 #  define TODO(x...)
00044 #endif
00045 
00046 #if defined(__WIN32__) || defined(__WIN95__) || defined(__WXMSW__)
00047 #  define ENABLE_LC_NO_HEADER
00048 #  define ENABLE_RESLIST_IN_MAIN
00049 #  define MSW_RESIZE_BUG
00050 #  define INCOMPLETE
00051 #else
00052 #  define ENABLE_SAVE_POSTSCRIPT
00053 #  define ENABLE_LOCALE
00054 #  define ENABLE_RESLIST_IN_MAIN
00055 #  define INCOMPLETE { std::cerr << "incomplete " << __FILE__ << " " << __LINE__ << "\n"; }
00056 #endif
00057 
00058 #include "config.h"
00059 #define APPNAME "Eliot"
00060 
00061 // wxU is used to convert ansi/utf8 strings to unicode strings (wchar_t)
00062 #if defined( ENABLE_NLS ) && defined( ENABLE_UTF8 )
00063 #   if wxUSE_UNICODE
00064 #       define wxU(utf8) wxString(utf8, wxConvUTF8)
00065 #   else
00066 #       define wxU(utf8) wxString(wxConvUTF8.cMB2WC(utf8), *wxConvCurrent)
00067 #   endif
00068 #else // ENABLE_NLS && ENABLE_UTF8
00069 #   if wxUSE_UNICODE
00070 #       define wxU(ansi) wxString(ansi, *wxConvCurrent)
00071 #   else
00072 #       define wxU(ansi) ansi
00073 #   endif
00074 #endif // ENABLE_NLS && ENABLE_UTF8
00075 
00076 #endif // __EWX__

Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5