1 // frmContactEditor-Reset.cpp - frmContactEditor form reset subroutines.
3 // (c) 2012-2015 Xestia Software Development.
5 // This file is part of Xestia Address Book.
7 // Xestia Address Book is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
11 // Xestia Address Book is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
19 #include "frmContactEditor.h"
21 void frmContactEditor::ClearContact(){
23 // Clear out the GUI and values.
30 txtOtherNames->Clear();
32 cmbDisplayAs->Clear();
33 cmbDisplayAs->SetValue(wxT(""));
36 dapAnniversary->SetValue(EmptyDate);
37 dapBirthday->SetValue(EmptyDate);
39 txtAnniversary->Clear();
41 txtGenderDescription->Clear();
43 lboNicknames->DeleteAllItems();
44 lboHomeNicknames->DeleteAllItems();
45 lboBusinessNicknames->DeleteAllItems();
47 lboAddresses->DeleteAllItems();
48 lboHomeAddresses->DeleteAllItems();
49 lboBusinessAddresses->DeleteAllItems();
51 lboEmails->DeleteAllItems();
52 lboHomeEmails->DeleteAllItems();
53 lboBusinessEmail->DeleteAllItems();
55 lboIM->DeleteAllItems();
56 lboHomeIM->DeleteAllItems();
57 lboBusinessIM->DeleteAllItems();
59 lboTelephone->DeleteAllItems();
60 lboHomeTelephone->DeleteAllItems();
61 lboBusinessTelephone->DeleteAllItems();
63 lboLanguages->DeleteAllItems();
64 lboHomeLanguages->DeleteAllItems();
65 lboBusinessLanguages->DeleteAllItems();
67 lboTimezones->DeleteAllItems();
68 lboHomeTimezones->DeleteAllItems();
69 lboBusinessTimezones->DeleteAllItems();
71 lboGeoposition->DeleteAllItems();
72 lboHomeGeoposition->DeleteAllItems();
73 lboBusinessGeoposition->DeleteAllItems();
75 lboRelated->DeleteAllItems();
77 lboWebsites->DeleteAllItems();
78 lboHomeWebsites->DeleteAllItems();
79 lboBusinessWebsites->DeleteAllItems();
81 lboTitles->DeleteAllItems();
82 lboHomeTitles->DeleteAllItems();
83 lboBusinessTitles->DeleteAllItems();
85 lboRoles->DeleteAllItems();
86 lboHomeRoles->DeleteAllItems();
87 lboBusinessRoles->DeleteAllItems();
89 lboOrganisations->DeleteAllItems();
90 lboHomeOrganisations->DeleteAllItems();
91 lboBusinessOrganisations->DeleteAllItems();
93 lboNotes->DeleteAllItems();
94 lboHomeNotes->DeleteAllItems();
95 lboBusinessNotes->DeleteAllItems();
97 lboCategories->DeleteAllItems();
99 lboGroups->DeleteAllItems();
102 lboPictures->DeleteAllItems();
103 imgPicture->SetBitmap(EmptyBitmap);
106 lboLogos->DeleteAllItems();
107 imgLogo->SetBitmap(EmptyBitmap);
109 lboSounds->DeleteAllItems();
111 lboCalendarAddresses->DeleteAllItems();
112 lboCalendarRequestAddress->DeleteAllItems();
113 lboFreeBusyAddresses->DeleteAllItems();
115 lboKeys->DeleteAllItems();
117 lboVendorNamespace->DeleteAllItems();
118 lboXToken->DeleteAllItems();
122 ContactEditorData.ClearData();
124 wxSContactFilename.Clear();
125 boolContactModified = FALSE;
126 intSeekSelectedData = 0;
128 /* Section for saving/loading data */
131 ETagOriginal.Clear();
142 BinaryDataProc = FALSE;
146 PictureImage = wxNullBitmap;
147 LogoImage = wxNullBitmap;