MatOCAD Logo

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

wxIFMDefaultPanelPlugin Class Reference

#include <definterface.h>

Inherits wxIFMExtensionPluginBase.

Inheritance diagram for wxIFMDefaultPanelPlugin:

Inheritance graph
[legend]
Collaboration diagram for wxIFMDefaultPanelPlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 wxIFMDefaultPanelPlugin ()
bool Initialize (wxIFMInterfacePluginBase *plugin)

Private Member Functions

void OnCreateComponent (wxIFMNewComponentEvent &event)
void OnDestroyComponent (wxIFMDeleteComponentEvent &event)
void OnSetChild (wxIFMSetChildEvent &event)
void OnQueryChild (wxIFMQueryChildEvent &event)
void OnUpdate (wxIFMUpdateComponentEvent &event)
void OnVisibilityChanged (wxIFMComponentVisibilityChangedEvent &event)
void OnShowComponent (wxIFMShowComponentEvent &event)
void OnPaintDecor (wxIFMPaintEvent &event)
void OnPaintBg (wxIFMPaintEvent &event)
void OnLeftDown (wxIFMMouseEvent &event)
void OnLeftUp (wxIFMMouseEvent &event)
void OnMouseMove (wxIFMMouseEvent &event)
void OnDock (wxIFMDockEvent &event)
void OnUndock (wxIFMUndockEvent &event)
void OnComponentButtonClick (wxIFMComponentButtonEvent &event)
void OnSelectTab (wxIFMSelectTabEvent &event)
void OnGetDesiredSize (wxIFMRectEvent &event)
void OnSetDesiredSize (wxIFMRectEvent &event)
void OnGetMinSize (wxIFMRectEvent &event)
void OnGetMaxSize (wxIFMRectEvent &event)
void DrawTabs (wxDC &dc, wxIFMComponent *component, const wxRegion &region, const wxIFMTabArray &tabs)

Private Attributes

wxIFMCaptionConfig m_caption_config
wxIFMTabConfig m_tab_config

Detailed Description

Handles default panel functionality

Definition at line 268 of file definterface.h.


Constructor & Destructor Documentation

wxIFMDefaultPanelPlugin::wxIFMDefaultPanelPlugin  )  [inline]
 

Definition at line 272 of file definterface.h.


Member Function Documentation

void wxIFMDefaultPanelPlugin::DrawTabs wxDC &  dc,
wxIFMComponent component,
const wxRegion &  region,
const wxIFMTabArray &  tabs
[private]
 

Definition at line 2258 of file definterface.cpp.

References wxIFMTabConfig::bg_brush, wxIFMTabConfig::bg_pen, wxIFMTabConfig::font, wxIFMTabConfig::font_color, wxIFMTabConfig::font_height, wxIFMComponent::GetClientRect(), IFM_GET_EXTENSION_DATA, wxIFMTabConfig::line_pen, wxIFMTab::m_active, wxIFMPanelTabData::m_bitmap, wxIFMComponent::m_name, wxIFMTab::m_rect, wxIFMTab::m_tab, m_tab_config, wxIFMTab::m_visible, wxIFMTabConfig::rounding_factor, wxIFMTabConfig::row_height, wxIFMTabConfig::tab_active_bg_b, wxIFMTabConfig::tab_active_bg_p, wxIFMTabConfig::tab_border_p, wxIFMTabConfig::tab_inactive_bg_b, wxIFMTabConfig::tab_inactive_bg_p, and wxIFMTabConfig::tab_padding.

Referenced by OnPaintDecor().

bool wxIFMDefaultPanelPlugin::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 1553 of file definterface.cpp.

References wxIFMExtensionPluginBase::Initialize(), m_bmpClose, m_bmpCloseH, m_bmpCloseP, m_bmpMax, m_bmpMaxH, m_bmpMaxP, m_bmpMin, m_bmpMinH, and m_bmpMinP.

void wxIFMDefaultPanelPlugin::OnComponentButtonClick wxIFMComponentButtonEvent event  )  [private]
 

Todo:
implement minimizing of components
Todo:
implement maximizing of components

Definition at line 2352 of file definterface.cpp.

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

void wxIFMDefaultPanelPlugin::OnCreateComponent wxIFMNewComponentEvent event  )  [private]
 

Definition at line 1602 of file definterface.cpp.

References wxIFMComponentButtonManager::AddButton(), wxIFMComponent::AddExtensionData(), wxIFMDimensions::bottom, wxIFMCaptionConfig::color, wxIFMExtensionPluginBase::GetIP(), wxIFMCaptionConfig::height, IFM_CAPTION_PAD, IFM_COMPONENT_BUTTON_Y, IFM_COMPONENT_ID_CLOSE, wxIFMComponentButton::m_bmp, m_bmpClose, m_bmpCloseH, m_bmpCloseP, wxIFMComponentButton::m_bmpH, wxIFMComponentButton::m_bmpP, wxIFMComponent::m_borders, wxIFMPanelData::m_button_manager, m_caption_config, wxIFMComponent::m_margins, m_tab_config, wxIFMTabConfig::row_height, wxIFMDimensions::Set(), wxIFMNewComponentEvent::SetComponent(), wxIFMComponentButtonManager::SetPosition(), and wxIFMDimensions::top.

