MatOCAD Logo

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

wxIFMDefaultPlugin Class Reference

#include <defplugin.h>

Collaboration diagram for wxIFMDefaultPlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wxIFMDefaultPlugin ()
 wxIFMDefaultPlugin (wxIFMInterfacePluginBase *ip)

Private Member Functions

wxInterfaceManagerGetManager ()
wxIFMInterfacePluginBaseGetIP ()
void OnSetRect (wxIFMRectEvent &event)
 handles Set[Client|Background]Rect
void OnGetRect (wxIFMRectEvent &event)
 handles Get[Client|Background]Rect
void OnConvertRect (wxIFMConvertRectEvent &event)
 handles ConvertRect
void OnUpdate (wxIFMUpdateComponentEvent &event)
 handles UpdateComponent
void OnBeginPaint (wxIFMBeginPaintEvent &event)
void OnEndPaint (wxIFMEndPaintEvent &event)
void OnPaintBg (wxIFMPaintEvent &event)
 handles PaintBG
void OnPaintBorder (wxIFMPaintEvent &event)
void OnGetDesiredSize (wxIFMRectEvent &event)
void OnSetDesiredSize (wxIFMRectEvent &event)
void OnSetMinSize (wxIFMRectEvent &event)
void OnSetMaxSize (wxIFMRectEvent &event)
void OnGetMinSize (wxIFMRectEvent &event)
void OnGetMaxSize (wxIFMRectEvent &event)
void OnHitTest (wxIFMHitTestEvent &event)
void OnUndock (wxIFMUndockEvent &event)
void OnDeleteComponent (wxIFMDeleteComponentEvent &event)
void OnSetChildSize (wxIFMSetChildSizeEvent &event)
void OnCalcRects (wxIFMCalcRectsEvent &event)
void OnShowChild (wxIFMShowChildEvent &event)
void OnShowComponent (wxIFMShowComponentEvent &event)
void OnVisibilityChanged (wxIFMComponentVisibilityChangedEvent &event)
void OnDock (wxIFMDockEvent &event)

Private Attributes

wxIFMInterfacePluginBasem_ip

Detailed Description

Implements some default functionality.

This plugin is added to every interface plugin unconditionally. It will be added so that it processes events after the interface plugin and all of its extensions.

Definition at line 26 of file defplugin.h.


Constructor & Destructor Documentation

wxIFMDefaultPlugin::wxIFMDefaultPlugin  )  [inline]
 

Definition at line 35 of file defplugin.h.

wxIFMDefaultPlugin::wxIFMDefaultPlugin wxIFMInterfacePluginBase ip  ) 
 

Definition at line 64 of file defplugin.cpp.


Member Function Documentation

wxIFMInterfacePluginBase* wxIFMDefaultPlugin::GetIP  )  [inline, private]
 

Definition at line 31 of file defplugin.h.

References m_ip.

Referenced by OnConvertRect(), OnDeleteComponent(), OnDock(), OnGetDesiredSize(), OnGetMaxSize(), OnGetMinSize(), OnGetRect(), OnHitTest(), OnPaintBg(), OnPaintBorder(), OnSetDesiredSize(), OnSetRect(), OnShowComponent(), OnUndock(), and OnUpdate().

wxInterfaceManager* wxIFMDefaultPlugin::GetManager  )  [inline, private]
 

Definition at line 30 of file defplugin.h.

References wxIFMInterfacePluginBase::GetManager(), and m_ip.

Referenced by OnSetChildSize().

void wxIFMDefaultPlugin::OnBeginPaint wxIFMBeginPaintEvent event  )  [private]
 

Definition at line 679 of file defplugin.cpp.

References wxIFMBeginPaintEvent::GetOnPaint(), wxIFMBeginPaintEvent::GetWindow(), and wxIFMBeginPaintEvent::SetDC().

void wxIFMDefaultPlugin::OnCalcRects wxIFMCalcRectsEvent event  )  [private]
 

Todo:
Find a better way to fix rounding errors

Definition at line 1043 of file defplugin.cpp.

References wxIFMCalcRectsEvent::GetComponentRects(), wxIFMCalcRectsEvent::GetComponents(), wxIFMCalcRectsEvent::GetMaxSizes(), wxIFMCalcRectsEvent::GetMinSizes(), wxIFMComponent::GetNextVisibleComponent(), wxIFMCalcRectsEvent::GetRect(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_NO_MAXIMUM, wxIFMComponent::m_alignment, and wxIFMCalcRectsEvent::SetComponentRect().

void wxIFMDefaultPlugin::OnConvertRect wxIFMConvertRectEvent event  )  [private]
 

handles ConvertRect

Definition at line 252 of file defplugin.cpp.

References wxIFMDimensions::bottom, wxIFMConvertRectEvent::GetDestinationCoords(), GetIP(), wxIFMComponent::GetParentWindow(), wxIFMRectEvent::GetRect(), wxIFMConvertRectEvent::GetSourceCoords(), IFM_COORDS_ABSOLUTE, IFM_COORDS_BACKGROUND, IFM_COORDS_CLIENT, IFM_COORDS_FLOATINGWINDOW, IFM_DEF_CAPTION_HEIGHT, IFM_DEF_FRAME_X, wxIFMDimensions::left, wxIFMComponent::m_borders, wxIFMComponent::m_margins, wxIFMInterfacePluginBase::ProcessPluginEvent(), wxIFMDimensions::right, wxIFMRectEvent::SetRect(), and wxIFMDimensions::top.

void wxIFMDefaultPlugin::OnDeleteComponent wxIFMDeleteComponentEvent event  )  [private]
 

Definition at line 842 of file defplugin.cpp.

References GetIP(), wxIFMComponent::m_children, wxIFMComponent::m_docked, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPlugin::OnDock wxIFMDockEvent event  )  [private]
 

Definition at line 591 of file defplugin.cpp.

References wxIFMDockEvent::GetDestination(), wxIFMDockEvent::GetIndex(), GetIP(), IFM_DEFAULT_INDEX, IFM_GET_EXTENSION_DATA, wxIFMComponent::m_children, wxIFMComponent::m_docked, wxIFMComponent::m_parent, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPlugin::OnEndPaint wxIFMEndPaintEvent event  )  [private]
 

Definition at line 692 of file defplugin.cpp.

References wxIFMEndPaintEvent::GetDC().

void wxIFMDefaultPlugin::OnGetDesiredSize wxIFMRectEvent event  )  [private]
 

Definition at line 515 of file defplugin.cpp.

References GetIP(), wxIFMRectEvent::GetSize(), IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, wxIFMComponent::m_desiredSize, wxIFMComponent::m_minSize, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMRectEvent::SetSize().

void wxIFMDefaultPlugin::OnGetMaxSize wxIFMRectEvent event  )  [private]
 

Definition at line 985 of file defplugin.cpp.

References GetIP(), wxIFMRectEvent::GetSize(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, IFM_NO_MAXIMUM_SIZE, wxIFMComponent::m_alignment, wxIFMComponent::m_children, wxIFMComponent::m_maxSize, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMRectEvent::SetSize().

void wxIFMDefaultPlugin::OnGetMinSize wxIFMRectEvent event  )  [private]
 

Definition at line 917 of file defplugin.cpp.

References wxIFMComponent::GetConvertedRect(), GetIP(), wxIFMRectEvent::GetSize(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, IFM_NO_MINIMUM, IFM_USE_CHILD_MINSIZE, wxIFMComponent::m_alignment, wxIFMComponent::m_child, wxIFMComponent::m_children, wxIFMComponent::m_minSize, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMRectEvent::SetSize().

void wxIFMDefaultPlugin::OnGetRect wxIFMRectEvent event  )  [private]
 

handles Get[Client|Background]Rect

Definition at line 199 of file defplugin.cpp.

References GetIP(), wxIFMRectEvent::GetRect(), IFM_COORDS_ABSOLUTE, IFM_COORDS_BACKGROUND, IFM_COORDS_CLIENT, wxIFMComponent::m_rect, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMRectEvent::SetRect().

void wxIFMDefaultPlugin::OnHitTest wxIFMHitTestEvent event  )  [private]
 

Definition at line 479 of file defplugin.cpp.

References wxIFMHitTestEvent::GetCoords(), GetIP(), wxIFMHitTestEvent::GetPos(), wxIFMRectEvent::GetRect(), IFM_COORDS_ABSOLUTE, IFM_COORDS_BACKGROUND, IFM_COORDS_CLIENT, wxIFMComponent::m_hidden, wxIFMComponent::m_rect, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMHitTestEvent::SetPassed().

void wxIFMDefaultPlugin::OnPaintBg wxIFMPaintEvent event  )  [private]
 

handles PaintBG

Todo:
Globalize colour storage

Definition at line 698 of file defplugin.cpp.

References wxIFMPaintEvent::GetDC(), GetIP(), wxIFMRectEvent::GetRect(), wxIFMComponent::IsVisible(), and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPlugin::OnPaintBorder wxIFMPaintEvent event  )  [private]
 

Todo:
Globalize colour storage

Definition at line 729 of file defplugin.cpp.

