OpToggleSolidDrag Class Reference

This class represents the OpToggleSolidDrag operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether double buffering is used for rendering on GTK. More...

#include <docview.h>

Inheritance diagram for OpToggleSolidDrag:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpToggleSolidDrag ()
 Constructs an OpToggleSolidDrag object.
 ~OpToggleSolidDrag ()
 Destructs an OpToggleSolidDrag object.
void Do (OpDescriptor *)
 Actually "DO" a ToggleFore operation.

Static Public Member Functions

static BOOL Init ()
 Create an OpDescriptor for the OpToggleSolidDrag operation.
static OpState GetState (String_256 *, OpDescriptor *)
 Find the state of the OpToggleSolidDrag operation.

Detailed Description

This class represents the OpToggleSolidDrag operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether double buffering is used for rendering on GTK.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006

Definition at line 701 of file docview.h.


Constructor & Destructor Documentation

OpToggleSolidDrag::OpToggleSolidDrag  ) 
 

Constructs an OpToggleSolidDrag object.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 5835 of file docview.cpp.

05835                                      : Operation()
05836 {
05837 
05838 }

OpToggleSolidDrag::~OpToggleSolidDrag  ) 
 

Destructs an OpToggleSolidDrag object.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 5857 of file docview.cpp.

05858 {
05859     // Empty
05860 }


Member Function Documentation

void OpToggleSolidDrag::Do OpDescriptor  )  [virtual]
 

Actually "DO" a ToggleFore operation.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
Pointer to Operation Descriptor [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 5879 of file docview.cpp.

05880 {
05881     DocView::SolidDragging=!DocView::SolidDragging;
05882     End();
05883 }

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

Find the state of the OpToggleSolidDrag operation.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
Pointer to Operation Descriptor [INPUTS] Text Description
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 5903 of file docview.cpp.

05904 {
05905     // Default to !ticked and greyed
05906     OpState blobby(FALSE, TRUE);
05907     blobby.Ticked = DocView::SolidDragging;
05908     blobby.Greyed = FALSE;
05909     return(blobby);
05910 }

BOOL OpToggleSolidDrag::Init void   )  [static]
 

Create an OpDescriptor for the OpToggleSolidDrag operation.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from SimpleCCObject.

Definition at line 5928 of file docview.cpp.

05929 {
05930     return Operation::RegisterOpDescriptor( 
05931                                             0, 
05932                                             _R(IDS_TOGGLE_SOLIDDRAG),
05933                                             CC_RUNTIME_CLASS(OpToggleSolidDrag), 
05934                                             OPTOKEN_TOGGLESOLIDDRAG,
05935                                             OpToggleSolidDrag::GetState,
05936                                             0,                      // help ID
05937                                             0,// _R(IDBBL_FOREBACKGRNDOP),
05938                                             0,                      // bitmap ID
05939                                             0,                      // control ID
05940                                             SYSTEMBAR_ILLEGAL,      // group bar ID
05941                                             TRUE,
05942                                             FALSE,
05943                                             TRUE,
05944                                             NULL,
05945                                             0,
05946                                             0,
05947                                             TRUE
05948                                            );
05949 }


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