#include <sgfonts.h>
Inheritance diagram for SGLibFontItem:
Public Member Functions | |
SGLibFontItem () | |
~SGLibFontItem () | |
SGLibFontItem (LibraryIndex LibraryIndexToDisplay, BOOL bNew=FALSE) | |
LibDisplayType | GetDisplayType (SGMiscInfo *MiscInfo) |
Return the display type to use - this should be overridden by the library gallery using the code. | |
INT32 | GetTextWidth (SGFormatInfo *FormatInfo, SGMiscInfo *MiscInfo) |
An overridable way of returning the width of the text description. | |
void | GetNameText (String_256 *Result) |
Returns the name text for this item, to support simple searching and sorting operations, and generic redraw methods for library items. | |
void | GetFullInfoText (String_256 *Result) |
Returns the full-info text for this item, to support simple searching operations, and generic redraw methods for library items. Notes: This overrides the sgdisplaynode version to give full information... | |
UINT32 | GetFontID (void) |
virtual BOOL | HandleEvent (SGEventType EventType, void *EventInfo, SGMiscInfo *MiscInfo) |
Handles a SuperGallery DisplayTree event. | |
virtual BOOL | GetNameTextPtr (TCHAR **Result) |
Returns a pointer to the filename for this item... The main use of this call is to speed sorting up, since passing pointers about is much quicker than constructing strings.... | |
virtual void | CalculateMyRect (SGFormatInfo *FormatInfo, SGMiscInfo *MiscInfo) |
Shared code for LibraryIndex items to calculate where they will appear in the grand scheme of things. | |
virtual void | HandleRedraw (SGRedrawInfo *RedrawInfo, SGMiscInfo *MiscInfo) |
SGLibDisplayItem item redraw method - removed from the main HandleEvent method merely to make the code tidier. Notes: Scope: private. | |
FontClass | GetType (void) |
virtual INT32 | CompareTo (SGDisplayNode *Other, INT32 SortKey) |
Compares this node to the 'other' node, to determine their relative positions in the display tree. Returns a value which usually indicates that the other node should be inserted before (-1, or 0) or after (+1) this item. | |
virtual BOOL | GetThumbFileName (String_256 *path) |
To find the corresponding filename for this object's thumb. | |
Protected Member Functions | |
void | MoveAfter (SGDisplayNode *NodeToMove) |
MOVES the given node (to a different position in the DisplayTree) as the previous (left) sibling of this node. If the node is not linked into a tree, it is effectively just inserted. | |
void | MoveBefore (SGDisplayNode *NodeToMove) |
MOVES the given node (to a different position in the DisplayTree) as the previous (left) sibling of this node. If the node is not linked into a tree, it is effectively just inserted. | |
BOOL | GetBubbleHelp (DocCoord *MousePos, String_256 *Result) |
Called by the parent gallery when bubble help is needed. The parent gallery will do a hit test to determine which node contains the pointer, and will then ask that node to supply bubble/status-line help. | |
BOOL | GetStatusLineHelp (DocCoord *MousePos, String_256 *Result) |
Called by the parent gallery when status line help is needed. The parent gallery will do a hit test to determine which node contains the pointer, and will then ask that node to supply bubble/status-line help. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (SGLibFontItem) |
Definition at line 619 of file sgfonts.h.
|
|
|
|
|
|
|
Shared code for LibraryIndex items to calculate where they will appear in the grand scheme of things.
Notes: LibraryIndexs supply only one display mode ("full info") Scope: private (for use of SGLibDisplayItem class only) Reimplemented from SGLibDisplayItem. |
|
|
|
Compares this node to the 'other' node, to determine their relative positions in the display tree. Returns a value which usually indicates that the other node should be inserted before (-1, or 0) or after (+1) this item.
Reimplemented from SGLibDisplayItem. |
|
Called by the parent gallery when bubble help is needed. The parent gallery will do a hit test to determine which node contains the pointer, and will then ask that node to supply bubble/status-line help.
Reimplemented from SGLibDisplayItem. |
|
Return the display type to use - this should be overridden by the library gallery using the code.
Reimplemented from SGLibDisplayItem. |
|
|
|
Returns the full-info text for this item, to support simple searching operations, and generic redraw methods for library items. Notes: This overrides the sgdisplaynode version to give full information...
Reimplemented from SGLibDisplayItem. |
|
Returns the name text for this item, to support simple searching and sorting operations, and generic redraw methods for library items.
Reimplemented from SGLibDisplayItem. |
|
Returns a pointer to the filename for this item... The main use of this call is to speed sorting up, since passing pointers about is much quicker than constructing strings....
Reimplemented from SGLibDisplayItem. |
|
Called by the parent gallery when status line help is needed. The parent gallery will do a hit test to determine which node contains the pointer, and will then ask that node to supply bubble/status-line help.
Reimplemented from SGLibDisplayItem. |
|
An overridable way of returning the width of the text description.
Reimplemented from SGLibDisplayItem. |
|
To find the corresponding filename for this object's thumb.
Reimplemented from SGLibDisplayItem. |
|
|
|
Handles a SuperGallery DisplayTree event.
MonoOn Event Thing EventInfo points at SGEVENT_FORMAT (SGFormatInfo *) SGEVENT_REDRAW (SGRedrawInfo *) SGEVENT_MOUSECLICK (SGMouseInfo *) MonoOff Use the provided SGDisplayNode::Get[Format]Info() inlines to retrieve this information - they provide useful error/type checking, and hide the cast MiscInfo - always provided. Contains a few useful bits of info that may be needed for all event types.
A node need not handle a specific event - if it does not handle it, it should return FALSE. Redraw and Formatting handlers should never return TRUE, as this will prevent the event from continuing through the tree. Non-leaf-nodes must call SGDisplayNode::GiveEventToMyChildren in order to pass the event dow the tree. THIS node is a leaf-node, so it doesn't.
Reimplemented from SGLibDisplayItem. |
|
SGLibDisplayItem item redraw method - removed from the main HandleEvent method merely to make the code tidier. Notes: Scope: private.
Reimplemented from SGLibDisplayItem. |
|
MOVES the given node (to a different position in the DisplayTree) as the previous (left) sibling of this node. If the node is not linked into a tree, it is effectively just inserted.
Take care when moving items between groups (e.g. if an item is "moved" from one docuemnt to another, it could be a bad thing, so be very careful in derived classes to take appropriate action) Any attempt to move an item after *itself* is queitly ignored
Reimplemented from SGDisplayNode. |
|
MOVES the given node (to a different position in the DisplayTree) as the previous (left) sibling of this node. If the node is not linked into a tree, it is effectively just inserted.
Take care when moving items between groups (e.g. if an item is "moved" from one docuemnt to another, it could be a bad thing, so be very careful in derived classes to take appropriate action) Any attempt to move an item before *itself* is queitly ignored
Reimplemented from SGDisplayNode. |