]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_aui_docstrings.i
Added wrappers for wxAUI
[wxWidgets.git] / wxPython / src / _aui_docstrings.i
CommitLineData
febb39df
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: _aui_docstrings.i
3// Purpose: Docstrings for the wxAUI classes. These are in a separate
4// file because we have SWIG scan the .h files directly.
5//
6// Author: Robin Dunn
7//
8// Created: 7-July-2006
9// RCS-ID: $Id$
10// Copyright: (c) 2006 by Total Control Software
11// Licence: wxWindows license
12/////////////////////////////////////////////////////////////////////////////
13
14
15DocStr(wxFrameManager,
16"FrameManager manages the panes associated with it for a particular
17`wx.Frame`, using a pane's `PaneInfo` information to determine each
18pane's docking and floating behavior. FrameManager uses wxWidgets'
19sizer mechanism to plan the layout of each frame. It uses a
20replaceable `DockArt` class to do all drawing, so all drawing is
21localized in one area, and may be customized depending on an
22application's specific needs.
23",
24
25"
26FrameManager works as follows: The programmer adds panes to the
27class, or makes changes to existing pane properties (dock position,
28floating state, show state, etc.). To apply these changes,
29FrameManager's `Update` function is called. This batch processing
30can be used to avoid flicker, by modifying more than one pane at a
31time, and then \"committing\" all of the changes at once by calling
32`Update`.
33
34Panes can be added quite easily::
35
36 text1 = wx.TextCtrl(self, -1)
37 text2 = wx.TextCtrl(self, -1)
38 self._mgr.AddPane(text1, wx.LEFT, \"Pane Caption\")
39 self._mgr.AddPane(text2, wx.BOTTOM, \"Pane Caption\")
40 self._mgr.Update()
41
42
43Later on, the positions can be modified easily. The following will
44float an existing pane in a tool window::
45
46 self._mgr.GetPane(text1).Float();
47
48
49**Layers, Rows and Directions, Positions**
50
51Inside wx.aui the docking layout is figured out by checking several
52pane parameters. Four of these are important for determining where a
53pane will end up:
54
55 * **Direction**: Each docked pane has a direction, Top, Bottom,
56 Left, Right, or Center. This is fairly self-explanatory. The
57 pane will be placed in the location specified by this variable.
58
59 * **Position**: More than one pane can be placed inside of a
60 \"dock.\" Imagine two panes being docked on the left side of a
61 window. One pane can be placed over another. In proportionally
62 managed docks, the pane position indicates it's sequential
63 position, starting with zero. So, in our scenario with two panes
64 docked on the left side, the top pane in the dock would have
65 position 0, and the second one would occupy position 1.
66
67 * **Row**: A row can allow for two docks to be placed next to each
68 other. One of the most common places for this to happen is in
69 the toolbar. Multiple toolbar rows are allowed, the first row
70 being in row 0, and the second in row 1. Rows can also be used
71 on vertically docked panes.
72
73 * **Layer**: A layer is akin to an onion. Layer 0 is the very
74 center of the managed pane. Thus, if a pane is in layer 0, it
75 will be closest to the center window (also sometimes known as
76 the \"content window\"). Increasing layers \"swallow up\" all
77 layers of a lower value. This can look very similar to multiple
78 rows, but is different because all panes in a lower level yield
79 to panes in higher levels. The best way to understand layers is
80 by running the AUI sample in the wxPython demo.
81");
82
83DocStr(wxFrameManager::wxFrameManager,
84"Constructor.
85
86 :param frame: Specifies the `wx.Frame` which should be managed.
87 If not set in the call to this constructor then `SetFrame`
88 should be called.
89
90 :param flags: Specifies options which allow the frame management
91 behavior to be modified.
92",
93"
94Valid flags are:
95
96 ============================== =================================
97 AUI_MGR_ALLOW_FLOATING Panes can be undocked and floated
98 AUI_MGR_ALLOW_ACTIVE_PANE The last pane clicked on will be
99 considered the active pane and will
100 be highlighted.
101 AUI_MGR_TRANSPARENT_DRAG If the platform supports it the panes
102 will be partially transparent while
103 dragging.
104 AUI_MGR_TRANSPARENT_HINT If the platform supports it the
105 hint used to show where the pane can
106 be docked will be partially transparent.
107 AUI_MGR_TRANSPARENT_HINT_FADE Should the transparent hint be faded
108 into view.
109 AUI_MGR_DEFAULT The default flags.
110 ============================== =================================
111");
112
113DocStr(wxFrameManager::UnInit,
114"UnInit uninitializes the framework and should be called before a
115managed frame is destroyed. UnInit is usually called in the managed
116wx.Frame's destructor.
117", "");
118
119DocStr(wxFrameManager::SetFlags,
120"SetFlags is used to specify the FrameManager's behavioral
121settings. The flags parameter is described in the docs for `__init__`
122", "");
123
124DocStr(wxFrameManager::GetFlags,
125"GetFlags returns the current FrameManager's flags.
126", "");
127
128DocStr(wxFrameManager::SetFrame,
129"SetFrame is called to specify the frame which is to be managed by the
130FrameManager. It only needs to be called if the Frame was not given
131to the manager in the constructor.
132", "");
133
134DocStr(wxFrameManager::GetFrame,
135"GetFrame returns the frame currently being managed by the
136FrameManager.
137", "");
138
139DocStr(wxFrameManager::SetArtProvider,
140"SetArtProvider instructs FrameManager to use the art provider
141specified for all drawing calls. This allows plugable look-and-feel
142features. The previous art provider object, if any, will be destroyed
143by FrameManager.
144
145:note: If you wish to use a custom `DockArt` class to override drawing
146 or metrics then you shoudl derive your class from the `PyDockArt`
147 class, which has been instrumented for reflecting virtual calls to
148 Python methods.
149", "");
150
151DocStr(wxFrameManager::GetArtProvider,
152"GetArtProvider returns the current art provider being used.
153", "");
154
155
156DocAStr(wxFrameManager::GetAllPanes,
157"GetAllPanes(self) -> list",
158"GetAllPanes returns a list of `PaneInfo` objects for all panes managed
159by the frame manager.
160", "");
161
162
163DocStr(wxFrameManager::InsertPane,
164"InsertPane is used to insert either a previously unmanaged pane window
165into the frame manager, or to insert a currently managed pane
166somewhere else. InsertPane will push all panes, rows, or docks aside
167and insert the window into the position specified by
168``insert_location``. Because ``insert_location`` can specify either a pane,
169dock row, or dock layer, the ``insert_level`` parameter is used to
170disambiguate this. The parameter ``insert_level`` can take a value of
171``AUI_INSERT_PANE``, ``AUI_INSERT_ROW`` or ``AUI_INSERT_DOCK``.
172", "");
173
174DocStr(wxFrameManager::DetachPane,
175"DetachPane tells the FrameManager to stop managing the pane specified
176by window. The window, if in a floated frame, is reparented to the
177frame managed by FrameManager.
178", "");
179
180DocStr(wxFrameManager::SavePerspective,
181"SavePerspective saves the entire user interface layout into an encoded
182string, which can then be stored someplace by the application. When a
183perspective is restored using `LoadPerspective`, the entire user
184interface will return to the state it was when the perspective was
185saved.
186", "");
187
188DocStr(wxFrameManager::LoadPerspective,
189"LoadPerspective loads a saved perspective. If ``update`` is ``True``,
190`Update` is automatically invoked, thus realizing the saved
191perspective on screen.
192", "");
193
194DocStr(wxFrameManager::Update,
195"Update shoudl be called called after any number of changes are made to
196any of the managed panes. Update must be invoked after `AddPane` or
197`InsertPane` are called in order to \"realize\" or \"commit\" the
198changes. In addition, any number of changes may be made to `PaneInfo`
199structures (retrieved with `GetPane` or `GetAllPanes`), but to realize
200the changes, Update must be called. This construction allows pane
201flicker to be avoided by updating the whole layout at one time.
202", "");
203
204
205//----------------------------------------------------------------------
206
207DocStr(wxPaneInfo,
208"PaneInfo specifies all the parameters for a pane for the
209`FrameManager`. These parameters specify where the pane is on the
210screen, whether it is docked or floating, or hidden. In addition,
211these parameters specify the pane's docked position, floating
212position, preferred size, minimum size, caption text among many other
213parameters.
214", "");
215
216DocStr(wxPaneInfo::IsOk,
217"IsOk returns ``True`` if the PaneInfo structure is valid.
218", "");
219
220DocStr(wxPaneInfo::IsFixed,
221"IsFixed returns ``True`` if the pane cannot be resized.
222", "");
223
224DocStr(wxPaneInfo::IsResizable,
225"IsResizeable returns ``True`` if the pane can be resized.
226", "");
227
228DocStr(wxPaneInfo::IsShown,
229"IsShown returns ``True`` if the pane should be drawn on the screen.
230", "");
231
232DocStr(wxPaneInfo::IsFloating,
233"IsFloating returns ``True`` if the pane is floating.
234", "");
235
236DocStr(wxPaneInfo::IsDocked,
237"IsDocked returns ``True`` if the pane is docked.
238", "");
239
240DocStr(wxPaneInfo::IsToolbar,
241"IsToolbar returns ``True`` if the pane contains a toolbar.
242", "");
243
244DocStr(wxPaneInfo::IsTopDockable,
245"IsTopDockable returns ``True`` if the pane can be docked at the top of
246the managed frame.
247", "");
248
249DocStr(wxPaneInfo::IsBottomDockable,
250"IsBottomDockable returns ``True`` if the pane can be docked at the
251bottom of the managed frame.
252", "");
253
254DocStr(wxPaneInfo::IsLeftDockable,
255"IsLeftDockable returns ``True`` if the pane can be docked on the left
256of the managed frame.
257", "");
258
259DocStr(wxPaneInfo::IsRightDockable,
260"IsRightDockable returns ``True`` if the pane can be docked on the
261right of the managed frame.
262", "");
263
264DocStr(wxPaneInfo::IsFloatable,
265"IsFloatable returns ``True`` if the pane can be undocked and displayed
266as a floating window.
267", "");
268
269DocStr(wxPaneInfo::IsMovable,
270"IsMoveable returns ``True`` if the docked frame can be undocked or moved
271to another dock position.
272", "");
273
274DocStr(wxPaneInfo::HasCaption,
275"HasCaption returns ``True`` if the pane displays a caption.
276", "");
277
278DocStr(wxPaneInfo::HasGripper,
279"HasGripper returns ``True`` if the pane displays a gripper.
280", "");
281
282DocStr(wxPaneInfo::HasBorder,
283"HasBorder returns ``True`` if the pane displays a border.
284", "");
285
286DocStr(wxPaneInfo::HasCloseButton,
287"HasCloseButton returns ``True`` if the pane displays a button to close
288the pane.
289", "");
290
291DocStr(wxPaneInfo::HasMaximizeButton,
292"HasMaximizeButton returns ``True`` if the pane displays a button to
293maximize the pane.
294", "");
295
296DocStr(wxPaneInfo::HasMinimizeButton,
297"HasMinimizeButton returns ``True`` if the pane displays a button to
298minimize the pane.
299", "");
300
301DocStr(wxPaneInfo::HasPinButton,
302"HasPinButton returns ``True`` if the pane displays a button to float
303the pane.
304", "");
305
306DocStr(wxPaneInfo::Name,
307"Name sets the name of the pane so it can be referenced in lookup
308functions.
309", "");
310
311DocStr(wxPaneInfo::Caption,
312"Caption sets the caption of the pane.
313", "");
314
315DocStr(wxPaneInfo::Left,
316"Left sets the pane dock position to the left side of the frame.
317", "");
318
319DocStr(wxPaneInfo::Right,
320"Right sets the pane dock position to the right side of the frame.
321", "");
322
323DocStr(wxPaneInfo::Top,
324"Top sets the pane dock position to the top of the frame.
325", "");
326
327DocStr(wxPaneInfo::Bottom,
328"Bottom sets the pane dock position to the bottom of the frame.
329", "");
330
331DocStr(wxPaneInfo::Centre,
332"Centre sets the pane to the center position of the frame.
333", "");
334
335DocStr(wxPaneInfo::Center,
336"Center sets the pane to the center position of the frame.
337", "");
338
339DocStr(wxPaneInfo::Direction,
340"Direction determines the direction of the docked pane.
341", "");
342
343DocStr(wxPaneInfo::Layer,
344"Layer determines the layer of the docked pane.
345", "");
346
347DocStr(wxPaneInfo::Row,
348"Row determines the row of the docked pane.
349", "");
350
351DocStr(wxPaneInfo::Position,
352"Position determines the position of the docked pane.
353", "");
354
355
356
357DocStr(wxPaneInfo::MaxSize,
358"MaxSize sets the maximum size of the pane.
359", "");
360
361DocStr(wxPaneInfo::BestSize,
362"BestSize sets the ideal size for the pane.
363", "");
364
365DocStr(wxPaneInfo::MinSize,
366"MinSize sets the minimum size of the pane.
367", "");
368
369DocStr(wxPaneInfo::FloatingPosition,
370"FloatingPosition sets the position of the floating pane.
371", "");
372
373DocStr(wxPaneInfo::FloatingSize,
374"FloatingSize sets the size of the floating pane.
375", "");
376
377
378
379DocStr(wxPaneInfo::Fixed,
380"Fixed forces a pane to be fixed size so that it cannot be resized.
381", "");
382
383DocStr(wxPaneInfo::Resizable,
384"Resized allows a pane to be resized if resizable is true, and forces
385it to be a fixed size if resizeable is false.
386", "");
387
388DocStr(wxPaneInfo::Dock,
389"Dock indicates that a pane should be docked.
390", "");
391
392DocStr(wxPaneInfo::Float,
393"Float indicates that a pane should be floated.
394", "");
395
396DocStr(wxPaneInfo::Hide,
397"Hide indicates that a pane should be hidden.
398", "");
399
400DocStr(wxPaneInfo::Show,
401"Show indicates that a pane should be shown.
402", "");
403
404DocStr(wxPaneInfo::CaptionVisible,
405"CaptionVisible indicates that a pane caption should be visible.
406", "");
407
408DocStr(wxPaneInfo::PaneBorder,
409"PaneBorder indicates that a border should be drawn for the pane.
410", "");
411
412DocStr(wxPaneInfo::Gripper,
413"Gripper indicates that a gripper should be drawn for the pane..
414", "");
415
416DocStr(wxPaneInfo::CloseButton,
417"CloseButton indicates that a close button should be drawn for the
418pane.
419", "");
420
421DocStr(wxPaneInfo::MaximizeButton,
422"MaximizeButton indicates that a maximize button should be drawn for
423the pane.
424", "");
425
426DocStr(wxPaneInfo::MinimizeButton,
427"MinimizeButton indicates that a minimize button should be drawn for
428the pane.
429", "");
430
431DocStr(wxPaneInfo::PinButton,
432"PinButton indicates that a pin button should be drawn for the pane.
433", "");
434
435DocStr(wxPaneInfo::DestroyOnClose,
436"DestroyOnClose indicates whether a pane should be detroyed when it is
437closed.
438", "");
439
440DocStr(wxPaneInfo::TopDockable,
441"TopDockable indicates whether a pane can be docked at the top of the
442frame.
443", "");
444
445DocStr(wxPaneInfo::BottomDockable,
446"BottomDockable indicates whether a pane can be docked at the bottom of
447the frame.
448", "");
449
450DocStr(wxPaneInfo::LeftDockable,
451"LeftDockable indicates whether a pane can be docked on the left of the
452frame.
453", "");
454
455DocStr(wxPaneInfo::RightDockable,
456"RightDockable indicates whether a pane can be docked on the right of
457the frame.
458", "");
459
460DocStr(wxPaneInfo::Floatable,
461"Floatable indicates whether a frame can be floated.
462", "");
463
464DocStr(wxPaneInfo::Movable,
465"Movable indicates whether a frame can be moved.
466", "");
467
468DocStr(wxPaneInfo::Dockable,
469"Dockable indicates whether a pane can be docked at any position of the
470frame.
471", "");
472
473DocStr(wxPaneInfo::DefaultPane,
474"DefaultPane specifies that the pane should adopt the default pane
475settings.
476", "");
477
478DocStr(wxPaneInfo::CentrePane,
479"CentrePane specifies that the pane should adopt the default center
480pane settings.
481", "");
482
483DocStr(wxPaneInfo::CenterPane,
484"CenterPane specifies that the pane should adopt the default center
485pane settings.
486", "");
487
488DocStr(wxPaneInfo::ToolbarPane,
489"ToolbarPane specifies that the pane should adopt the default toolbar
490pane settings.
491", "");
492
493DocStr(wxPaneInfo::SetFlag,
494"SetFlag turns the property given by flag on or off with the
495option_state parameter.
496", "");
497
498DocStr(wxPaneInfo::HasFlag,
499"HasFlag returns ``True`` if the the property specified by flag is
500active for the pane.
501", "");
502
503
504//---------------------------------------------------------------------------
505
506DocStr(wxDockArt,
507"DockArt is an art provider class which does all of the drawing for
508`FrameManager`. This allows the library caller to customize or replace the
509dock art and drawing routines by deriving a new class from `PyDockArt`. The
510active dock art class can be set via `FrameManager.SetArtProvider`.
511", "");
512
513DocStr(wxDefaultDockArt,
514"DefaultDockArt is the type of art class constructed by default for the
515`FrameManager`.","");
516