void wxIFMDefaultPanelPlugin::OnDestroyComponent wxIFMDeleteComponentEvent event  )  [private]
 

Definition at line 1663 of file definterface.cpp.

References wxIFMComponentButtonManager::Hide(), IFM_GET_EXTENSION_DATA, and wxIFMPanelData::m_button_manager.

void wxIFMDefaultPanelPlugin::OnDock wxIFMDockEvent event  )  [private]
 

Definition at line 1748 of file definterface.cpp.

References wxIFMTabConfig::font, wxIFMComponent::GetConvertedRect(), wxIFMComponent::GetDesiredSize(), wxIFMDockEvent::GetDestination(), wxIFMDockEvent::GetDestinationType(), wxIFMDockEvent::GetIndex(), wxIFMExtensionPluginBase::GetIP(), wxIFMExtensionPluginBase::GetManager(), wxInterfaceManager::GetParent(), IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, IFM_DEFAULT_INDEX, IFM_GET_EXTENSION_DATA, wxIFMComponent::m_children, wxIFMComponent::m_name, wxIFMTab::m_name_width, wxIFMComponent::m_parent, wxIFMTab::m_tab, m_tab_config, wxIFMPanelData::m_tabs, wxIFMInterfacePluginBase::ProcessPluginEvent(), and wxIFMComponent::SetDesiredSize().

void wxIFMDefaultPanelPlugin::OnGetDesiredSize wxIFMRectEvent event  )  [private]
 

Definition at line 2499 of file definterface.cpp.

void wxIFMDefaultPanelPlugin::OnGetMaxSize wxIFMRectEvent event  )  [private]
 

Definition at line 2594 of file definterface.cpp.

References IFM_GET_EXTENSION_DATA.

void wxIFMDefaultPanelPlugin::OnGetMinSize wxIFMRectEvent event  )  [private]
 

Definition at line 2553 of file definterface.cpp.

References wxIFMComponent::GetConvertedRect(), IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, IFM_GET_EXTENSION_DATA, IFM_NO_MINIMUM, wxIFMComponent::m_children, wxIFMComponent::m_minSize, and wxIFMRectEvent::SetSize().

void wxIFMDefaultPanelPlugin::OnLeftDown wxIFMMouseEvent event  )  [private]
 

Definition at line 2385 of file definterface.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMMouseEvent::GetMouseEvent(), IFM_GET_EXTENSION_DATA, wxIFMPanelData::m_caption, wxIFMTab::m_rect, wxIFMTab::m_tab, wxIFMPanelData::m_tabs, wxIFMTab::m_visible, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPanelPlugin::OnLeftUp wxIFMMouseEvent event  )  [private]
 

void wxIFMDefaultPanelPlugin::OnMouseMove wxIFMMouseEvent event  )  [private]
 

void wxIFMDefaultPanelPlugin::OnPaintBg wxIFMPaintEvent event  )  [private]
 

Definition at line 2232 of file definterface.cpp.

References wxIFMComponent::GetBackgroundRect(), wxIFMPaintEvent::GetDC(), wxIFMComponent::m_hidden, m_tab_config, and wxIFMTabConfig::tab_active_bg_b.

void wxIFMDefaultPanelPlugin::OnPaintDecor wxIFMPaintEvent event  )  [private]
 

Definition at line 2188 of file definterface.cpp.

References wxIFMCaptionConfig::color, DrawTabs(), wxIFMCaptionConfig::font, wxIFMPaintEvent::GetDC(), wxIFMPaintEvent::GetRegion(), IFM_GET_EXTENSION_DATA, wxIFMPanelData::m_active_tab, wxIFMPanelData::m_caption, m_caption_config, wxIFMComponent::m_hidden, wxIFMComponent::m_name, wxIFMTab::m_tab, wxIFMPanelData::m_tabs, and wxIFMPanelData::m_titlePos.

void wxIFMDefaultPanelPlugin::OnQueryChild wxIFMQueryChildEvent event  )  [private]
 

Definition at line 1722 of file definterface.cpp.

References wxIFMChildEvent::GetChild(), wxIFMComponent::GetType(), IFM_GET_EXTENSION_DATA, wxIFMComponent::IsVisible(), wxIFMComponent::m_child, wxIFMComponent::m_parent, wxIFMTab::m_tab, wxIFMPanelData::m_tabs, wxIFMTab::m_visible, and wxIFMQueryChildEvent::SetVisible().

void wxIFMDefaultPanelPlugin::OnSelectTab wxIFMSelectTabEvent event  )  [private]
 

