///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "editordicombase.h"

///////////////////////////////////////////////////////////////////////////
using namespace GNC::GUI;

EditorDICOMBase::EditorDICOMBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxSize( 700,300 ), wxDefaultSize );
	
	wxBoxSizer* bSizer15;
	bSizer15 = new wxBoxSizer( wxVERTICAL );
	
	wxStaticBoxSizer* sbSizer5;
	sbSizer5 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Anonimizar") ), wxVERTICAL );
	
	m_pCheckAnonimizar = new wxCheckBox( this, wxID_ANY, wxT("Anonimizar campos DICOM"), wxDefaultPosition, wxDefaultSize, 0 );
	
	sbSizer5->Add( m_pCheckAnonimizar, 0, wxALL, 5 );
	
	m_pPanelCampos = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
	m_pSizerCampos = new wxBoxSizer( wxVERTICAL );
	
	m_pCheckConfiguracion = new wxCheckBox( m_pPanelCampos, wxID_ANY, wxT("Campos definidos en el menu Configuracion"), wxDefaultPosition, wxDefaultSize, 0 );
	
	m_pSizerCampos->Add( m_pCheckConfiguracion, 0, wxLEFT, 15 );
	
	wxGridSizer* gSizer1;
	gSizer1 = new wxGridSizer( 2, 2, 0, 0 );
	
	m_pCheckNombrePaciente = new wxCheckBox( m_pPanelCampos, wxID_ANY, wxT("Nombre y apellidos del Paciente"), wxDefaultPosition, wxDefaultSize, 0 );
	
	gSizer1->Add( m_pCheckNombrePaciente, 0, wxALL, 5 );
	
	m_pCheckIdPaciente = new wxCheckBox( m_pPanelCampos, wxID_ANY, wxT("Id del Paciente"), wxDefaultPosition, wxDefaultSize, 0 );
	
	gSizer1->Add( m_pCheckIdPaciente, 0, wxALL, 5 );
	
	m_pCheckInstituciones = new wxCheckBox( m_pPanelCampos, wxID_ANY, wxT("Instituciones"), wxDefaultPosition, wxDefaultSize, 0 );
	
	gSizer1->Add( m_pCheckInstituciones, 0, wxALL, 5 );
	
	m_pCheckComentarios = new wxCheckBox( m_pPanelCampos, wxID_ANY, wxT("Comentarios"), wxDefaultPosition, wxDefaultSize, 0 );
	
	gSizer1->Add( m_pCheckComentarios, 0, wxALL, 5 );
	
	m_pSizerCampos->Add( gSizer1, 0, wxEXPAND|wxLEFT, 20 );
	
	m_pPanelCampos->SetSizer( m_pSizerCampos );
	m_pPanelCampos->Layout();
	m_pSizerCampos->Fit( m_pPanelCampos );
	sbSizer5->Add( m_pPanelCampos, 0, wxEXPAND | wxALL, 5 );
	
	bSizer15->Add( sbSizer5, 0, wxEXPAND, 5 );
	
	m_pListaAtributos = new wxPropertyGrid(this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxPG_DEFAULT_STYLE|wxPG_HIDE_CATEGORIES|wxPG_HIDE_MARGIN|wxTAB_TRAVERSAL);
	bSizer15->Add( m_pListaAtributos, 1, wxEXPAND | wxALL, 5 );
	
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxHORIZONTAL );
	
	m_button1 = new wxButton( this, wxID_OK, wxT("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer11->Add( m_button1, 0, wxALL, 5 );
	
	m_button2 = new wxButton( this, wxID_CANCEL, wxT("Cancelar"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer11->Add( m_button2, 0, wxALL, 5 );
	
	bSizer15->Add( bSizer11, 0, wxALIGN_RIGHT, 5 );
	
	this->SetSizer( bSizer15 );
	this->Layout();
	
	// Connect Events
	m_pCheckAnonimizar->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckAnonimizar ), NULL, this );
	m_pCheckConfiguracion->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckConfiguracion ), NULL, this );
	m_pCheckNombrePaciente->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckNombreApellidos ), NULL, this );
	m_pCheckIdPaciente->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckIdPaciente ), NULL, this );
	m_pCheckInstituciones->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckInstituciones ), NULL, this );
	m_pCheckComentarios->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckComentarios ), NULL, this );
	m_button1->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnAceptarClick ), NULL, this );
}

EditorDICOMBase::~EditorDICOMBase()
{
	// Disconnect Events
	m_pCheckAnonimizar->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckAnonimizar ), NULL, this );
	m_pCheckConfiguracion->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckConfiguracion ), NULL, this );
	m_pCheckNombrePaciente->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckNombreApellidos ), NULL, this );
	m_pCheckIdPaciente->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckIdPaciente ), NULL, this );
	m_pCheckInstituciones->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckInstituciones ), NULL, this );
	m_pCheckComentarios->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnCheckComentarios ), NULL, this );
	m_button1->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditorDICOMBase::OnAceptarClick ), NULL, this );
}
