3 #include <wx/clipbrd.h>
4 #include <wx/dataobj.h>
6 #include "frmImportResults.h"
8 frmImportResults::frmImportResults( wxWindow* parent )
10 frmImportResultsADT( parent )
15 void frmImportResults::CopyClipboard( wxCommandEvent& event )
18 if (wxTheClipboard->Open()){
20 wxTextDataObject ResultData;
22 ResultData.SetText(txtResults->GetValue());
24 wxTheClipboard->SetData(&ResultData);
25 wxTheClipboard->Close();
27 wxMessageBox(_("The results have been copied to the clipboard."), _("Results copied to clipboard"));
31 wxMessageBox(_("The results have not been copied to the clipboard due to an error."), _("Results not copied to clipboard"));
37 void frmImportResults::CloseWindow( wxCommandEvent& event )
42 void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc)
45 wxString ResultDataText;
47 for (std::map<int,wxString>::iterator iter = ResultDataInc->begin();
48 iter != ResultDataInc->end(); iter++){
50 ResultDataText.Append(iter->second + wxT("\n"));