Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added comments to describe functions for frmContactEditorCategory
[xestiaab/.git] / source / contacteditor / frmContactEditor-Reset.cpp
1 // frmContactEditor-Reset.cpp - frmContactEditor form reset subroutines.
2 //
3 // (c) 2012-2015 Xestia Software Development.
4 //
5 // This file is part of Xestia Address Book.
6 //
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.
10 //
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.
15 //
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(){
22     
23     // Clear out the GUI and values.
24     
25     // Clear GUI.
26     
27     txtTitle->Clear();
28     txtForename->Clear();
29     txtSurname->Clear();
30     txtOtherNames->Clear();
31     txtSuffix->Clear();
32     cmbDisplayAs->Clear();
33     cmbDisplayAs->SetValue(wxT(""));
34     wxDateTime EmptyDate;
35     wxBitmap EmptyBitmap;
36     dapAnniversary->SetValue(EmptyDate);
37     dapBirthday->SetValue(EmptyDate);
38     txtBirthday->Clear();
39     txtAnniversary->Clear();
40     cmbGender->Select(0);
41     txtGenderDescription->Clear();
42     
43     lboNicknames->DeleteAllItems();
44     lboHomeNicknames->DeleteAllItems();
45     lboBusinessNicknames->DeleteAllItems();
46     
47     lboAddresses->DeleteAllItems();
48     lboHomeAddresses->DeleteAllItems();
49     lboBusinessAddresses->DeleteAllItems();
50     
51     lboEmails->DeleteAllItems();
52     lboHomeEmails->DeleteAllItems();
53     lboBusinessEmail->DeleteAllItems();
54     
55     lboIM->DeleteAllItems();
56     lboHomeIM->DeleteAllItems();
57     lboBusinessIM->DeleteAllItems();
58     
59     lboTelephone->DeleteAllItems();
60     lboHomeTelephone->DeleteAllItems();
61     lboBusinessTelephone->DeleteAllItems();
62     
63     lboLanguages->DeleteAllItems();
64     lboHomeLanguages->DeleteAllItems();
65     lboBusinessLanguages->DeleteAllItems();
66     
67     lboTimezones->DeleteAllItems();
68     lboHomeTimezones->DeleteAllItems();
69     lboBusinessTimezones->DeleteAllItems();
70     
71     lboGeoposition->DeleteAllItems();
72     lboHomeGeoposition->DeleteAllItems();
73     lboBusinessGeoposition->DeleteAllItems();
74     
75     lboRelated->DeleteAllItems();
76     
77     lboWebsites->DeleteAllItems();
78     lboHomeWebsites->DeleteAllItems();
79     lboBusinessWebsites->DeleteAllItems();
80     
81     lboTitles->DeleteAllItems();
82     lboHomeTitles->DeleteAllItems();
83     lboBusinessTitles->DeleteAllItems();
84     
85     lboRoles->DeleteAllItems();
86     lboHomeRoles->DeleteAllItems();
87     lboBusinessRoles->DeleteAllItems();
88     
89     lboOrganisations->DeleteAllItems();
90     lboHomeOrganisations->DeleteAllItems();
91     lboBusinessOrganisations->DeleteAllItems();
92     
93     lboNotes->DeleteAllItems();
94     lboHomeNotes->DeleteAllItems();
95     lboBusinessNotes->DeleteAllItems();
96     
97     lboCategories->DeleteAllItems();
98     
99     lboGroups->DeleteAllItems();
100     
101     // Clear Picture
102     lboPictures->DeleteAllItems();
103     imgPicture->SetBitmap(EmptyBitmap);
104     
105     // Clear Logo
106     lboLogos->DeleteAllItems();
107     imgLogo->SetBitmap(EmptyBitmap);
108     
109     lboSounds->DeleteAllItems();
110     
111     lboCalendarAddresses->DeleteAllItems();
112     lboCalendarRequestAddress->DeleteAllItems();
113     lboFreeBusyAddresses->DeleteAllItems();
114     
115     lboKeys->DeleteAllItems();
116     
117     lboVendorNamespace->DeleteAllItems();
118     lboXToken->DeleteAllItems();
119     
120     // Clear values out.
121     
122     ContactEditorData.ClearData();
123     
124     wxSContactFilename.Clear();
125     boolContactModified = FALSE;
126     intSeekSelectedData = 0;
127     
128     /* Section for saving/loading data */
129     
130     ETag.Clear();
131     ETagOriginal.Clear();
132     
133     strValue.Clear();
134     strValue2.Clear();
135     strValue3.Clear();
136     
137     boolValue = FALSE;
138     boolValue2 = FALSE;
139     intValue = 0;
140     intValue2 = 0;
141     intValue3 = 0;
142     BinaryDataProc = FALSE;
143     EditMode = TRUE;
144     DialogOpen = FALSE;
145     
146     PictureImage = wxNullBitmap;
147     LogoImage = wxNullBitmap;
148     
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