Go to the documentation of this file.00001 #include <creaImageIOWxExportDlg.h>
00002
00003 namespace creaImageIO
00004 {
00005
00006 WxExportDlg::WxExportDlg(wxWindow *parent, const std::vector<std::string> storages)
00007 : wxDialog(parent, -1,_T("EXPORT FILES TO STORAGE"), wxDefaultPosition, wxSize(260,150))
00008 {
00009 int size = 16;
00010
00011 wxStaticText * ExportText=new wxStaticText(this,-1,_T(" Storage to export: "), wxPoint(5,10));
00012 wxArrayString names;
00013 std::vector<std::string>::const_iterator it = storages.begin();
00014 for(;it != storages.end(); it++)
00015 {
00016 names.Add(crea::std2wx(*it));
00017 }
00018 ExportCombo = new wxComboBox(this, ID_EXPORTCOMBO_CTRL,_T(""),wxPoint(120,10), wxSize(120,25),names);
00019 ExportCombo->SetSelection(0);
00020
00021
00022
00023 wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(5,50) );
00024 Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxExportDlg::OnOk );
00025
00026 wxButton *Cancel = new wxButton(this, wxID_CANCEL,_T("CANCEL"), wxPoint(100,50) );
00027 Layout();
00028
00029 }
00030
00031 WxExportDlg::~WxExportDlg(){}
00032
00033 void WxExportDlg::OnOk(wxCommandEvent &event)
00034 {
00035 m_name = crea::wx2std(ExportCombo->GetValue());
00036 Close();
00037 SetReturnCode(ID_EXPORT_OK);
00038 }
00039 }