Button Class Reference

Represents a button in a DialogOp. More...

#include <gadget.h>

Inheritance diagram for Button:

DialogMgrGadget NotifyingGadget Gadget CCCoreUI List of all members.

Public Member Functions

 Button (DialogOp *const pDialog, CGadgetID ControlID, Notifiable *const pNotify=&Nobody)
 Default destructor for a Button. Does nothing.
virtual ~Button ()
 Default destructor for a Button. Does nothing.
virtual void OnClicked ()
 Notifies the Notifiable that this Button has been clicked.

Private Member Functions

 CC_DECLARE_MEMDUMP (Button)

Private Attributes

Notifiablem_pNotifyOnPress

Detailed Description

Represents a button in a DialogOp.

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

Definition at line 346 of file gadget.h.


Constructor & Destructor Documentation

Button::Button DialogOp *const   pDialog,
CGadgetID  ControlID,
Notifiable *const   pNotify = &Nobody
 

Default destructor for a Button. Does nothing.

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

Definition at line 137 of file gadget.cpp.

00137                                                                                       : 
00138         DialogMgrGadget(pDialog, ControlID), m_pNotifyOnPress(pNotify)
00139 {
00140 }

Button::~Button  )  [virtual]
 

Default destructor for a Button. Does nothing.

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

Definition at line 154 of file gadget.cpp.

00155 {
00156 }


Member Function Documentation

Button::CC_DECLARE_MEMDUMP Button   )  [private]
 

void Button::OnClicked  )  [virtual]
 

Notifies the Notifiable that this Button has been clicked.

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

Definition at line 170 of file gadget.cpp.

00171 {
00172     Notify(m_pNotifyOnPress);
00173 }


Member Data Documentation

Notifiable* Button::m_pNotifyOnPress [private]
 

Definition at line 360 of file gadget.h.


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