git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53896
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void OnLeftDown(wxMouseEvent& event);
void OnRightDown(wxMouseEvent& event);
void OnLeftDown(wxMouseEvent& event);
void OnRightDown(wxMouseEvent& event);
void OnBeginDrag(wxTreeEvent& event);
void OnBeginDrag(wxTreeEvent& event);
+#endif // wxUSE_DRAG_AND_DROP
void OnUpdateUIMoveByDefault(wxUpdateUIEvent& event);
void OnUpdateUIMoveByDefault(wxUpdateUIEvent& event);
void OnUpdateUIPasteBitmap(wxUpdateUIEvent& event);
private:
void OnUpdateUIPasteBitmap(wxUpdateUIEvent& event);
private:
// show the result of a dnd operation in the status bar
void LogDragResult(wxDragResult result);
// show the result of a dnd operation in the status bar
void LogDragResult(wxDragResult result);
+#endif // wxUSE_DRAG_AND_DROP
m_ctrlFile->SetDropTarget(new DnDFile(m_ctrlFile));
m_ctrlText->SetDropTarget(new DnDText(m_ctrlText));
m_ctrlFile->SetDropTarget(new DnDFile(m_ctrlFile));
m_ctrlText->SetDropTarget(new DnDText(m_ctrlText));
m_ctrlDir->Connect
(
wxID_ANY,
m_ctrlDir->Connect
(
wxID_ANY,
+#endif // wxUSE_DRAG_AND_DROP
#if wxUSE_LOG
m_ctrlLog->SetDropTarget(new URLDropTarget);
#if wxUSE_LOG
m_ctrlLog->SetDropTarget(new URLDropTarget);
+#if wxUSE_DRAG_AND_DROP
+
void DnDFrame::LogDragResult(wxDragResult result)
{
#if wxUSE_STATUSBAR
void DnDFrame::LogDragResult(wxDragResult result)
{
#if wxUSE_STATUSBAR
#endif // wxUSE_STATUSBAR
}
#endif // wxUSE_STATUSBAR
}
+#endif // wxUSE_DRAG_AND_DROP
+
void DnDFrame::OnLeftDown(wxMouseEvent &WXUNUSED(event) )
{
#if wxUSE_DRAG_AND_DROP
void DnDFrame::OnLeftDown(wxMouseEvent &WXUNUSED(event) )
{
#if wxUSE_DRAG_AND_DROP
+#if wxUSE_DRAG_AND_DROP
+
void DnDFrame::OnBeginDrag(wxTreeEvent& WXUNUSED(event))
{
wxFileDataObject data;
void DnDFrame::OnBeginDrag(wxTreeEvent& WXUNUSED(event))
{
wxFileDataObject data;
LogDragResult(dragSource.DoDragDrop());
}
LogDragResult(dragSource.DoDragDrop());
}
+#endif // wxUSE_DRAG_AND_DROP
+
// ---------------------------------------------------------------------------
// bitmap clipboard
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// bitmap clipboard
// ---------------------------------------------------------------------------