MatOCAD Logo

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

wxIFMDefaultResizePlugin Class Reference

#include <resize.h>

Inherits wxIFMExtensionPluginBase.

Inheritance diagram for wxIFMDefaultResizePlugin:

Inheritance graph
[legend]
Collaboration diagram for wxIFMDefaultResizePlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wxIFMDefaultResizePlugin ()
bool Initialize (wxIFMInterfacePluginBase *plugin)
void OnCreateComponent (wxIFMNewComponentEvent &event)
void OnDock (wxIFMDockEvent &event)
void OnUndock (wxIFMUndockEvent &event)
void OnConvertRect (wxIFMConvertRectEvent &event)
void OnPaintDecor (wxIFMPaintEvent &event)
void OnShowChild (wxIFMShowChildEvent &event)
void OnGetRect (wxIFMRectEvent &event)
void OnSetRect (wxIFMRectEvent &event)
void OnSetCursor (wxIFMSetCursorEvent &event)
void OnLeftDown (wxIFMMouseEvent &event)
void OnLeftUp (wxIFMMouseEvent &event)
void OnMouseMove (wxIFMMouseEvent &event)
void OnKeyDown (wxIFMKeyEvent &event)
void OnGetDesiredSize (wxIFMRectEvent &event)
void PaintResizeHint (wxScreenDC &dc, const wxRect &rect)
void OnResizeBegin (wxIFMResizeEvent &event)
void OnResizeEnd (wxIFMResizeEvent &event)
void OnResizing (wxIFMResizeEvent &event)
void OnAddTopContainer (wxIFMAddTopContainerEvent &event)
void OnUpdateResizeSashes (wxIFMUpdateResizeSashEvent &event)
void UpdateContainerResizeSashes (wxIFMComponent *container)
void UpdateResizeSashes (wxIFMComponent *component)
void ResizeComponent (wxIFMComponent *component, wxSize size)
bool HasResizeableChildren (wxIFMComponent *component)

Private Attributes

wxIFMDefaultInterfacePlugin * m_ip
bool m_resizing
bool m_realtime
wxPoint m_oldPos
wxRect m_resizeRect
int m_orientation
int m_offset

Detailed Description

Plugin responsible for handling resize sashes

Definition at line 42 of file resize.h.


Constructor & Destructor Documentation

wxIFMDefaultResizePlugin::wxIFMDefaultResizePlugin (   ) 
 

Definition at line 59 of file resize.cpp.


Member Function Documentation

bool wxIFMDefaultResizePlugin::HasResizeableChildren (  wxIFMComponent *  component  ) 
 

Definition at line 865 of file resize.cpp.

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

Referenced by UpdateContainerResizeSashes(), and UpdateResizeSashes().

bool wxIFMDefaultResizePlugin::Initialize (  wxIFMInterfacePluginBase *  plugin  )  [virtual]
 

Tells the extension plugin what interface plugin it extends. If an extension plugin only works for inteface plugin Q, a warning message should be generated by this function, and false should be returned. Otherwise, return true.

If this function returns false, the extension plugin will be removed from the interface plugin that it was added to.

Reimplemented from wxIFMExtensionPluginBase.

Definition at line 67 of file resize.cpp.

References wxIFMExtensionPluginBase::Initialize(), and m_ip.

void wxIFMDefaultResizePlugin::OnAddTopContainer (  wxIFMAddTopContainerEvent &  event  ) 
 

Definition at line 146 of file resize.cpp.

References wxIFMExtensionPluginBase::GetIP(), and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultResizePlugin::OnConvertRect (  wxIFMConvertRectEvent &  event  ) 
 

Definition at line 337 of file resize.cpp.

References wxIFMConvertRectEvent::GetDestinationCoords(), wxIFMRectEvent::GetRect(), wxIFMConvertRectEvent::GetSourceCoords(), IFM_COORDS_ABSOLUTE, IFM_COORDS_BACKGROUND, IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, IFM_RESIZE_SASH_SIZE, wxIFMResizeData::m_display, wxIFMComponent::m_hidden, wxIFMResizeData::m_side, and wxIFMRectEvent::SetRect().

void wxIFMDefaultResizePlugin::OnCreateComponent (  wxIFMNewComponentEvent &  event  ) 
 

Definition at line 87 of file resize.cpp.

References wxIFMComponent::AddExtensionData().

void wxIFMDefaultResizePlugin::OnDock (  wxIFMDockEvent &  event  ) 
 

Definition at line 103 of file resize.cpp.

References wxIFMDockEvent::GetDestination(), wxIFMExtensionPluginBase::GetIP(), and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultResizePlugin::OnGetDesiredSize (  wxIFMRectEvent &  event  ) 
 

