Simplify PCH support. Minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,8 +21,10 @@
|
||||
#include "wx/richtext/richtextctrl.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#include "wx/settings.h"
|
||||
#include "wx/menu.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/stopwatch.h"
|
||||
#endif
|
||||
|
||||
#include "wx/textfile.h"
|
||||
@@ -155,7 +157,7 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
|
||||
RecreateBuffer(size);
|
||||
|
||||
SetCursor(wxCursor(wxCURSOR_IBEAM));
|
||||
|
||||
|
||||
if (!value.IsEmpty())
|
||||
SetValue(value);
|
||||
|
||||
@@ -1645,7 +1647,7 @@ wxRichTextCtrl::HitTest(const wxPoint& pt,
|
||||
{
|
||||
wxClientDC dc((wxRichTextCtrl*) this);
|
||||
((wxRichTextCtrl*)this)->PrepareDC(dc);
|
||||
|
||||
|
||||
// Buffer uses logical position (relative to start of buffer)
|
||||
// so convert
|
||||
wxPoint pt2 = GetLogicalPoint(pt);
|
||||
@@ -2222,7 +2224,7 @@ const wxTextAttrEx& wxRichTextCtrl::GetDefaultStyleEx() const
|
||||
|
||||
const wxTextAttr& wxRichTextCtrl::GetDefaultStyle() const
|
||||
{
|
||||
return GetBuffer().GetDefaultStyle();
|
||||
return GetBuffer().GetDefaultStyle();
|
||||
}
|
||||
|
||||
bool wxRichTextCtrl::GetStyle(long position, wxTextAttr& style) const
|
||||
|
Reference in New Issue
Block a user