Definition at line 2449 of file definterface.cpp.

References wxIFMComponent::GetClientRect(), wxIFMExtensionPluginBase::GetIP(), wxIFMComponent::GetRect(), wxIFMSelectTabEvent::GetTab(), wxIFMSelectTabEvent::GetUpdate(), IFM_GET_EXTENSION_DATA, wxIFMPanelData::m_active_tab, wxIFMPanelData::m_dont_hide_tab, wxIFMTab::m_tab, wxIFMPanelData::m_tabs, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPanelPlugin::OnSetChild wxIFMSetChildEvent event  )  [private]
 

Todo:
Move this into defaultplugin

Definition at line 1685 of file definterface.cpp.

References wxIFMSetChildEvent::GetChild(), wxIFMSetChildEvent::GetChildType(), wxIFMComponent::m_child, wxIFMComponent::m_childType, and wxIFMComponent::m_hidden.

void wxIFMDefaultPanelPlugin::OnSetDesiredSize wxIFMRectEvent event  )  [private]
 

Definition at line 2524 of file definterface.cpp.

References wxIFMComponent::GetConvertedRect(), wxIFMRectEvent::GetRect(), IFM_COORDS_ABSOLUTE, IFM_COORDS_CLIENT, IFM_GET_EXTENSION_DATA, and wxIFMPanelData::m_tabs.

void wxIFMDefaultPanelPlugin::OnShowComponent wxIFMShowComponentEvent event  )  [private]
 

Definition at line 2024 of file definterface.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMShowComponentEvent::GetShow(), wxIFMComponent::GetType(), wxIFMComponent::Hide(), IFM_GET_EXTENSION_DATA, wxIFMTab::m_active, wxIFMPanelData::m_dont_hide_tab, wxIFMComponent::m_parent, wxIFMTab::m_tab, wxIFMPanelData::m_tabs, wxIFMTab::m_visible, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPanelPlugin::OnUndock wxIFMUndockEvent event  )  [private]
 

Definition at line 1858 of file definterface.cpp.

References wxIFMExtensionPluginBase::GetIP(), wxIFMUndockEvent::GetParent(), wxIFMUndockEvent::GetParentType(), IFM_GET_EXTENSION_DATA, wxIFMPanelData::m_active_tab, wxIFMTab::m_tab, wxIFMPanelData::m_tabs, and wxIFMInterfacePluginBase::ProcessPluginEvent().

void wxIFMDefaultPanelPlugin::OnUpdate wxIFMUpdateComponentEvent event  )  [private]
 

Definition at line 1912 of file definterface.cpp.

References wxIFMCaptionConfig::font_height, wxIFMComponent::GetBackgroundRect(), wxIFMComponent::GetClientRect(), wxIFMExtensionPluginBase::GetIP(), wxIFMComponentButtonManager::GetRect(), wxIFMRectEvent::GetRect(), wxIFMCaptionConfig::height, IFM_CAPTION_PAD, IFM_GET_EXTENSION_DATA, wxIFMComponent::IsVisible(), wxIFMComponentButtonManager::Layout(), wxIFMPanelData::m_active_tab, wxIFMPanelTabData::m_bitmap, wxIFMPanelData::m_button_manager, wxIFMPanelData::m_caption, m_caption_config, wxIFMComponent::m_child, wxIFMTab::m_name_width, wxIFMTab::m_rect, wxIFMTab::m_tab, m_tab_config, wxIFMPanelData::m_tabs, wxIFMPanelData::m_titlePos, wxIFMTab::m_visible, wxIFMCaptionConfig::padding, wxIFMInterfacePluginBase::ProcessPluginEvent(), wxIFMTabConfig::row_height, wxIFMTabConfig::row_indent, wxIFMComponentButtonManager::SetPosition(), wxIFMTabConfig::tab_height, wxIFMTabConfig::tab_padding, and wxIFMTabConfig::tab_spacing.

void wxIFMDefaultPanelPlugin::OnVisibilityChanged wxIFMComponentVisibilityChangedEvent event  )  [private]
 

Definition at line 2111 of file definterface.cpp.

References wxIFMComponentVisibilityChangedEvent::GetShow(), IFM_GET_EXTENSION_DATA, wxIFMPanelData::m_button_manager, wxIFMComponent::m_child, and wxIFMComponentButtonManager::Show().


Member Data Documentation

wxIFMCaptionConfig wxIFMDefaultPanelPlugin::m_caption_config [private]
 

Definition at line 277 of file definterface.h.

Referenced by OnCreateComponent(), OnPaintDecor(), and OnUpdate().

wxIFMTabConfig wxIFMDefaultPanelPlugin::m_tab_config [private]
 

Definition at line 278 of file definterface.h.

Referenced by DrawTabs(), OnCreateComponent(), OnDock(), OnPaintBg(), and OnUpdate().


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

 

SourceForge Logo