void wxIFMDefaultResizePlugin::OnGetRect (  wxIFMRectEvent &  event  ) 
 

Definition at line 459 of file resize.cpp.

References IFM_GET_EXTENSION_DATA, wxIFMResizeData::m_display, wxIFMComponent::m_hidden, wxIFMResizeData::m_rect, and wxIFMRectEvent::SetRect().

void wxIFMDefaultResizePlugin::OnKeyDown (  wxIFMKeyEvent &  event  ) 
 

Definition at line 619 of file resize.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMKeyEvent::GetKeyEvent(), wxIFMExtensionPluginBase::GetManager(), m_realtime, m_resizing, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxInterfaceManager::ReleaseInput().

void wxIFMDefaultResizePlugin::OnLeftDown (  wxIFMMouseEvent &  event  ) 
 

Todo:
Possibly provide resize sash hit test event?

Definition at line 559 of file resize.cpp.

References wxInterfaceManager::CaptureInput(), wxInterfaceManager::GetCapturedWindow(), wxIFMExtensionPluginBase::GetIP(), wxIFMExtensionPluginBase::GetManager(), wxIFMMouseEvent::GetMouseEvent(), wxIFMRectEvent::GetRect(), m_realtime, m_resizing, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultResizePlugin::OnLeftUp (  wxIFMMouseEvent &  event  ) 
 

Definition at line 592 of file resize.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMExtensionPluginBase::GetManager(), wxIFMMouseEvent::GetMouseEvent(), m_realtime, m_resizing, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxInterfaceManager::ReleaseInput().

void wxIFMDefaultResizePlugin::OnMouseMove (  wxIFMMouseEvent &  event  ) 
 

Definition at line 607 of file resize.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMMouseEvent::GetMouseEvent(), m_realtime, m_resizing, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultResizePlugin::OnPaintDecor (  wxIFMPaintEvent &  event  ) 
 

Todo:
Globalize colour storage

Definition at line 405 of file resize.cpp.

References wxIFMPaintEvent::GetDC(), wxIFMExtensionPluginBase::GetIP(), wxIFMRectEvent::GetRect(), IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, wxIFMResizeData::m_display, wxIFMComponent::m_hidden, wxIFMResizeData::m_side, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultResizePlugin::OnResizeBegin (  wxIFMResizeEvent &  event  ) 
 

Definition at line 648 of file resize.cpp.

