From: Steve Brokenshire Date: Sun, 13 Mar 2016 13:01:55 +0000 (+0000) Subject: Indented code properly contacteditor/frmContactEditor-Other.cpp X-Git-Tag: release-0.11~77 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=b4d439838e362c7ffa4587238580e42571ccf8ae;p=xestiaab%2F.git Indented code properly contacteditor/frmContactEditor-Other.cpp --- diff --git a/source/contacteditor/frmContactEditor-Other.cpp b/source/contacteditor/frmContactEditor-Other.cpp index d1af11f..97519e6 100644 --- a/source/contacteditor/frmContactEditor-Other.cpp +++ b/source/contacteditor/frmContactEditor-Other.cpp @@ -22,113 +22,124 @@ 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); }