Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Initial import of code already done for Xestia Address Book
[xestiaab/.git] / source / import / frmImportResults.cpp
1 #include <map>
2 #include <wx/wx.h>
3 #include <wx/clipbrd.h>
4 #include <wx/dataobj.h>
6 #include "frmImportResults.h"
8 frmImportResults::frmImportResults( wxWindow* parent )
9 :
10 frmImportResultsADT( parent )
11 {
13 }
15 void frmImportResults::CopyClipboard( wxCommandEvent& event )
16 {
18         if (wxTheClipboard->Open()){
19         
20                 wxTextDataObject ResultData;
21         
22                 ResultData.SetText(txtResults->GetValue());
23         
24                 wxTheClipboard->SetData(&ResultData);
25                 wxTheClipboard->Close();
26         
27                 wxMessageBox(_("The results have been copied to the clipboard."), _("Results copied to clipboard"));
28         
29         } else {
30         
31                 wxMessageBox(_("The results have not been copied to the clipboard due to an error."), _("Results not copied to clipboard"));
32         
33         }
34         
35 }
37 void frmImportResults::CloseWindow( wxCommandEvent& event )
38 {
39         this->Close();
40 }
42 void frmImportResults::LoadData(std::map<int,wxString> *ResultDataInc)
43 {
45         wxString ResultDataText;
46         
47         for (std::map<int,wxString>::iterator iter = ResultDataInc->begin(); 
48         iter != ResultDataInc->end(); iter++){
49         
50                 ResultDataText.Append(iter->second + wxT("\n"));
51         
52         }
54 }
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