MatOCAD Logo

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

wxIFMDefaultContainerPlugin Class Reference

#include <definterface.h>

Inherits wxIFMExtensionPluginBase.

Inheritance diagram for wxIFMDefaultContainerPlugin:

Inheritance graph
[legend]
Collaboration diagram for wxIFMDefaultContainerPlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wxIFMDefaultContainerPlugin ()

Private Member Functions

void OnCreateComponent (wxIFMNewComponentEvent &event)
void OnDock (wxIFMDockEvent &event)
void OnUndock (wxIFMUndockEvent &event)
void OnUpdate (wxIFMUpdateComponentEvent &event)
void OnVisibilityChange (wxIFMComponentVisibilityChangedEvent &event)
void OnShowComponent (wxIFMShowComponentEvent &event)
void OnLeftDown (wxIFMMouseEvent &event)
void OnGetDesiredSize (wxIFMRectEvent &event)
void OnSetDesiredSize (wxIFMRectEvent &event)
void OnGetRect (wxIFMRectEvent &event)
void OnPaintDecor (wxIFMPaintEvent &event)
void OnComponentButtonClick (wxIFMComponentButtonEvent &event)
bool HasVisibleChildren (wxIFMComponent *component)
bool HasNonCloseableChildren (wxIFMComponent *component)
int GetVisibleChildrenCount (wxIFMComponent *component)

Detailed Description

Handles default container functionality

Definition at line 167 of file definterface.h.


Constructor & Destructor Documentation

wxIFMDefaultContainerPlugin::wxIFMDefaultContainerPlugin  ) 
 


Member Function Documentation

int wxIFMDefaultContainerPlugin::GetVisibleChildrenCount wxIFMComponent component  )  [private]
 

Returns the number of visible children, ignoring containers.

Definition at line 873 of file definterface.cpp.

References wxIFMComponent::GetType(), wxIFMComponent::IsVisible(), and wxIFMComponent::m_children.

bool wxIFMDefaultContainerPlugin::HasNonCloseableChildren wxIFMComponent component  )  [private]
 

Returns:
True if any child of this component cannot be closed

Definition at line 900 of file definterface.cpp.

References wxIFMComponent::m_canHide, and wxIFMComponent::m_children.

Referenced by OnUpdate().

bool wxIFMDefaultContainerPlugin::HasVisibleChildren wxIFMComponent component  )  [private]
 

This functions searchs for a visible child of this container among its children and its childrens children. It ignores children that are containers and considers them hidden unless they container a visible child themselves (that isn't a container too).

Returns:
True if this container has a visible child.

Definition at line 846 of file definterface.cpp.

References wxIFMComponent::GetType(), wxIFMComponent::IsVisible(), and wxIFMComponent::m_children.

Referenced by OnGetDesiredSize(), OnGetRect(), and OnUpdate().

void wxIFMDefaultContainerPlugin::OnComponentButtonClick wxIFMComponentButtonEvent event  )  [private]
 

Definition at line 1480 of file definterface.cpp.

References wxIFMComponentButtonEvent::GetButton(), wxIFMComponentButton::GetID(), wxIFMComponent::GetType(), IFM_COMPONENT_ID_CLOSE, and wxIFMComponent::Show().

void wxIFMDefaultContainerPlugin::OnCreateComponent wxIFMNewComponentEvent event  )  [private]
 

Definition at line 920 of file definterface.cpp.

References wxIFMComponent::AddExtensionData(), wxIFMExtensionPluginBase::GetIP(), IFM_COMPONENT_FLOATING_ROOT, IFM_COMPONENT_ID_CLOSE, IFM_CONTAINER_GRIPPER_WIDTH, wxIFMDimensions::left, wxIFMComponentButton::m_bmp, m_bmpClose, m_bmpCloseH, m_bmpCloseP, wxIFMComponentButton::m_bmpH, wxIFMComponentButton::m_bmpP, wxIFMComponent::m_borders, wxIFMComponent::m_margins, wxIFMContainerData::m_tray_rect, wxIFMDimensions::Set(), and wxIFMNewComponentEvent::SetComponent().

void wxIFMDefaultContainerPlugin::OnDock wxIFMDockEvent event  )  [private]
 

Definition at line 1134 of file definterface.cpp.

References wxIFMDockEvent::GetDestinationType(), wxIFMComponent::GetType(), IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_DOCKED, and wxIFMContainerData::m_orientation.

void wxIFMDefaultContainerPlugin::OnGetDesiredSize wxIFMRectEvent event  )  [private]
 

Todo:
I can cache this result and only recalculate it if any part of the component was updated

Definition at line 1051 of file definterface.cpp.

References wxIFMComponent::GetConvertedRect(), wxIFMComponent::GetMinSize(), HasVisibleChildren(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, IFM_NO_MINIMUM, wxIFMComponent::m_alignment, wxIFMComponent::m_children, wxIFMComponent::m_hidden, and wxIFMRectEvent::SetSize().

void wxIFMDefaultContainerPlugin::OnGetRect wxIFMRectEvent event  )  [private]
 

Definition at line 1120 of file definterface.cpp.

References HasVisibleChildren(), and wxIFMRectEvent::SetRect().

void wxIFMDefaultContainerPlugin::OnLeftDown wxIFMMouseEvent event  )  [private]
 

Definition at line 1497 of file definterface.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMMouseEvent::GetMouseEvent(), IFM_GET_EXTENSION_DATA, wxIFMContainerData::m_tray_rect, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultContainerPlugin::OnPaintDecor wxIFMPaintEvent event  )  [private]
 

Definition at line 955 of file definterface.cpp.

References wxIFMPaintEvent::GetDC(), IFM_GET_EXTENSION_DATA, and wxIFMContainerData::m_tray_rect.

void wxIFMDefaultContainerPlugin::OnSetDesiredSize wxIFMRectEvent event  )  [private]
 

Definition at line 987 of file definterface.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMRectEvent::GetRect(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, wxIFMComponent::m_alignment, wxIFMComponent::m_children, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultContainerPlugin::OnShowComponent wxIFMShowComponentEvent event  )  [private]
 

Definition at line 1277 of file definterface.cpp.

void wxIFMDefaultContainerPlugin::OnUndock wxIFMUndockEvent event  )  [private]
 

Definition at line 1161 of file definterface.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMUndockEvent::GetParent(), wxIFMUndockEvent::GetParentType(), wxIFMComponent::m_children, wxIFMComponent::m_docked, wxIFMComponent::m_parent, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMUndockEvent::SetParent().

void wxIFMDefaultContainerPlugin::OnUpdate wxIFMUpdateComponentEvent event  )  [private]
 

Definition at line 1298 of file definterface.cpp.

References wxIFMCalcRectsEvent::AddComponent(), wxIFMComponent::GetBackgroundRect(), wxIFMCalcRectsEvent::GetComponentRects(), wxIFMExtensionPluginBase::GetIP(), wxIFMComponent::GetNextVisibleComponent(), HasNonCloseableChildren(), HasVisibleChildren(), IFM_COMPONENT_ID_CLOSE, IFM_GET_EXTENSION_DATA, wxIFMComponent::m_children, wxIFMComponent::m_docked, wxIFMComponent::m_hidden, wxIFMContainerData::m_tray_rect, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultContainerPlugin::OnVisibilityChange wxIFMComponentVisibilityChangedEvent event  )  [private]
 

Definition at line 1256 of file definterface.cpp.

References wxIFMComponentVisibilityChangedEvent::GetShow(), and IFM_GET_EXTENSION_DATA.


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

 

SourceForge Logo