ToolSwitch Class Reference

Holds a key press that will temporarily switch to another tool. More...

Inheritance diagram for ToolSwitch:

ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ToolSwitch (Tool *pThisTool, KeyPress *pKeyPress, BOOL FromFile)
 The constructor. Creates a ToolSwitch object that represents a key press combination that invokes the given tool.
 ~ToolSwitch ()
 Default destructor. Main job is to delete the key press object it constains.

Public Attributes

ToolpTool
KeyPresspKeyPress
BOOL Temp: 1
BOOL DefFromFile: 1

Static Public Attributes

static ToolSwitchpCurrentToolSwitch = NULL

Detailed Description

Holds a key press that will temporarily switch to another tool.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/8/94
Returns:
Errors: -
See also:
-

Definition at line 172 of file tool.cpp.


Constructor & Destructor Documentation

ToolSwitch::ToolSwitch Tool pThisTool,
KeyPress pThisKeyPress,
BOOL  FromFile
 

The constructor. Creates a ToolSwitch object that represents a key press combination that invokes the given tool.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/8/94
Parameters:
pThisTool = the tool this key press will activate [INPUTS] pThisKeyPress = ptr to the key press combination that activates the tool FromFile = TRUE if defined from a file, FALSE if a direct definition (usu. direct from a tool)
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 214 of file tool.cpp.

00215 {
00216     pTool       = pThisTool;
00217     pKeyPress   = pThisKeyPress;
00218     Temp        = FALSE;
00219     DefFromFile = FromFile;
00220 }

ToolSwitch::~ToolSwitch  ) 
 

Default destructor. Main job is to delete the key press object it constains.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/9/94
Parameters:
0 [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 238 of file tool.cpp.

00239 {
00240     if (pKeyPress != NULL)
00241     {
00242         delete pKeyPress;
00243         pKeyPress = NULL;
00244     }
00245 }


Member Data Documentation

BOOL ToolSwitch::DefFromFile
 

Definition at line 184 of file tool.cpp.

ToolSwitch * ToolSwitch::pCurrentToolSwitch = NULL [static]
 

Definition at line 186 of file tool.cpp.

KeyPress* ToolSwitch::pKeyPress
 

Definition at line 181 of file tool.cpp.

Tool* ToolSwitch::pTool
 

Definition at line 180 of file tool.cpp.

BOOL ToolSwitch::Temp
 

Definition at line 183 of file tool.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 04:02:00 2007 for Camelot by  doxygen 1.4.4