virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def) { if (def == wxDragError || def == wxDragNone || def == wxDragCancel) { ClearDropHighlight(); return def; } if (m_pLocalListView->m_fileData.empty()) { ClearDropHighlight(); return wxDragNone; } const wxString& subdir = DisplayDropHighlight(wxPoint(x, y)); if (subdir == _T("")) { if (!CState::LocalDirIsWriteable(m_pLocalListView->m_dir)) return wxDragNone; } else { wxString dir = CState::Canonicalize(m_pLocalListView->m_dir, subdir); if (dir == _T("") || !CState::LocalDirIsWriteable(dir)) return wxDragNone; } if (def == wxDragLink) def = wxDragCopy; return def; }
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def) { if (def == wxDragError || def == wxDragNone || def == wxDragCancel) { ClearDropHighlight(); return def; } const wxString& dir = DisplayDropHighlight(wxPoint(x, y)); if (dir == _T("")) return wxDragNone; if (def == wxDragLink) def = wxDragCopy; return def; }
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def) { if (def == wxDragError || def == wxDragNone || def == wxDragCancel) { ClearDropHighlight(); return def; } const CServerPath& path = DisplayDropHighlight(wxPoint(x, y)); if (path.IsEmpty()) return wxDragNone; if (def == wxDragLink) def = wxDragCopy; return def; }
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def) { def = CScrollableDropTarget<wxTreeCtrlEx>::OnDragOver(x, y, def); if (def == wxDragError || def == wxDragNone || def == wxDragCancel) { ClearDropHighlight(); return def; } wxTreeItemId hit = DisplayDropHighlight(wxPoint(x, y)); if (!hit.IsOk()) return wxDragNone; if (def == wxDragLink) def = wxDragCopy; return def; }