References wxInterfaceManager::GetCapturedWindow(), wxIFMExtensionPluginBase::GetIP(), wxIFMExtensionPluginBase::GetManager(), wxIFMResizeEvent::GetPosition(), wxIFMRectEvent::GetRect(), wxIFMRectEvent::GetSize(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, m_offset, m_oldPos, m_orientation, m_resizeRect, wxIFMResizeData::m_side, PaintResizeHint(), wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMResizeEvent::RealtimeUpdates().

void wxIFMDefaultResizePlugin::OnResizeEnd (  wxIFMResizeEvent &  event  ) 
 

Definition at line 686 of file resize.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMExtensionPluginBase::GetManager(), wxIFMResizeEvent::GetPosition(), wxIFMComponent::GetRect(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, IFM_RESIZE_SASH_SIZE, wxIFMComponent::m_docked, m_offset, m_orientation, wxIFMComponent::m_parent, wxIFMComponent::m_rect, m_resizeRect, wxIFMResizeData::m_side, PaintResizeHint(), wxIFMInterfacePluginBase::ProcessPluginEvent(), wxIFMResizeEvent::RealtimeUpdates(), ResizeComponent(), wxInterfaceManager::Update(), and wxIFMResizeEvent::WasCanceled().

void wxIFMDefaultResizePlugin::OnResizing (  wxIFMResizeEvent &  event  ) 
 

Definition at line 836 of file resize.cpp.

References wxInterfaceManager::GetCapturedWindow(), wxIFMExtensionPluginBase::GetManager(), wxIFMResizeEvent::GetPosition(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, m_offset, m_oldPos, m_orientation, m_resizeRect, PaintResizeHint(), and wxIFMResizeEvent::RealtimeUpdates().

void wxIFMDefaultResizePlugin::OnSetCursor (  wxIFMSetCursorEvent &  event  ) 
 

Definition at line 526 of file resize.cpp.

References wxIFMSetCursorEvent::GetCursorEvent(), wxIFMExtensionPluginBase::GetIP(), wxIFMRectEvent::GetRect(), IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, wxIFMResizeData::m_side, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultResizePlugin::OnSetRect (  wxIFMRectEvent &  event  ) 
 

Definition at line 475 of file resize.cpp.

References wxIFMRectEvent::GetRect(), IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, IFM_RESIZE_SASH_SIZE, wxIFMResizeData::m_rect, and wxIFMResizeData::m_side.

void wxIFMDefaultResizePlugin::OnShowChild (  wxIFMShowChildEvent &  event  ) 
 

Definition at line 159 of file resize.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMComponent::m_parent, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultResizePlugin::OnUndock (  wxIFMUndockEvent &  event  ) 
 

Definition at line 117 of file resize.cpp.

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

void wxIFMDefaultResizePlugin::OnUpdateResizeSashes (  wxIFMUpdateResizeSashEvent &  event  ) 
 

Definition at line 206 of file resize.cpp.

References wxIFMComponent::GetType(), UpdateContainerResizeSashes(), and UpdateResizeSashes().

void wxIFMDefaultResizePlugin::PaintResizeHint (  wxScreenDC &  dc,
const wxRect &  rect
) 
 

Definition at line 636 of file resize.cpp.

Referenced by OnResizeBegin(), OnResizeEnd(), and OnResizing().

void wxIFMDefaultResizePlugin::ResizeComponent (  wxIFMComponent *  component,
wxSize  size
) 
 

Definition at line 764 of file resize.cpp.

References wxIFMCalcRectsEvent::AddComponent(), wxIFMComponent::GetClientRect(), wxIFMCalcRectsEvent::GetComponentRects(), wxIFMExtensionPluginBase::GetIP(), wxIFMComponent::GetType(), IFM_ALIGN_HORIZONTAL, wxIFMComponent::m_alignment, wxIFMComponent::m_children, wxIFMComponent::m_parent, and wxIFMInterfacePluginBase::ProcessPluginEvent().

Referenced by OnResizeEnd().

void wxIFMDefaultResizePlugin::UpdateContainerResizeSashes (  wxIFMComponent *  container  ) 
 

Definition at line 220 of file resize.cpp.

References HasResizeableChildren(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_CANFLOAT, IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_LEFT, IFM_ORIENTATION_RIGHT, IFM_ORIENTATION_TOP, wxIFMComponent::m_alignment, wxIFMResizeData::m_display, wxIFMComponent::m_docked, wxIFMContainerData::m_orientation, wxIFMResizeData::m_side, and UpdateResizeSashes().

Referenced by OnUpdateResizeSashes().

void wxIFMDefaultResizePlugin::UpdateResizeSashes (  wxIFMComponent *  component  ) 
 

Todo:
Allow for top / left resize sashes on children here

Definition at line 270 of file resize.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMComponent::GetNextVisibleComponent(), HasResizeableChildren(), IFM_ALIGN_HORIZONTAL, IFM_ALIGN_VERTICAL, IFM_CANFLOAT, IFM_GET_EXTENSION_DATA, IFM_ORIENTATION_BOTTOM, IFM_ORIENTATION_RIGHT, wxIFMComponent::m_alignment, wxIFMComponent::m_children, wxIFMResizeData::m_display, wxIFMComponent::m_docked, wxIFMComponent::m_parent, wxIFMResizeData::m_side, and wxIFMInterfacePluginBase::ProcessPluginEvent().

Referenced by OnUpdateResizeSashes(), and UpdateContainerResizeSashes().


Member Data Documentation

wxIFMDefaultInterfacePlugin* wxIFMDefaultResizePlugin::m_ip [private]
 

Reimplemented from wxIFMExtensionPluginBase.

Definition at line 45 of file resize.h.

Referenced by Initialize().

int wxIFMDefaultResizePlugin::m_offset [private]
 

Definition at line 51 of file resize.h.

Referenced by OnResizeBegin(), OnResizeEnd(), and OnResizing().

wxPoint wxIFMDefaultResizePlugin::m_oldPos [private]
 

Definition at line 48 of file resize.h.

Referenced by OnResizeBegin(), and OnResizing().

int wxIFMDefaultResizePlugin::m_orientation [private]
 

Definition at line 50 of file resize.h.

Referenced by OnResizeBegin(), OnResizeEnd(), and OnResizing().

bool wxIFMDefaultResizePlugin::m_realtime [private]
 

Definition at line 47 of file resize.h.

Referenced by OnKeyDown(), OnLeftDown(), OnLeftUp(), and OnMouseMove().

wxRect wxIFMDefaultResizePlugin::m_resizeRect [private]
 

Definition at line 49 of file resize.h.

Referenced by OnResizeBegin(), OnResizeEnd(), and OnResizing().

bool wxIFMDefaultResizePlugin::m_resizing [private]
 

Definition at line 47 of file resize.h.

Referenced by OnKeyDown(), OnLeftDown(), OnLeftUp(), and OnMouseMove().


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

 

SourceForge Logo