Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added source code, headers and unit tests for the CALADR vCard property for ContactDa...
[xestiaab/.git] / source / contacteditor / frmContactEditor-Business.cpp
1 // frmContactEditorBusiness.cpp - frmContactEditor Business tab 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"
20 #include "frmContactEditorNickname.h"
21 #include "frmContactEditorAddress.h"
22 #include "frmContactEditorEmail.h"
23 #include "frmContactEditorIM.h"
24 #include "frmContactEditorTelephone.h"
25 #include "frmContactEditorLanguages.h"
26 #include "frmContactEditorTimezones.h"
27 #include "frmContactEditorRelated.h"
28 #include "frmContactEditorWebsites.h"
29 #include "frmContactEditorTitles.h"
30 #include "frmContactEditorRoles.h"
31 #include "frmContactEditorGeoposition.h"
32 #include "frmContactEditorGroups.h"
33 #include "frmContactEditorOrganisations.h"
34 #include "frmContactEditorNotes.h"
36 void frmContactEditor::AddBusinessNickname( wxCommandEvent& event )
37 {
38     int intResult = 0;
39     
40     frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
41     frameCENickname->SetEditorMode(FALSE, CE_WORK);
42     intResult = GetLastInt(&BusinessNicknamesList);
43     frameCENickname->SetupPointers(&BusinessNicknamesList,
44                                    &BusinessNicknamesListAltID,
45                                    &BusinessNicknamesListPID,
46                                    &BusinessNicknamesListType,
47                                    &BusinessNicknamesListLanguage,
48                                    &BusinessNicknamesListTokens,
49                                    &BusinessNicknamesListPref,
50                                    lboBusinessNicknames,
51                                    (intValueSeek));
52     frameCENickname->ShowModal();
53     delete frameCENickname;
54     frameCENickname = NULL;
55 }
57 void frmContactEditor::ModifyBusinessNickname( wxCommandEvent& event )
58 {
59     long longSelected = -1;
60     int intSelectedData = 0;
61     
62     if (!GetSelectedItem(lboBusinessNicknames,
63                          &longSelected,
64                          &intSelectedData)){
65         return;
66     }
67     
68     frmContactEditorNickname *frameCENickname = new frmContactEditorNickname ( this );
69     frameCENickname->SetupPointers(&BusinessNicknamesList,
70                                    &BusinessNicknamesListAltID,
71                                    &BusinessNicknamesListPID,
72                                    &BusinessNicknamesListType,
73                                    &BusinessNicknamesListLanguage,
74                                    &BusinessNicknamesListTokens,
75                                    &BusinessNicknamesListPref,
76                                    lboBusinessNicknames,
77                                    intSelectedData);
78     frameCENickname->SetEditorMode(TRUE, CE_WORK);
79     frameCENickname->ShowModal();
80     delete frameCENickname;
81     frameCENickname = NULL;
82 }
84 void frmContactEditor::DeleteBusinessNickname( wxCommandEvent& event )
85 {
86     long longSelected = -1;
87     int intSelectedData = 0;
88     
89     if (!GetSelectedItem(lboBusinessNicknames,
90                          &longSelected,
91                          &intSelectedData)){
92         return;
93     }
94     
95     lboBusinessNicknames->DeleteItem(longSelected);
96     
97     DeleteMapData(intSelectedData,
98                   &BusinessNicknamesList,
99                   &BusinessNicknamesListLanguage,
100                   &BusinessNicknamesListAltID,
101                   &BusinessNicknamesListPID,
102                   &BusinessNicknamesListTokens,
103                   &BusinessNicknamesListType,
104                   &BusinessNicknamesListPref);
107 void frmContactEditor::AddBusinessAddress( wxCommandEvent& event )
109     int intResult = 0;
110     
111     frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
112     frameCEAddress->SetEditorMode(FALSE, CE_WORK);
113     intResult = GetLastInt(&BusinessAddressList);
114     frameCEAddress->SetupPointers(&BusinessAddressList,
115                                   &BusinessAddressListTown,
116                                   &BusinessAddressListCounty,
117                                   &BusinessAddressListPostCode,
118                                   &BusinessAddressListCountry,
119                                   &BusinessAddressListLabel,
120                                   &BusinessAddressListLang,
121                                   &BusinessAddressListAltID,
122                                   &BusinessAddressListPID,
123                                   &BusinessAddressListTokens,
124                                   &BusinessAddressListGeo,
125                                   &BusinessAddressListTimezone,
126                                   &BusinessAddressListType,
127                                   &BusinessAddressListMediatype,
128                                   &BusinessAddressListPref,
129                                   lboBusinessAddresses,
130                                   (intValueSeek));
131     frameCEAddress->ShowModal();
132     delete frameCEAddress;
133     frameCEAddress = NULL;
136 void frmContactEditor::ModifyBusinessAddress( wxCommandEvent& event )
138     long longSelected = -1;
139     int intSelectedData = 0;
140     
141     if (!GetSelectedItem(lboBusinessAddresses,
142                          &longSelected,
143                          &intSelectedData)){
144         return;
145     }
146     
147     frmContactEditorAddress *frameCEAddress = new frmContactEditorAddress ( this );
148     frameCEAddress->SetupPointers(&BusinessAddressList,
149                                   &BusinessAddressListTown,
150                                   &BusinessAddressListCounty,
151                                   &BusinessAddressListPostCode,
152                                   &BusinessAddressListCountry,
153                                   &BusinessAddressListLabel,
154                                   &BusinessAddressListLang,
155                                   &BusinessAddressListAltID,
156                                   &BusinessAddressListPID,
157                                   &BusinessAddressListTokens,
158                                   &BusinessAddressListGeo,
159                                   &BusinessAddressListTimezone,
160                                   &BusinessAddressListType,
161                                   &BusinessAddressListMediatype,
162                                   &BusinessAddressListPref,
163                                   lboBusinessAddresses,
164                                   intSelectedData);
165     frameCEAddress->SetEditorMode(TRUE, CE_WORK);
166     frameCEAddress->ShowModal();
167     delete frameCEAddress;
168     frameCEAddress = NULL;
171 void frmContactEditor::DeleteBusinessAddress( wxCommandEvent& event )
173     long longSelected = -1;
174     int intSelectedData = 0;
175     
176     if (!GetSelectedItem(lboBusinessAddresses,
177                          &longSelected,
178                          &intSelectedData)){
179         return;
180     }
181     
182     lboBusinessAddresses->DeleteItem(longSelected);
183     DeleteMapData(intSelectedData, &BusinessAddressList,
184                   &BusinessAddressListTown, &BusinessAddressListCounty,
185                   &BusinessAddressListPostCode, &BusinessAddressListCountry,
186                   &BusinessAddressList, &BusinessAddressListLabel,
187                   &BusinessAddressListLang, &BusinessAddressListAltID,
188                   &BusinessAddressListPID, &BusinessAddressListTokens,
189                   &BusinessAddressListGeo, &BusinessAddressListTimezone,
190                   &BusinessAddressListType, &BusinessAddressListMediatype,
191                   &BusinessAddressListPref);
192     
195 void frmContactEditor::AddBusinessEmail( wxCommandEvent& event )
197     int intResult = 0;
198     
199     frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
200     frameCEEmail->SetEditorMode(FALSE, CE_WORK);
201     intResult = GetLastInt(&BusinessAddressList);
202     frameCEEmail->SetupPointers(&BusinessEmailList,
203                                 &BusinessEmailListAltID,
204                                 &BusinessEmailListPID,
205                                 &BusinessEmailListType,
206                                 &BusinessEmailListTokens,
207                                 &BusinessEmailListPref,
208                                 lboBusinessEmail,
209                                 (intValueSeek));
210     frameCEEmail->ShowModal();
211     delete frameCEEmail;
212     frameCEEmail = NULL;
215 void frmContactEditor::ModifyBusinessEmail( wxCommandEvent& event )
217     long longSelected = -1;
218     int intSelectedData = 0;
219     
220     if (!GetSelectedItem(lboBusinessEmail,
221                          &longSelected,
222                          &intSelectedData)){
223         return;
224     }
225     
226     frmContactEditorEmail *frameCEEmail = new frmContactEditorEmail ( this );
227     frameCEEmail->SetupPointers(&BusinessEmailList,
228                                 &BusinessEmailListAltID,
229                                 &BusinessEmailListPID,
230                                 &BusinessEmailListType,
231                                 &BusinessEmailListTokens,
232                                 &BusinessEmailListPref,
233                                 lboBusinessEmail,
234                                 intSelectedData);
235     frameCEEmail->SetEditorMode(TRUE, CE_WORK);
236     frameCEEmail->ShowModal();
237     delete frameCEEmail;
238     frameCEEmail = NULL;
241 void frmContactEditor::DeleteBusinessEmail( wxCommandEvent& event )
243     long longSelected = -1;
244     int intSelectedData = 0;
245     
246     if (!GetSelectedItem(lboBusinessEmail,
247                          &longSelected,
248                          &intSelectedData)){
249         return;
250     }
251     
252     lboBusinessEmail->DeleteItem(longSelected);
253     
254     DeleteMapData(intSelectedData, &BusinessEmailList,
255                   &BusinessEmailListAltID, &BusinessEmailListPID,
256                   &BusinessEmailListType, &BusinessEmailListTokens,
257                   &BusinessEmailListPref);
258     
261 void frmContactEditor::AddBusinessIM( wxCommandEvent& event )
263     int intResult = 0;
264     
265     frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
266     frameCEIM->SetEditorMode(FALSE, CE_WORK);
267     intResult = GetLastInt(&BusinessIMList);
268     frameCEIM->SetupPointers(&BusinessIMList,
269                              &BusinessIMListAltID,
270                              &BusinessIMListPID,
271                              &BusinessIMListType,
272                              &BusinessIMListTokens,
273                              &BusinessIMListMediatype,
274                              &BusinessIMListPref,
275                              lboBusinessIM,
276                              (intValueSeek));
277     frameCEIM->ShowModal();
278     delete frameCEIM;
279     frameCEIM = NULL;
282 void frmContactEditor::ModifyBusinessIM( wxCommandEvent& event )
284     long longSelected = -1;
285     int intSelectedData = 0;
286     
287     if (!GetSelectedItem(lboBusinessIM,
288                          &longSelected,
289                          &intSelectedData)){
290         return;
291     }
292     
293     frmContactEditorIM *frameCEIM = new frmContactEditorIM ( this );
294     frameCEIM->SetupPointers(&BusinessIMList,
295                              &BusinessIMListAltID,
296                              &BusinessIMListPID,
297                              &BusinessIMListType,
298                              &BusinessIMListTokens,
299                              &BusinessIMListMediatype,
300                              &BusinessIMListPref,
301                              lboBusinessIM,
302                              intSelectedData);
303     frameCEIM->SetEditorMode(TRUE, CE_WORK);
304     frameCEIM->ShowModal();
305     delete frameCEIM;
306     frameCEIM = NULL;
309 void frmContactEditor::DeleteBusinessIM( wxCommandEvent& event )
311     long longSelected = -1;
312     int intSelectedData = 0;
313     
314     if (!GetSelectedItem(lboBusinessIM,
315                          &longSelected,
316                          &intSelectedData)){
317         return;
318     }
319     
320     lboBusinessIM->DeleteItem(longSelected);
321     
322     DeleteMapData(intSelectedData, &BusinessIMList,
323                   &BusinessIMListAltID, &BusinessIMListPID,
324                   &BusinessIMListType, &BusinessIMListTokens,
325                   &BusinessIMListMediatype, &BusinessIMListPref);
326     
329 void frmContactEditor::AddBusinessTelephone( wxCommandEvent& event )
331     int intResult = 0;
332     
333     frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
334     frameCETel->SetEditorMode(FALSE, CE_WORK);
335     intResult = GetLastInt(&BusinessTelephoneList);
336     frameCETel->SetupPointers(&BusinessTelephoneList,
337                               &BusinessTelephoneListAltID,
338                               &BusinessTelephoneListPID,
339                               &BusinessTelephoneListType,
340                               &BusinessTelephoneListTokens,
341                               &BusinessTelephoneListPref,
342                               lboBusinessTelephone,
343                               (intValueSeek));
344     frameCETel->ShowModal();
345     delete frameCETel;
346     frameCETel = NULL;
349 void frmContactEditor::ModifyBusinessTelephone( wxCommandEvent& event )
351     long longSelected = -1;
352     int intSelectedData = 0;
353     
354     if (!GetSelectedItem(lboBusinessTelephone,
355                          &longSelected,
356                          &intSelectedData)){
357         return;
358     }
359     
360     frmContactEditorTelephone *frameCETel = new frmContactEditorTelephone ( this );
361     frameCETel->SetupPointers(&BusinessTelephoneList,
362                               &BusinessTelephoneListAltID,
363                               &BusinessTelephoneListPID,
364                               &BusinessTelephoneListType,
365                               &BusinessTelephoneListTokens,
366                               &BusinessTelephoneListPref,
367                               lboBusinessTelephone,
368                               intSelectedData);
369     frameCETel->SetEditorMode(TRUE, CE_WORK);
370     frameCETel->ShowModal();
371     delete frameCETel;
372     frameCETel = NULL;
375 void frmContactEditor::DeleteBusinessTelephone( wxCommandEvent& event )
377     long longSelected = -1;
378     int intSelectedData = 0;
379     
380     if (!GetSelectedItem(lboBusinessTelephone,
381                          &longSelected,
382                          &intSelectedData)){
383         return;
384     }
385     
386     lboBusinessTelephone->DeleteItem(longSelected);
387     
388     DeleteMapData(intSelectedData, &BusinessTelephoneList,
389                   &BusinessTelephoneListAltID, &BusinessTelephoneListPID,
390                   &BusinessTelephoneListType, &BusinessTelephoneListTokens,
391                   &BusinessTelephoneListPref);
392     
395 void frmContactEditor::AddBusinessLanguage( wxCommandEvent& event )
397     int intResult = 0;
398     
399     frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
400     frameCELang->SetEditorMode(FALSE, CE_WORK);
401     intResult = GetLastInt(&BusinessLanguageList);
402     frameCELang->SetupPointers(&BusinessLanguageList,
403                                &BusinessLanguageListAltID,
404                                &BusinessLanguageListPID,
405                                &BusinessLanguageListType,
406                                &BusinessLanguageListTokens,
407                                &BusinessLanguageListPref,
408                                lboBusinessLanguages,
409                                (intValueSeek));
410     frameCELang->ShowModal();
411     delete frameCELang;
412     frameCELang = NULL;
415 void frmContactEditor::ModifyBusinessLanguage( wxCommandEvent& event )
417     long longSelected = -1;
418     int intSelectedData = 0;
419     
420     if (!GetSelectedItem(lboBusinessLanguages,
421                          &longSelected,
422                          &intSelectedData)){
423         return;
424     }
425     
426     frmContactEditorLanguages *frameCELang = new frmContactEditorLanguages ( this );
427     frameCELang->SetupPointers(&BusinessLanguageList,
428                                &BusinessLanguageListAltID,
429                                &BusinessLanguageListPID,
430                                &BusinessLanguageListType,
431                                &BusinessLanguageListTokens,
432                                &BusinessLanguageListPref,
433                                lboBusinessLanguages,
434                                intSelectedData);
435     frameCELang->SetEditorMode(TRUE, CE_WORK);
436     frameCELang->ShowModal();
437     delete frameCELang;
438     frameCELang = NULL;
441 void frmContactEditor::DeleteBusinessLanguage( wxCommandEvent& event )
443     long longSelected = -1;
444     int intSelectedData = 0;
445     
446     if (!GetSelectedItem(lboBusinessLanguages,
447                          &longSelected,
448                          &intSelectedData)){
449         return;
450     }
451     
452     lboBusinessLanguages->DeleteItem(longSelected);
453     
454     DeleteMapData(intSelectedData, &BusinessLanguageList,
455                   &BusinessLanguageListAltID, &BusinessLanguageListPID,
456                   &BusinessLanguageListType, &BusinessLanguageListTokens,
457                   &BusinessLanguageListPref);
458     
461 void frmContactEditor::AddBusinessTimezone( wxCommandEvent& event )
463     int intResult = 0;
464     
465     frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
466     frameCETZ->SetEditorMode(FALSE, CE_WORK);
467     intResult = GetLastInt(&BusinessTZList);
468     frameCETZ->SetupPointers(&BusinessTZList,
469                              &BusinessTZListAltID,
470                              &BusinessTZListPID,
471                              &BusinessTZListType,
472                              &BusinessTZListTokens,
473                              &BusinessTZListMediatype,
474                              &BusinessTZListPref,
475                              lboBusinessTimezones,
476                              (intValueSeek));
477     frameCETZ->ShowModal();
478     delete frameCETZ;
479     frameCETZ = NULL;
482 void frmContactEditor::ModifyBusinessTimezone( wxCommandEvent& event )
484     long longSelected = -1;
485     int intSelectedData = 0;
486     
487     if (!GetSelectedItem(lboBusinessTimezones,
488                          &longSelected,
489                          &intSelectedData)){
490         return;
491     }
492     
493     frmContactEditorTimezones *frameCETZ = new frmContactEditorTimezones ( this );
494     frameCETZ->SetupPointers(&BusinessTZList,
495                              &BusinessTZListAltID,
496                              &BusinessTZListPID,
497                              &BusinessTZListType,
498                              &BusinessTZListTokens,
499                              &BusinessTZListMediatype,
500                              &BusinessTZListPref,
501                              lboBusinessTimezones,
502                              intSelectedData);
503     frameCETZ->SetEditorMode(TRUE, CE_WORK);
504     frameCETZ->ShowModal();
505     delete frameCETZ;
506     frameCETZ = NULL;
509 void frmContactEditor::DeleteBusinessTimezone( wxCommandEvent& event )
511     long longSelected = -1;
512     int intSelectedData = 0;
513     
514     if (!GetSelectedItem(lboBusinessTimezones,
515                          &longSelected,
516                          &intSelectedData)){
517         return;
518     }
519     
520     lboBusinessTimezones->DeleteItem(longSelected);
521     
522     DeleteMapData(intSelectedData, &BusinessTZList,
523                   &BusinessTZListAltID, &BusinessTZListPID,
524                   &BusinessTZListType, &BusinessTZListTokens,
525                   &BusinessTZListMediatype, &BusinessTZListPref);
526     
529 void frmContactEditor::AddBusinessGeoposition( wxCommandEvent& event )
531     int intResult = 0;
532     
533     frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
534     frameCEGeo->SetEditorMode(FALSE, CE_WORK);
535     intResult = GetLastInt(&BusinessGeographyList);
536     frameCEGeo->SetupPointers(&BusinessGeographyList,
537                               &BusinessGeographyListAltID,
538                               &BusinessGeographyListPID,
539                               &BusinessGeographyListType,
540                               &BusinessGeographyListTokens,
541                               &BusinessGeographyListMediatype,
542                               &BusinessGeographyListPref,
543                               lboBusinessGeoposition,
544                               (intValueSeek));
545     frameCEGeo->ShowModal();
546     delete frameCEGeo;
547     frameCEGeo = NULL;
550 void frmContactEditor::ModifyBusinessGeoposition( wxCommandEvent& event )
552     long longSelected = -1;
553     int intSelectedData = 0;
554     
555     if (!GetSelectedItem(lboBusinessGeoposition,
556                          &longSelected,
557                          &intSelectedData)){
558         return;
559     }
560     
561     frmContactEditorGeoposition *frameCEGeo = new frmContactEditorGeoposition ( this );
562     frameCEGeo->SetupPointers(&BusinessGeographyList,
563                               &BusinessGeographyListAltID,
564                               &BusinessGeographyListPID,
565                               &BusinessGeographyListType,
566                               &BusinessGeographyListTokens,
567                               &BusinessGeographyListMediatype,
568                               &BusinessGeographyListPref,
569                               lboBusinessGeoposition,
570                               intSelectedData);
571     frameCEGeo->SetEditorMode(TRUE, CE_WORK);
572     frameCEGeo->ShowModal();
573     delete frameCEGeo;
574     frameCEGeo = NULL;
577 void frmContactEditor::DeleteBusinessGeoposition( wxCommandEvent& event )
579     long longSelected = -1;
580     int intSelectedData = 0;
581     
582     if (!GetSelectedItem(lboBusinessGeoposition,
583                          &longSelected,
584                          &intSelectedData)){
585         return;
586     }
587     
588     lboBusinessGeoposition->DeleteItem(longSelected);
589     
590     DeleteMapData(intSelectedData, &BusinessGeographyList,
591                   &BusinessGeographyListAltID, &BusinessGeographyListPID,
592                   &BusinessGeographyListType, &BusinessGeographyListTokens,
593                   &BusinessGeographyListMediatype, &BusinessGeographyListPref);
594     
597 void frmContactEditor::AddBusinessWebsite( wxCommandEvent& event )
599     int intResult = 0;
600     
601     frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
602     frameCEWeb->SetEditorMode(FALSE, CE_WORK);
603     intResult = GetLastInt(&BusinessWebsiteList);
604     frameCEWeb->SetupPointers(&BusinessWebsiteList,
605                               &BusinessWebsiteListAltID,
606                               &BusinessWebsiteListPID,
607                               &BusinessWebsiteListType,
608                               &BusinessWebsiteListTokens,
609                               &BusinessWebsiteListMediatype,
610                               &BusinessWebsiteListPref,
611                               lboBusinessWebsites,
612                               (intValueSeek));
613     frameCEWeb->ShowModal();
614     delete frameCEWeb;
615     frameCEWeb = NULL;
618 void frmContactEditor::ModifyBusinessWebsite( wxCommandEvent& event )
620     long longSelected = -1;
621     int intSelectedData = 0;
622     
623     if (!GetSelectedItem(lboBusinessWebsites,
624                          &longSelected,
625                          &intSelectedData)){
626         return;
627     }
628     
629     frmContactEditorWebsites *frameCEWeb = new frmContactEditorWebsites ( this );
630     frameCEWeb->SetupPointers(&BusinessWebsiteList,
631                               &BusinessWebsiteListAltID,
632                               &BusinessWebsiteListPID,
633                               &BusinessWebsiteListType,
634                               &BusinessWebsiteListTokens,
635                               &BusinessWebsiteListMediatype,
636                               &BusinessWebsiteListPref,
637                               lboBusinessWebsites,
638                               intSelectedData);
639     frameCEWeb->SetEditorMode(TRUE, CE_WORK);
640     frameCEWeb->ShowModal();
641     delete frameCEWeb;
642     frameCEWeb = NULL;
645 void frmContactEditor::DeleteBusinessWebsite( wxCommandEvent& event )
647     long longSelected = -1;
648     int intSelectedData = 0;
649     
650     if (!GetSelectedItem(lboBusinessWebsites,
651                          &longSelected,
652                          &intSelectedData)){
653         return;
654     }
655     
656     lboBusinessWebsites->DeleteItem(longSelected);
657     
658     DeleteMapData(intSelectedData, &BusinessWebsiteList,
659                   &BusinessWebsiteListAltID, &BusinessWebsiteListPID,
660                   &BusinessWebsiteListType, &BusinessWebsiteListTokens,
661                   &BusinessWebsiteListMediatype, &BusinessWebsiteListPref);
662     
665 void frmContactEditor::AddBusinessTitle( wxCommandEvent& event )
667     int intResult = 0;
668     
669     frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
670     frameCETitle->SetEditorMode(FALSE, CE_WORK);
671     intResult = GetLastInt(&BusinessTitleList);
672     frameCETitle->SetupPointers(&BusinessTitleList,
673                                 &BusinessTitleListLanguage,
674                                 &BusinessTitleListAltID,
675                                 &BusinessTitleListPID,
676                                 &BusinessTitleListType,
677                                 &BusinessTitleListTokens,
678                                 &BusinessTitleListPref,
679                                 lboBusinessTitles,
680                                 (intValueSeek));
681     frameCETitle->ShowModal();
682     delete frameCETitle;
683     frameCETitle = NULL;
686 void frmContactEditor::ModifyBusinessTitle( wxCommandEvent& event )
688     long longSelected = -1;
689     int intSelectedData = 0;
690     
691     if (!GetSelectedItem(lboBusinessTitles,
692                          &longSelected,
693                          &intSelectedData)){
694         return;
695     }
696     
697     frmContactEditorTitles *frameCETitle = new frmContactEditorTitles ( this );
698     frameCETitle->SetupPointers(&BusinessTitleList,
699                                 &BusinessTitleListLanguage,
700                                 &BusinessTitleListAltID,
701                                 &BusinessTitleListPID,
702                                 &BusinessTitleListType,
703                                 &BusinessTitleListTokens,
704                                 &BusinessTitleListPref,
705                                 lboBusinessTitles,
706                                 intSelectedData);
707     frameCETitle->SetEditorMode(TRUE, CE_WORK);
708     frameCETitle->ShowModal();
709     delete frameCETitle;
710     frameCETitle = NULL;
713 void frmContactEditor::DeleteBusinessTitle( wxCommandEvent& event )
715     long longSelected = -1;
716     int intSelectedData = 0;
717     
718     if (!GetSelectedItem(lboBusinessTitles,
719                          &longSelected,
720                          &intSelectedData)){
721         return;
722     }
723     
724     lboTitles->DeleteItem(longSelected);
725     
726     DeleteMapData(intSelectedData, &BusinessTitleList,
727                   &BusinessTitleListLanguage, &BusinessTitleListAltID,
728                   &BusinessTitleListPID, &BusinessTitleListType,
729                   &BusinessTitleListTokens, &BusinessTitleListPref);
730     
733 void frmContactEditor::AddBusinessRole( wxCommandEvent& event )
735     int intResult = 0;
736     
737     frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
738     frameCERole->SetEditorMode(FALSE, CE_WORK);
739     intResult = GetLastInt(&BusinessRoleList);
740     frameCERole->SetupPointers(&BusinessRoleList,
741                                &BusinessRoleListLanguage,
742                                &BusinessRoleListAltID,
743                                &BusinessRoleListPID,
744                                &BusinessRoleListType,
745                                &BusinessRoleListTokens,
746                                &BusinessRoleListPref,
747                                lboBusinessRoles,
748                                (intValueSeek));
749     frameCERole->ShowModal();
750     delete frameCERole;
751     frameCERole = NULL;
754 void frmContactEditor::ModifyBusinessRole( wxCommandEvent& event )
756     long longSelected = -1;
757     int intSelectedData = 0;
758     
759     if (!GetSelectedItem(lboBusinessRoles,
760                          &longSelected,
761                          &intSelectedData)){
762         return;
763     }
764     
765     frmContactEditorRoles *frameCERole = new frmContactEditorRoles ( this );
766     frameCERole->SetupPointers(&BusinessRoleList,
767                                &BusinessRoleListLanguage,
768                                &BusinessRoleListAltID,
769                                &BusinessRoleListPID,
770                                &BusinessRoleListType,
771                                &BusinessRoleListTokens,
772                                &BusinessRoleListPref,
773                                lboBusinessRoles,
774                                intSelectedData);
775     frameCERole->SetEditorMode(TRUE, CE_WORK);
776     frameCERole->ShowModal();
777     delete frameCERole;
778     frameCERole = NULL;
781 void frmContactEditor::DeleteBusinessRole( wxCommandEvent& event )
783     long longSelected = -1;
784     int intSelectedData = 0;
785     
786     if (!GetSelectedItem(lboBusinessRoles,
787                          &longSelected,
788                          &intSelectedData)){
789         return;
790     }
791     
792     lboBusinessRoles->DeleteItem(longSelected);
793     
794     DeleteMapData(intSelectedData, &BusinessRoleList,
795                   &BusinessRoleListLanguage, &BusinessRoleListAltID,
796                   &BusinessRoleListPID, &BusinessRoleListType,
797                   &BusinessRoleListTokens, &BusinessRoleListPref);
798     
801 void frmContactEditor::AddBusinessOrganisation( wxCommandEvent& event )
803     int intResult = 0;
804     
805     frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
806     frameCEOrg->SetEditorMode(FALSE, CE_WORK);
807     intResult = GetLastInt(&GeneralOrganisationsList);
808     frameCEOrg->SetupPointers(&GeneralOrganisationsList,
809                               &BusinessOrganisationsListLanguage,
810                               &BusinessOrganisationsListSortAs,
811                               &BusinessOrganisationsListAltID,
812                               &BusinessOrganisationsListPID,
813                               &BusinessOrganisationsListType,
814                               &BusinessOrganisationsListTokens,
815                               &BusinessOrganisationsListPref,
816                               lboBusinessOrganisations,
817                               (intValueSeek));
818     frameCEOrg->ShowModal();
819     delete frameCEOrg;
820     frameCEOrg = NULL;
823 void frmContactEditor::ModifyBusinessOrganisation( wxCommandEvent& event )
825     long longSelected = -1;
826     int intSelectedData = 0;
827     
828     if (!GetSelectedItem(lboBusinessOrganisations,
829                          &longSelected,
830                          &intSelectedData)){
831         return;
832     }
833     
834     frmContactEditorOrganisations *frameCEOrg = new frmContactEditorOrganisations ( this );
835     frameCEOrg->SetupPointers(&BusinessOrganisationsList,
836                               &BusinessOrganisationsListLanguage,
837                               &BusinessOrganisationsListSortAs,
838                               &BusinessOrganisationsListAltID,
839                               &BusinessOrganisationsListPID,
840                               &BusinessOrganisationsListType,
841                               &BusinessOrganisationsListTokens,
842                               &BusinessOrganisationsListPref,
843                               lboBusinessOrganisations,
844                               intSelectedData);
845     frameCEOrg->SetEditorMode(TRUE, CE_WORK);
846     frameCEOrg->ShowModal();
847     delete frameCEOrg;
848     frameCEOrg = NULL;
851 void frmContactEditor::DeleteBusinessOrganisation( wxCommandEvent& event )
853     long longSelected = -1;
854     int intSelectedData = 0;
855     
856     if (!GetSelectedItem(lboBusinessOrganisations,
857                          &longSelected,
858                          &intSelectedData)){
859         return;
860     }
861     
862     lboBusinessOrganisations->DeleteItem(longSelected);
863     
864     DeleteMapData(intSelectedData, &BusinessOrganisationsList,
865                   &BusinessOrganisationsListLanguage, &BusinessOrganisationsListSortAs,
866                   &BusinessOrganisationsListAltID, &BusinessOrganisationsListPID,
867                   &BusinessOrganisationsListType, &BusinessOrganisationsListTokens,
868                   &BusinessOrganisationsListPref);
869     
872 void frmContactEditor::AddBusinessNote( wxCommandEvent& event )
874     int intResult = 0;
875     
876     frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
877     frameCENote->SetEditorMode(FALSE, CE_WORK);
878     intResult = GetLastInt(&BusinessNoteList);
879     frameCENote->SetupPointers(&BusinessNoteList,
880                                &BusinessNoteListLanguage,
881                                &BusinessNoteListAltID,
882                                &BusinessNoteListPID,
883                                &BusinessNoteListType,
884                                &BusinessNoteListTokens,
885                                &BusinessNoteListPref,
886                                lboBusinessNotes,
887                                (intValueSeek));
888     frameCENote->ShowModal();
889     delete frameCENote;
890     frameCENote = NULL;
893 void frmContactEditor::ModifyBusinessNote( wxCommandEvent& event )
895     long longSelected = -1;
896     int intSelectedData = 0;
897     
898     if (!GetSelectedItem(lboBusinessNotes,
899                          &longSelected,
900                          &intSelectedData)){
901         return;
902     }
903     
904     frmContactEditorNotes *frameCENote = new frmContactEditorNotes ( this );
905     frameCENote->SetupPointers(&BusinessNoteList,
906                                &BusinessNoteListLanguage,
907                                &BusinessNoteListAltID,
908                                &BusinessNoteListPID,
909                                &BusinessNoteListType,
910                                &BusinessNoteListTokens,
911                                &BusinessNoteListPref,
912                                lboBusinessNotes,
913                                intSelectedData);
914     frameCENote->SetEditorMode(TRUE, CE_WORK);
915     frameCENote->ShowModal();
916     delete frameCENote;
917     frameCENote = NULL;
920 void frmContactEditor::DeleteBusinessNote( wxCommandEvent& event )
922     long longSelected = -1;
923     int intSelectedData = 0;
924     
925     if (!GetSelectedItem(lboBusinessNotes,
926                          &longSelected,
927                          &intSelectedData)){
928         return;
929     }
930     
931     lboBusinessNotes->DeleteItem(longSelected);
932     
933     DeleteMapData(intSelectedData, &BusinessNoteList,
934                   &BusinessNoteListLanguage, &BusinessNoteListAltID,
935                   &BusinessNoteListPID, &BusinessNoteListType,
936                   &BusinessNoteListTokens, &BusinessNoteListPref);
937     
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