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

index d1af11f..97519e6 100644 (file)
 
 void frmContactEditor::AddVendorNamespace( wxCommandEvent& event )
 {
-    int intResult = 0;
+       
+       int intResult = 0;
     
-    frmContactEditorVendor *frameCEVen = new frmContactEditorVendor ( this );
-    frameCEVen->SetEditorMode(FALSE);
-    intResult = GetLastInt(&ContactEditorData.VendorList);
-    frameCEVen->SetupPointers(&ContactEditorData.VendorList,
-                              &ContactEditorData.VendorListPEN,
-                              &ContactEditorData.VendorListElement,
-                              lboVendorNamespace,
-                              (intValueSeek));
-    frameCEVen->ShowModal();
-    delete frameCEVen;
-    frameCEVen = NULL;
+       frmContactEditorVendor *frameCEVen = new frmContactEditorVendor ( this );
+       frameCEVen->SetEditorMode(FALSE);
+       intResult = GetLastInt(&ContactEditorData.VendorList);
+       frameCEVen->SetupPointers(&ContactEditorData.VendorList,
+               &ContactEditorData.VendorListPEN,
+                &ContactEditorData.VendorListElement,
+                lboVendorNamespace,
+                (intValueSeek));
+       frameCEVen->ShowModal();
+       delete frameCEVen;
+       frameCEVen = NULL;
+       
 }
 
 void frmContactEditor::ModifyVendorNamespace( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
+       
+       long longSelected = -1;
+       int intSelectedData = 0;
     
-    if (!GetSelectedItem(lboVendorNamespace,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
+       if (!GetSelectedItem(lboVendorNamespace,
+               &longSelected,
+               &intSelectedData)){
+               return;
+       }
     
-    frmContactEditorVendor *frameCEVen = new frmContactEditorVendor ( this );
-    frameCEVen->SetupPointers(&ContactEditorData.VendorList,
-                              &ContactEditorData.VendorListPEN,
-                              &ContactEditorData.VendorListElement,
-                              lboVendorNamespace,
-                              intSelectedData);
-    frameCEVen->SetEditorMode(TRUE);
-    frameCEVen->ShowModal();
-    delete frameCEVen;
-    frameCEVen = NULL;
+       frmContactEditorVendor *frameCEVen = new frmContactEditorVendor ( this );
+       frameCEVen->SetupPointers(&ContactEditorData.VendorList,
+               &ContactEditorData.VendorListPEN,
+               &ContactEditorData.VendorListElement,
+               lboVendorNamespace,
+               intSelectedData);
+       frameCEVen->SetEditorMode(TRUE);
+       frameCEVen->ShowModal();
+       delete frameCEVen;
+       frameCEVen = NULL;
+       
 }
 
 void frmContactEditor::DeleteVendorNamespace( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
+       long longSelected = -1;
+       int intSelectedData = 0;
     
-    if (!GetSelectedItem(lboVendorNamespace,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
+       if (!GetSelectedItem(lboVendorNamespace,
+               &longSelected,
+                &intSelectedData)){
+               return;
+       }
     
-    lboVendorNamespace->DeleteItem(longSelected);
-    
-    DeleteMapData(intSelectedData, &ContactEditorData.VendorList, &ContactEditorData.VendorListPEN,
-                  &ContactEditorData.VendorListElement);
+       lboVendorNamespace->DeleteItem(longSelected);
     
+       DeleteMapData(intSelectedData, &ContactEditorData.VendorList, &ContactEditorData.VendorListPEN,
+               &ContactEditorData.VendorListElement);
+
 }
 
 void frmContactEditor::AddXToken( wxCommandEvent& event )
 {
-    int intResult = 0;
+       
+       int intResult = 0;
     
-    frmContactEditorXToken *frameCEXT = new frmContactEditorXToken ( this );
-    frameCEXT->SetEditorMode(FALSE);
-    intResult = GetLastInt(&ContactEditorData.XTokenList);
-    frameCEXT->SetupPointers(&ContactEditorData.XTokenList,
-                             &ContactEditorData.XTokenListTokens,
-                             lboXToken,
-                             (intValueSeek));
-    frameCEXT->ShowModal();
-    delete frameCEXT;
-    frameCEXT = NULL;
+       frmContactEditorXToken *frameCEXT = new frmContactEditorXToken ( this );
+       frameCEXT->SetEditorMode(FALSE);
+       intResult = GetLastInt(&ContactEditorData.XTokenList);
+       frameCEXT->SetupPointers(&ContactEditorData.XTokenList,
+               &ContactEditorData.XTokenListTokens,
+                lboXToken,
+                (intValueSeek));
+       frameCEXT->ShowModal();
+       delete frameCEXT;
+       frameCEXT = NULL;
+       
 }
 
 void frmContactEditor::ModifyXToken( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
+       
+       long longSelected = -1;
+       int intSelectedData = 0;
     
-    if (!GetSelectedItem(lboXToken,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
+       if (!GetSelectedItem(lboXToken,
+       
+               &longSelected,
+                &intSelectedData)){
+               return;
+               
+       }
     
-    frmContactEditorXToken *frameCEXT = new frmContactEditorXToken ( this );
-    frameCEXT->SetupPointers(&ContactEditorData.XTokenList,
-                             &ContactEditorData.XTokenListTokens,
-                             lboXToken,
-                             intSelectedData);
-    frameCEXT->SetEditorMode(TRUE);
-    frameCEXT->ShowModal();
-    delete frameCEXT;
-    frameCEXT = NULL;
+       frmContactEditorXToken *frameCEXT = new frmContactEditorXToken ( this );
+       frameCEXT->SetupPointers(&ContactEditorData.XTokenList,
+               &ContactEditorData.XTokenListTokens,
+                lboXToken,
+                intSelectedData);
+       frameCEXT->SetEditorMode(TRUE);
+       frameCEXT->ShowModal();
+       delete frameCEXT;
+       frameCEXT = NULL;
+       
 }
 
 void frmContactEditor::DeleteXToken( wxCommandEvent& event )
 {
-    long longSelected = -1;
-    int intSelectedData = 0;
+       
+       long longSelected = -1;
+       int intSelectedData = 0;
     
-    if (!GetSelectedItem(lboXToken,
-                         &longSelected,
-                         &intSelectedData)){
-        return;
-    }
+       if (!GetSelectedItem(lboXToken,
+               &longSelected,
+                &intSelectedData)){
+               return;
+       }
     
-    lboXToken->DeleteItem(longSelected);
+       lboXToken->DeleteItem(longSelected);
     
-    DeleteMapData(intSelectedData, &ContactEditorData.XTokenList, &ContactEditorData.XTokenListTokens);
+       DeleteMapData(intSelectedData, &ContactEditorData.XTokenList, &ContactEditorData.XTokenListTokens);
     
 }
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