#include <dlgeditprofile.h>
Collaboration diagram for WDS::CDlgEditProfile:
Public Member Functions | |
CDlgEditProfile (wxWindow *pParent, int type, CProfile *pProfile) |
CDlgEditProfile
shows a dialog with which you can either create a new profile or edit an existing one. // 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
Definition at line 45 of file dlgeditprofile.cpp. |