ADMCloseDialogButton Class Reference

Class for buttons that close the parent dialog; special handling necessary. More...

#include <ADMButton.h>

Inherits ADMButton.

Collaboration diagram for ADMCloseDialogButton:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ADMCloseDialogButton (bool bNotifyParent=false)
 Default constructor.
 ADMCloseDialogButton (ADMItemRef control)
 Constructor for existing ADM buttons.

Protected Member Functions

virtual void OnNotify (ADMNotifierRef notifier)
 Override, closing the dialog if necessary.
virtual bool OnClick ()
 Called when the button is clicked.

Protected Attributes

bool m_bCloseParent
 true to close the parent (used in OnNotify)
bool m_bNotifyParent
 true to notify the parent on clicks

Detailed Description

Class for buttons that close the parent dialog; special handling necessary.

Examples for this kind of buttons are Cancel and OK buttons, but also any other button the closes the parent dialog

Definition at line 104 of file ADMButton.h.


Constructor & Destructor Documentation

ADMCloseDialogButton::ADMCloseDialogButton ( bool  bNotifyParent = false  )  [inline]

Default constructor.

Parameters:
bNotifyParent true to notify the parent about click before closing; false not to

Definition at line 112 of file ADMButton.h.

ADMCloseDialogButton::ADMCloseDialogButton ( ADMItemRef  control  )  [inline]

Constructor for existing ADM buttons.

Parameters:
control Reference to the ADM button control

Definition at line 117 of file ADMButton.h.


Member Function Documentation

bool ADMCloseDialogButton::OnClick (  )  [protected, virtual]

Called when the button is clicked.

Returns:
true to continue (close the dialog), false otherwise

Implements ADMButton.

Definition at line 73 of file ADMButton.cpp.

References m_bCloseParent, m_bNotifyParent, ADMBaseControl::m_refItem, and ADMBaseDialog::OnBtnClicked().

void ADMCloseDialogButton::OnNotify ( ADMNotifierRef  notifier  )  [protected, virtual]

Override, closing the dialog if necessary.

Parameters:
notifier ADM notification object

Reimplemented from ADMButton.

Definition at line 98 of file ADMButton.cpp.

References ADMModalWrapper::EndModal(), ADMBaseDialog::GetAVWindow(), m_bCloseParent, and ADMBaseControl::m_refItem.


The documentation for this class was generated from the following files:

Generated on Thu Dec 17 17:37:09 2009 for CCInfo PDF Plugin by doxygen 1.6.1