Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Display results for importing contacts.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 20 Sep 2015 12:05:12 +0000 (13:05 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 20 Sep 2015 12:05:12 +0000 (13:05 +0100)
source/import/frmImportResults.cpp
source/import/frmImportResults.h

index 3dc09d4..3280503 100644 (file)
@@ -20,9 +20,11 @@ void frmImportResults::CopyClipboard( wxCommandEvent& event )
                wxTextDataObject ResultData;
        
                ResultData.SetText(txtResults->GetValue());
-       
-               wxTheClipboard->SetData(&ResultData);
+               
+               wxTheClipboard->Clear();        
+               wxTheClipboard->AddData(&ResultData);
                wxTheClipboard->Close();
+               wxTheClipboard->Flush();
        
                wxMessageBox(_("The results have been copied to the clipboard."), _("Results copied to clipboard"));
        
@@ -39,7 +41,7 @@ void frmImportResults::CloseWindow( wxCommandEvent& event )
        this->Close();
 }
 
-void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc)
+void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc, int ImportCount, int ImportErrorCount)
 {
 
        wxString ResultDataText;
@@ -50,5 +52,11 @@ void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc)
                ResultDataText.Append(iter->second + wxT("\n"));
        
        }
+       
+       // Display the results in the form.
+       
+       txtResults->SetValue(ResultDataText);
+       lblText->SetLabel(wxString::Format(_("%i contacts imported. %i contacts had errors and could not be imported."), ImportCount, ImportErrorCount));
+
+}
 
-}
\ No newline at end of file
index aa7bbab..93fae6a 100644 (file)
@@ -20,7 +20,7 @@ class frmImportResults : public frmImportResultsADT
        public:
                /** Constructor */
                frmImportResults( wxWindow* parent );
-               void LoadData(std::map<int,wxString> *ResultDataInc);
+               void LoadData(std::map<int,wxString> *ResultDataInc, int ImportCount, int ImportErrorCount);
        //// end generated class members
        
 };
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