creaImageIO_lib
creaImageIO::WxExportDlg Class Reference

#include <creaImageIOWxExportDlg.h>

Inheritance diagram for creaImageIO::WxExportDlg:
Collaboration diagram for creaImageIO::WxExportDlg:

Public Member Functions

 WxExportDlg (wxWindow *parent, const std::vector< std::string > storages)
 CTor. More...
 
 ~WxExportDlg ()
 DTor. More...
 
const std::string & GetStorage ()
 Get selected storage. More...
 

Private Member Functions

void OnOk (wxCommandEvent &event)
 Validate selected storage. More...
 

Private Attributes

wxComboBox * ExportCombo
 Storage ComboBox. More...
 
std::string m_name
 Storage name. More...
 

Detailed Description

Gimmick can handle multiple database with different organisations. WxDescriptorPanel allows to select the storage to export data.

Definition at line 48 of file creaImageIOWxExportDlg.h.

Constructor & Destructor Documentation

creaImageIO::WxExportDlg::WxExportDlg ( wxWindow *  parent,
const std::vector< std::string >  storages 
)

CTor.

fix warning: unused variable ExportText

fix warning: unused variable Cancel

Definition at line 33 of file creaImageIOWxExportDlg.cpp.

References ExportCombo, ID_EXPORTCOMBO_CTRL, and OnOk().

34  : wxDialog(parent, -1,_T("EXPORT FILES TO STORAGE"), wxDefaultPosition, wxSize(260,150))
35  {
36  //int size = 16;
37 
39  wxStaticText * ExportText=new wxStaticText(this,-1,_T(" Storage to export: "), wxPoint(5,10));
40  wxArrayString names;
41  std::vector<std::string>::const_iterator it = storages.begin();
42  for(;it != storages.end(); it++)
43  {
44  names.Add(crea::std2wx(*it));
45  }
46  ExportCombo = new wxComboBox(this, ID_EXPORTCOMBO_CTRL,_T(""),wxPoint(120,10), wxSize(120,25),names);
47  ExportCombo->SetSelection(0);
48  // Connect( ExportCombo->GetId(), wxEVT_COMMAND_TEXT_UPDATED , (wxObjectEventFunction) &WxDescriptorPanel::OnDicomAttribute );
49 
50  // VALIDATION BUTTON
51  wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(5,50) );
52  Connect( Ok->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WxExportDlg::OnOk );
53 
55  wxButton *Cancel = new wxButton(this, wxID_CANCEL,_T("CANCEL"), wxPoint(100,50) );
56  Layout();
57 
58  }

Here is the call graph for this function:

creaImageIO::WxExportDlg::~WxExportDlg ( )

DTor.

Definition at line 60 of file creaImageIOWxExportDlg.cpp.

60 {}

Member Function Documentation

const std::string& creaImageIO::WxExportDlg::GetStorage ( )
inline

Get selected storage.

Definition at line 57 of file creaImageIOWxExportDlg.h.

References m_name.

Referenced by creaImageIO::WxGimmickView::ExportToStorage().

57 { return m_name;}

Here is the caller graph for this function:

void creaImageIO::WxExportDlg::OnOk ( wxCommandEvent &  event)
private

Validate selected storage.

Definition at line 62 of file creaImageIOWxExportDlg.cpp.

References ExportCombo, ID_EXPORT_OK, and m_name.

Referenced by WxExportDlg().

63  {
64  m_name = crea::wx2std(ExportCombo->GetValue());
65  Close();
66  SetReturnCode(ID_EXPORT_OK);
67  }

Here is the caller graph for this function:

Member Data Documentation

wxComboBox* creaImageIO::WxExportDlg::ExportCombo
private

Storage ComboBox.

Definition at line 62 of file creaImageIOWxExportDlg.h.

Referenced by OnOk(), and WxExportDlg().

std::string creaImageIO::WxExportDlg::m_name
private

Storage name.

Definition at line 68 of file creaImageIOWxExportDlg.h.

Referenced by GetStorage(), and OnOk().


The documentation for this class was generated from the following files: