MenuPopupOps Class Reference

This class represents All the Menu Popup operations. More...

#include <menuops.h>

Inheritance diagram for MenuPopupOps:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 MenuPopupOps ()
 Constructs a new MenuPopupOps object: setting default operation flags, and adding it to the Live list.
void Do (OpDescriptor *)
 Actually "DO" a Exit Application operation.

Static Public Member Functions

static BOOL Init ()
 Create OpDescriptors for the each submenu operation in here.
static OpState GetState (String_256 *, OpDescriptor *)
 Find the state of the MenuPopupOps operation.

Detailed Description

This class represents All the Menu Popup operations.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
29/9/93
See also:
Operation

Definition at line 426 of file menuops.h.


Constructor & Destructor Documentation

MenuPopupOps::MenuPopupOps  ) 
 

Constructs a new MenuPopupOps object: setting default operation flags, and adding it to the Live list.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/8/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 855 of file menuops.cpp.

00855                           : Operation()
00856 {                 
00857 }


Member Function Documentation

void MenuPopupOps::Do OpDescriptor WhichOp  )  [virtual]
 

Actually "DO" a Exit Application operation.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/8/93
Parameters:
An Operation Descriptor [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 877 of file menuops.cpp.

00878 {
00879     End();
00880 }

OpState MenuPopupOps::GetState String_256 UIDescription,
OpDescriptor
[static]
 

Find the state of the MenuPopupOps operation.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/8/93
Parameters:
String - representing the operation description which may be updated [INPUTS] OpDescriptor - To help update the state
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 899 of file menuops.cpp.

00900 {
00901     return OpState(FALSE, FALSE);
00902 }                                    

BOOL MenuPopupOps::Init void   )  [static]
 

Create OpDescriptors for the each submenu operation in here.

Author:
Mario_Shamtani (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/8/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from SimpleCCObject.

Definition at line 920 of file menuops.cpp.

00921 {
00922     // The following Opdescriptors do not need to be created using the usual
00923     // RegisterOpDescriptor function because they cannot be invoked by the user and they
00924     // are not connected to controls on the button bars.
00925     OpDescriptor* FileOp = new OpDescriptor(
00926                                             0, 
00927                                             _R(IDS_FILE_MENU),
00928                                             CC_RUNTIME_CLASS(MenuPopupOps), 
00929                                             OPTOKEN_FILE_MENU,
00930                                             MenuPopupOps::GetState,
00931                                             0,      /* help ID */
00932                                             _R(IDBBL_FILEOP),
00933                                             0       /* bitmap ID */);
00934     ERRORIF(!FileOp, _R(IDE_NOMORE_MEMORY), FALSE);
00935 
00936     OpDescriptor* EditOp = new OpDescriptor(
00937                                             0, 
00938                                             _R(IDS_EDIT_MENU),
00939                                             CC_RUNTIME_CLASS(MenuPopupOps), 
00940                                             OPTOKEN_EDIT_MENU,
00941                                             MenuPopupOps::GetState,
00942                                             0,      /* help ID */
00943                                             _R(IDBBL_EDITOP),
00944                                             0       /* bitmap ID */);
00945     ERRORIF(!EditOp, _R(IDE_NOMORE_MEMORY), FALSE);
00946 
00947     OpDescriptor* AttrOp = new OpDescriptor(
00948                                             0, 
00949                                             _R(IDS_ATTRIBUTE_MENU),
00950                                             CC_RUNTIME_CLASS(MenuPopupOps), 
00951                                             OPTOKEN_ATTRIBUTE_MENU,
00952                                             MenuPopupOps::GetState,
00953                                             0,      /* help ID */
00954                                             0,
00955                                             0       /* bitmap ID */);
00956     ERRORIF(!AttrOp, _R(IDE_NOMORE_MEMORY), FALSE);
00957 
00958     OpDescriptor* HelpOp = new OpDescriptor(
00959                                             0, 
00960                                             _R(IDS_HELP_MENU),
00961                                             CC_RUNTIME_CLASS(MenuPopupOps), 
00962                                             OPTOKEN_HELP_MENU,
00963                                             MenuPopupOps::GetState,
00964                                             0,      /* help ID */
00965                                             _R(IDBBL_HELPOP),
00966                                             0       /* bitmap ID */);
00967     ERRORIF(!HelpOp, _R(IDE_NOMORE_MEMORY), FALSE);
00968 
00969     OpDescriptor* WindowOp = new OpDescriptor(
00970                                                 0, 
00971                                                 _R(IDS_WINDOW_MENU),
00972                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
00973                                                 OPTOKEN_WINDOW_MENU,
00974                                                 MenuPopupOps::GetState,
00975                                                 0,      /* help ID */
00976                                                 _R(IDBBL_WINDOWOP),
00977                                                 0       /* bitmap ID */);
00978     ERRORIF(!WindowOp, _R(IDE_NOMORE_MEMORY), FALSE);
00979 
00980     OpDescriptor* UtilsOp = new OpDescriptor(
00981                                             0, 
00982                                             _R(IDS_UTILS_MENU),
00983                                             CC_RUNTIME_CLASS(MenuPopupOps), 
00984                                             OPTOKEN_UTILS_MENU,
00985                                             MenuPopupOps::GetState,
00986                                             0,      /* help ID */
00987                                             0,
00988                                             0       /* bitmap ID */);
00989     ERRORIF(!UtilsOp, _R(IDE_NOMORE_MEMORY), FALSE);
00990 
00991     OpDescriptor* ArrangeOp = new OpDescriptor(     
00992                                                 0, 
00993                                                 _R(IDS_ARRANGE_MENU),
00994                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
00995                                                 OPTOKEN_ARRANGE_MENU,
00996                                                 MenuPopupOps::GetState,
00997                                                 0,      /* help ID */
00998                                                 0,  /* Bubble help ID */
00999                                                 0       /* bitmap ID */);
01000     ERRORIF(!ArrangeOp, _R(IDE_NOMORE_MEMORY), FALSE);
01001 
01002     OpDescriptor* DebugOp = new OpDescriptor(       
01003                                                 0, 
01004                                                 _R(IDS_DEBUG_MENU),
01005                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
01006                                                 OPTOKEN_DEBUG_MENU,
01007                                                 MenuPopupOps::GetState,
01008                                                 0,      /* help ID */
01009                                                 0,  /* Bubble help ID */
01010                                                 0       /* bitmap ID */);
01011     ERRORIF(!DebugOp, _R(IDE_NOMORE_MEMORY), FALSE);
01012 
01013     OpDescriptor* QualityOp = new OpDescriptor(     
01014                                                 0, 
01015                                                 _R(IDS_QUALITY_MENU),
01016                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
01017                                                 OPTOKEN_QUALITY_MENU,
01018                                                 MenuPopupOps::GetState,
01019                                                 0,      /* help ID */
01020                                                 0,  /* Bubble help ID */
01021                                                 0       /* bitmap ID */);
01022     ERRORIF(!QualityOp, _R(IDE_NOMORE_MEMORY), FALSE);
01023 
01024     OpDescriptor* BarsOp = new OpDescriptor(        
01025                                                 0, 
01026                                                 _R(IDS_BARS_CONFIG),
01027                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
01028                                                 OPTOKEN_BARS_MENU,
01029                                                 MenuPopupOps::GetState,
01030                                                 0,      /* help ID */
01031                                                 0,  /* Bubble help ID */
01032                                                 0       /* bitmap ID */);
01033     ERRORIF(!BarsOp, _R(IDE_NOMORE_MEMORY), FALSE);
01034 
01035     OpDescriptor* CombineOp = new OpDescriptor(     
01036                                                 0, 
01037                                                 _R(IDS_COMBINE_MENU),
01038                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
01039                                                 OPTOKEN_COMBINESHAPES,
01040                                                 MenuPopupOps::GetState,
01041                                                 0,      /* help ID */
01042                                                 0,  /* Bubble help ID */
01043                                                 0       /* bitmap ID */);
01044     ERRORIF(!CombineOp, _R(IDE_NOMORE_MEMORY), FALSE);
01045 
01046     OpDescriptor* NumSidesOp = new OpDescriptor(    
01047                                                 0, 
01048                                                 _R(IDS_QUICKSHAPES_NUMBERSIDES),
01049                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
01050                                                 OPTOKEN_QUICKSHAPE_NUMBERSIDES,
01051                                                 MenuPopupOps::GetState,
01052                                                 0,      /* help ID */
01053                                                 0,  /* Bubble help ID */
01054                                                 0       /* bitmap ID */);
01055     ERRORIF(!NumSidesOp, _R(IDE_NOMORE_MEMORY), FALSE);
01056 
01057 
01058 PORTNOTE("other","Removed bitmap effects usage")
01059 #ifndef EXCLUDE_FROM_XARALX
01060     OpDescriptor* EditEffectOp = new OpDescriptor(     
01061                                                 0, 
01062                                                 _R(IDS_EDITEFFECT_MENU),
01063                                                 CC_RUNTIME_CLASS(MenuPopupOps), 
01064                                                 OPTOKEN_EDITEFFECTS,
01065                                                 MenuPopupOps::GetState,
01066                                                 0,      // help ID
01067                                                 0,      // Bubble help ID
01068                                                 0 );    // bitmap ID
01069     ERRORIF(!EditEffectOp, _R(IDE_NOMORE_MEMORY), FALSE);
01070 #endif
01071     return TRUE;
01072 }


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