#include <menus.h>
Inheritance diagram for TStatusLine::
Public Methods | |
TStatusLine (const TRect &bounds, TStatusDef &aDefs) | |
~TStatusLine () | |
virtual void | draw () |
virtual TPalette& | getPalette () const |
virtual void | handleEvent (TEvent &event) |
virtual const char* | hint (ushort aHelpCtx) |
void | update () |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* | hintSeparator |
const char* const | name |
Protected Methods | |
TStatusLine (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Protected Attributes | |
TStatusItem* | items |
TStatusDef* | defs |
Status line items are TStatusItem objects which contain data members for a text string to be displayed on the status line, a key code to bind a hot key, and a command to be generated if the displayed text is clicked on with the mouse or the hot key is pressed.
Definition at line 842 of file menus.h.
|
Creates a TStatusLine object with the given bounds by calling TView::TView(bounds).
The defs data member is set to `aDefs'. If `aDefs' is 0, items is set to 0; otherwise, items is set to aDefs->items. |
|
Disposes of all the items and defs in the TStatusLine object, then calls TView destructor.
|
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TView. |
|
Draws the status line by writing the text string for each status item that has one, then any hints defined for the current help context, following a divider bar. Uses the appropriate palettes depending on each item's status. Reimplemented from TView. |
|
Returns the default palette string. Reimplemented from TView. |
|
Handles events sent to the status line by calling TView::handleEvent(), then checking for three kinds of special events.
Reimplemented from TView. |
|
By default, hint() returns a 0 string. Override it to provide a context-sensitive hint string for the `aHelpCtx' argument. A nonzero string will be drawn on the status line after a divider bar.
|
|
Reads from the input stream `is'. Reimplemented from TView. |
|
Updates the status line by selecting the correct items from the lists in defs data member, depending on the current help context. Then calls drawView() to redraw the status line if the items have changed. |
|
Writes to the output stream `os'. Reimplemented from TView. |
|
A pointer to the current linked list of TStatusDef objects. The list to use is determined by the current help context. |
|
Undocumented. |
|
A pointer to the current linked list of TStatusItem records. |
|
Undocumented. Reimplemented from TView. |