Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Indented code properly contacteditor/frmContactEditor-Picture.cpp
[xestiaab/.git] / source / contacteditor / frmContactEditor-Calendar.cpp
index def234c..c31fd92 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>
+
 #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);
     
 }
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