OpDeactivateBrush Class Reference

This operation takes a brush handle as a parameter, locates the appropriate brush definition and sets the flag indicating that it has been deactivated. Also removes the item from the line gallery and freehand combo. More...

#include <brushop.h>

Inheritance diagram for OpDeactivateBrush:

UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpDeactivateBrush ()
 Constructor.
 ~OpDeactivateBrush ()
 destructor
virtual void DoWithParam (OpDescriptor *, OpParam *pOpParam)
 Deactivates a brush definition so that it no longer appears in the line gallery or brush combo, and all existing attributes that make use of it will appear as if they were a straight line.
virtual void GetOpName (String_256 *OpName)
 like the title says

Static Public Member Functions

static BOOL Declare ()
 Adds the operation to the list of all known operations.
static OpState GetState (String_256 *Description, OpDescriptor *)
 Find out the state of the operation at the specific time.

Private Member Functions

 CC_DECLARE_DYNCREATE (OpDeactivateBrush)

Detailed Description

This operation takes a brush handle as a parameter, locates the appropriate brush definition and sets the flag indicating that it has been deactivated. Also removes the item from the line gallery and freehand combo.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/5/2000
See also:
-

Definition at line 291 of file brushop.h.


Constructor & Destructor Documentation

OpDeactivateBrush::OpDeactivateBrush  ) 
 

Constructor.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Returns:
-

Definition at line 1683 of file brushop.cpp.

01684 {
01685      
01686 }

OpDeactivateBrush::~OpDeactivateBrush  ) 
 

destructor

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Returns:
-

Definition at line 1699 of file brushop.cpp.

01700 {
01701     
01702 }


Member Function Documentation

OpDeactivateBrush::CC_DECLARE_DYNCREATE OpDeactivateBrush   )  [private]
 

BOOL OpDeactivateBrush::Declare  )  [static]
 

Adds the operation to the list of all known operations.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Returns:
TRUE if all went OK, FALSE otherwise

Definition at line 1715 of file brushop.cpp.

01716 {
01717     return (RegisterOpDescriptor(
01718                                 0, 
01719                                 0,
01720                                 CC_RUNTIME_CLASS(OpDeactivateBrush), 
01721                                 OPTOKEN_DELETEBRUSH,
01722                                 OpDeactivateBrush::GetState,
01723                                 0,  /* help ID */
01724                                 0,  /* bubble ID */
01725                                 0   /* bitmap ID */
01726                                 ));
01727 }

void OpDeactivateBrush::DoWithParam OpDescriptor ,
OpParam pParam
[virtual]
 

Deactivates a brush definition so that it no longer appears in the line gallery or brush combo, and all existing attributes that make use of it will appear as if they were a straight line.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Returns:
-

Reimplemented from Operation.

Definition at line 1788 of file brushop.cpp.

01789 {
01790     BrushHandle Handle = static_cast<BrushHandle> (pParam->Param1);
01791 
01792     if (Handle != BrushHandle_NoBrush)
01793     {
01794         DeactivateBrushDefAction* pAction;
01795         if (DeactivateBrushDefAction::Init(this,&UndoActions,Handle, &pAction) == AC_FAIL)
01796             FailAndExecute();
01797         End();
01798     }
01799 
01800 }

void OpDeactivateBrush::GetOpName String_256 OpName  )  [virtual]
 

like the title says

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
- [INPUTS]
The undo string for the operation [OUTPUTS]
Returns:

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 1770 of file brushop.cpp.

01771 {
01772     *OpName = String_256(_R(IDS_BRUSHDELETE));
01773 }

OpState OpDeactivateBrush::GetState String_256 Description,
OpDescriptor
[static]
 

Find out the state of the operation at the specific time.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
Description - GetState fills this string with an approriate description [OUTPUTS] of the current state of the operation
Returns:
The state of the operation, so that menu items (ticks and greying) can be done properly

Definition at line 1745 of file brushop.cpp.

01746 {
01747     OpState Bob;
01748     
01749 
01750     return Bob;
01751 
01752 }


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