Source cleaning: whitespaces, tabs, TRUE/true, FALSE/false, -1/wxID_ANY/wxDefaultCoord/wxNOT_FOUND.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -574,7 +574,7 @@ Window::~Window() {
|
||||
|
||||
void Window::Destroy() {
|
||||
if (id) {
|
||||
Show(FALSE);
|
||||
Show(false);
|
||||
GETWIN(id)->Destroy();
|
||||
}
|
||||
id = 0;
|
||||
@@ -684,7 +684,7 @@ public:
|
||||
: wxListView(parent, id, pos, size, style)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
void OnFocus(wxFocusEvent& event) {
|
||||
GetParent()->SetFocus();
|
||||
event.Skip();
|
||||
@@ -693,7 +693,7 @@ public:
|
||||
void OnKillFocus(wxFocusEvent& WXUNUSED(event)) {
|
||||
// Do nothing. Prevents base class from resetting the colors...
|
||||
}
|
||||
|
||||
|
||||
#ifdef __WXMAC__
|
||||
// For some reason I don't understand yet the focus doesn't really leave
|
||||
// the listbox like it should, so if we get any events feed them back to
|
||||
@@ -708,9 +708,9 @@ public:
|
||||
// And we need to force the focus back when being destroyed
|
||||
~wxSTCListBox() {
|
||||
GetGrandParent()->SetFocus();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
@@ -751,7 +751,7 @@ public:
|
||||
Hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// On OSX and (possibly others) there can still be pending
|
||||
// messages/events for the list control when Scintilla wants to
|
||||
// close it, so do a pending delete of it instead of destroying
|
||||
@@ -767,10 +767,10 @@ public:
|
||||
#endif
|
||||
if ( !wxPendingDelete.Member(this) )
|
||||
wxPendingDelete.Append(this);
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int IconWidth() {
|
||||
wxImageList* il = lv->GetImageList(wxIMAGE_LIST_SMALL);
|
||||
if (il != NULL) {
|
||||
@@ -816,9 +816,9 @@ private:
|
||||
|
||||
|
||||
BEGIN_EVENT_TABLE(wxSTCListBoxWin, wxWindow)
|
||||
EVT_SET_FOCUS ( wxSTCListBoxWin::OnFocus)
|
||||
EVT_SIZE ( wxSTCListBoxWin::OnSize)
|
||||
EVT_LIST_ITEM_ACTIVATED(-1, wxSTCListBoxWin::OnActivate)
|
||||
EVT_SET_FOCUS ( wxSTCListBoxWin::OnFocus)
|
||||
EVT_SIZE ( wxSTCListBoxWin::OnSize)
|
||||
EVT_LIST_ITEM_ACTIVATED(wxID_ANY, wxSTCListBoxWin::OnActivate)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
|
||||
@@ -981,10 +981,10 @@ int ListBoxImpl::Length() {
|
||||
|
||||
|
||||
void ListBoxImpl::Select(int n) {
|
||||
bool select = TRUE;
|
||||
bool select = true;
|
||||
if (n == -1) {
|
||||
n = 0;
|
||||
select = FALSE;
|
||||
select = false;
|
||||
}
|
||||
GETLB(id)->Focus(n);
|
||||
GETLB(id)->Select(n, select);
|
||||
@@ -998,7 +998,7 @@ int ListBoxImpl::GetSelection() {
|
||||
|
||||
int ListBoxImpl::Find(const char *WXUNUSED(prefix)) {
|
||||
// No longer used
|
||||
return -1;
|
||||
return wxNOT_FOUND;
|
||||
}
|
||||
|
||||
|
||||
@@ -1019,7 +1019,7 @@ void ListBoxImpl::RegisterImage(int type, const char *xpm_data) {
|
||||
|
||||
if (! imgList) {
|
||||
// assumes all images are the same size
|
||||
imgList = new wxImageList(bmp.GetWidth(), bmp.GetHeight(), TRUE);
|
||||
imgList = new wxImageList(bmp.GetWidth(), bmp.GetHeight(), true);
|
||||
imgTypeMap = new wxArrayInt;
|
||||
}
|
||||
|
||||
@@ -1121,7 +1121,7 @@ unsigned int Platform::DoubleClickTime() {
|
||||
}
|
||||
|
||||
bool Platform::MouseButtonBounce() {
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
void Platform::DebugDisplay(const char *s) {
|
||||
wxLogDebug(stc2wx(s));
|
||||
@@ -1183,31 +1183,31 @@ void Platform::DebugPrintf(const char *format, ...) {
|
||||
static bool assertionPopUps = true;
|
||||
|
||||
bool Platform::ShowAssertionPopUps(bool assertionPopUps_) {
|
||||
bool ret = assertionPopUps;
|
||||
assertionPopUps = assertionPopUps_;
|
||||
return ret;
|
||||
bool ret = assertionPopUps;
|
||||
assertionPopUps = assertionPopUps_;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Platform::Assert(const char *c, const char *file, int line) {
|
||||
char buffer[2000];
|
||||
sprintf(buffer, "Assertion [%s] failed at %s %d", c, file, line);
|
||||
if (assertionPopUps) {
|
||||
/*int idButton = */
|
||||
wxMessageBox(stc2wx(buffer),
|
||||
wxT("Assertion failure"),
|
||||
wxICON_HAND | wxOK);
|
||||
// if (idButton == IDRETRY) {
|
||||
// ::DebugBreak();
|
||||
// } else if (idButton == IDIGNORE) {
|
||||
// // all OK
|
||||
// } else {
|
||||
// abort();
|
||||
// }
|
||||
} else {
|
||||
strcat(buffer, "\r\n");
|
||||
Platform::DebugDisplay(buffer);
|
||||
abort();
|
||||
}
|
||||
char buffer[2000];
|
||||
sprintf(buffer, "Assertion [%s] failed at %s %d", c, file, line);
|
||||
if (assertionPopUps) {
|
||||
/*int idButton = */
|
||||
wxMessageBox(stc2wx(buffer),
|
||||
wxT("Assertion failure"),
|
||||
wxICON_HAND | wxOK);
|
||||
// if (idButton == IDRETRY) {
|
||||
// ::DebugBreak();
|
||||
// } else if (idButton == IDIGNORE) {
|
||||
// // all OK
|
||||
// } else {
|
||||
// abort();
|
||||
// }
|
||||
} else {
|
||||
strcat(buffer, "\r\n");
|
||||
Platform::DebugDisplay(buffer);
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -73,7 +73,7 @@ class wxSTCCallTip : public wxSTCCallTipBase {
|
||||
public:
|
||||
wxSTCCallTip(wxWindow* parent, CallTip* ct, ScintillaWX* swx)
|
||||
: wxSTCCallTipBase(parent, param2),
|
||||
m_ct(ct), m_swx(swx), m_cx(-1), m_cy(-1)
|
||||
m_ct(ct), m_swx(swx), m_cx(wxDefaultCoord), m_cy(wxDefaultCoord)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
bool AcceptsFocus() const { return FALSE; }
|
||||
bool AcceptsFocus() const { return false; }
|
||||
|
||||
void OnPaint(wxPaintEvent& WXUNUSED(evt)) {
|
||||
wxBufferedPaintDC dc(this);
|
||||
@@ -113,11 +113,11 @@ public:
|
||||
virtual void DoSetSize(int x, int y,
|
||||
int width, int height,
|
||||
int sizeFlags = wxSIZE_AUTO) {
|
||||
if (x != -1) {
|
||||
if (x != wxDefaultCoord) {
|
||||
m_cx = x;
|
||||
GetParent()->ClientToScreen(&x, NULL);
|
||||
}
|
||||
if (y != -1) {
|
||||
if (y != wxDefaultCoord) {
|
||||
m_cy = y;
|
||||
GetParent()->ClientToScreen(NULL, &y);
|
||||
}
|
||||
@@ -128,7 +128,7 @@ public:
|
||||
wxPoint GetMyPosition() {
|
||||
return wxPoint(m_cx, m_cy);
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
CallTip* m_ct;
|
||||
ScintillaWX* m_swx;
|
||||
@@ -148,27 +148,27 @@ END_EVENT_TABLE()
|
||||
static wxTextFileType wxConvertEOLMode(int scintillaMode)
|
||||
{
|
||||
wxTextFileType type;
|
||||
|
||||
|
||||
switch (scintillaMode) {
|
||||
case wxSTC_EOL_CRLF:
|
||||
type = wxTextFileType_Dos;
|
||||
break;
|
||||
|
||||
|
||||
case wxSTC_EOL_CR:
|
||||
type = wxTextFileType_Mac;
|
||||
break;
|
||||
|
||||
|
||||
case wxSTC_EOL_LF:
|
||||
type = wxTextFileType_Unix;
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
type = wxTextBuffer::typeDefault;
|
||||
break;
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Constructor/Destructor
|
||||
@@ -222,7 +222,7 @@ void ScintillaWX::StartDrag() {
|
||||
wxStyledTextEvent evt(wxEVT_STC_START_DRAG, stc->GetId());
|
||||
evt.SetEventObject(stc);
|
||||
evt.SetDragText(dragText);
|
||||
evt.SetDragAllowMove(TRUE);
|
||||
evt.SetDragAllowMove(true);
|
||||
evt.SetPosition(wxMin(stc->GetSelectionStart(),
|
||||
stc->GetSelectionEnd()));
|
||||
stc->GetEventHandler()->ProcessEvent(evt);
|
||||
@@ -234,11 +234,11 @@ void ScintillaWX::StartDrag() {
|
||||
wxDragResult result;
|
||||
|
||||
source.SetData(data);
|
||||
dropWentOutside = TRUE;
|
||||
dropWentOutside = true;
|
||||
result = source.DoDragDrop(evt.GetDragAllowMove());
|
||||
if (result == wxDragMove && dropWentOutside)
|
||||
ClearSelection();
|
||||
inDragDrop = FALSE;
|
||||
inDragDrop = false;
|
||||
SetDragPosition(invalidPosition);
|
||||
}
|
||||
#endif
|
||||
@@ -248,18 +248,18 @@ void ScintillaWX::StartDrag() {
|
||||
bool ScintillaWX::SetIdle(bool on) {
|
||||
if (idler.state != on) {
|
||||
// connect or disconnect the EVT_IDLE handler
|
||||
if (on)
|
||||
stc->Connect(-1, wxEVT_IDLE,
|
||||
if (on)
|
||||
stc->Connect(wxID_ANY, wxEVT_IDLE,
|
||||
(wxObjectEventFunction) (wxEventFunction) (wxIdleEventFunction) &wxStyledTextCtrl::OnIdle);
|
||||
else
|
||||
stc->Disconnect(-1, wxEVT_IDLE,
|
||||
stc->Disconnect(wxID_ANY, wxEVT_IDLE,
|
||||
(wxObjectEventFunction) (wxEventFunction) (wxIdleEventFunction) &wxStyledTextCtrl::OnIdle);
|
||||
idler.state = on;
|
||||
}
|
||||
return idler.state;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ScintillaWX::SetTicking(bool on) {
|
||||
wxSTCTimer* steTimer;
|
||||
if (timer.ticking != on) {
|
||||
@@ -425,10 +425,10 @@ void ScintillaWX::Paste() {
|
||||
ClearSelection();
|
||||
|
||||
wxTextDataObject data;
|
||||
bool gotData = FALSE;
|
||||
bool gotData = false;
|
||||
|
||||
if (wxTheClipboard->Open()) {
|
||||
wxTheClipboard->UsePrimarySelection(FALSE);
|
||||
wxTheClipboard->UsePrimarySelection(false);
|
||||
gotData = wxTheClipboard->GetData(data);
|
||||
wxTheClipboard->Close();
|
||||
}
|
||||
@@ -449,7 +449,7 @@ void ScintillaWX::Paste() {
|
||||
|
||||
void ScintillaWX::CopyToClipboard(const SelectionText& st) {
|
||||
if (wxTheClipboard->Open()) {
|
||||
wxTheClipboard->UsePrimarySelection(FALSE);
|
||||
wxTheClipboard->UsePrimarySelection(false);
|
||||
wxString text = wxTextBuffer::Translate(stc2wx(st.s, st.len));
|
||||
wxTheClipboard->SetData(new wxTextDataObject(text));
|
||||
wxTheClipboard->Close();
|
||||
@@ -458,7 +458,7 @@ void ScintillaWX::CopyToClipboard(const SelectionText& st) {
|
||||
|
||||
|
||||
bool ScintillaWX::CanPaste() {
|
||||
bool canPaste = FALSE;
|
||||
bool canPaste = false;
|
||||
bool didOpen;
|
||||
|
||||
if (Editor::CanPaste()) {
|
||||
@@ -467,7 +467,7 @@ bool ScintillaWX::CanPaste() {
|
||||
wxTheClipboard->Open();
|
||||
|
||||
if (wxTheClipboard->IsOpened()) {
|
||||
wxTheClipboard->UsePrimarySelection(FALSE);
|
||||
wxTheClipboard->UsePrimarySelection(false);
|
||||
canPaste = wxTheClipboard->IsSupported(wxUSE_UNICODE ? wxDF_UNICODETEXT : wxDF_TEXT);
|
||||
if (didOpen)
|
||||
wxTheClipboard->Close();
|
||||
@@ -508,10 +508,10 @@ void ScintillaWX::ClaimSelection() {
|
||||
SelectionText st;
|
||||
CopySelectionRange(&st);
|
||||
if (wxTheClipboard->Open()) {
|
||||
wxTheClipboard->UsePrimarySelection(TRUE);
|
||||
wxTheClipboard->UsePrimarySelection(true);
|
||||
wxString text = stc2wx(st.s, st.len);
|
||||
wxTheClipboard->SetData(new wxTextDataObject(text));
|
||||
wxTheClipboard->UsePrimarySelection(FALSE);
|
||||
wxTheClipboard->UsePrimarySelection(false);
|
||||
wxTheClipboard->Close();
|
||||
}
|
||||
}
|
||||
@@ -561,7 +561,7 @@ long ScintillaWX::WndProc(unsigned int iMessage, unsigned long wParam, long lPar
|
||||
}
|
||||
|
||||
#ifdef SCI_LEXER
|
||||
case SCI_LOADLEXERLIBRARY:
|
||||
case SCI_LOADLEXERLIBRARY:
|
||||
LexerManager::GetInstance()->Load((const char*)lParam);
|
||||
break;
|
||||
#endif
|
||||
@@ -679,9 +679,6 @@ void ScintillaWX::DoMouseWheel(int rotation, int delta,
|
||||
|
||||
|
||||
void ScintillaWX::DoSize(int WXUNUSED(width), int WXUNUSED(height)) {
|
||||
// PRectangle rcClient(0,0,width,height);
|
||||
// SetScrollBarsTo(rcClient);
|
||||
// DropGraphics();
|
||||
ChangeSize();
|
||||
}
|
||||
|
||||
@@ -722,11 +719,11 @@ void ScintillaWX::DoMiddleButtonUp(Point pt) {
|
||||
|
||||
pdoc->BeginUndoAction();
|
||||
wxTextDataObject data;
|
||||
bool gotData = FALSE;
|
||||
bool gotData = false;
|
||||
if (wxTheClipboard->Open()) {
|
||||
wxTheClipboard->UsePrimarySelection(TRUE);
|
||||
wxTheClipboard->UsePrimarySelection(true);
|
||||
gotData = wxTheClipboard->GetData(data);
|
||||
wxTheClipboard->UsePrimarySelection(FALSE);
|
||||
wxTheClipboard->UsePrimarySelection(false);
|
||||
wxTheClipboard->Close();
|
||||
}
|
||||
if (gotData) {
|
||||
@@ -819,7 +816,7 @@ int ScintillaWX::DoKeyDown(int key, bool shift, bool ctrl, bool alt, bool WXUNU
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int rv = KeyDown(key, shift, ctrl, alt, consumed);
|
||||
|
||||
if (key)
|
||||
@@ -843,7 +840,7 @@ void ScintillaWX::DoOnListBox() {
|
||||
AutoCompleteCompleted();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ScintillaWX::DoOnIdle(wxIdleEvent& evt) {
|
||||
|
||||
if ( Idle() )
|
||||
@@ -851,7 +848,7 @@ void ScintillaWX::DoOnIdle(wxIdleEvent& evt) {
|
||||
else
|
||||
SetIdle(false);
|
||||
}
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
@@ -860,7 +857,7 @@ bool ScintillaWX::DoDropText(long x, long y, const wxString& data) {
|
||||
|
||||
wxString text = wxTextBuffer::Translate(data,
|
||||
wxConvertEOLMode(pdoc->eolMode));
|
||||
|
||||
|
||||
// Send an event to allow the drag details to be changed
|
||||
wxStyledTextEvent evt(wxEVT_STC_DO_DROP, stc->GetId());
|
||||
evt.SetEventObject(stc);
|
||||
@@ -876,10 +873,10 @@ bool ScintillaWX::DoDropText(long x, long y, const wxString& data) {
|
||||
DropAt(evt.GetPosition(),
|
||||
wx2stc(evt.GetDragText()),
|
||||
dragResult == wxDragMove,
|
||||
FALSE); // TODO: rectangular?
|
||||
return TRUE;
|
||||
false); // TODO: rectangular?
|
||||
return true;
|
||||
}
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -960,6 +957,6 @@ void ScintillaWX::SetUseAntiAliasing(bool useAA) {
|
||||
bool ScintillaWX::GetUseAntiAliasing() {
|
||||
return vs.extraFontFlag;
|
||||
}
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------
|
||||
|
@@ -144,7 +144,7 @@ public:
|
||||
int DoKeyDown(int key, bool shift, bool ctrl, bool alt, bool meta, bool* consumed);
|
||||
void DoTick() { Tick(); }
|
||||
void DoOnIdle(wxIdleEvent& evt);
|
||||
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
bool DoDropText(long x, long y, const wxString& data);
|
||||
wxDragResult DoDragEnter(wxCoord x, wxCoord y, wxDragResult def);
|
||||
|
@@ -54,7 +54,7 @@ static wxColour wxColourFromLong(long c) {
|
||||
static wxColour wxColourFromSpec(const wxString& spec) {
|
||||
// spec should be a colour name or "#RRGGBB"
|
||||
if (spec.GetChar(0) == wxT('#')) {
|
||||
|
||||
|
||||
long red, green, blue;
|
||||
red = green = blue = 0;
|
||||
spec.Mid(1,2).ToLong(&red, 16);
|
||||
@@ -120,7 +120,7 @@ BEGIN_EVENT_TABLE(wxStyledTextCtrl, wxControl)
|
||||
EVT_SYS_COLOUR_CHANGED (wxStyledTextCtrl::OnSysColourChanged)
|
||||
EVT_ERASE_BACKGROUND (wxStyledTextCtrl::OnEraseBackground)
|
||||
EVT_MENU_RANGE (10, 16, wxStyledTextCtrl::OnMenu)
|
||||
EVT_LISTBOX_DCLICK (-1, wxStyledTextCtrl::OnListBox)
|
||||
EVT_LISTBOX_DCLICK (wxID_ANY, wxStyledTextCtrl::OnListBox)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ void wxStyledTextCtrl::Create(wxWindow *parent,
|
||||
#endif
|
||||
m_swx = new ScintillaWX(this);
|
||||
m_stopWatch.Start();
|
||||
m_lastKeyDownConsumed = FALSE;
|
||||
m_lastKeyDownConsumed = false;
|
||||
m_vScrollBar = NULL;
|
||||
m_hScrollBar = NULL;
|
||||
#if wxUSE_UNICODE
|
||||
@@ -497,7 +497,7 @@ void wxStyledTextCtrl::MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp)
|
||||
buff[len] = 0;
|
||||
SendMsg(2049, markerNumber, (long)buff);
|
||||
delete [] buff;
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Set a margin to be either numeric or symbolic.
|
||||
@@ -881,7 +881,7 @@ void wxStyledTextCtrl::RegisterImage(int type, const wxBitmap& bmp) {
|
||||
buff[len] = 0;
|
||||
SendMsg(2405, type, (long)buff);
|
||||
delete [] buff;
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Clear all the registered images.
|
||||
@@ -1056,7 +1056,7 @@ int wxStyledTextCtrl::FindText(int minPos, int maxPos,
|
||||
int startPos,
|
||||
int endPos,
|
||||
wxDC* draw,
|
||||
wxDC* target,
|
||||
wxDC* target,
|
||||
wxRect renderRect,
|
||||
wxRect pageRect) {
|
||||
RangeToFormat fr;
|
||||
@@ -2566,7 +2566,7 @@ bool wxStyledTextCtrl::SaveFile(const wxString& filename)
|
||||
wxFile file(filename, wxFile::write);
|
||||
|
||||
if (!file.IsOpened())
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
bool success = file.Write(GetText(), *wxConvCurrent);
|
||||
|
||||
@@ -2584,13 +2584,13 @@ bool wxStyledTextCtrl::LoadFile(const wxString& filename)
|
||||
if (file.IsOpened())
|
||||
{
|
||||
wxString contents;
|
||||
off_t len = file.Length();
|
||||
size_t len = file.Length();
|
||||
if (len > 0)
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
wxMemoryBuffer buffer(len+1);
|
||||
success = (file.Read(buffer.GetData(), len) == len);
|
||||
if (success) {
|
||||
if (success) {
|
||||
((char*)buffer.GetData())[len] = 0;
|
||||
contents = wxString(buffer, *wxConvCurrent, len);
|
||||
}
|
||||
@@ -2601,7 +2601,7 @@ bool wxStyledTextCtrl::LoadFile(const wxString& filename)
|
||||
#endif
|
||||
}
|
||||
else
|
||||
success = true; // empty file is ok
|
||||
success = true; // empty file is ok
|
||||
|
||||
if (success)
|
||||
{
|
||||
@@ -2616,12 +2616,12 @@ bool wxStyledTextCtrl::LoadFile(const wxString& filename)
|
||||
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
wxDragResult wxStyledTextCtrl::DoDragOver(wxCoord x, wxCoord y, wxDragResult def) {
|
||||
return m_swx->DoDragOver(x, y, def);
|
||||
}
|
||||
wxDragResult wxStyledTextCtrl::DoDragOver(wxCoord x, wxCoord y, wxDragResult def) {
|
||||
return m_swx->DoDragOver(x, y, def);
|
||||
}
|
||||
|
||||
|
||||
bool wxStyledTextCtrl::DoDropText(long x, long y, const wxString& data) {
|
||||
bool wxStyledTextCtrl::DoDropText(long x, long y, const wxString& data) {
|
||||
return m_swx->DoDropText(x, y, data);
|
||||
}
|
||||
#endif
|
||||
@@ -2982,7 +2982,7 @@ wxStyledTextEvent::wxStyledTextEvent(wxEventType commandType, int id)
|
||||
m_listType = 0;
|
||||
m_x = 0;
|
||||
m_y = 0;
|
||||
m_dragAllowMove = FALSE;
|
||||
m_dragAllowMove = false;
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
m_dragResult = wxDragNone;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user