FX::FXApplyResetList Class Reference

#include <FXPrimaryButton.h>

Inheritance diagram for FX::FXApplyResetList:

Inheritance graph
[legend]

List of all members.


Detailed Description

A list of widgets which understand the SEL_APPLY and SEL_RESET commands.

This is a convenience class to make dispatching the above messages easier. It's easiest to use by multiple inheritance and you simply supply the address of onApply() and onReset() in your FXDEFMAP(). Adding apply/reset capable widgets is especially easy with the templated addApplyReset() like as follows:

FXERRHM(tdata=addApplyReset(new TTaggedDataBox(this)));

See also:
FX::FXPrimaryButton

Public Member Functions

long onApply (FXObject *, FXSelector, void *)
long onReset (FXObject *, FXSelector, void *)
template<typename type>
type * addApplyReset (type *widget)
void removeApplyReset (FXWindow *widget)
void clearApplyReset ()

Member Function Documentation

long FX::FXApplyResetList::onApply ( FXObject ,
FXSelector  ,
void *   
)

Dispatches the SEL_APPLY command to all widgets in its list.

long FX::FXApplyResetList::onReset ( FXObject ,
FXSelector  ,
void *   
)

Dispatches the SEL_RESET command to all widgets in its list.

template<typename type>
type* FX::FXApplyResetList::addApplyReset ( type *  widget  )  [inline]

Adds a widget to the list.

void FX::FXApplyResetList::removeApplyReset ( FXWindow widget  )  [inline]

Removes a widget from the list.

void FX::FXApplyResetList::clearApplyReset (  )  [inline]

Clears the apply/reset list.

Referenced by FX::FXHandedDialog::FXHandedDialog().


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

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:09:27 2008 for TnFOX by doxygen v1.5.6