MatOCAD Logo

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

wxIFMDefaultInterfacePlugin Class Reference

#include <definterface.h>

Inherits wxIFMInterfacePluginBase.

Inheritance diagram for wxIFMDefaultInterfacePlugin:

Inheritance graph
[legend]
Collaboration diagram for wxIFMDefaultInterfacePlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wxIFMDefaultInterfacePlugin ()
 ~wxIFMDefaultInterfacePlugin ()
bool Initialize (wxInterfaceManager *manager)
const wxIFMComponentList & GetTopContainerList () const
bool ProcessPluginEvent (wxIFMPluginEvent &event)
 Processes a plugin event.
wxIFMComponentGetContainer (int orientation)
wxIFMComponentGetComponentByPos (const wxPoint &pos, wxIFMComponent *component=NULL, bool floating=false)

Private Member Functions

void OnDeleteComponent (wxIFMDeleteComponentEvent &event)
void OnAddChild (wxIFMAddChildEvent &event)
void OnUpdate (wxIFMUpdateEvent &event)
void OnPaint (wxIFMPaintInterfaceEvent &event)
void OnGetContentRect (wxIFMRectEvent &event)
void OnAddTopContainer (wxIFMAddTopContainerEvent &event)
void OnRemoveTopContainer (wxIFMRemoveTopContainerEvent &event)

Private Attributes

wxIFMComponentList m_containers

Detailed Description

Default interface functionality plugin

Definition at line 111 of file definterface.h.


Constructor & Destructor Documentation

wxIFMDefaultInterfacePlugin::wxIFMDefaultInterfacePlugin  ) 
 

Definition at line 118 of file definterface.cpp.

wxIFMDefaultInterfacePlugin::~wxIFMDefaultInterfacePlugin  ) 
 

Definition at line 122 of file definterface.cpp.


Member Function Documentation

wxIFMComponent * wxIFMDefaultInterfacePlugin::GetComponentByPos const wxPoint &  pos,
wxIFMComponent component = NULL,
bool  floating = false
[virtual]
 

Return the component at the given position or NULL if none found within the children of the given component and the component itself.

Parameters:
pos Position in managed window client coordinates. The managed window is the parent of the wxInterfaceManager that owns this plugin.
component If NULL, the components array will be searched. If non null, only the given component and its children will be searched.
floating If true, floating windows will be searched first. This parameter does nothing if the current platform does not support floating.

Reimplemented from wxIFMInterfacePluginBase.

Definition at line 648 of file definterface.cpp.

References wxIFMInterfacePluginBase::GetManager(), wxIFMComponent::m_children, m_containers, wxIFMComponent::m_hidden, and wxIFMComponent::m_rect.

Referenced by wxIFMDefaultDockingPlugin::OnDrag().

wxIFMComponent * wxIFMDefaultInterfacePlugin::GetContainer int  orientation  ) 
 

Returns:
Pointer to the LAST container object in the list with the specified orientation

Definition at line 270 of file definterface.cpp.

References IFM_GET_EXTENSION_DATA, m_containers, and wxIFMContainerData::m_orientation.

Referenced by OnAddChild().

const wxIFMComponentList & wxIFMDefaultInterfacePlugin::GetTopContainerList  )  const
 

Returns:
Const reference to the top level container list

Definition at line 133 of file definterface.cpp.

References m_containers.

bool wxIFMDefaultInterfacePlugin::Initialize wxInterfaceManager manager  )  [virtual]
 

Initializes the interface plugin by pushing required extension plugins

Reimplemented from wxIFMInterfacePluginBase.

Definition at line 243 of file definterface.cpp.

References wxIFMInterfacePluginBase::Initialize(), and wxIFMInterfacePluginBase::PushExtensionPlugin().

void wxIFMDefaultInterfacePlugin::OnAddChild wxIFMAddChildEvent event  )  [private]
 

Todo:
Handle tabify. We don't make panels for children being tabbed

Definition at line 308 of file definterface.cpp.

References wxIFMInterfacePluginBase::AddChildWindow(), wxIFMAddChildEvent::GetChildData(), GetContainer(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_DEFAULT_INDEX, IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_DEFAULT, IFM_ORIENTATION_FLOAT, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, wxIFMComponent::m_alignment, wxIFMPanelTabData::m_bitmap, wxIFMDefaultChildData::m_bitmap, wxIFMComponent::m_canHide, wxIFMChildDataBase::m_child, wxIFMChildDataBase::m_desiredSize, wxIFMComponent::m_desiredSize, wxIFMChildDataBase::m_fixed, wxIFMComponent::m_fixed, wxIFMChildDataBase::m_hidden, wxIFMChildDataBase::m_hideable, wxIFMDefaultChildData::m_index, wxIFMChildDataBase::m_maxSize, wxIFMComponent::m_maxSize, wxIFMChildDataBase::m_minSize, wxIFMComponent::m_minSize, wxIFMChildDataBase::m_name, wxIFMComponent::m_name, wxIFMDefaultChildData::m_newRow, wxIFMContainerData::m_orientation, wxIFMDefaultChildData::m_orientation, wxIFMComponent::m_parent, wxIFMDefaultChildData::m_pos, wxIFMComponent::m_rect, wxIFMDefaultChildData::m_tabify, wxIFMChildDataBase::m_type, ProcessPluginEvent(), wxIFMAddChildEvent::SetSuccess(), and wxIFMComponent::Show().

void wxIFMDefaultInterfacePlugin::OnAddTopContainer wxIFMAddTopContainerEvent event  )  [private]
 

Definition at line 158 of file definterface.cpp.

References wxIFMAddTopContainerEvent::GetIndex(), wxIFMAddTopContainerEvent::GetIndexContainer(), wxIFMAddTopContainerEvent::GetIndexMode(), m_containers, and ProcessPluginEvent().

void wxIFMDefaultInterfacePlugin::OnDeleteComponent wxIFMDeleteComponentEvent event  )  [private]
 

Definition at line 288 of file definterface.cpp.

References m_containers.

void wxIFMDefaultInterfacePlugin::OnGetContentRect wxIFMRectEvent event  )  [private]
 

Definition at line 693 of file definterface.cpp.

References wxInterfaceManager::GetInterfaceRect(), wxIFMInterfacePluginBase::GetManager(), wxIFMRectEvent::GetRect(), IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_DOCKED, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, m_containers, wxIFMContainerData::m_orientation, ProcessPluginEvent(), and wxIFMRectEvent::SetRect().

void wxIFMDefaultInterfacePlugin::OnPaint wxIFMPaintInterfaceEvent event  )  [private]
 

Definition at line 618 of file definterface.cpp.

References wxIFMPaintInterfaceEvent::GetDC(), wxIFMPaintInterfaceEvent::GetUpdateRegion(), wxIFMComponent::IsVisible(), m_containers, wxIFMComponent::m_rect, and wxIFMComponent::Paint().

void wxIFMDefaultInterfacePlugin::OnRemoveTopContainer wxIFMRemoveTopContainerEvent event  )  [private]
 

Definition at line 216 of file definterface.cpp.

References IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_NONE, m_containers, and wxIFMContainerData::m_orientation.

void wxIFMDefaultInterfacePlugin::OnUpdate wxIFMUpdateEvent event  )  [private]
 

Todo:
Add a flag to default data that specifies if a change has been made since the last update

Definition at line 472 of file definterface.cpp.

References wxIFMUpdateEvent::GetContent(), wxIFMComponent::GetDesiredSize(), wxIFMUpdateEvent::GetFoating(), wxIFMInterfacePluginBase::GetManager(), wxIFMComponent::GetMinSize(), wxInterfaceManager::GetParent(), wxIFMUpdateEvent::GetPosition(), wxIFMUpdateEvent::GetRect(), wxIFMUpdateEvent::GetSize(), IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, wxIFMComponent::IsVisible(), m_containers, wxIFMContainerData::m_orientation, and ProcessPluginEvent().

bool wxIFMDefaultInterfacePlugin::ProcessPluginEvent wxIFMPluginEvent &  event  )  [virtual]
 

Processes a plugin event.

Reimplemented from wxIFMInterfacePluginBase.

Definition at line 138 of file definterface.cpp.

References wxIFMInterfacePluginBase::ProcessPluginEvent().

Referenced by OnAddChild(), OnAddTopContainer(), OnGetContentRect(), and OnUpdate().


Member Data Documentation

wxIFMComponentList wxIFMDefaultInterfacePlugin::m_containers [private]
 

Definition at line 140 of file definterface.h.

Referenced by GetComponentByPos(), GetContainer(), GetTopContainerList(), OnAddTopContainer(), OnDeleteComponent(), OnGetContentRect(), OnPaint(), OnRemoveTopContainer(), and OnUpdate().


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

 

SourceForge Logo