#include <manager.h>
Collaboration diagram for wxInterfaceManager:
Public Member Functions | |
wxInterfaceManager (wxWindow *parent, wxWindow *content=NULL) | |
~wxInterfaceManager () | |
wxWindow * | GetParent () const |
const wxRect & | GetInterfaceRect () const |
void | SetInterfaceRect (const wxRect &rect) |
void | ResetInterfaceRect () |
void | SetContentWindow (wxWindow *content) |
wxWindow * | GetContentWindow () const |
bool | Initialize (bool defaultPlugins=true, int flags=IFM_DEFAULT_FLAGS) |
void | Shutdown () |
void | SetFlags (int flags) |
Sets flags. | |
int | GetFlags () const |
bool | AddChild (wxIFMChildDataBase *data, bool update=false) |
void | ShowChild (wxWindow *child, bool show, bool update=true) |
void | HideChild (wxWindow *child, bool update=true) |
bool | IsChildVisible (wxWindow *child) |
void | SetChildSize (wxWindow *child, const wxSize &desired, const wxSize &min=IFM_USE_CURRENT_SIZE, const wxSize &max=IFM_USE_CURRENT_SIZE, bool update=true) |
Change the minimum, maximum, and desired size of the given child window. | |
void | CaptureInput (wxIFMComponent *component) |
void | ReleaseInput () |
bool | IsInputCaptured () const |
wxIFMComponent * | GetCapturedComponent () const |
wxWindow * | GetCapturedWindow () const |
void | Update (wxRect rect=IFM_DEFAULT_RECT, bool floating=false) |
void | AddPendingUpdate (wxRect rect=IFM_DEFAULT_RECT, bool floating=false) |
void | SetStatusMessagePane (int pane) |
void | DisplayStatusMessage (const wxString &message) |
void | ResetStatusMessage () |
Private Member Functions | |
int | AddInterfacePlugin (wxIFMInterfacePluginBase *plugin, bool select=true) |
void | SetActiveInterface (int plugin) |
void | RemoveInterfacePlugin (int interface_index=IFM_INTERFACE_ACTIVE) |
void | RemoveAllInterfacePlugins () |
wxIFMInterfacePluginBase * | GetActiveIP () const |
bool | AddExtensionPlugin (wxIFMExtensionPluginBase *plugin) |
void | RemoveExtensionPlugin () |
void | RemoveAllExtensionPlugins () |
Private Attributes | |
bool | m_initialized |
int | m_flags |
wxWindow * | m_parent |
wxWindow * | m_content |
wxIFMInterfacePluginArray | m_interfacePlugins |
int | m_activeInterface |
wxIFMComponent * | m_capturedComponent |
indentifies which component has captured input, if any | |
int | m_capturedType |
specifies the type of the component that has captured input | |
wxRect | m_updateRect |
bool | m_useUpdateRect |
int | m_statusbarPane |
bool | m_statusMessageDisplayed |
wxString | m_oldStatusMessage |
Definition at line 135 of file manager.h.
|
Definition at line 53 of file manager.cpp. References IFM_CANFLOAT, IFM_DEFAULT_FLAGS, IFM_DISABLE_STATUS_MESSAGES, and m_parent. |
|
Definition at line 70 of file manager.cpp. |
|
Adds a child window to be managed by the interface. This child window will be added to all interface plugins.
Definition at line 165 of file manager.cpp. References GetActiveIP(), wxIFMAddChildEvent::GetSuccess(), IFM_CHILDTYPE_UNDEFINED, wxIFMChildDataBase::m_child, m_initialized, wxIFMChildDataBase::m_type, wxIFMInterfacePluginBase::ProcessPluginEvent(), and Update(). Referenced by MainFrm::CreateGUIControls(). |
|
Adds an extension plugin to a given interface plugin
Definition at line 277 of file manager.cpp. References GetActiveIP(), and wxIFMInterfacePluginBase::PushExtensionPlugin(). |
|
Adds an interface plugin to the interface manager
Definition at line 212 of file manager.cpp. References wxIFMInterfacePluginBase::Initialize(), m_interfacePlugins, and SetActiveInterface(). Referenced by Initialize(). |
|
This function is identical to the wxInterfaceManager::Update function, except that the interface is not updated immediately. An event is posted to the event que and the interface will be updated when this event is processed.
Definition at line 369 of file manager.cpp. References GetActiveIP(), IFM_DEFAULT_RECT, m_content, m_parent, m_updateRect, and m_useUpdateRect. Referenced by wxIFMDefaultPlugin::OnShowComponent(). |
|
Called by plugins to allow for individual components to "capture" mouse and keyboard messages.
Definition at line 292 of file manager.cpp. References wxIFMComponent::GetType(), IFM_GET_EXTENSION_DATA, m_capturedComponent, m_capturedType, and m_parent. Referenced by wxIFMDefaultDockingPlugin::OnDragInit(), and wxIFMDefaultResizePlugin::OnLeftDown(). |
|
Used by plugins to display a status message to the user in the parent frames status bar using the pane set earlier by wxInterfaceManager::SetStatusPane
Definition at line 398 of file manager.cpp. References IFM_DISABLE_STATUS_MESSAGES, m_oldStatusMessage, m_parent, m_statusbarPane, and m_statusMessageDisplayed. Referenced by wxIFMDefaultDockingPlugin::OnDragBegin(). |
|
Definition at line 121 of file manager.cpp. References m_activeInterface, and m_interfacePlugins. Referenced by AddChild(), AddExtensionPlugin(), AddPendingUpdate(), IsChildVisible(), RemoveAllExtensionPlugins(), RemoveExtensionPlugin(), SetChildSize(), ShowChild(), and Update(). |
|
Definition at line 131 of file manager.cpp. References m_capturedComponent. Referenced by wxIFMInterfacePluginBase::OnKeyDown(), wxIFMInterfacePluginBase::OnKeyUp(), and wxIFMInterfacePluginBase::OnMouseEvent(). |
|
Definition at line 332 of file manager.cpp. References m_capturedComponent, and m_parent. Referenced by wxIFMDefaultDockingPlugin::OnDrag(), wxIFMDefaultDockingPlugin::OnDragBegin(), wxIFMDefaultDockingPlugin::OnDragInit(), wxIFMDefaultResizePlugin::OnLeftDown(), wxIFMDefaultDockingPlugin::OnMouseMove(), wxIFMDefaultResizePlugin::OnResizeBegin(), and wxIFMDefaultResizePlugin::OnResizing(). |
|
Definition at line 96 of file manager.cpp. References m_content. |
|
Definition at line 111 of file manager.cpp. References m_flags. Referenced by wxIFMInterfacePluginBase::OnSize(). |
|
Definition at line 80 of file manager.cpp. References m_updateRect. Referenced by wxIFMDefaultDockingPlugin::CreateTargetButtons(), wxIFMDefaultInterfacePlugin::OnGetContentRect(), and wxIFMDefaultDockingPlugin::OnShowDropTargets(). |
|
Definition at line 75 of file manager.cpp. References m_parent. Referenced by wxIFMDefaultDockingPlugin::CreateTargetButtons(), wxIFMInterfacePluginBase::GetComponentByPos(), wxIFMComponent::GetParentWindow(), wxIFMDefaultPanelPlugin::OnDock(), wxIFMInterfacePluginBase::OnPaint(), wxIFMDefaultDockingPlugin::OnShowDropTargets(), wxIFMDefaultInterfacePlugin::OnUpdate(), wxIFMDefaultDockingPlugin::ShowComponentDropButtons(), and wxIFMDefaultDockingPlugin::ShowFrameDropButtons(). |
|
Hides a child window that is managed by this interface
Definition at line 116 of file manager.cpp. References ShowChild(). Referenced by MainFrm::CreateGUIControls(). |
|
Performs necessary actions to ready the interface to recieve and manage children.
Definition at line 136 of file manager.cpp. References AddInterfacePlugin(), m_flags, m_initialized, and m_parent. Referenced by MainFrm::CreateGUIControls(). |
|
Definition at line 195 of file manager.cpp. References GetActiveIP(), wxIFMQueryChildEvent::IsVisible(), and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by MainFrm::BtnUpdateTreeClick(), and MainFrm::OnMenuOpen(). |
|
Definition at line 126 of file manager.cpp. References m_capturedComponent. Referenced by wxIFMInterfacePluginBase::OnMouseEvent(). |
|
Releases input if it is captured by a certain component Definition at line 312 of file manager.cpp. References IFM_COMPONENT_UNDEFINED, m_capturedComponent, m_capturedType, and m_parent. Referenced by wxIFMDefaultResizePlugin::OnKeyDown(), wxIFMDefaultDockingPlugin::OnKeyDown(), wxIFMDefaultResizePlugin::OnLeftUp(), and wxIFMDefaultDockingPlugin::OnLeftUp(). |
|
Removes and deletes all extension plugins for the given interface plugin
Definition at line 287 of file manager.cpp. References GetActiveIP(), and wxIFMInterfacePluginBase::PopAllExtensionPlugins(). |
|
Removes and deletes all interface plugins. Definition at line 271 of file manager.cpp. References m_interfacePlugins, and RemoveInterfacePlugin(). Referenced by Shutdown(). |
|
Removes and deletes the most recently added extension plugin for the given interface plugin
Definition at line 282 of file manager.cpp. References GetActiveIP(), and wxIFMInterfacePluginBase::PopExtensionPlugin(). |
|
Removes and deletes the specified interface plugin.
Definition at line 253 of file manager.cpp. References m_interfacePlugins. Referenced by RemoveAllInterfacePlugins(). |
|
Calling this function will prevent the interface from being restricted to the rect previously set by SetInterfaceRect. Definition at line 91 of file manager.cpp. References m_useUpdateRect. |
|
Used by plugins to reset the status display message to the message that was present before they called wxInterfaceManager::DisplayStatusMessage. The first time DisplayStatusMessage is called (or the first time it is called after calling ResetStatusMessage) the current status bar pane message will be saved. Future calls to DisplayStatusMessage will not change the saved string until ResetStatusMessage is called. For example, if the status bar pane contained the text "Ready" and DisplayStatusMessage was called two times with two different messages, ResetStatusMessage will change the status bar pane's text back to "Ready". A second call to ResetStatusMessage will do nothing.
Definition at line 421 of file manager.cpp. References IFM_DISABLE_STATUS_MESSAGES, m_oldStatusMessage, m_parent, m_statusbarPane, and m_statusMessageDisplayed. Referenced by wxIFMDefaultDockingPlugin::OnDragEnd(). |
|
Sets the active interface plugin
Definition at line 235 of file manager.cpp. References m_activeInterface, and m_interfacePlugins. Referenced by AddInterfacePlugin(). |
|
Change the minimum, maximum, and desired size of the given child window.
Definition at line 204 of file manager.cpp. References GetActiveIP(), and wxIFMInterfacePluginBase::ProcessPluginEvent(). |
|
Sets the content window that the interface will manage.
Definition at line 101 of file manager.cpp. References m_content. Referenced by MainFrm::CreateGUIControls(). |
|
Sets flags.
Definition at line 106 of file manager.cpp. References m_flags. |
|
Specifies a rectangle for the interface to occupy. The interface will restrict itself to this rect for all subsequent updates. To allow the interface to use the client size while updating, call ResetInterfaceRect.
Definition at line 85 of file manager.cpp. References m_updateRect, and m_useUpdateRect. |
|
This function is used to specify which pane of the managed frame's status bar will be used by wxIFM to display messages to the user.
Definition at line 393 of file manager.cpp. References m_statusbarPane. Referenced by MainFrm::CreateGUIControls(). |
|
Shows or hides a child window that is managed by this interface
Definition at line 188 of file manager.cpp. References GetActiveIP(), and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by MainFrm::BtnUpdateTreeClick(), HideChild(), MainFrm::OnMenu(), and MainFrm::OnShowAll(). |
|
Performs necessary cleanup to ready the interface for deletion.
Definition at line 157 of file manager.cpp. References m_initialized, m_parent, and RemoveAllInterfacePlugins(). Referenced by MainFrm::MainFrmClose(). |
|
Immediately updates the interface, repositioning child windows. Floating windows are not included in this update unless specified.
Definition at line 345 of file manager.cpp. References GetActiveIP(), IFM_DEFAULT_RECT, m_content, m_parent, m_updateRect, m_useUpdateRect, and wxIFMInterfacePluginBase::ProcessPluginEvent(). Referenced by AddChild(), MainFrm::CreateGUIControls(), wxIFMDefaultDockingPlugin::OnDragBegin(), wxIFMDefaultDockingPlugin::OnDragEnd(), wxIFMDefaultResizePlugin::OnResizeEnd(), wxIFMDefaultPlugin::OnSetChildSize(), MainFrm::OnShowAll(), wxIFMInterfacePluginBase::OnSize(), and MainFrm::OnSize(). |
|
Definition at line 145 of file manager.h. Referenced by GetActiveIP(), and SetActiveInterface(). |
|
indentifies which component has captured input, if any
Definition at line 147 of file manager.h. Referenced by CaptureInput(), GetCapturedComponent(), GetCapturedWindow(), IsInputCaptured(), and ReleaseInput(). |
|
specifies the type of the component that has captured input
Definition at line 148 of file manager.h. Referenced by CaptureInput(), and ReleaseInput(). |
|
Definition at line 142 of file manager.h. Referenced by AddPendingUpdate(), GetContentWindow(), SetContentWindow(), and Update(). |
|
Definition at line 140 of file manager.h. Referenced by GetFlags(), Initialize(), and SetFlags(). |
|
Definition at line 139 of file manager.h. Referenced by AddChild(), Initialize(), and Shutdown(). |
|
Definition at line 144 of file manager.h. Referenced by AddInterfacePlugin(), GetActiveIP(), RemoveAllInterfacePlugins(), RemoveInterfacePlugin(), and SetActiveInterface(). |
|
Definition at line 158 of file manager.h. Referenced by DisplayStatusMessage(), and ResetStatusMessage(). |
|
Definition at line 142 of file manager.h. Referenced by AddPendingUpdate(), CaptureInput(), DisplayStatusMessage(), GetCapturedWindow(), GetParent(), Initialize(), ReleaseInput(), ResetStatusMessage(), Shutdown(), Update(), and wxInterfaceManager(). |
|
Definition at line 156 of file manager.h. Referenced by DisplayStatusMessage(), ResetStatusMessage(), and SetStatusMessagePane(). |
|
Definition at line 157 of file manager.h. Referenced by DisplayStatusMessage(), and ResetStatusMessage(). |
|
Definition at line 153 of file manager.h. Referenced by AddPendingUpdate(), GetInterfaceRect(), SetInterfaceRect(), and Update(). |
|
Definition at line 154 of file manager.h. Referenced by AddPendingUpdate(), ResetInterfaceRect(), SetInterfaceRect(), and Update(). |