Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Indented code properly contacteditor/frmContactEditor-Reset.cpp
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 13 Mar 2016 13:17:33 +0000 (13:17 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 13 Mar 2016 13:17:33 +0000 (13:17 +0000)
source/contacteditor/frmContactEditor-Reset.cpp

index fd68b7b..67d6fe4 100644 (file)
 
 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;
     
 }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy