Main Page | Class List | File List | Class Members | Related Pages

WDS::CDlgEditProfile Class Reference

#include <dlgeditprofile.h>

Collaboration diagram for WDS::CDlgEditProfile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CDlgEditProfile (wxWindow *pParent, int type, CProfile *pProfile)

Detailed Description

The class CDlgEditProfile shows a dialog with which you can either create a new profile or edit an existing one.

Example:
 // to CREATE a new profile you have to use type=ADD
 CDlgEditProfile dlg( this, CDlgEditProfile::ADD, pProfile );
 dlg.Center();
 if( dlg.ShowModal() == wxID_OK ) {
     // add new profile to profile manager
     wxGetApp().GetProfileManager()->AddProfile( pProfile );
 } else {
     // failure, we have to delete it
     delete pProfile;
 }

 // To EDIT an existing profile use type=EDIT
 CDlgEditProfile dlg( this, CDlgEditProfile::EDIT, pProfile );
 dlg.Center();
 if ( dlg.ShowModal() == wxID_OK ) {
     // pProfile was probably edited
 }

Definition at line 61 of file dlgeditprofile.h.


Constructor & Destructor Documentation

WDS::CDlgEditProfile::CDlgEditProfile wxWindow *  pParent,
int  type,
CProfile pProfile
 

constructor

Parameters:
pParent parent window
type either ADD or EDIT
pProfile profile to edits

Definition at line 45 of file dlgeditprofile.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 18:20:27 2005 for WDSMap by  doxygen 1.3.9.1