X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Calendar.cpp;h=c31fd9243edf09277ef3db9071b02ff2d9f8916d;hb=6dcb2ed929d861d7ca12bd2f646392b2dfaa9a51;hp=def234c214d69ba26c9c40c86248f847c9e6bafd;hpb=5b2b2bcea1ab1dfd2b74589573cd16ee9326c4b9;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-Calendar.cpp b/source/contacteditor/frmContactEditor-Calendar.cpp index def234c..c31fd92 100644 --- a/source/contacteditor/frmContactEditor-Calendar.cpp +++ b/source/contacteditor/frmContactEditor-Calendar.cpp @@ -1,3 +1,21 @@ +// 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 + #include "frmContactEditor.h" #include "frmContactEditorCalAdr.h" @@ -7,13 +25,13 @@ void frmContactEditor::AddCalendarAddress( wxCommandEvent& event ) 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(); @@ -33,12 +51,12 @@ void frmContactEditor::ModifyCalendarAddress( wxCommandEvent& event ) } 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); @@ -60,9 +78,9 @@ void frmContactEditor::DeleteCalendarAddress( wxCommandEvent& event ) 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); } @@ -72,13 +90,13 @@ void frmContactEditor::AddCalendarRequest( wxCommandEvent& event ) 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(); @@ -98,12 +116,12 @@ void frmContactEditor::ModifyCalendarRequest( wxCommandEvent& event ) } 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); @@ -125,10 +143,10 @@ void frmContactEditor::DeleteCalendarRequest( wxCommandEvent& event ) 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 ) @@ -137,13 +155,13 @@ 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(); @@ -163,12 +181,12 @@ void frmContactEditor::ModifyFreeBusy( wxCommandEvent& event ) } 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); @@ -190,8 +208,8 @@ void frmContactEditor::DeleteFreeBusy( wxCommandEvent& event ) 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); }