ColEditContextMenu Class Reference

Implements the colour editor context sensitive menus. More...

#include <colmenu.h>

Inheritance diagram for ColEditContextMenu:

ContextMenu List of all members.

Public Member Functions

 ColEditContextMenu ()
 To construct ;-).
virtual BOOL Build (void)
 To build the colour editor pop-up menu. (Called when the window is adjust-clicked).

Private Member Functions

 CC_DECLARE_MEMDUMP (ColEditContextMenu)

Detailed Description

Implements the colour editor context sensitive menus.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/10/95

Definition at line 135 of file colmenu.h.


Constructor & Destructor Documentation

ColEditContextMenu::ColEditContextMenu  ) 
 

To construct ;-).

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/10/95

Definition at line 148 of file colmenu.cpp.

00149 {
00150 }


Member Function Documentation

BOOL ColEditContextMenu::Build void   )  [virtual]
 

To build the colour editor pop-up menu. (Called when the window is adjust-clicked).

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

Reimplemented from ContextMenu.

Definition at line 168 of file colmenu.cpp.

00169 {
00170     BOOL ok = TRUE;
00171 
00172 // WEBSTER - Martin 11/07/97
00173 // Edit of the drop down colour model menu list
00174 #ifdef WEBSTER
00175     if (ok) ok = ok && BuildCommand(ColCmd_NewNColour);         // New named colour
00176 #endif // WEBSTER
00177     if (ok) ok = ok && BuildCommand(ColCmd_Name);               // Rename
00178     if (ok) ok = ok && BuildCommand(ColCmd_EditParent, TRUE);   // Edit Parent - With a separator
00179 
00180     if (ok) ok = ok && BuildCommand(ColCmd_HSV);                // Change colour model
00181     if (ok) ok = ok && BuildCommand(ColCmd_RGB,TRUE);
00182 
00183 #ifndef WEBSTER
00184     if (ok) ok = ok && BuildCommand(ColCmd_CMYK);
00185     if (ok) ok = ok && BuildCommand(ColCmd_Grey, TRUE);         // Plus a separator
00186 #endif // WEBSTER
00187 
00188     if (ok) ok = ok && BuildCommand(ColCmd_Help);               // Help
00189     
00190     return(ok);
00191 }

ColEditContextMenu::CC_DECLARE_MEMDUMP ColEditContextMenu   )  [private]
 


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