#include <sglfills.h>
Inheritance diagram for SGFillsItem:
Public Member Functions | |
SGFillsItem () | |
~SGFillsItem () | |
SGFillsItem (LibraryIndex LibraryIndexToDisplay, BOOL bNew=FALSE) | |
Creates and initialises a new item for the Fills gallery Notes:. | |
LibDisplayType | GetDisplayType (SGMiscInfo *MiscInfo) |
Return the display type to use - Fills gallery override Notes:. | |
Protected Member Functions | |
virtual BOOL | HandleEvent (SGEventType EventType, void *EventInfo, SGMiscInfo *MiscInfo) |
Handles a SuperGallery DisplayTree event. | |
Private Member Functions | |
CC_DECLARE_DYNCREATE (SGFillsItem) |
Definition at line 300 of file sglfills.h.
|
Definition at line 1772 of file sglfills.cpp.
|
|
Definition at line 1776 of file sglfills.cpp.
|
|
Creates and initialises a new item for the Fills gallery Notes:.
Definition at line 1765 of file sglfills.cpp. 01765 : 01766 SGLibDisplayItem(LibraryIndexToDisplay, bNew) 01767 { 01768 }
|
|
|
|
Return the display type to use - Fills gallery override Notes:.
Reimplemented from SGLibDisplayItem. Definition at line 1731 of file sglfills.cpp. 01732 { 01733 switch(MiscInfo->DisplayMode) 01734 { 01735 case 2: 01736 return LibDisplay_SmallThumbText; 01737 break; 01738 case 1: 01739 return LibDisplay_FullInfo; 01740 break; 01741 case 0: 01742 default: 01743 return LibDisplay_LargeThumbTextUnder; 01744 break; 01745 } 01746 01747 return LibDisplay_LargeThumbTextUnder; 01748 }
|
|
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. Definition at line 1834 of file sglfills.cpp. 01835 { 01836 switch (EventType) 01837 { 01838 case SGEVENT_MOUSECLICK: 01839 { 01840 SGMouseInfo *Mouse = GetMouseInfo(EventType, EventInfo); 01841 01842 if (Mouse != NULL && FormatRect.ContainsCoord(Mouse->Position)) 01843 { 01844 INT32 XSize=0, YSize=0; 01845 if(SGLibDisplayItem::StartDrag(EventType, EventInfo, MiscInfo, &XSize, &YSize)) 01846 { 01847 GalleryFillsDragInfo *DragFill; 01848 01849 DragFill = new GalleryFillsDragInfo(this, Mouse, MiscInfo, 01850 Mouse->MenuClick, XSize, YSize); 01851 if (DragFill != NULL) 01852 DragManagerOp::StartDrag(DragFill, GetListWindow()); 01853 else 01854 if(LibraryGallery::TmpDraggingBitmap != NULL) 01855 { 01856 delete LibraryGallery::TmpDraggingBitmap; 01857 LibraryGallery::TmpDraggingBitmap = NULL; 01858 } 01859 } 01860 return TRUE; // Claim this event - nobody else can own this click 01861 } 01862 } 01863 } 01864 01865 return(SGLibDisplayItem::HandleEvent(EventType, EventInfo, MiscInfo)); 01866 }
|