Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
updateversion.pl: Easily update the version in certain files
[xestiaab/.git] / source / contacteditor / frmContactEditor-Picture.cpp
index c1751ea..0ad94b0 100644 (file)
 void frmContactEditor::AddPicture( wxCommandEvent& event )
 {
        
-       int intResult = 0;
-    
+       // Bring up window for adding a picture.
+           
        frmContactEditorPicture *frameCEPicture = new frmContactEditorPicture ( this );
        frameCEPicture->SetEditorMode(FALSE);
-       intResult = GetLastInt(&ContactEditorData.PicturesList);
        frameCEPicture->SetupPointers(&ContactEditorData.PicturesList,
                &ContactEditorData.PicturesListAltID,
                &ContactEditorData.PicturesListPID,
@@ -50,6 +49,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 +83,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 +112,8 @@ void frmContactEditor::DeletePicture( wxCommandEvent& event )
 void frmContactEditor::LoadPicture( wxListEvent& event )
 {
     
+       // Load the picture.
+       
        long longSelected = -1;
        int intSelectedData = 0;
     
@@ -130,7 +135,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 +174,8 @@ void frmContactEditor::LoadPicture( wxListEvent& event )
 void frmContactEditor::SavePicture( wxCommandEvent &event )
 {
 
+       // Save the picture to a file.
+       
        long longSelected = -1;
        int intSelectedData = 0;
     
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