References wxIFMDimensions::bottom, wxIFMPaintEvent::GetDC(), GetIP(), wxIFMRectEvent::GetRect(), wxIFMComponent::IsVisible(), wxIFMDimensions::left, wxIFMComponent::m_borders, wxIFMInterfacePluginBase::ProcessPluginEvent(), wxIFMDimensions::right, and wxIFMDimensions::top.

void wxIFMDefaultPlugin::OnSetChildSize wxIFMSetChildSizeEvent event  )  [private]
 

Definition at line 863 of file defplugin.cpp.

References GetManager(), wxIFMSetChildSizeEvent::GetMinSize(), wxIFMSetChildSizeEvent::GetUpdate(), IFM_GET_EXTENSION_DATA, IFM_USE_CURRENT_VALUE, wxIFMComponent::m_desiredSize, wxIFMComponent::m_maxSize, wxIFMComponent::m_minSize, and wxInterfaceManager::Update().

void wxIFMDefaultPlugin::OnSetDesiredSize wxIFMRectEvent event  )  [private]
 

Definition at line 542 of file defplugin.cpp.

References GetIP(), wxIFMRectEvent::GetSize(), IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, IFM_GET_EXTENSION_DATA, IFM_NO_MAXIMUM, IFM_USE_CURRENT_VALUE, wxIFMComponent::m_desiredSize, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPlugin::OnSetMaxSize wxIFMRectEvent event  )  [private]
 

Definition at line 912 of file defplugin.cpp.

void wxIFMDefaultPlugin::OnSetMinSize wxIFMRectEvent event  )  [private]
 

Definition at line 907 of file defplugin.cpp.

void wxIFMDefaultPlugin::OnSetRect wxIFMRectEvent event  )  [private]
 

handles Set[Client|Background]Rect

Definition at line 69 of file defplugin.cpp.

References GetIP(), wxIFMRectEvent::GetRect(), wxIFMRectEvent::GetSize(), IFM_COORDS_ABSOLUTE, IFM_COORDS_BACKGROUND, IFM_COORDS_CLIENT, IFM_NO_MAXIMUM, IFM_NO_MINIMUM, IFM_USE_CURRENT_VALUE, wxIFMComponent::m_rect, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPlugin::OnShowChild wxIFMShowChildEvent event  )  [private]
 

Definition at line 1196 of file defplugin.cpp.

References wxIFMShowChildEvent::GetShow(), wxIFMShowChildEvent::GetUpdate(), and wxIFMComponent::Show().

void wxIFMDefaultPlugin::OnShowComponent wxIFMShowComponentEvent event  )  [private]
 

Definition at line 1207 of file defplugin.cpp.

References wxInterfaceManager::AddPendingUpdate(), GetIP(), wxIFMInterfacePluginBase::GetManager(), wxIFMShowComponentEvent::GetShow(), wxIFMShowComponentEvent::GetUpdate(), IFM_DEFAULT_RECT, wxIFMComponent::IsShown(), wxIFMComponent::m_parent, wxIFMComponent::Show(), and wxIFMComponent::VisibilityChanged().

void wxIFMDefaultPlugin::OnUndock wxIFMUndockEvent event  )  [private]
 

Definition at line 789 of file defplugin.cpp.

References wxIFMUndockEvent::GetDelete(), GetIP(), IFM_GET_EXTENSION_DATA, wxIFMComponent::m_children, wxIFMComponent::m_docked, wxIFMComponent::m_parent, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPlugin::OnUpdate wxIFMUpdateComponentEvent event  )  [private]
 

handles UpdateComponent

Definition at line 630 of file defplugin.cpp.

References GetIP(), wxIFMComponent::GetMinSize(), wxIFMComponent::GetParentWindow(), wxIFMRectEvent::GetRect(), wxIFMUpdateComponentEvent::GetRect(), IFM_COORDS_ABSOLUTE, IFM_COORDS_FLOATINGWINDOW, IFM_GET_EXTENSION_DATA, wxIFMComponent::m_docked, wxIFMComponent::m_rect, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPlugin::OnVisibilityChanged wxIFMComponentVisibilityChangedEvent event  )  [private]
 

Definition at line 1234 of file defplugin.cpp.

References wxIFMComponentVisibilityChangedEvent::GetShow(), wxIFMComponent::IsShown(), wxIFMComponent::IsVisible(), wxIFMComponent::m_children, and wxIFMComponent::VisibilityChanged().


Member Data Documentation

wxIFMInterfacePluginBase* wxIFMDefaultPlugin::m_ip [private]
 

Definition at line 29 of file defplugin.h.

Referenced by GetIP(), and GetManager().


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

 

SourceForge Logo