git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
181 lines
3.3 KiB
C++
181 lines
3.3 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: dnd.cpp
|
|
// Purpose: wxDropTarget, wxDropSource, wxDataObject implementation
|
|
// Author: David Webster
|
|
// Modified by:
|
|
// Created: 10/21/99
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) 1998 AUTHOR
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation "dnd.h"
|
|
#endif
|
|
|
|
#define INCL_PM
|
|
#include <os2.h>
|
|
#include "wx/window.h"
|
|
#include "wx/app.h"
|
|
#include "wx/gdicmn.h"
|
|
#include "wx/dnd.h"
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// global
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// wxDropTarget
|
|
// ----------------------------------------------------------------------------
|
|
|
|
wxDropTarget::wxDropTarget(
|
|
wxDataObject* pDataObject
|
|
)
|
|
{
|
|
// TODO:
|
|
};
|
|
|
|
wxDropTarget::~wxDropTarget()
|
|
{
|
|
};
|
|
|
|
void wxDropTarget::Register(
|
|
WXHWND hwnd
|
|
)
|
|
{
|
|
//TODO:
|
|
};
|
|
|
|
void wxDropTarget::Revoke(
|
|
WXHWND hwnd
|
|
)
|
|
{
|
|
//TODO:
|
|
};
|
|
|
|
wxDragResult wxDropTarget::OnDragOver(
|
|
wxCoord x
|
|
, wxCoord y
|
|
, wxDragResult vDef
|
|
)
|
|
{
|
|
//TODO:
|
|
return vDef;
|
|
};
|
|
|
|
bool wxDropTarget::OnDrop(
|
|
wxCoord x
|
|
, wxCoord y
|
|
)
|
|
{
|
|
//TODO:
|
|
return FALSE;
|
|
};
|
|
|
|
bool wxDropTarget::OnData(
|
|
wxCoord x
|
|
, wxCoord y
|
|
)
|
|
{
|
|
//TODO:
|
|
return FALSE;
|
|
};
|
|
|
|
bool wxDropTarget::GetData()
|
|
{
|
|
//TODO:
|
|
return FALSE;
|
|
};
|
|
|
|
bool wxDropTarget::IsAcceptable(
|
|
DRAGINFO* pInfo
|
|
)
|
|
{
|
|
//TODO:
|
|
return FALSE;
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// wxTextDropTarget
|
|
// ----------------------------------------------------------------------------
|
|
|
|
wxTextDropTarget::wxTextDropTarget()
|
|
{
|
|
// TODO:
|
|
}
|
|
|
|
wxTextDropTarget::~wxTextDropTarget()
|
|
{
|
|
// TODO:
|
|
}
|
|
|
|
bool wxTextDropTarget::OnData(
|
|
wxCoord x
|
|
, wxCoord y
|
|
)
|
|
{
|
|
// TODO:
|
|
return FALSE;
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// wxFileDropTarget
|
|
// ----------------------------------------------------------------------------
|
|
|
|
wxFileDropTarget::wxFileDropTarget()
|
|
{
|
|
// TODO:
|
|
}
|
|
|
|
wxFileDropTarget::~wxFileDropTarget()
|
|
{
|
|
// TODO:
|
|
}
|
|
|
|
bool wxFileDropTarget::OnData(
|
|
wxCoord x
|
|
, wxCoord y
|
|
)
|
|
{
|
|
// TODO:
|
|
return FALSE;
|
|
};
|
|
|
|
//-------------------------------------------------------------------------
|
|
// wxDropSource
|
|
//-------------------------------------------------------------------------
|
|
|
|
wxDropSource::wxDropSource(
|
|
wxWindow* pWin
|
|
)
|
|
{
|
|
// TODO
|
|
};
|
|
|
|
wxDropSource::wxDropSource(
|
|
wxDataObject& rData
|
|
, wxWindow* pWin
|
|
)
|
|
{
|
|
// TODO
|
|
};
|
|
|
|
wxDropSource::~wxDropSource()
|
|
{
|
|
// TODO
|
|
};
|
|
|
|
wxDragResult wxDropSource::DoDragDrop(
|
|
bool WXUNUSED(bAllowMove)
|
|
)
|
|
{
|
|
// TODO
|
|
return wxDragError;
|
|
};
|
|
|
|
void wxDropSource::Init()
|
|
{
|
|
// TODO
|
|
};
|
|
|