X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditor-Picture.cpp;h=cc299444b034de938008b155bd73e45afb91e697;hb=e0f67d0cbeb9d32e002f2ac99ec1d586b58e51c0;hp=c1751ea248dd9b26914de79a23657af8af84884c;hpb=4443fd0e346fdea4770cca961274b03147f210fe;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditor-Picture.cpp b/source/contacteditor/frmContactEditor-Picture.cpp index c1751ea..cc29944 100644 --- a/source/contacteditor/frmContactEditor-Picture.cpp +++ b/source/contacteditor/frmContactEditor-Picture.cpp @@ -24,6 +24,8 @@ void frmContactEditor::AddPicture( wxCommandEvent& event ) { + // Bring up window for adding a picture. + int intResult = 0; frmContactEditorPicture *frameCEPicture = new frmContactEditorPicture ( this ); @@ -50,6 +52,8 @@ void frmContactEditor::AddPicture( wxCommandEvent& event ) void frmContactEditor::ModifyPicture( wxCommandEvent& event ) { + // Bring up window for modifying a picture. + long longSelected = -1; int intSelectedData = 0; @@ -82,6 +86,8 @@ void frmContactEditor::ModifyPicture( wxCommandEvent& event ) void frmContactEditor::DeletePicture( wxCommandEvent& event ) { + // Bring up window for deleting a picture. + long longSelected = -1; int intSelectedData = 0; @@ -109,6 +115,8 @@ void frmContactEditor::DeletePicture( wxCommandEvent& event ) void frmContactEditor::LoadPicture( wxListEvent& event ) { + // Load the picture. + long longSelected = -1; int intSelectedData = 0; @@ -130,7 +138,6 @@ void frmContactEditor::LoadPicture( 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")){ @@ -170,6 +177,8 @@ void frmContactEditor::LoadPicture( wxListEvent& event ) void frmContactEditor::SavePicture( wxCommandEvent &event ) { + // Save the picture to a file. + long longSelected = -1; int intSelectedData = 0;