A 3D Dynamic Geometry Software

Calques 3D C++



CBCGPMacroList Class Reference

Inheritance diagram for CBCGPMacroList:

Inheritance graph
Collaboration diagram for CBCGPMacroList:

Collaboration graph

List of all members.


Detailed Description

Override of the CBCGPEditListBox in order to deal with user macro items.

Public Member Functions

 CBCGPMacroList (CPrefMacros *pParent)
 Default constructor.
virtual BOOL OnBeforeRemoveItem (int iItem)
 Used by the framework to receive notifications that a list box item is about to be removed from the list box.
virtual void OnEndEditLabel (LPCTSTR lpszLabel)
 Called by the framework when the the label of an item has been edited.
virtual void OnSelectionChanged ()
 Called by the framework when selection in the list control has changed.
virtual void OnBrowse ()
 Called by the framework when the user click on the browse button associated with a macro item.

Public Attributes

CPrefMacros * m_pParent
 A Pointer to the parent dialog box.
BOOL m_bBrowse
 TRUE if the browse dialog is launched, FALSE otherwise.

Constructor & Destructor Documentation

CBCGPMacroList ( CPrefMacros *  pParent  ) 

Default constructor.


Member Function Documentation

BOOL OnBeforeRemoveItem ( int  iItem  )  [virtual]

Used by the framework to receive notifications that a list box item is about to be removed from the list box.

Remove the corresponding user macro from the list and from the interface.

Parameters:
iItem The zero-based index of the item to remove
Returns:
TRUE is the item can be removed, FALSE otherwise

void OnEndEditLabel ( LPCTSTR  lpszLabel  )  [virtual]

Called by the framework when the the label of an item has been edited.

Fix to prevent automatic updating of the item when the browse dialog box is opened.

void OnSelectionChanged (  )  [virtual]

Called by the framework when selection in the list control has changed.

The interface in the Preference dialog is updated to reflect the information associated with the selected macro (ie name, file, description).

void OnBrowse (  )  [virtual]

Called by the framework when the user click on the browse button associated with a macro item.


Member Data Documentation

A Pointer to the parent dialog box.

BOOL m_bBrowse

TRUE if the browse dialog is launched, FALSE otherwise.