2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen $Revision$ from
|
2002-01-21 17:34:42 -05:00
|
|
|
% controlbar.h at 21/Jan/02 21:14:13
|
2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
|
|
|
|
|
|
|
|
\section{\class{wxFrameLayout}}\label{wxframelayout}
|
|
|
|
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
wxFrameLayout manages containment and docking of control bars,
|
|
|
|
which can be docked along the top, bottom, right, or left side of the
|
|
|
|
parent frame.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
2002-01-31 15:57:31 -05:00
|
|
|
<wx/fl/controlbar.h>
|
2002-01-21 17:34:42 -05:00
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::wxFrameLayout}\label{wxframelayoutwxframelayout}
|
|
|
|
|
|
|
|
\func{}{wxFrameLayout}{\param{wxWindow* }{pParentFrame}, \param{wxWindow* }{pFrameClient = NULL}, \param{bool }{activateNow = TRUE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Constructor, taking parent window, the (MDI) client of the parent if there
|
|
|
|
is one, and flag specifying whether to activate the layout.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\func{}{wxFrameLayout}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Default constructor, used only for serialization.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::\destruct{wxFrameLayout}}\label{wxframelayoutdtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxFrameLayout}}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destructor. It does not destroy the bar windows.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::Activate}\label{wxframelayoutactivate}
|
|
|
|
|
|
|
|
\func{void}{Activate}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Activate can be called after some other layout has been deactivated,
|
|
|
|
and this one must take over the current contents of the frame window.
|
|
|
|
Effectively hooks itself to the frame window, re-displays all non-hidden
|
|
|
|
bar windows and repaints the decorations.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::AddBar}\label{wxframelayoutaddbar}
|
|
|
|
|
|
|
|
\func{void}{AddBar}{\param{wxWindow* }{pBarWnd}, \param{const cbDimInfo\& }{dimInfo}, \param{int }{alignment = FL\_ALIGN\_TOP}, \param{int }{rowNo = 0}, \param{int }{columnPos = 0}, \param{const wxString\& }{name = "bar"}, \param{bool }{spyEvents = FALSE}, \param{int }{state = wxCBAR\_DOCKED\_HORIZONTALLY}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Adds bar information to the frame layout. The appearance of the layout is not refreshed
|
|
|
|
immediately; RefreshNow() can be called if necessary.
|
|
|
|
Notes: the argument pBarWnd can by NULL, resulting in bar decorations to be drawn
|
2002-01-05 17:59:59 -05:00
|
|
|
around the empty rectangle (filled with default background colour).
|
2002-01-21 17:34:42 -05:00
|
|
|
Argument dimInfo can be reused for adding any number of bars, since
|
|
|
|
it is not used directly - instead its members are copied. If the dimensions
|
|
|
|
handler is present, its instance is shared (reference counted). The dimension
|
|
|
|
handler should always be allocated on the heap.
|
|
|
|
pBarWnd is the window to be managed.
|
|
|
|
dimInfo contains dimension information.
|
|
|
|
alignment is a value such as FL\_ALIGN\_TOP.
|
|
|
|
rowNo is the vertical position or row in the pane (if in docked state).
|
|
|
|
columnPos is the horizontal position within the row in pixels (if in docked state).
|
|
|
|
name is a name by which the bar can be referred in layout customization dialogs.
|
|
|
|
If spyEvents is TRUE, input events for the bar should be "spyed" in order
|
|
|
|
to forward unhandled mouse clicks to the frame layout, for example to enable
|
|
|
|
easy draggablity of toolbars just by clicking on their interior regions.
|
|
|
|
For widgets like text/tree control this value should be FALSE,
|
|
|
|
since there's no certain way to detect whether the event was actually handled.
|
|
|
|
state is the initial state, such as wxCBAR\_DOCKED\_HORIZONTALLY,
|
|
|
|
wxCBAR\_FLOATING, wxCBAR\_HIDDEN.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::AddPlugin}\label{wxframelayoutaddplugin}
|
|
|
|
|
|
|
|
\func{void}{AddPlugin}{\param{wxClassInfo* }{pPlInfo}, \param{int }{paneMask = wxALL\_PANES}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
An advanced methods for plugin configuration using their
|
|
|
|
dynamic class information, for example CLASSINFO(pluginClass).
|
|
|
|
First checks if the plugin of the given class is already "hooked up".
|
|
|
|
If not, adds it to the top of the plugins chain.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::AddPluginBefore}\label{wxframelayoutaddpluginbefore}
|
|
|
|
|
|
|
|
\func{void}{AddPluginBefore}{\param{wxClassInfo* }{pNextPlInfo}, \param{wxClassInfo* }{pPlInfo}, \param{int }{paneMask = wxALL\_PANES}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
First checks if the plugin of the given class is already hooked.
|
|
|
|
If so, removes it, and then inserts it into the chain
|
|
|
|
before the plugin of the class given by pNextPlInfo.
|
|
|
|
Note: this method is handy in some cases where the order
|
|
|
|
of the plugin-chain could be important, for example when one plugin overrides
|
|
|
|
some functionality of another already-hooked plugin,
|
|
|
|
so that the former plugin should be hooked before the one
|
|
|
|
whose functionality is being overridden.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::ApplyBarProperties}\label{wxframelayoutapplybarproperties}
|
|
|
|
|
|
|
|
\func{void}{ApplyBarProperties}{\param{cbBarInfo* }{pBar}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Reflects changes in bar information structure visually.
|
|
|
|
For example, moves the bar, changes its dimension information,
|
|
|
|
or changes the pane to which it is docked.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::CanReparent}\label{wxframelayoutcanreparent}
|
|
|
|
|
|
|
|
\func{bool}{CanReparent}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns TRUE if the platform allows reparenting. This may not return TRUE
|
|
|
|
for all platforms. Reparenting allows control bars to be floated.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::CaptureEventsForPane}\label{wxframelayoutcaptureeventsforpane}
|
|
|
|
|
|
|
|
\func{void}{CaptureEventsForPane}{\param{cbDockPane* }{toPane}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called by plugins; also captures the mouse in the parent frame.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::CaptureEventsForPlugin}\label{wxframelayoutcaptureeventsforplugin}
|
|
|
|
|
|
|
|
\func{void}{CaptureEventsForPlugin}{\param{cbPluginBase* }{pPlugin}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Captures user input events for the given plugin.
|
|
|
|
Input events are: mouse movement, mouse clicks, keyboard input.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::CreateCursors}\label{wxframelayoutcreatecursors}
|
|
|
|
|
|
|
|
\func{void}{CreateCursors}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Creates the cursors.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::CreateUpdatesManager}\label{wxframelayoutcreateupdatesmanager}
|
|
|
|
|
|
|
|
\func{cbUpdatesManagerBase*}{CreateUpdatesManager}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns a new cbGCUpdatesMgr object.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::Deactivate}\label{wxframelayoutdeactivate}
|
|
|
|
|
|
|
|
\func{void}{Deactivate}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Deactivate unhooks itself from frame window, and hides all non-hidden windows.
|
|
|
|
Note: two frame layouts should not be active at the same time in the
|
|
|
|
same frame window, since it would cause messy overlapping of bar windows
|
|
|
|
from both layouts.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::DestroyBarWindows}\label{wxframelayoutdestroybarwindows}
|
|
|
|
|
|
|
|
\func{void}{DestroyBarWindows}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destroys the bar windows.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::DoSetBarState}\label{wxframelayoutdosetbarstate}
|
|
|
|
|
|
|
|
\func{void}{DoSetBarState}{\param{cbBarInfo* }{pBar}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Applies the state to the window objects.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::EnableFloating}\label{wxframelayoutenablefloating}
|
|
|
|
|
|
|
|
\func{void}{EnableFloating}{\param{bool }{enable = TRUE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Enables floating behaviour. By default floating of control bars is on.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::FindBarByName}\label{wxframelayoutfindbarbyname}
|
|
|
|
|
|
|
|
\func{cbBarInfo*}{FindBarByName}{\param{const wxString\& }{name}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Finds the bar in the framelayout, by name.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::FindBarByWindow}\label{wxframelayoutfindbarbywindow}
|
|
|
|
|
|
|
|
\func{cbBarInfo*}{FindBarByWindow}{\param{const wxWindow* }{pWnd}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Finds the bar in the framelayout, by window.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::FindPlugin}\label{wxframelayoutfindplugin}
|
|
|
|
|
|
|
|
\func{cbPluginBase*}{FindPlugin}{\param{wxClassInfo* }{pPlInfo}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Finds a plugin with the given class, or returns NULL if a plugin of the given
|
|
|
|
class is not hooked.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::FirePluginEvent}\label{wxframelayoutfirepluginevent}
|
|
|
|
|
|
|
|
\func{void}{FirePluginEvent}{\param{cbPluginEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
This function should be used instead of passing the event to the ProcessEvent method
|
|
|
|
of the top-level plugin directly. This method checks if events are currently
|
2002-01-05 17:59:59 -05:00
|
|
|
captured and ensures that plugin-event is routed correctly.
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::ForwardMouseEvent}\label{wxframelayoutforwardmouseevent}
|
|
|
|
|
|
|
|
\func{void}{ForwardMouseEvent}{\param{wxMouseEvent\& }{event}, \param{cbDockPane* }{pToPane}, \param{int }{eventType}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Delegated from "bar-spy".
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetBarPane}\label{wxframelayoutgetbarpane}
|
|
|
|
|
|
|
|
\func{cbDockPane*}{GetBarPane}{\param{cbBarInfo* }{pBar}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the pane to which the given bar belongs.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetBars}\label{wxframelayoutgetbars}
|
|
|
|
|
|
|
|
\func{BarArrayT\&}{GetBars}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Gets an array of bars.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetClientHeight}\label{wxframelayoutgetclientheight}
|
|
|
|
|
|
|
|
\func{int}{GetClientHeight}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the client height.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetClientRect}\label{wxframelayoutgetclientrect}
|
|
|
|
|
|
|
|
\func{wxRect\&}{GetClientRect}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the client's rectangle.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetClientWidth}\label{wxframelayoutgetclientwidth}
|
|
|
|
|
|
|
|
\func{int}{GetClientWidth}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the client width.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetFrameClient}\label{wxframelayoutgetframeclient}
|
|
|
|
|
|
|
|
\func{wxWindow*}{GetFrameClient}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the frame client, or NULL if not present.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetPane}\label{wxframelayoutgetpane}
|
|
|
|
|
|
|
|
\func{cbDockPane*}{GetPane}{\param{int }{alignment}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns a pane for the given alignment. See pane alignment types.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetPaneProperties}\label{wxframelayoutgetpaneproperties}
|
|
|
|
|
|
|
|
\func{void}{GetPaneProperties}{\param{cbCommonPaneProperties\& }{props}, \param{int }{alignment = FL\_ALIGN\_TOP}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Gets the pane properties for the given alignment.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetPanesArray}\label{wxframelayoutgetpanesarray}
|
|
|
|
|
|
|
|
\func{cbDockPane**}{GetPanesArray}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns an array of panes. Used by update managers.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetParentFrame}\label{wxframelayoutgetparentframe}
|
|
|
|
|
|
|
|
\func{wxWindow\&}{GetParentFrame}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the parent frame.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetPrevClientRect}\label{wxframelayoutgetprevclientrect}
|
|
|
|
|
|
|
|
\func{wxRect\&}{GetPrevClientRect}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the previous client window rectangle.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetTopPlugin}\label{wxframelayoutgettopplugin}
|
|
|
|
|
|
|
|
\func{cbPluginBase\&}{GetTopPlugin}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the current top-level plugin (the one that receives events first,
|
|
|
|
except if input events are currently captured by some other plugin).
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::GetUpdatesManager}\label{wxframelayoutgetupdatesmanager}
|
|
|
|
|
|
|
|
\func{cbUpdatesManagerBase\&}{GetUpdatesManager}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns a reference to the updates manager.
|
|
|
|
Note: in future, the updates manager will become a normal plugin.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::HasTopPlugin}\label{wxframelayouthastopplugin}
|
|
|
|
|
|
|
|
\func{bool}{HasTopPlugin}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns true if there is a top plugin.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::HideBarWindows}\label{wxframelayouthidebarwindows}
|
|
|
|
|
|
|
|
\func{void}{HideBarWindows}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Hides the bar windows, and also the client window if present.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::HitTestPane}\label{wxframelayouthittestpane}
|
|
|
|
|
|
|
|
\func{bool}{HitTestPane}{\param{cbDockPane* }{pPane}, \param{int }{x}, \param{int }{y}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns TRUE if the position is within the given pane.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::HitTestPanes}\label{wxframelayouthittestpanes}
|
|
|
|
|
|
|
|
\func{cbDockPane*}{HitTestPanes}{\param{const wxRect\& }{rect}, \param{cbDockPane* }{pCurPane}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the pane for which the rectangle hit test succeeds, giving
|
|
|
|
preference to the given pane if supplied.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::HookUpToFrame}\label{wxframelayouthookuptoframe}
|
|
|
|
|
|
|
|
\func{void}{HookUpToFrame}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Hooks the layout up to the frame (pushes the layout onto the
|
|
|
|
frame's event handler stack).
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::InverseVisibility}\label{wxframelayoutinversevisibility}
|
|
|
|
|
|
|
|
\func{void}{InverseVisibility}{\param{cbBarInfo* }{pBar}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Toggles the bar between visible and hidden.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::LocateBar}\label{wxframelayoutlocatebar}
|
|
|
|
|
|
|
|
\func{bool}{LocateBar}{\param{cbBarInfo* }{pBarInfo}, \param{cbRowInfo** }{ppRow}, \param{cbDockPane** }{ppPane}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
The purpose of this function is unknown.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnActivate}\label{wxframelayoutonactivate}
|
|
|
|
|
|
|
|
\func{void}{OnActivate}{\param{wxActivateEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Handles activation events. Currently does nothing.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnEraseBackground}\label{wxframelayoutonerasebackground}
|
|
|
|
|
|
|
|
\func{void}{OnEraseBackground}{\param{wxEraseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Handles background erase events. Currently does nothing.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnIdle}\label{wxframelayoutonidle}
|
|
|
|
|
|
|
|
\func{void}{OnIdle}{\param{wxIdleEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Handles idle events.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnKillFocus}\label{wxframelayoutonkillfocus}
|
|
|
|
|
|
|
|
\func{void}{OnKillFocus}{\param{wxFocusEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Handles focus kill events. Currently does nothing.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnLButtonDown}\label{wxframelayoutonlbuttondown}
|
|
|
|
|
|
|
|
\func{void}{OnLButtonDown}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Event handler for a left down button event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnLButtonUp}\label{wxframelayoutonlbuttonup}
|
|
|
|
|
|
|
|
\func{void}{OnLButtonUp}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Event handler for a left button up event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnLDblClick}\label{wxframelayoutonldblclick}
|
|
|
|
|
|
|
|
\func{void}{OnLDblClick}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Event handler for a left doubleclick button event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnMouseMove}\label{wxframelayoutonmousemove}
|
|
|
|
|
|
|
|
\func{void}{OnMouseMove}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Event handler for a mouse move event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnPaint}\label{wxframelayoutonpaint}
|
|
|
|
|
|
|
|
\func{void}{OnPaint}{\param{wxPaintEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Handles paint events, calling PaintPane for each pane.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnRButtonDown}\label{wxframelayoutonrbuttondown}
|
|
|
|
|
|
|
|
\func{void}{OnRButtonDown}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Event handler for a right button down event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnRButtonUp}\label{wxframelayoutonrbuttonup}
|
|
|
|
|
|
|
|
\func{void}{OnRButtonUp}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Event handler for a right button up event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnSetFocus}\label{wxframelayoutonsetfocus}
|
|
|
|
|
|
|
|
\func{void}{OnSetFocus}{\param{wxFocusEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Handles focus set events. Currently does nothing.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::OnSize}\label{wxframelayoutonsize}
|
|
|
|
|
|
|
|
\func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Event handler for a size event.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::PopAllPlugins}\label{wxframelayoutpopallplugins}
|
|
|
|
|
|
|
|
\func{void}{PopAllPlugins}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Pop all plugins.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::PopPlugin}\label{wxframelayoutpopplugin}
|
|
|
|
|
|
|
|
\func{void}{PopPlugin}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Similar to wxWindow's "push/pop-event-handler" methods, execept
|
|
|
|
that the plugin is deleted upon "popping".
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::PositionClientWindow}\label{wxframelayoutpositionclientwindow}
|
|
|
|
|
|
|
|
\func{void}{PositionClientWindow}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called to apply the calculated layout to window objects.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::PositionPanes}\label{wxframelayoutpositionpanes}
|
|
|
|
|
|
|
|
\func{void}{PositionPanes}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called to apply the calculated layout to window objects.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::PushDefaultPlugins}\label{wxframelayoutpushdefaultplugins}
|
|
|
|
|
|
|
|
\func{void}{PushDefaultPlugins}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Adds the default plugins. These are cbPaneDrawPlugin, cbRowLayoutPlugin, cbBarDragPlugin,
|
|
|
|
cbAntiflickerPlugin, cbSimpleCustomizePlugin.
|
|
|
|
This method is automatically invoked if no plugins were found upon
|
|
|
|
firing of the first plugin-event, i.e. when wxFrameLayout configures itself.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::PushPlugin}\label{wxframelayoutpushplugin}
|
|
|
|
|
|
|
|
\func{void}{PushPlugin}{\param{cbPluginBase* }{pPugin}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Similar to wxWindow's "push/pop-event-handler" methods, execept
|
|
|
|
that the plugin is deleted upon "popping".
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::RecalcLayout}\label{wxframelayoutrecalclayout}
|
|
|
|
|
|
|
|
\func{void}{RecalcLayout}{\param{bool }{repositionBarsNow = FALSE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Recalculates the layout of panes, and all bars/rows in each pane.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::RedockBar}\label{wxframelayoutredockbar}
|
|
|
|
|
|
|
|
\func{bool}{RedockBar}{\param{cbBarInfo* }{pBar}, \param{const wxRect\& }{shapeInParent}, \param{cbDockPane* }{pToPane = NULL}, \param{bool }{updateNow = TRUE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
ReddockBar can be used for repositioning existing bars. The given bar is first removed
|
2002-01-05 17:59:59 -05:00
|
|
|
from the pane it currently belongs to, and inserted into the pane, which "matches"
|
2002-01-21 17:34:42 -05:00
|
|
|
the given rectangular area. If pToPane is not NULL, the bar is docked to this given pane.
|
|
|
|
To dock a bar which is floating, use the wxFrameLayout::DockBar method.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::RefreshNow}\label{wxframelayoutrefreshnow}
|
|
|
|
|
|
|
|
\func{void}{RefreshNow}{\param{bool }{recalcLayout = TRUE}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Recalculates layout and performs on-screen update of all panes.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::ReleaseEventsFromPane}\label{wxframelayoutreleaseeventsfrompane}
|
|
|
|
|
|
|
|
\func{void}{ReleaseEventsFromPane}{\param{cbDockPane* }{fromPane}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called by plugins; also releases mouse in the parent frame.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::ReleaseEventsFromPlugin}\label{wxframelayoutreleaseeventsfromplugin}
|
|
|
|
|
|
|
|
\func{void}{ReleaseEventsFromPlugin}{\param{cbPluginBase* }{pPlugin}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Releases user input events for the given plugin.
|
|
|
|
Input events are: mouse movement, mouse clicks, keyboard input
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::RemoveBar}\label{wxframelayoutremovebar}
|
|
|
|
|
|
|
|
\func{void}{RemoveBar}{\param{cbBarInfo* }{pBar}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Removes the bar from the layout permanently, and hides its corresponding window if present.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::RemovePlugin}\label{wxframelayoutremoveplugin}
|
|
|
|
|
|
|
|
\func{void}{RemovePlugin}{\param{wxClassInfo* }{pPlInfo}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Checks if the plugin of the given class is hooked, and removes
|
|
|
|
it if found.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::ReparentWindow}\label{wxframelayoutreparentwindow}
|
|
|
|
|
|
|
|
\func{void}{ReparentWindow}{\param{wxWindow* }{pChild}, \param{wxWindow* }{pNewParent}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Reparents pChild to have parent pNewParent.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::RepositionFloatedBar}\label{wxframelayoutrepositionfloatedbar}
|
|
|
|
|
|
|
|
\func{void}{RepositionFloatedBar}{\param{cbBarInfo* }{pBar}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Applies the calculated layout to a floating bar.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::RouteMouseEvent}\label{wxframelayoutroutemouseevent}
|
|
|
|
|
|
|
|
\func{void}{RouteMouseEvent}{\param{wxMouseEvent\& }{event}, \param{int }{pluginEvtType}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Routes the mouse event to the appropriate pane.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::SetBarState}\label{wxframelayoutsetbarstate}
|
|
|
|
|
|
|
|
\func{void}{SetBarState}{\param{cbBarInfo* }{pBar}, \param{int }{newStatem}, \param{bool }{updateNow}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Changes the bar's docking state (see possible control bar states).
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::SetFrameClient}\label{wxframelayoutsetframeclient}
|
|
|
|
|
|
|
|
\func{void}{SetFrameClient}{\param{wxWindow* }{pFrameClient}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Passes the client window (e.g. MDI client window) to be controlled by
|
2002-01-05 17:59:59 -05:00
|
|
|
frame layout, the size and position of which should be adjusted to be
|
2002-01-21 17:34:42 -05:00
|
|
|
surrounded by controlbar panes, whenever the frame is resized or the dimensions
|
|
|
|
of control panes change.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::SetMargins}\label{wxframelayoutsetmargins}
|
|
|
|
|
|
|
|
\func{void}{SetMargins}{\param{int }{top}, \param{int }{bottom}, \param{int }{left}, \param{int }{right}, \param{int }{paneMask = wxALL\_PANES}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the margins for the given panes.
|
|
|
|
The margins should go into cbCommonPaneProperties in the future.
|
|
|
|
Note: this method should be called before any custom plugins are attached.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::SetPaneBackground}\label{wxframelayoutsetpanebackground}
|
|
|
|
|
|
|
|
\func{void}{SetPaneBackground}{\param{const wxColour\& }{colour}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the pane background colour.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::SetPaneProperties}\label{wxframelayoutsetpaneproperties}
|
|
|
|
|
|
|
|
\func{void}{SetPaneProperties}{\param{const cbCommonPaneProperties\& }{props}, \param{int }{paneMask = wxALL\_PANES}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the pane properties for the given alignment.
|
|
|
|
Note: changing properties of panes does not result immediate on-screen update.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::SetTopPlugin}\label{wxframelayoutsettopplugin}
|
|
|
|
|
|
|
|
\func{void}{SetTopPlugin}{\param{cbPluginBase* }{pPlugin}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Hooking custom plugins to frame layout.
|
|
|
|
Note: when hooking one plugin on top of the other,
|
|
|
|
use SetNextHandler or similar methods
|
2002-01-05 17:59:59 -05:00
|
|
|
of wxEvtHandler class to compose the chain of plugins,
|
|
|
|
than pass the left-most handler in this chain to
|
|
|
|
the above methods (assuming that events are delegated
|
2002-01-21 17:34:42 -05:00
|
|
|
from left-most towards right-most handler).
|
|
|
|
This secenario is very inconvenient and "low-level",
|
|
|
|
so use the Add/Push/PopPlugin methods instead.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::SetUpdatesManager}\label{wxframelayoutsetupdatesmanager}
|
|
|
|
|
|
|
|
\func{void}{SetUpdatesManager}{\param{cbUpdatesManagerBase* }{pUMgr}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destroys the previous manager if any, and sets the new one.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxFrameLayout::ShowFloatedWindows}\label{wxframelayoutshowfloatedwindows}
|
|
|
|
|
|
|
|
\func{void}{ShowFloatedWindows}{\param{bool }{show}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Shows all floated windows.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxFrameLayout::UnhookFromFrame}\label{wxframelayoutunhookfromframe}
|
|
|
|
|
|
|
|
\func{void}{UnhookFromFrame}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Unhooks the layout from the frame.
|
|
|
|
|