#include <creaImageIOWxExportDlg.h>
Public Member Functions | |
| WxExportDlg (wxWindow *parent, const std::vector< std::string > storages) | |
| CTor. | |
| ~WxExportDlg () | |
| DTor. | |
| const std::string & | GetStorage () |
| Get selected storage. | |
Private Member Functions | |
| void | OnOk (wxCommandEvent &event) |
| Validate selected storage. | |
Private Attributes | |
| wxComboBox * | ExportCombo |
| Storage ComboBox. | |
| std::string | m_name |
| Storage name. | |
Gimmick can handle multiple database with different organisations. WxDescriptorPanel allows to select the storage to export data.
Definition at line 20 of file creaImageIOWxExportDlg.h.
| creaImageIO::WxExportDlg::WxExportDlg | ( | wxWindow * | parent, | |
| const std::vector< std::string > | storages | |||
| ) |
CTor.
Definition at line 6 of file creaImageIOWxExportDlg.cpp.
References ExportCombo, ID_EXPORTCOMBO_CTRL, and OnOk().
: wxDialog(parent, -1,_T("EXPORT FILES TO STORAGE"), wxDefaultPosition, wxSize(260,150)) { int size = 16; wxStaticText * ExportText=new wxStaticText(this,-1,_T(" Storage to export: "), wxPoint(5,10)); wxArrayString names; std::vector<std::string>::const_iterator it = storages.begin(); for(;it != storages.end(); it++) { names.Add(crea::std2wx(*it)); } ExportCombo = new wxComboBox(this, ID_EXPORTCOMBO_CTRL,_T(""),wxPoint(120,10), wxSize(120,25),names); ExportCombo->SetSelection(0); // Connect( ExportCombo->GetId(), wxEVT_COMMAND_TEXT_UPDATED , (wxObjectEventFunction) &WxDescriptorPanel::OnDicomAttribute ); // VALIDATION BUTTON wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(5,50) ); Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxExportDlg::OnOk ); wxButton *Cancel = new wxButton(this, wxID_CANCEL,_T("CANCEL"), wxPoint(100,50) ); Layout(); }

| creaImageIO::WxExportDlg::~WxExportDlg | ( | ) |
| const std::string& creaImageIO::WxExportDlg::GetStorage | ( | ) | [inline] |
Get selected storage.
Definition at line 29 of file creaImageIOWxExportDlg.h.
References m_name.
{ return m_name;}
| void creaImageIO::WxExportDlg::OnOk | ( | wxCommandEvent & | event | ) | [private] |
Validate selected storage.
Definition at line 33 of file creaImageIOWxExportDlg.cpp.
References ExportCombo, ID_EXPORT_OK, and m_name.
Referenced by WxExportDlg().
{
m_name = crea::wx2std(ExportCombo->GetValue());
Close();
SetReturnCode(ID_EXPORT_OK);
}

wxComboBox* creaImageIO::WxExportDlg::ExportCombo [private] |
Storage ComboBox.
Definition at line 34 of file creaImageIOWxExportDlg.h.
Referenced by OnOk(), and WxExportDlg().
std::string creaImageIO::WxExportDlg::m_name [private] |
Storage name.
Definition at line 40 of file creaImageIOWxExportDlg.h.
Referenced by GetStorage(), and OnOk().
1.7.1