rearrainge the #includes and etc. to avoid a name conflict with some
CoreFoundation headers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/encconv.h>
|
||||
#include <wx/listctrl.h>
|
||||
@@ -13,11 +16,15 @@
|
||||
#include <wx/image.h>
|
||||
#include <wx/imaglist.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "Platform.h"
|
||||
#include "PlatWX.h"
|
||||
#include "wx/stc/stc.h"
|
||||
|
||||
|
||||
|
||||
Point Point::FromLong(long lpoint) {
|
||||
return Point(lpoint & 0xFFFF, lpoint >> 16);
|
||||
}
|
||||
|
@@ -14,12 +14,22 @@
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/textbuf.h>
|
||||
#include <wx/dataobj.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/dnd.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "ScintillaWX.h"
|
||||
#include "ExternalLexer.h"
|
||||
#include "wx/stc/stc.h"
|
||||
#include "PlatWX.h"
|
||||
#include <wx/textbuf.h>
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// GetHwndOf()
|
||||
|
@@ -48,10 +48,6 @@
|
||||
#include "Editor.h"
|
||||
#include "ScintillaBase.h"
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/dataobj.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/dnd.h>
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
@@ -44,11 +44,6 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if PLAT_WX
|
||||
#include <wx/object.h> // For the global memory operators, if needed.
|
||||
#endif
|
||||
|
||||
|
||||
// Underlying the implementation of the platform classes are platform specific types.
|
||||
// Sometimes these need to be passed around by client code so they are defined here
|
||||
|
||||
|
@@ -17,8 +17,8 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/tokenzr.h>
|
||||
@@ -26,6 +26,11 @@
|
||||
#include <wx/image.h>
|
||||
#include <wx/file.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
@@ -178,9 +183,10 @@ void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||
SetCodePage(wxSTC_CP_UTF8);
|
||||
#endif
|
||||
|
||||
SetBestFittingSize(size);
|
||||
|
||||
// Reduces flicker on GTK+/X11
|
||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||
SetBestFittingSize(size);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -17,8 +17,8 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/tokenzr.h>
|
||||
@@ -26,6 +26,11 @@
|
||||
#include <wx/image.h>
|
||||
#include <wx/file.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
@@ -179,6 +184,9 @@ void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||
#endif
|
||||
|
||||
SetBestFittingSize(size);
|
||||
|
||||
// Reduces flicker on GTK+/X11
|
||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -6,6 +6,9 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/encconv.h>
|
||||
#include <wx/listctrl.h>
|
||||
@@ -13,11 +16,15 @@
|
||||
#include <wx/image.h>
|
||||
#include <wx/imaglist.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "Platform.h"
|
||||
#include "PlatWX.h"
|
||||
#include "wx/stc/stc.h"
|
||||
|
||||
|
||||
|
||||
Point Point::FromLong(long lpoint) {
|
||||
return Point(lpoint & 0xFFFF, lpoint >> 16);
|
||||
}
|
||||
|
@@ -14,12 +14,22 @@
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/textbuf.h>
|
||||
#include <wx/dataobj.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/dnd.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "ScintillaWX.h"
|
||||
#include "ExternalLexer.h"
|
||||
#include "wx/stc/stc.h"
|
||||
#include "PlatWX.h"
|
||||
#include <wx/textbuf.h>
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// GetHwndOf()
|
||||
|
@@ -48,10 +48,6 @@
|
||||
#include "Editor.h"
|
||||
#include "ScintillaBase.h"
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/dataobj.h>
|
||||
#include <wx/clipbrd.h>
|
||||
#include <wx/dnd.h>
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
@@ -44,11 +44,6 @@
|
||||
#endif
|
||||
|
||||
|
||||
#if PLAT_WX
|
||||
#include <wx/object.h> // For the global memory operators, if needed.
|
||||
#endif
|
||||
|
||||
|
||||
// Underlying the implementation of the platform classes are platform specific types.
|
||||
// Sometimes these need to be passed around by client code so they are defined here
|
||||
|
||||
|
@@ -17,8 +17,8 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/tokenzr.h>
|
||||
@@ -26,6 +26,11 @@
|
||||
#include <wx/image.h>
|
||||
#include <wx/file.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
@@ -178,9 +183,10 @@ void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||
SetCodePage(wxSTC_CP_UTF8);
|
||||
#endif
|
||||
|
||||
SetBestFittingSize(size);
|
||||
|
||||
// Reduces flicker on GTK+/X11
|
||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||
SetBestFittingSize(size);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -17,8 +17,8 @@
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
#define Point macPoint // These names are also defined by some mac headers so
|
||||
#define Style macStyle // change their names, and then undef before we need them
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/tokenzr.h>
|
||||
@@ -26,6 +26,11 @@
|
||||
#include <wx/image.h>
|
||||
#include <wx/file.h>
|
||||
|
||||
#undef Point
|
||||
#undef Style
|
||||
|
||||
#include "wx/stc/stc.h"
|
||||
#include "ScintillaWX.h"
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
@@ -179,6 +184,9 @@ void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||
#endif
|
||||
|
||||
SetBestFittingSize(size);
|
||||
|
||||
// Reduces flicker on GTK+/X11
|
||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user