This class manages the currently active top level window and the currently focused widget to permit proper event dispatching by the EventMulticaster. Most of the functions provided by this class should not be called directly, rather, the appropriate functions provided by the respective classes should be used.
Public Types | |
| typedef ONE::util::STLIterator< TopLevel *, Layers::iterator > | BTFLayerIt |
| back to front layer iterator | |
| typedef ONE::util::STLIterator< TopLevel *, Layers::reverse_iterator > | FTBLayerIt |
| front to back layer iterator | |
| typedef ONE::util::SmartPointer< ONE::util::Iterator< TopLevel * >, ONE::util::DestructiveCopy > | LayerItSP |
| smart pointer to any of the layer iterator types | |
| typedef std::list< TopLevel * > | Layers |
| organizes registered windows in layers back to front. | |
Public Member Functions | |
| void | bringToFront (TopLevel *tl) |
| places the given object on top of all other layers | |
| void | deregisterTopLevel (const TopLevel *tl) |
deregisters a TopLevel | |
| void | destroyScheduled () |
deletes all scheduled TopLevel s | |
| Component * | getFocusedComponent () const |
| accesses the focused component | |
| TopLevel * | getFocusedTopLevel () const |
| accesses the focused top level container | |
| LayerItSP | getLayersBTF () |
| accesses the layers in back to front order | |
| LayerItSP | getLayersFTB () |
| accesses the layers in front to back order | |
| TopLevel * | getModalTopLevel () const |
| accesses the modal top level container | |
| bool | hasFocus (const Control *f) const |
| checks if the given object has the input focus | |
| bool | isModal (const TopLevel *tl) const |
| checks if the given object is modal | |
| bool | isRegistered (const TopLevel *) |
checks if the given TopLevel is registered | |
| void | registerTopLevel (TopLevel *tl) |
registers a TopLevel with the focus manager | |
| void | releaseFocus (const Component *comp) |
unfocuses comp | |
| void | releaseFocus (const TopLevel *tl) |
unfocuses tl if it is focused | |
| bool | requestFocus (TopLevel *tl) |
attempts to get the focus for the given TopLevel | |
| bool | requestFocus (Component *comp) |
| attempts to get the focus for the given component | |
| void | scheduleDestruction (TopLevel *) |
| schedules the given container for destruction | |
| void | setModal (TopLevel *tl, bool modal) |
| sets the given container to modal | |
|
|
back to front layer iterator
|
|
|
front to back layer iterator
|
|
|
smart pointer to any of the layer iterator types Note that this is a destructive copy pointer. |
|
|
organizes registered windows in layers back to front. The first entry is the rearmost window, all subsequent entries are further to the front. |
|
|
places the given object on top of all other layers
|
|
|
deregisters a all top level containers call this function when they are destroyed, it should not be invoked manually.
|
|
|
deletes all scheduled
|
|
|
accesses the focused component
|
|
|
accesses the focused top level container
|
|
|
accesses the layers in back to front order
|
|
|
accesses the layers in front to back order
|
|
|
accesses the modal top level container
|
|
|
checks if the given object has the input focus
Users should call
|
|
|
checks if the given object is modal
A
|
|
|
checks if the given Note that this function runs in linear time. |
|
|
registers a all top level containers call this function when they are created, it should not be invoked manually.
|
|
|
unfocuses
|
|
|
unfocuses If available, the focused component will also release the focus.
|
|
|
attempts to get the focus for the given
If the currently focused
|
|
|
attempts to get the focus for the given component
If the operation succeeds,
|
|
|
schedules the given container for destruction
The object will be deleted when |
|
||||||||||||
|
sets the given container to modal
If another
|
1.4.3