Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Indented code properly contacteditor/frmContactEditor-Calendar.cpp
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 13 Mar 2016 16:08:16 +0000 (16:08 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 13 Mar 2016 16:08:16 +0000 (16:08 +0000)
source/contacteditor/frmContactEditor-Calendar.cpp

index c31fd92..95235c1 100644 (file)
 
 void frmContactEditor::AddCalendarAddress( wxCommandEvent& event )
 {
-    int intResult = 0;
-    
-    frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
-    frameCECalAdr->SetEditorMode(FALSE);
-    intResult = GetLastInt(&ContactEditorData.CalendarList);
-    frameCECalAdr->SetupPointers(&ContactEditorData.CalendarList,
-                                 &ContactEditorData.CalendarListAltID,
-                                 &ContactEditorData.CalendarListPID,
-                                 &ContactEditorData.CalendarListType,
-                                 &ContactEditorData.CalendarListTokens,
-                                 &ContactEditorData.CalendarListPref,
-                                 lboCalendarAddresses,
-                                 (intValueSeek));
-    frameCECalAdr->ShowModal();
-    delete frameCECalAdr;
-    frameCECalAdr = NULL;
+
+       int intResult = 0;
+    
+       frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
+       frameCECalAdr->SetEditorMode(FALSE);
+       intResult = GetLastInt(&ContactEditorData.CalendarList);
+       frameCECalAdr->SetupPointers(&ContactEditorData.CalendarList,
+               &ContactEditorData.CalendarListAltID,
+               &ContactEditorData.CalendarListPID,
+               &ContactEditorData.CalendarListType,
+               &ContactEditorData.CalendarListTokens,
+               &ContactEditorData.CalendarListPref,
+               lboCalendarAddresses,
+               (intValueSeek));
+       frameCECalAdr->ShowModal();
+       delete frameCECalAdr;
+       frameCECalAdr = NULL;
+       
 }
 
 void frmContactEditor::ModifyCalendarAddress( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
-    
-    if (!GetSelectedItem(lboCalendarAddresses,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
-    
-    frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
-    frameCECalAdr->SetupPointers(&ContactEditorData.CalendarList,
-                                 &ContactEditorData.CalendarListAltID,
-                                 &ContactEditorData.CalendarListPID,
-                                 &ContactEditorData.CalendarListType,
-                                 &ContactEditorData.CalendarListTokens,
-                                 &ContactEditorData.CalendarListPref,
-                                 lboCalendarAddresses,
-                                 intSelectedData);
-    frameCECalAdr->SetEditorMode(TRUE);
-    frameCECalAdr->ShowModal();
-    delete frameCECalAdr;
-    frameCECalAdr = NULL;
+
+       long longSelected = -1;
+       int intSelectedData = 0;
+    
+       if (!GetSelectedItem(lboCalendarAddresses,
+               &longSelected,
+               &intSelectedData)){
+               
+               return;
+               
+       }
+    
+       frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
+       frameCECalAdr->SetupPointers(&ContactEditorData.CalendarList,
+               &ContactEditorData.CalendarListAltID,
+               &ContactEditorData.CalendarListPID,
+               &ContactEditorData.CalendarListType,
+               &ContactEditorData.CalendarListTokens,
+               &ContactEditorData.CalendarListPref,
+               lboCalendarAddresses,
+               intSelectedData);
+       frameCECalAdr->SetEditorMode(TRUE);
+       frameCECalAdr->ShowModal();
+       delete frameCECalAdr;
+       frameCECalAdr = NULL;
+       
 }
 
 void frmContactEditor::DeleteCalendarAddress( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
+
+       long longSelected = -1;
+       int intSelectedData = 0;
     
-    if (!GetSelectedItem(lboCalendarAddresses,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
+       if (!GetSelectedItem(lboCalendarAddresses,
+               &longSelected,
+               &intSelectedData)){
+               
+               return;
+               
+       }
     
-    lboCalendarAddresses->DeleteItem(longSelected);
+       lboCalendarAddresses->DeleteItem(longSelected);
     
-    DeleteMapData(intSelectedData, &ContactEditorData.CalendarList, &ContactEditorData.CalendarListAltID,
-                  &ContactEditorData.CalendarListPID, &ContactEditorData.CalendarListType, &ContactEditorData.CalendarListTokens,
-                  &ContactEditorData.CalendarListPref);
+       DeleteMapData(intSelectedData, &ContactEditorData.CalendarList, &ContactEditorData.CalendarListAltID,
+               &ContactEditorData.CalendarListPID, &ContactEditorData.CalendarListType, &ContactEditorData.CalendarListTokens,
+               &ContactEditorData.CalendarListPref);
     
 }
 
 void frmContactEditor::AddCalendarRequest( wxCommandEvent& event )
 {
-    int intResult = 0;
-    
-    frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
-    frameCECalAdr->SetEditorMode(FALSE);
-    intResult = GetLastInt(&ContactEditorData.CalendarRequestList);
-    frameCECalAdr->SetupPointers(&ContactEditorData.CalendarRequestList,
-                                 &ContactEditorData.CalendarRequestListAltID,
-                                 &ContactEditorData.CalendarRequestListPID,
-                                 &ContactEditorData.CalendarRequestListType,
-                                 &ContactEditorData.CalendarRequestListTokens,
-                                 &ContactEditorData.CalendarRequestListPref,
-                                 lboCalendarRequestAddress,
-                                 (intValueSeek));
-    frameCECalAdr->ShowModal();
-    delete frameCECalAdr;
-    frameCECalAdr = NULL;
+
+       int intResult = 0;
+    
+       frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
+       frameCECalAdr->SetEditorMode(FALSE);
+       intResult = GetLastInt(&ContactEditorData.CalendarRequestList);
+       frameCECalAdr->SetupPointers(&ContactEditorData.CalendarRequestList,
+               &ContactEditorData.CalendarRequestListAltID,
+               &ContactEditorData.CalendarRequestListPID,
+               &ContactEditorData.CalendarRequestListType,
+               &ContactEditorData.CalendarRequestListTokens,
+               &ContactEditorData.CalendarRequestListPref,
+               lboCalendarRequestAddress,
+               (intValueSeek));
+       frameCECalAdr->ShowModal();
+       delete frameCECalAdr;
+       frameCECalAdr = NULL;
+       
 }
 
 void frmContactEditor::ModifyCalendarRequest( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
-    
-    if (!GetSelectedItem(lboCalendarRequestAddress,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
-    
-    frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
-    frameCECalAdr->SetupPointers(&ContactEditorData.CalendarRequestList,
-                                 &ContactEditorData.CalendarRequestListAltID,
-                                 &ContactEditorData.CalendarRequestListPID,
-                                 &ContactEditorData.CalendarRequestListType,
-                                 &ContactEditorData.CalendarRequestListTokens,
-                                 &ContactEditorData.CalendarRequestListPref,
-                                 lboCalendarRequestAddress,
-                                 intSelectedData);
-    frameCECalAdr->SetEditorMode(TRUE);
-    frameCECalAdr->ShowModal();
-    delete frameCECalAdr;
-    frameCECalAdr = NULL;
+
+       long longSelected = -1;
+       int intSelectedData = 0;
+    
+       if (!GetSelectedItem(lboCalendarRequestAddress,
+               &longSelected,
+               &intSelectedData)){
+               
+               return;
+               
+       }
+    
+       frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
+       frameCECalAdr->SetupPointers(&ContactEditorData.CalendarRequestList,
+               &ContactEditorData.CalendarRequestListAltID,
+               &ContactEditorData.CalendarRequestListPID,
+               &ContactEditorData.CalendarRequestListType,
+               &ContactEditorData.CalendarRequestListTokens,
+               &ContactEditorData.CalendarRequestListPref,
+               lboCalendarRequestAddress,
+               intSelectedData);
+       frameCECalAdr->SetEditorMode(TRUE);
+       frameCECalAdr->ShowModal();
+       delete frameCECalAdr;
+       frameCECalAdr = NULL;
+       
 }
 
 void frmContactEditor::DeleteCalendarRequest( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
-    
-    if (!GetSelectedItem(lboCalendarRequestAddress,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
-    
-    lboCalendarRequestAddress->DeleteItem(longSelected);
-    
-    DeleteMapData(intSelectedData, &ContactEditorData.CalendarRequestList,
-                  &ContactEditorData.CalendarRequestListAltID, &ContactEditorData.CalendarRequestListPID,
-                  &ContactEditorData.CalendarRequestListType, &ContactEditorData.CalendarRequestListTokens,
-                  &ContactEditorData.CalendarRequestListPref);
+
+       long longSelected = -1;
+       int intSelectedData = 0;
+    
+       if (!GetSelectedItem(lboCalendarRequestAddress,
+               &longSelected,
+               &intSelectedData)){
+               
+               return;
+               
+       }
+    
+       lboCalendarRequestAddress->DeleteItem(longSelected);
+    
+       DeleteMapData(intSelectedData, &ContactEditorData.CalendarRequestList,
+               &ContactEditorData.CalendarRequestListAltID, &ContactEditorData.CalendarRequestListPID,
+               &ContactEditorData.CalendarRequestListType, &ContactEditorData.CalendarRequestListTokens,
+               &ContactEditorData.CalendarRequestListPref);
+               
 }
 
 void frmContactEditor::AddFreeBusy( wxCommandEvent& event )
 {
-    int intResult = 0;
-    
-    frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
-    frameCECalAdr->SetEditorMode(FALSE);
-    intResult = GetLastInt(&ContactEditorData.FreeBusyList);
-    frameCECalAdr->SetupPointers(&ContactEditorData.FreeBusyList,
-                                 &ContactEditorData.FreeBusyListAltID,
-                                 &ContactEditorData.FreeBusyListPID,
-                                 &ContactEditorData.FreeBusyListType,
-                                 &ContactEditorData.FreeBusyListTokens,
-                                 &ContactEditorData.FreeBusyListPref,
-                                 lboFreeBusyAddresses,
-                                 (intValueSeek));
-    frameCECalAdr->ShowModal();
-    delete frameCECalAdr;
-    frameCECalAdr = NULL;
+
+       int intResult = 0;
+    
+       frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
+       frameCECalAdr->SetEditorMode(FALSE);
+       intResult = GetLastInt(&ContactEditorData.FreeBusyList);
+       frameCECalAdr->SetupPointers(&ContactEditorData.FreeBusyList,
+               &ContactEditorData.FreeBusyListAltID,
+               &ContactEditorData.FreeBusyListPID,
+               &ContactEditorData.FreeBusyListType,
+               &ContactEditorData.FreeBusyListTokens,
+               &ContactEditorData.FreeBusyListPref,
+               lboFreeBusyAddresses,
+               (intValueSeek));
+       frameCECalAdr->ShowModal();
+       delete frameCECalAdr;
+       frameCECalAdr = NULL;
+       
 }
 
 void frmContactEditor::ModifyFreeBusy( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
-    
-    if (!GetSelectedItem(lboFreeBusyAddresses,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
-    
-    frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
-    frameCECalAdr->SetupPointers(&ContactEditorData.FreeBusyList,
-                                 &ContactEditorData.FreeBusyListAltID,
-                                 &ContactEditorData.FreeBusyListPID,
-                                 &ContactEditorData.FreeBusyListType,
-                                 &ContactEditorData.FreeBusyListTokens,
-                                 &ContactEditorData.FreeBusyListPref,
-                                 lboFreeBusyAddresses,
-                                 intSelectedData);
-    frameCECalAdr->SetEditorMode(TRUE);
-    frameCECalAdr->ShowModal();
-    delete frameCECalAdr;
-    frameCECalAdr = NULL;
+
+       long longSelected = -1;
+       int intSelectedData = 0;
+    
+       if (!GetSelectedItem(lboFreeBusyAddresses,
+               &longSelected,
+               &intSelectedData)){
+               
+               return;
+               
+       }
+    
+       frmContactEditorCalAdr *frameCECalAdr = new frmContactEditorCalAdr ( this );
+       frameCECalAdr->SetupPointers(&ContactEditorData.FreeBusyList,
+               &ContactEditorData.FreeBusyListAltID,
+               &ContactEditorData.FreeBusyListPID,
+               &ContactEditorData.FreeBusyListType,
+               &ContactEditorData.FreeBusyListTokens,
+               &ContactEditorData.FreeBusyListPref,
+               lboFreeBusyAddresses,
+               intSelectedData);
+       frameCECalAdr->SetEditorMode(TRUE);
+       frameCECalAdr->ShowModal();
+       delete frameCECalAdr;
+       frameCECalAdr = NULL;
+       
 }
 
 void frmContactEditor::DeleteFreeBusy( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
-    
-    if (!GetSelectedItem(lboFreeBusyAddresses,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
-    
-    lboFreeBusyAddresses->DeleteItem(longSelected);
-    
-    DeleteMapData(intSelectedData, &ContactEditorData.FreeBusyList, &ContactEditorData.FreeBusyListAltID,
-                  &ContactEditorData.FreeBusyListPID, &ContactEditorData.FreeBusyListType, &ContactEditorData.FreeBusyListTokens,
-                  &ContactEditorData.FreeBusyListPref);
+
+       long longSelected = -1;
+       int intSelectedData = 0;
+    
+       if (!GetSelectedItem(lboFreeBusyAddresses,
+               &longSelected,
+               &intSelectedData)){
+               
+               return;
+               
+       }
+    
+       lboFreeBusyAddresses->DeleteItem(longSelected);
+    
+       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