Public Member Functions | |
Constructor / Destructor | |
CP_StatusBar () | |
Constructor. | |
CP_StatusBar (CPLAT::CP_View *inSuperview, const CPLAT::CP_Point &inUpperLeft, const CPLAT::CP_Size &inContentSize, bool inAutoPosition=true, bool inAtWindowBottom=true, bool inGrowBox=true) | |
virtual | ~CP_StatusBar () throw () |
Destructor. | |
Getters | |
bool | GetBorders (SInt32 *ptArray) |
SInt16 | GetNumberParts () |
SInt16 | GetParts (SInt32 *ptArray, SInt16 inNumElements) |
CP_Rect | GetRect (SInt16 inPartNumber) |
CP_String | GetText (SInt16 inPartNumber) |
SInt32 | GetTextLength (SInt16 inPartNumber) |
Setters | |
void | SetMinHeight (SInt16 inMinHeight) |
bool | SetParts (SInt32 *ptArray, SInt16 inNumElements) |
bool | SetSimpleDisplay (bool inShowSimple) |
bool | SetText (const CP_String &inText, SInt16 inPartNumber, SInt16 inDisplayFlags=0) |
Static Public Member Functions | |
Persistance | |
static CP_M_Persist * | PersistCreator () |
Protected Member Functions | |
Persistance | |
virtual void | OnInitPersist (CP_View *inSuperview, CP_DataValueList &inDataValueList) |
Parts | |
CP_S_StatusBarPart | GetPartInfo (SInt16 inPartNumber) |
void | SetPartInfo (const CP_S_StatusBarPart &inPartInfo, SInt16 inPartNumber) |
Drawing | |
virtual void | OnDraw (CP_Canvas &inCanvas, CP_Region &inUpdateArea) |
virtual void | OnOwnerDrawPart (CP_Canvas &inCanvas, const CP_S_StatusBarPart &inPart, const CP_Rect &inBounds) |
void | DrawIndividualPart (CP_Canvas &inCanvas, const CP_S_StatusBarPart &inPart) |
Protected Attributes | |
bool | fAutoPosition |
bool | fHasGrowBox |
bool | fAtWindowBottom |
bool | fSimpleStyle |
CP_StatusBarPart_Array * | fParts |
SInt16 | fVerticalBorder |
SInt16 | fHorizontalBorder |
SInt16 | fDividerBorder |
Private Member Functions | |
Initialization | |
void | CreatePlatformImp (CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inAutoPosition, bool inAtWindowBottom, bool inGrowBox) |
Misc | |
void | CalcWindowPosition () |
Initialization | |
void | CreatePlatformImp (CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inAutoPosition, bool inAtWindowBottom, bool inGrowBox) |
Initialization | |
void | CreatePlatformImp (CP_View *inSuperview, const CP_Point &inUpperLeft, const CP_Size &inContentSize, bool inAutoPosition, bool inAtWindowBottom, bool inGrowBox) |
|
Constructor.
|
|
Constructor. Create a pane with the upper left corner at inLocation, and the content size of inSize.
|
|
Destructor.
|
|
CP_M_Persist function to create an instance of this button. Called from our CP_PersistManager class to create persistant object from a stream.
|
|
Return an array containing the 3 elements that contain the borders -- 1 - vertical border, 2 - horizontal, 3 - divider. NOTE: Make sure ptArray is large enough to hold 3 elements.
|
|
Return the number of parts in our status bar.
|
|
Return an array containing an array of parts from our status bar.
|
|
Set the rect of a part in our status bar. Returns a zero (empty) rect upon failure.
|
|
Return the text for a part.
|
|
Return the length of the text for a part. The low order word contains the text length, the high order word contains the type of operation to draw the text.
|
|
Set the minimum height of the drawing area for our status bar.
|
|
Set the parts to our status bar.
|
|
Set the status bar to display in simple style, ie only 1 part.
|
|
Set the text for a part in our status bar.
|
|
Called from the persistance classes once an object has been created, and now needs to be initialized. This method is used to initialize the data members of the class from the passed in CP_DataValueList which contains fields to initialize a data member. Once the data members have been initialized, a platforms implementation is created through the CreatePlatformImp() method.
|
|
Get the info structure for an indidual part.
|
|
Set the info structure for an indidual part.
|
|
Thickness of border between parts. |
|
Override this to handle parts that have the SBT_OWNERDRAW flag set.
|
|
Draws a single part of the status bar.
|
|
Create the MacOS implementation of the Button control.
|
|
Reposition and resize our status bar to its correct location at either the top or bottom of the window.
|
|
|
|
|
|
|
|
Flag to indicate if this pane should auto position itself at the bottom of its enclosing window. |
|
Flag to indicate if we need to cover a grow box area. |
|
Flag to indicate if this pane is at the bottom of a window. |
|
Flag to indicate if this should be a simple style, where there is only 1 area with text displayed. |
|
Holds information about the various parts of the status bar. |
|
Vertical distance between pane edge and beginning of drawing area. |
|
Horizontal distance between pane edge and beginning of drawing area. |