Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Removed references to the boost library in remaining source and header files.
[xestiaab/.git] / source / contacteditor / frmContactEditor-Calendar.cpp
1 // frmContactEditor-Calendar.cpp - frmContactEditor Calendar 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 "frmContactEditorCalAdr.h"
22 void frmContactEditor::AddCalendarAddress( wxCommandEvent& event )
23 {
24     int intResult = 0;
25     
26     frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
27     frameCECalAdr->SetEditorMode(FALSE);
28     intResult = GetLastInt(&CalendarList);
29     frameCECalAdr->SetupPointers(&CalendarList,
30                                  &CalendarListAltID,
31                                  &CalendarListPID,
32                                  &CalendarListType,
33                                  &CalendarListTokens,
34                                  &CalendarListPref,
35                                  lboCalendarAddresses,
36                                  (intValueSeek));
37     frameCECalAdr->ShowModal();
38     delete frameCECalAdr;
39     frameCECalAdr = NULL;
40 }
42 void frmContactEditor::ModifyCalendarAddress( wxCommandEvent& event )
43 {
44     long longSelected = -1;
45     int intSelectedData = 0;
46     
47     if (!GetSelectedItem(lboCalendarAddresses,
48                          &longSelected,
49                          &intSelectedData)){
50         return;
51     }
52     
53     frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
54     frameCECalAdr->SetupPointers(&CalendarList,
55                                  &CalendarListAltID,
56                                  &CalendarListPID,
57                                  &CalendarListType,
58                                  &CalendarListTokens,
59                                  &CalendarListPref,
60                                  lboCalendarAddresses,
61                                  intSelectedData);
62     frameCECalAdr->SetEditorMode(TRUE);
63     frameCECalAdr->ShowModal();
64     delete frameCECalAdr;
65     frameCECalAdr = NULL;
66 }
68 void frmContactEditor::DeleteCalendarAddress( wxCommandEvent& event )
69 {
70     long longSelected = -1;
71     int intSelectedData = 0;
72     
73     if (!GetSelectedItem(lboCalendarAddresses,
74                          &longSelected,
75                          &intSelectedData)){
76         return;
77     }
78     
79     lboCalendarAddresses->DeleteItem(longSelected);
80     
81     DeleteMapData(intSelectedData, &CalendarList, &CalendarListAltID,
82                   &CalendarListPID, &CalendarListType, &CalendarListTokens,
83                   &CalendarListPref);
84     
85 }
87 void frmContactEditor::AddCalendarRequest( wxCommandEvent& event )
88 {
89     int intResult = 0;
90     
91     frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
92     frameCECalAdr->SetEditorMode(FALSE);
93     intResult = GetLastInt(&CalendarRequestList);
94     frameCECalAdr->SetupPointers(&CalendarRequestList,
95                                  &CalendarRequestListAltID,
96                                  &CalendarRequestListPID,
97                                  &CalendarRequestListType,
98                                  &CalendarRequestListTokens,
99                                  &CalendarRequestListPref,
100                                  lboCalendarRequestAddress,
101                                  (intValueSeek));
102     frameCECalAdr->ShowModal();
103     delete frameCECalAdr;
104     frameCECalAdr = NULL;
107 void frmContactEditor::ModifyCalendarRequest( wxCommandEvent& event )
109     long longSelected = -1;
110     int intSelectedData = 0;
111     
112     if (!GetSelectedItem(lboCalendarRequestAddress,
113                          &longSelected,
114                          &intSelectedData)){
115         return;
116     }
117     
118     frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
119     frameCECalAdr->SetupPointers(&CalendarList,
120                                  &CalendarRequestListAltID,
121                                  &CalendarRequestListPID,
122                                  &CalendarRequestListType,
123                                  &CalendarRequestListTokens,
124                                  &CalendarRequestListPref,
125                                  lboCalendarRequestAddress,
126                                  intSelectedData);
127     frameCECalAdr->SetEditorMode(TRUE);
128     frameCECalAdr->ShowModal();
129     delete frameCECalAdr;
130     frameCECalAdr = NULL;
133 void frmContactEditor::DeleteCalendarRequest( wxCommandEvent& event )
135     long longSelected = -1;
136     int intSelectedData = 0;
137     
138     if (!GetSelectedItem(lboCalendarRequestAddress,
139                          &longSelected,
140                          &intSelectedData)){
141         return;
142     }
143     
144     lboCalendarRequestAddress->DeleteItem(longSelected);
145     
146     DeleteMapData(intSelectedData, &CalendarRequestList,
147                   &CalendarRequestListAltID, &CalendarRequestListPID,
148                   &CalendarRequestListType, &CalendarRequestListTokens,
149                   &CalendarRequestListPref);
152 void frmContactEditor::AddFreeBusy( wxCommandEvent& event )
154     int intResult = 0;
155     
156     frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
157     frameCECalAdr->SetEditorMode(FALSE);
158     intResult = GetLastInt(&FreeBusyList);
159     frameCECalAdr->SetupPointers(&FreeBusyList,
160                                  &FreeBusyListAltID,
161                                  &FreeBusyListPID,
162                                  &FreeBusyListType,
163                                  &FreeBusyListTokens,
164                                  &FreeBusyListPref,
165                                  lboFreeBusyAddresses,
166                                  (intValueSeek));
167     frameCECalAdr->ShowModal();
168     delete frameCECalAdr;
169     frameCECalAdr = NULL;
172 void frmContactEditor::ModifyFreeBusy( wxCommandEvent& event )
174     long longSelected = -1;
175     int intSelectedData = 0;
176     
177     if (!GetSelectedItem(lboFreeBusyAddresses,
178                          &longSelected,
179                          &intSelectedData)){
180         return;
181     }
182     
183     frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
184     frameCECalAdr->SetupPointers(&FreeBusyList,
185                                  &FreeBusyListAltID,
186                                  &FreeBusyListPID,
187                                  &FreeBusyListType,
188                                  &FreeBusyListTokens,
189                                  &FreeBusyListPref,
190                                  lboFreeBusyAddresses,
191                                  intSelectedData);
192     frameCECalAdr->SetEditorMode(TRUE);
193     frameCECalAdr->ShowModal();
194     delete frameCECalAdr;
195     frameCECalAdr = NULL;
198 void frmContactEditor::DeleteFreeBusy( wxCommandEvent& event )
200     long longSelected = -1;
201     int intSelectedData = 0;
202     
203     if (!GetSelectedItem(lboFreeBusyAddresses,
204                          &longSelected,
205                          &intSelectedData)){
206         return;
207     }
208     
209     lboFreeBusyAddresses->DeleteItem(longSelected);
210     
211     DeleteMapData(intSelectedData, &FreeBusyList, &FreeBusyListAltID,
212                   &FreeBusyListPID, &FreeBusyListType, &FreeBusyListTokens,
213                   &FreeBusyListPref);
214     
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