DialogMgrGadget Class Reference

This is a base class representing a gadget in a DialogOp. It should not be instantiated. More...

#include <gadget.h>

Inheritance diagram for DialogMgrGadget:

NotifyingGadget Gadget CCCoreUI Button ListControl StaticTextControl TextControl List of all members.

Public Member Functions

virtual void Enable ()
 Enables this gadget.
virtual void Disable ()
 Disables this gadget.

Protected Member Functions

 DialogMgrGadget (DialogOp *const pDialog, CGadgetID ControlID)

Protected Attributes

DialogOp *const m_pDialog
const CGadgetID m_ControlID

Private Member Functions

 CC_DECLARE_MEMDUMP (DialogMgrGadget)

Detailed Description

This is a base class representing a gadget in a DialogOp. It should not be instantiated.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/10/96

Definition at line 280 of file gadget.h.


Constructor & Destructor Documentation

DialogMgrGadget::DialogMgrGadget DialogOp *const   pDialog,
CGadgetID  ControlID
[inline, protected]
 

Definition at line 290 of file gadget.h.

00290                                                                   : 
00291             m_pDialog(pDialog), m_ControlID(ControlID)  {}


Member Function Documentation

DialogMgrGadget::CC_DECLARE_MEMDUMP DialogMgrGadget   )  [private]
 

void DialogMgrGadget::Disable  )  [inline, virtual]
 

Disables this gadget.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com> (from assorted dialog classes)
Date:
09/06/97

Implements Gadget.

Definition at line 327 of file gadget.h.

00328 {
00329     ASSERT(m_ControlID != 0 && m_pDialog != NULL);
00330     
00331     m_pDialog->EnableGadget(m_ControlID, FALSE);
00332 }

void DialogMgrGadget::Enable  )  [inline, virtual]
 

Enables this gadget.

Author:
Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com> (from assorted dialog classes)
Date:
09/06/97

Implements Gadget.

Definition at line 310 of file gadget.h.

00311 {
00312     ASSERT(m_ControlID != 0 && m_pDialog != NULL);
00313     
00314     m_pDialog->EnableGadget(m_ControlID, TRUE);
00315 }


Member Data Documentation

const CGadgetID DialogMgrGadget::m_ControlID [protected]
 

Definition at line 296 of file gadget.h.

DialogOp* const DialogMgrGadget::m_pDialog [protected]
 

Definition at line 295 of file gadget.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:53:35 2007 for Camelot by  doxygen 1.4.4