mhDefs.h
gehe zur Dokumentation dieser Datei
00001 
00023 #ifndef mhDEFS_H
00024 #define mhDEFS_H
00025 
00026 #include "Defs.h"
00027 #include "wx/wx.h"
00028 
00029 
00030 #include "wx/stdpaths.h"
00031 #include "wx/filename.h"
00032 #include <iostream>
00033 #include <typeinfo>
00034 
00035 
00036 #include "Mutabor.rh"
00037 
00038 #ifndef HAVE_CONFIG_H
00039 #  ifdef __WXMSW__
00040 #    define REUSE(type)
00041 #  else
00042 #    define REUSE(type) type
00043 #  endif
00044 #endif
00045 
00046 #ifdef __WXMSW__
00047 #define ICON(s) wxIcon(_T(#s) _T("_icn"))
00048 #else
00049 #define ICON(s) wxIcon( s##_xpm )
00050 #endif
00051 
00052 
00053 #if defined(_UNICODE) || defined(UNICODE)
00054 #define SSCANF swscanf
00055 #else
00056 #define SSCANF sscanf
00057 #endif
00058 
00059 #ifdef VC8
00060   #include <wx/html/helpctrl.h>
00061 #else
00062   class wxHtmlHelpController;
00063 #endif
00064 
00065 extern wxHtmlHelpController * HelpController;
00066 
00067 #ifdef WX
00068 #if defined(WX) && (defined(UNICODE) || wxUSE_WCHAR_T)
00069 #include "wx/strconv.h"
00070 extern wxCSConv muCSConv;
00071 
00072 #define muT(x)  (wxString(x, wxConvISO8859_1))
00073 #define mumT(x) _T(x)
00074 #else
00075 #define muT(x) wxString(x)
00076 #define mumT(x) _T(x)
00077 #endif
00078 #else
00079 #endif
00080 
00081 wxString FileNameDialog(wxWindow * parent,
00082                         int Command = CM_FILEOPEN,
00083                         wxString Filename = wxEmptyString);
00084 
00085 #include "mutDebug.h"
00086 
00087 // STUBs should generate error messages even in non-debug mode
00088 #define STUBBASE(stubtype,typestr) \
00089 do { \
00090         std::cerr << stubtype << " in " ; \
00091         std::cerr << __FILE__ << ":" << __LINE__ << ": " ;\
00092         std::cerr << typestr << "::" ;\
00093         std::cerr << __WXFUNCTION__ << std::endl;\
00094         wxFAIL_MSG(wxString::Format(_T("\n\n%s\n\nin %s:%d:\n\n%s::%s\n\n"), \
00095                                     muT(stubtype).c_str(), \
00096                                     _T(__FILE__), \
00097                                     __LINE__, \
00098                                     muT(typestr).c_str(), \
00099                                     muT(__WXFUNCTION__).c_str())); \
00100 } while (0)
00101 
00103 #define STUB STUBBASE("stub function","")
00104 
00105 #define STUBCT(type) STUBBASE("stub function",((const char *) (typeid(type).name())))
00106 
00107 #define STUBC STUBCT(*this)
00108 
00109 #define UNREACHABLE STUBBASE("unreachable code","")
00110 #define UNREACHABLECT(type) STUBBASE("unreachable code",((const char *) (typeid(type).name())))
00111 #define UNREACHABLEC UNREACHABLECT(*this)
00112 
00113 #define ABSTRACT_FUNCTION STUBBASE("unreachable function","")
00114 #define ABSTRACT_FUNCTIONCT(type) STUBBASE("unreachable function",((const char *) (typeid(type).name())))
00115 #define ABSTRACT_FUNCTIONC ABSTRACT_FUNCTIONCT(*this)
00116 
00117 
00118 
00119 #ifdef DEBUG
00120 void PRINTSIZER (wxSizer * sizer, const wxString & offset = _T (""));
00121 #endif
00122 //#ifdef __WXGTK__
00123 #define MDI_FORCE_EXTERN
00124 //#endif
00125 
00126 #endif
00127 
00128 

Erzeugt am Sun Aug 21 2011 10:51:56 für Mutabor von doxygen 1.7.4