Class for buttons that close the parent dialog; special handling necessary. More...
#include <ADMButton.h>
Inherits ADMButton.

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 | |
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.
| ADMCloseDialogButton::ADMCloseDialogButton | ( | bool | bNotifyParent = false |
) | [inline] |
Default constructor.
| 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.
| control | Reference to the ADM button control |
Definition at line 117 of file ADMButton.h.
| bool ADMCloseDialogButton::OnClick | ( | ) | [protected, virtual] |
Called when the button is clicked.
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.
| 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.
1.6.1