GalleryContextMenu Class Reference

Implements the SuperGallery context sensitive menus. More...

#include <sgmenu.h>

Inheritance diagram for GalleryContextMenu:

ContextMenu List of all members.

Public Member Functions

 GalleryContextMenu ()
 To construct ;-).
 GalleryContextMenu (SGMenuID TheMenuType, SuperGallery *ParentGallery)
virtual BOOL Build (void)
 To build the SuperGallery pop-up menu. (Called whn the list is adjust-clicked) The exact type (options or item-pop-up) of menu depends on the value passed\ into the constructor.

Protected Attributes

SuperGalleryParentGallery
SGMenuID MenuType

Private Member Functions

 CC_DECLARE_MEMDUMP (GalleryContextMenu)

Detailed Description

Implements the SuperGallery context sensitive menus.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/9/95
See also:
SuperGallery::BuildCommandMenu

Definition at line 199 of file sgmenu.h.


Constructor & Destructor Documentation

GalleryContextMenu::GalleryContextMenu  ) 
 

To construct ;-).

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/9/95
Parameters:
TheMenuType - Determines whether this will be a gallery-options dropdown menu [INPUTS] or a gallery-item/group pop-up menu.
ParentGallery - The gallery whose options are to be shown

Notes: The default constructor will ERROR3 - always use this variant

Definition at line 134 of file sgmenu.cpp.

00135 {
00136     ERROR3("GalleryContextMenu - DON'T call the default constructor!");
00137     MenuType = SGMENU_OPTIONS;
00138     ParentGallery = NULL;
00139 }

GalleryContextMenu::GalleryContextMenu SGMenuID  TheMenuType,
SuperGallery ParentGallery
 

Definition at line 141 of file sgmenu.cpp.

00142 {
00143     MenuType = TheMenuType;
00144     ParentGallery = ParentGal;
00145 }


Member Function Documentation

BOOL GalleryContextMenu::Build void   )  [virtual]
 

To build the SuperGallery pop-up menu. (Called whn the list is adjust-clicked) The exact type (options or item-pop-up) of menu depends on the value passed\ into the constructor.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/9/95
Returns:
TRUE if menu built OK FALSE (and sets error) otherwise

Reimplemented from ContextMenu.

Definition at line 165 of file sgmenu.cpp.

00166 {
00167     if (ParentGallery == NULL)
00168     {
00169         ERROR3("GalleryContextMenu incorrectly constructed");
00170         return(FALSE);
00171     }
00172 
00173     // It's all up to the gallery to fill us in appropriately
00174     return(ParentGallery->BuildCommandMenu(this, MenuType));
00175 }

GalleryContextMenu::CC_DECLARE_MEMDUMP GalleryContextMenu   )  [private]
 


Member Data Documentation

SGMenuID GalleryContextMenu::MenuType [protected]
 

Definition at line 215 of file sgmenu.h.

SuperGallery* GalleryContextMenu::ParentGallery [protected]
 

Definition at line 214 of file sgmenu.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:41 2007 for Camelot by  doxygen 1.4.4