:
frmContactEditorAddressADT( parent )
{
+
+ // Setup the window.
+
EditorMode = FALSE;
sliPriority->Disable();
+
}
void frmContactEditorAddress::InitAddressEditor( wxInitDialogEvent& event )
void frmContactEditorAddress::EnablePriority( wxCommandEvent& event )
{
+
+ // Enable/disable the priority setting.
+
if (chkUsePref->IsChecked()){
sliPriority->Enable();
} else {
sliPriority->Disable();
}
+
}
void frmContactEditorAddress::ProcessData( wxCommandEvent& event )
{
+ // Process data.
+
// Check what edit mode we are in and go from there.
long ListCtrlIndex;
void frmContactEditorAddress::CloseWindow( wxCommandEvent& event )
{
+
+ // Close the window.
+
this->Close();
+
}
void frmContactEditorAddress::CopyAddress( wxCommandEvent& event )
{
+ // Copy the address.
+
wxString MailingLabel;
bool AddComma = FALSE;
void frmContactEditorAddress::SetEditorMode( bool EditMode, SectionType SectType )
{
+
+ // Set the editor mode.
+
// Set if the editor is adding or editing an address.
// FALSE = Add
// TRUE = Edit
int AddressIndex )
{
+ // Setup the pointers.
+
AddressListPtr = AddressList;
AddressListTownPtr = AddressListTown;
AddressListCountyPtr = AddressListCounty;