Public Member Functions | Private Member Functions | Private Attributes

creaImageIO::WxExportDlg Class Reference
[Top level graphical user interfaces]

#include <creaImageIOWxExportDlg.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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(); 
          
        }

Here is the call graph for this function:

creaImageIO::WxExportDlg::~WxExportDlg (  ) 

DTor.

Definition at line 31 of file creaImageIOWxExportDlg.cpp.

{}


Member Function Documentation

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);
        }       

Here is the caller graph for this function:


Member Data Documentation

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().


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