OpThrottleCache Class Reference

To allow comparitive timing of window redraws Notes: In the OIL. More...

#include <speedtst.h>

Inheritance diagram for OpThrottleCache:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpThrottleCache ()
 Constructor for OpTimeDraw operation. It is not undoable.
void Do (OpDescriptor *)
 Toggles bitmap cache enabled pref also Clears the bitmap cache for performance testing.

Static Public Member Functions

static BOOL Init ()
 Declares a preference that allows you to clear memory in delete().
static OpState GetState (String_256 *, OpDescriptor *)
 This item is always available, so long as a document is visible.

Detailed Description

To allow comparitive timing of window redraws Notes: In the OIL.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/2004

Definition at line 169 of file speedtst.h.


Constructor & Destructor Documentation

OpThrottleCache::OpThrottleCache  ) 
 

Constructor for OpTimeDraw operation. It is not undoable.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/1/94
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: None

Definition at line 474 of file speedtst.cpp.

00475 {
00476 }


Member Function Documentation

void OpThrottleCache::Do OpDescriptor  )  [virtual]
 

Toggles bitmap cache enabled pref also Clears the bitmap cache for performance testing.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/06/2004
Parameters:
None [INPUTS]
None [OUTPUTS]
Returns:
None

Errors: None

Reimplemented from Operation.

Definition at line 444 of file speedtst.cpp.

00445 {
00446     if (NodeRenderableBounded::bThrottleCacheing)
00447     {
00448         InformWarning(_R(IDS_WARN_DISABLE_THROTTLING), _R(IDS_OK));
00449     }
00450     else
00451     {
00452         InformWarning(_R(IDS_WARN_ENABLE_THROTTLING), _R(IDS_OK));
00453     }
00454 
00455     NodeRenderableBounded::bThrottleCacheing = ! NodeRenderableBounded::bThrottleCacheing;
00456 
00457     End();                                                              // cleanup memory   
00458 }

OpState OpThrottleCache::GetState String_256 ,
OpDescriptor
[static]
 

This item is always available, so long as a document is visible.

Author:
Andy_Pennell (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/1/94
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: None

Definition at line 493 of file speedtst.cpp.

00494 {
00495     OpState OpSt;
00496 
00497     OpSt.Ticked = NodeRenderableBounded::bThrottleCacheing;
00498 
00499     return OpSt;
00500 }

static BOOL OpThrottleCache::Init void   )  [static]
 

Declares a preference that allows you to clear memory in delete().

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
19/4/94
Returns:
TRUE if it worked OK, FALSE if not

Reimplemented from SimpleCCObject.


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