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);
}