+// frmContactEditor-Calendar.cpp - frmContactEditor Calendar tab subroutines.
+//
+// (c) 2012-2016 Xestia Software Development.
+//
+// This file is part of Xestia Address Book.
+//
+// Xestia Address Book is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by the
+// Free Software Foundation, version 3 of the license.
+//
+// Xestia Address Book is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
+
#include "frmContactEditor.h"
#include "frmContactEditorCalAdr.h"
frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
frameCECalAdr->SetEditorMode(FALSE);
- intResult = GetLastInt(&CalendarList);
- frameCECalAdr->SetupPointers(&CalendarList,
- &CalendarListAltID,
- &CalendarListPID,
- &CalendarListType,
- &CalendarListTokens,
- &CalendarListPref,
+ intResult = GetLastInt(&ContactEditorData.CalendarList);
+ frameCECalAdr->SetupPointers(&ContactEditorData.CalendarList,
+ &ContactEditorData.CalendarListAltID,
+ &ContactEditorData.CalendarListPID,
+ &ContactEditorData.CalendarListType,
+ &ContactEditorData.CalendarListTokens,
+ &ContactEditorData.CalendarListPref,
lboCalendarAddresses,
(intValueSeek));
frameCECalAdr->ShowModal();
}
frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
- frameCECalAdr->SetupPointers(&CalendarList,
- &CalendarListAltID,
- &CalendarListPID,
- &CalendarListType,
- &CalendarListTokens,
- &CalendarListPref,
+ frameCECalAdr->SetupPointers(&ContactEditorData.CalendarList,
+ &ContactEditorData.CalendarListAltID,
+ &ContactEditorData.CalendarListPID,
+ &ContactEditorData.CalendarListType,
+ &ContactEditorData.CalendarListTokens,
+ &ContactEditorData.CalendarListPref,
lboCalendarAddresses,
intSelectedData);
frameCECalAdr->SetEditorMode(TRUE);
lboCalendarAddresses->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &CalendarList, &CalendarListAltID,
- &CalendarListPID, &CalendarListType, &CalendarListTokens,
- &CalendarListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.CalendarList, &ContactEditorData.CalendarListAltID,
+ &ContactEditorData.CalendarListPID, &ContactEditorData.CalendarListType, &ContactEditorData.CalendarListTokens,
+ &ContactEditorData.CalendarListPref);
}
frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
frameCECalAdr->SetEditorMode(FALSE);
- intResult = GetLastInt(&CalendarRequestList);
- frameCECalAdr->SetupPointers(&CalendarRequestList,
- &CalendarRequestListAltID,
- &CalendarRequestListPID,
- &CalendarRequestListType,
- &CalendarRequestListTokens,
- &CalendarRequestListPref,
+ intResult = GetLastInt(&ContactEditorData.CalendarRequestList);
+ frameCECalAdr->SetupPointers(&ContactEditorData.CalendarRequestList,
+ &ContactEditorData.CalendarRequestListAltID,
+ &ContactEditorData.CalendarRequestListPID,
+ &ContactEditorData.CalendarRequestListType,
+ &ContactEditorData.CalendarRequestListTokens,
+ &ContactEditorData.CalendarRequestListPref,
lboCalendarRequestAddress,
(intValueSeek));
frameCECalAdr->ShowModal();
}
frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
- frameCECalAdr->SetupPointers(&CalendarList,
- &CalendarRequestListAltID,
- &CalendarRequestListPID,
- &CalendarRequestListType,
- &CalendarRequestListTokens,
- &CalendarRequestListPref,
+ frameCECalAdr->SetupPointers(&ContactEditorData.CalendarRequestList,
+ &ContactEditorData.CalendarRequestListAltID,
+ &ContactEditorData.CalendarRequestListPID,
+ &ContactEditorData.CalendarRequestListType,
+ &ContactEditorData.CalendarRequestListTokens,
+ &ContactEditorData.CalendarRequestListPref,
lboCalendarRequestAddress,
intSelectedData);
frameCECalAdr->SetEditorMode(TRUE);
lboCalendarRequestAddress->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &CalendarRequestList,
- &CalendarRequestListAltID, &CalendarRequestListPID,
- &CalendarRequestListType, &CalendarRequestListTokens,
- &CalendarRequestListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.CalendarRequestList,
+ &ContactEditorData.CalendarRequestListAltID, &ContactEditorData.CalendarRequestListPID,
+ &ContactEditorData.CalendarRequestListType, &ContactEditorData.CalendarRequestListTokens,
+ &ContactEditorData.CalendarRequestListPref);
}
void frmContactEditor::AddFreeBusy( wxCommandEvent& event )
frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
frameCECalAdr->SetEditorMode(FALSE);
- intResult = GetLastInt(&FreeBusyList);
- frameCECalAdr->SetupPointers(&FreeBusyList,
- &FreeBusyListAltID,
- &FreeBusyListPID,
- &FreeBusyListType,
- &FreeBusyListTokens,
- &FreeBusyListPref,
+ intResult = GetLastInt(&ContactEditorData.FreeBusyList);
+ frameCECalAdr->SetupPointers(&ContactEditorData.FreeBusyList,
+ &ContactEditorData.FreeBusyListAltID,
+ &ContactEditorData.FreeBusyListPID,
+ &ContactEditorData.FreeBusyListType,
+ &ContactEditorData.FreeBusyListTokens,
+ &ContactEditorData.FreeBusyListPref,
lboFreeBusyAddresses,
(intValueSeek));
frameCECalAdr->ShowModal();
}
frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
- frameCECalAdr->SetupPointers(&FreeBusyList,
- &FreeBusyListAltID,
- &FreeBusyListPID,
- &FreeBusyListType,
- &FreeBusyListTokens,
- &FreeBusyListPref,
+ frameCECalAdr->SetupPointers(&ContactEditorData.FreeBusyList,
+ &ContactEditorData.FreeBusyListAltID,
+ &ContactEditorData.FreeBusyListPID,
+ &ContactEditorData.FreeBusyListType,
+ &ContactEditorData.FreeBusyListTokens,
+ &ContactEditorData.FreeBusyListPref,
lboFreeBusyAddresses,
intSelectedData);
frameCECalAdr->SetEditorMode(TRUE);
lboFreeBusyAddresses->DeleteItem(longSelected);
- DeleteMapData(intSelectedData, &FreeBusyList, &FreeBusyListAltID,
- &FreeBusyListPID, &FreeBusyListType, &FreeBusyListTokens,
- &FreeBusyListPref);
+ DeleteMapData(intSelectedData, &ContactEditorData.FreeBusyList, &ContactEditorData.FreeBusyListAltID,
+ &ContactEditorData.FreeBusyListPID, &ContactEditorData.FreeBusyListType, &ContactEditorData.FreeBusyListTokens,
+ &ContactEditorData.FreeBusyListPref);
}