void OnLeftDown(wxMouseEvent& event);
void OnRightDown(wxMouseEvent& event);
+#if wxUSE_DRAG_AND_DROP
void OnBeginDrag(wxTreeEvent& event);
+#endif // wxUSE_DRAG_AND_DROP
void OnUpdateUIMoveByDefault(wxUpdateUIEvent& event);
void OnUpdateUIPasteBitmap(wxUpdateUIEvent& event);
private:
+#if wxUSE_DRAG_AND_DROP
// show the result of a dnd operation in the status bar
void LogDragResult(wxDragResult result);
+#endif // wxUSE_DRAG_AND_DROP
// GUI controls
m_ctrlFile->SetDropTarget(new DnDFile(m_ctrlFile));
m_ctrlText->SetDropTarget(new DnDText(m_ctrlText));
+#if wxUSE_DRAG_AND_DROP
m_ctrlDir->Connect
(
wxID_ANY,
NULL,
this
);
+#endif // wxUSE_DRAG_AND_DROP
#if wxUSE_LOG
m_ctrlLog->SetDropTarget(new URLDropTarget);
}
#endif // wxUSE_LOG
+#if wxUSE_DRAG_AND_DROP
+
void DnDFrame::LogDragResult(wxDragResult result)
{
#if wxUSE_STATUSBAR
#endif // wxUSE_STATUSBAR
}
+#endif // wxUSE_DRAG_AND_DROP
+
void DnDFrame::OnLeftDown(wxMouseEvent &WXUNUSED(event) )
{
#if wxUSE_DRAG_AND_DROP
: _T("clipboard"));
}
+#if wxUSE_DRAG_AND_DROP
+
void DnDFrame::OnBeginDrag(wxTreeEvent& WXUNUSED(event))
{
wxFileDataObject data;
LogDragResult(dragSource.DoDragDrop());
}
+#endif // wxUSE_DRAG_AND_DROP
+
// ---------------------------------------------------------------------------
// bitmap clipboard
// ---------------------------------------------------------------------------