WindowOps Class Reference

This class is used for all the Window operations found on the Window Menu. More...

#include <menuops.h>

Inheritance diagram for WindowOps:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

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

Static Public Member Functions

static BOOL Init ()
 Create OpDescriptors for the each file operation.
static OpState GetState (String_256 *, OpDescriptor *)
 Find the state of the WindowOps operation.

Detailed Description

This class is used for all the Window operations found on the Window Menu.

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

Definition at line 511 of file menuops.h.


Constructor & Destructor Documentation

WindowOps::WindowOps  ) 
 

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

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

Errors: -

See also:
-

Definition at line 1566 of file menuops.cpp.

01566                     : Operation()
01567 {                 
01568 }


Member Function Documentation

void WindowOps::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 1588 of file menuops.cpp.

01589 {
01590     if( WhichOp->Token == String( OPTOKEN_NEXTDOCUMENT ) )
01591         WindowNextDcocument( true );
01592     else if( WhichOp->Token == String( OPTOKEN_LASTDOCUMENT ) )
01593         WindowNextDcocument( false );
01594     
01595     PORTNOTETRACE("other","WindowOps::Do - do nothing");
01596 #ifndef EXCLUDE_FROM_XARALX
01597     else if ((WhichOp->Token) ==  String(OPTOKEN_WINDOWNEWVIEW))
01598         WindowNewAction(); 
01599     else if ((WhichOp->Token) == String(OPTOKEN_WINDOWARRANGE))
01600         WindowArrangeAction(); 
01601     else if ((WhichOp->Token) == String(OPTOKEN_WINDOWCASCADE))
01602         WindowCascadeAction(); 
01603     else if ((WhichOp->Token) == String(OPTOKEN_WINDOWTILE))
01604         WindowTileHorzAction(); 
01605 //    else if ((WhichOp->Token) == String(OPTOKEN_WINDOWTILE_H))
01606 //              WindowTileHorzAction(); 
01607 //    else if ((WhichOp->Token) == String(OPTOKEN_WINDOWTILE_V))
01608 //              WindowTileVertAction(); 
01609 #endif
01610     End();
01611 }                 

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

Find the state of the WindowOps 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 1630 of file menuops.cpp.

01631 {
01632     PORTNOTETRACE("other","WindowOps::GetState - do nothing");
01633 #ifndef EXCLUDE_FROM_XARALX
01634     return WindowCmdState();
01635 #else
01636     return OpState();
01637 #endif
01638 }                                    

BOOL WindowOps::Init void   )  [static]
 

Create OpDescriptors for the each file operation.

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 1656 of file menuops.cpp.

01657 {
01658 PORTNOTETRACE("other","WindowOps::Do - do nothing");
01659 #ifndef EXCLUDE_FROM_XARALX
01660     REGOP(WINDOW,NEWVIEW,WindowOps)
01661     /*OpDescriptor* NewOp = new OpDescriptor (
01662                                             0, 
01663                                             _R(IDS_WINDOW_NEW_VIEW),
01664                                             CC_RUNTIME_CLASS(WindowOps), 
01665                                             OPTOKEN_WINDOWNEWVIEW,
01666                                             WindowOps::GetState,
01667                                             HID_WINDOW_NEW,
01668                                             _R(IDBBL_WINDOWNEWOP),
01669                                             0 );
01670 
01671     ERRORIF(!NewOp, _R(IDE_NOMORE_MEMORY), FALSE);*/
01672 
01673     REGOP(WINDOW,ARRANGE,WindowOps)
01674     /*OpDescriptor* ArrangeOp = new OpDescriptor(
01675                                                 0, 
01676                                                 _R(IDS_WINDOW_ARRANGE),
01677                                                 CC_RUNTIME_CLASS(WindowOps), 
01678                                                 OPTOKEN_WINDOWARRANGE,
01679                                                 WindowOps::GetState,
01680                                                 HID_WINDOW_ARRANGE,
01681                                                 _R(IDBBL_WINDOWARRANGEOP),
01682                                                 0);
01683 
01684     ERRORIF(!ArrangeOp, _R(IDE_NOMORE_MEMORY), FALSE);*/
01685 
01686     REGOP(WINDOW,CASCADE,WindowOps)
01687     /*OpDescriptor* CascadeOp = new OpDescriptor(
01688                                             0, 
01689                                             _R(IDS_WINDOW_CASCADE),
01690                                             CC_RUNTIME_CLASS(WindowOps), 
01691                                             OPTOKEN_WINDOWCASCADE,
01692                                             WindowOps::GetState,
01693                                             HID_WINDOW_CASCADE,
01694                                             _R(IDBBL_WINDOWCASCADEOP),
01695                                             0);
01696 
01697     ERRORIF(!CascadeOp, _R(IDE_NOMORE_MEMORY), FALSE);*/
01698 
01699     REGOP(WINDOW,TILE,WindowOps)
01700     /*OpDescriptor* TileOp = new OpDescriptor(
01701                                                 0, 
01702                                                 _R(IDS_WINDOW_TILE),
01703                                                 CC_RUNTIME_CLASS(WindowOps), 
01704                                                 OPTOKEN_WINDOWTILE,
01705                                                 WindowOps::GetState,
01706                                                 HID_WINDOW_TILE_VERT,
01707                                                 _R(IDBBL_TILEVERTICALOP),
01708                                                 0);
01709     ERRORIF(!TileOp, _R(IDE_NOMORE_MEMORY), FALSE);*/
01710 #endif
01711     
01712     // REGOP(HELP, PLAYER, HelpPlayer);
01713     OpDescriptor* NextDocumentOp = new OpDescriptor(
01714                                                 0, 
01715                                                 _R(IDS_NEXTDOCUMENT),
01716                                                 CC_RUNTIME_CLASS(WindowOps), 
01717                                                 OPTOKEN_NEXTDOCUMENT,
01718                                                 WindowOps::GetState,
01719                                                 0,
01720                                                 _R(IDBBL_NEXTDOCUMENT),
01721                                                 0 );
01722 
01723     ERRORIF(!NextDocumentOp, _R(IDE_NOMORE_MEMORY), FALSE);
01724 
01725     // REGOP(HELP, PLAYER, HelpPlayer);
01726     OpDescriptor* LastDocumentOp = new OpDescriptor(
01727                                                 0, 
01728                                                 _R(IDS_LASTDOCUMENT),
01729                                                 CC_RUNTIME_CLASS(WindowOps), 
01730                                                 OPTOKEN_LASTDOCUMENT,
01731                                                 WindowOps::GetState,
01732                                                 0,
01733                                                 _R(IDBBL_LASTDOCUMENT),
01734                                                 0 );
01735 
01736     ERRORIF(!LastDocumentOp, _R(IDE_NOMORE_MEMORY), FALSE);
01737 
01738     return TRUE;
01739 }


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