![]() |
wxIScan
|
Generic file drop event. More...
#include <wxextfiledroptarget.h>
Public Member Functions | |
wxExtFileDropEvent (wxEventType oType=wxEVT_EXTFILEDROP) | |
Constructor. | |
wxExtFileDropEvent (const wxExtFileDropEvent &oEvent) | |
Copy constructor. | |
virtual wxEvent * | Clone () const |
Return a copy of this event. | |
void | SetFileName (wxString strFileName) |
Set the file name. | |
wxString | GetFileName () |
Get the filename. | |
Private Attributes | |
wxString | m_strFileName |
Contains the filename of the event. |
Generic file drop event.
This class extends wxEvent to transport a file name to the event handler that proecesses the file drop event. File drop events are created by wxExtFileDropTarget objects.
Definition at line 31 of file wxextfiledroptarget.h.
wxExtFileDropEvent::wxExtFileDropEvent | ( | wxEventType | oType = wxEVT_EXTFILEDROP | ) | [inline] |
Constructor.
Definition at line 35 of file wxextfiledroptarget.h.
: wxEvent( 0, oType ) { m_strFileName.Clear(); }
wxExtFileDropEvent::wxExtFileDropEvent | ( | const wxExtFileDropEvent & | oEvent | ) | [inline] |
Copy constructor.
Definition at line 42 of file wxextfiledroptarget.h.
References m_strFileName.
: wxEvent( oEvent ) { SetFileName( oEvent.m_strFileName ); }
virtual wxEvent* wxExtFileDropEvent::Clone | ( | ) | const [inline, virtual] |
Return a copy of this event.
Definition at line 49 of file wxextfiledroptarget.h.
{ return new wxExtFileDropEvent( *this ); }
wxString wxExtFileDropEvent::GetFileName | ( | ) | [inline] |
Get the filename.
Definition at line 63 of file wxextfiledroptarget.h.
Referenced by wxIScanFrame::OnFileDrop().
{ return m_strFileName; }
void wxExtFileDropEvent::SetFileName | ( | wxString | strFileName | ) | [inline] |
Set the file name.
strFileName | File name to add to the event. |
Definition at line 57 of file wxextfiledroptarget.h.
Referenced by wxExtFileDropTarget::OnDropFiles().
{ m_strFileName= strFileName; }
wxString wxExtFileDropEvent::m_strFileName [private] |
Contains the filename of the event.
Definition at line 69 of file wxextfiledroptarget.h.
Referenced by wxExtFileDropEvent().