wxIScan
wxExtFileDropEvent Class Reference

Generic file drop event. More...

#include <wxextfiledroptarget.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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 );
    }

Member Function Documentation

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.

Parameters:
strFileNameFile name to add to the event.

Definition at line 57 of file wxextfiledroptarget.h.

Referenced by wxExtFileDropTarget::OnDropFiles().

    {
        m_strFileName= strFileName;
    }

Member Data Documentation

Contains the filename of the event.

Definition at line 69 of file wxextfiledroptarget.h.

Referenced by wxExtFileDropEvent().


The documentation for this class was generated from the following file: