From 4aac3d06b091ba414cc1fa30c39f1e414ac08e92 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 13:17:33 +0000 Subject: [PATCH] Indented code properly contacteditor/frmContactEditor-Reset.cpp --- .../contacteditor/frmContactEditor-Reset.cpp | 248 +++++++++--------- 1 file changed, 124 insertions(+), 124 deletions(-) diff --git a/source/contacteditor/frmContactEditor-Reset.cpp b/source/contacteditor/frmContactEditor-Reset.cpp index fd68b7b..67d6fe4 100644 --- a/source/contacteditor/frmContactEditor-Reset.cpp +++ b/source/contacteditor/frmContactEditor-Reset.cpp @@ -20,130 +20,130 @@ void frmContactEditor::ClearContact(){ - // Clear out the GUI and values. - - // Clear GUI. - - txtTitle->Clear(); - txtForename->Clear(); - txtSurname->Clear(); - txtOtherNames->Clear(); - txtSuffix->Clear(); - cmbDisplayAs->Clear(); - cmbDisplayAs->SetValue(wxT("")); - wxDateTime EmptyDate; - wxBitmap EmptyBitmap; - dapAnniversary->SetValue(EmptyDate); - dapBirthday->SetValue(EmptyDate); - txtBirthday->Clear(); - txtAnniversary->Clear(); - cmbGender->Select(0); - txtGenderDescription->Clear(); - - lboNicknames->DeleteAllItems(); - lboHomeNicknames->DeleteAllItems(); - lboBusinessNicknames->DeleteAllItems(); - - lboAddresses->DeleteAllItems(); - lboHomeAddresses->DeleteAllItems(); - lboBusinessAddresses->DeleteAllItems(); - - lboEmails->DeleteAllItems(); - lboHomeEmails->DeleteAllItems(); - lboBusinessEmail->DeleteAllItems(); - - lboIM->DeleteAllItems(); - lboHomeIM->DeleteAllItems(); - lboBusinessIM->DeleteAllItems(); - - lboTelephone->DeleteAllItems(); - lboHomeTelephone->DeleteAllItems(); - lboBusinessTelephone->DeleteAllItems(); - - lboLanguages->DeleteAllItems(); - lboHomeLanguages->DeleteAllItems(); - lboBusinessLanguages->DeleteAllItems(); - - lboTimezones->DeleteAllItems(); - lboHomeTimezones->DeleteAllItems(); - lboBusinessTimezones->DeleteAllItems(); - - lboGeoposition->DeleteAllItems(); - lboHomeGeoposition->DeleteAllItems(); - lboBusinessGeoposition->DeleteAllItems(); - - lboRelated->DeleteAllItems(); - - lboWebsites->DeleteAllItems(); - lboHomeWebsites->DeleteAllItems(); - lboBusinessWebsites->DeleteAllItems(); - - lboTitles->DeleteAllItems(); - lboHomeTitles->DeleteAllItems(); - lboBusinessTitles->DeleteAllItems(); - - lboRoles->DeleteAllItems(); - lboHomeRoles->DeleteAllItems(); - lboBusinessRoles->DeleteAllItems(); - - lboOrganisations->DeleteAllItems(); - lboHomeOrganisations->DeleteAllItems(); - lboBusinessOrganisations->DeleteAllItems(); - - lboNotes->DeleteAllItems(); - lboHomeNotes->DeleteAllItems(); - lboBusinessNotes->DeleteAllItems(); - - lboCategories->DeleteAllItems(); - - lboGroups->DeleteAllItems(); - - // Clear Picture - lboPictures->DeleteAllItems(); - imgPicture->SetBitmap(EmptyBitmap); - - // Clear Logo - lboLogos->DeleteAllItems(); - imgLogo->SetBitmap(EmptyBitmap); - - lboSounds->DeleteAllItems(); - - lboCalendarAddresses->DeleteAllItems(); - lboCalendarRequestAddress->DeleteAllItems(); - lboFreeBusyAddresses->DeleteAllItems(); - - lboKeys->DeleteAllItems(); - - lboVendorNamespace->DeleteAllItems(); - lboXToken->DeleteAllItems(); - - // Clear values out. - - ContactEditorData.ClearData(); - - wxSContactFilename.Clear(); - boolContactModified = FALSE; - intSeekSelectedData = 0; - - /* Section for saving/loading data */ - - ETag.Clear(); - ETagOriginal.Clear(); - - strValue.Clear(); - strValue2.Clear(); - strValue3.Clear(); - - boolValue = FALSE; - boolValue2 = FALSE; - intValue = 0; - intValue2 = 0; - intValue3 = 0; - BinaryDataProc = FALSE; - EditMode = TRUE; - DialogOpen = FALSE; + // Clear out the GUI and values. + + // Clear GUI. + + txtTitle->Clear(); + txtForename->Clear(); + txtSurname->Clear(); + txtOtherNames->Clear(); + txtSuffix->Clear(); + cmbDisplayAs->Clear(); + cmbDisplayAs->SetValue(wxT("")); + wxDateTime EmptyDate; + wxBitmap EmptyBitmap; + dapAnniversary->SetValue(EmptyDate); + dapBirthday->SetValue(EmptyDate); + txtBirthday->Clear(); + txtAnniversary->Clear(); + cmbGender->Select(0); + txtGenderDescription->Clear(); + + lboNicknames->DeleteAllItems(); + lboHomeNicknames->DeleteAllItems(); + lboBusinessNicknames->DeleteAllItems(); + + lboAddresses->DeleteAllItems(); + lboHomeAddresses->DeleteAllItems(); + lboBusinessAddresses->DeleteAllItems(); + + lboEmails->DeleteAllItems(); + lboHomeEmails->DeleteAllItems(); + lboBusinessEmail->DeleteAllItems(); + + lboIM->DeleteAllItems(); + lboHomeIM->DeleteAllItems(); + lboBusinessIM->DeleteAllItems(); + + lboTelephone->DeleteAllItems(); + lboHomeTelephone->DeleteAllItems(); + lboBusinessTelephone->DeleteAllItems(); + + lboLanguages->DeleteAllItems(); + lboHomeLanguages->DeleteAllItems(); + lboBusinessLanguages->DeleteAllItems(); + + lboTimezones->DeleteAllItems(); + lboHomeTimezones->DeleteAllItems(); + lboBusinessTimezones->DeleteAllItems(); + + lboGeoposition->DeleteAllItems(); + lboHomeGeoposition->DeleteAllItems(); + lboBusinessGeoposition->DeleteAllItems(); + + lboRelated->DeleteAllItems(); + + lboWebsites->DeleteAllItems(); + lboHomeWebsites->DeleteAllItems(); + lboBusinessWebsites->DeleteAllItems(); + + lboTitles->DeleteAllItems(); + lboHomeTitles->DeleteAllItems(); + lboBusinessTitles->DeleteAllItems(); + + lboRoles->DeleteAllItems(); + lboHomeRoles->DeleteAllItems(); + lboBusinessRoles->DeleteAllItems(); + + lboOrganisations->DeleteAllItems(); + lboHomeOrganisations->DeleteAllItems(); + lboBusinessOrganisations->DeleteAllItems(); + + lboNotes->DeleteAllItems(); + lboHomeNotes->DeleteAllItems(); + lboBusinessNotes->DeleteAllItems(); + + lboCategories->DeleteAllItems(); + + lboGroups->DeleteAllItems(); + + // Clear Picture + lboPictures->DeleteAllItems(); + imgPicture->SetBitmap(EmptyBitmap); + + // Clear Logo + lboLogos->DeleteAllItems(); + imgLogo->SetBitmap(EmptyBitmap); + + lboSounds->DeleteAllItems(); + + lboCalendarAddresses->DeleteAllItems(); + lboCalendarRequestAddress->DeleteAllItems(); + lboFreeBusyAddresses->DeleteAllItems(); + + lboKeys->DeleteAllItems(); + + lboVendorNamespace->DeleteAllItems(); + lboXToken->DeleteAllItems(); + + // Clear values out. + + ContactEditorData.ClearData(); + + wxSContactFilename.Clear(); + boolContactModified = FALSE; + intSeekSelectedData = 0; + + /* Section for saving/loading data */ + + ETag.Clear(); + ETagOriginal.Clear(); + + strValue.Clear(); + strValue2.Clear(); + strValue3.Clear(); + + boolValue = FALSE; + boolValue2 = FALSE; + intValue = 0; + intValue2 = 0; + intValue3 = 0; + BinaryDataProc = FALSE; + EditMode = TRUE; + DialogOpen = FALSE; - PictureImage = wxNullBitmap; - LogoImage = wxNullBitmap; + PictureImage = wxNullBitmap; + LogoImage = wxNullBitmap; } -- 2.39.5