X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Logo.cpp;h=e75a6a0f571eb0a9c0333032428fad65c445d7f9;hb=8b90ecf40afb68bdabc2c49d1b12367757756c91;hp=2f02a8a399238a9f6c56957a2180c456f2642f07;hpb=99e320d3cb52177083c68fc13b635deae380b4cf;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-Logo.cpp b/source/contacteditor/frmContactEditor-Logo.cpp index 2f02a8a..e75a6a0 100644 --- a/source/contacteditor/frmContactEditor-Logo.cpp +++ b/source/contacteditor/frmContactEditor-Logo.cpp @@ -23,6 +23,8 @@ void frmContactEditor::LoadLogo( wxListEvent& event ) { + // Load the logo. + long longSelected = -1; int intSelectedData = 0; @@ -44,8 +46,7 @@ void frmContactEditor::LoadLogo( wxListEvent& event ) wxMemoryInputStream istream(base64dec.c_str(), (size_t)base64dec.size()); wxImage photo; - //wxMemoryInputStream istream(base64dec, (size_t)base64dec.size()); - + if (pictypeiter->second == wxT("image/jpeg")){ if (!photo.LoadFile(istream, wxBITMAP_TYPE_JPEG)){ @@ -83,6 +84,9 @@ void frmContactEditor::LoadLogo( wxListEvent& event ) void frmContactEditor::AddLogo( wxCommandEvent& event ) { + + // Bring up the window to add a logo. + int intResult = 0; frmContactEditorPicture *frameCELogo = new frmContactEditorPicture ( this ); @@ -109,6 +113,8 @@ void frmContactEditor::AddLogo( wxCommandEvent& event ) void frmContactEditor::ModifyLogo( wxCommandEvent& event ) { + // Bring up the window to modify a logo. + long longSelected = -1; int intSelectedData = 0; @@ -141,6 +147,8 @@ void frmContactEditor::ModifyLogo( wxCommandEvent& event ) void frmContactEditor::DeleteLogo( wxCommandEvent& event ) { + // Bring up a window to delete a logo. + long longSelected = -1; int intSelectedData = 0; @@ -168,6 +176,8 @@ void frmContactEditor::DeleteLogo( wxCommandEvent& event ) void frmContactEditor::SaveLogo( wxCommandEvent &event ) { + // Save the logo to a file. + long longSelected = -1; int intSelectedData = 0;