MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

wxIFMDeleteComponentEvent Class Reference

Event class for deleting components. More...

#include <events.h>

List of all members.

Public Member Functions

 wxIFMDeleteComponentEvent (wxIFMComponent *component)
 wxIFMDeleteComponentEvent (const wxIFMNewComponentEvent &event)
virtual wxEvent * Clone () const


Detailed Description

Event class for deleting components.

This event should be used if a plugin determines that a certain component is no longer required and should be deleted. An example of this is when you drag the only panel of a container and dock it into another container. The first container now has no children, generates the delete component event to delete the itself, and in the case of the default interface plugin, removes the container from the top level container list if it was a top level container.

This event will not be used to cleanup components while shutting down.

If the component being deleted has children, the childre will also be sent a wxIFMDeleteComponentEvent, and will be deleted with their parent.

Attention:
You must not delete the component in response to this event. This event is provided to notify plugins that a component is about to be deleted so that they can perform necessary cleanup operations.
See also:
wxIFMNewComponentEvent

Definition at line 268 of file events.h.


Constructor & Destructor Documentation

wxIFMDeleteComponentEvent::wxIFMDeleteComponentEvent wxIFMComponent component  )  [inline]
 

Definition at line 272 of file events.h.

Referenced by Clone().

wxIFMDeleteComponentEvent::wxIFMDeleteComponentEvent const wxIFMNewComponentEvent event  )  [inline]
 

Definition at line 276 of file events.h.


Member Function Documentation

virtual wxEvent* wxIFMDeleteComponentEvent::Clone  )  const [inline, virtual]
 

Definition at line 280 of file events.h.

References wxIFMDeleteComponentEvent().


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

 

SourceForge Logo