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

#include "wx/ginkgostyle/ginkgostyle.h"

#include "anonymizepanelbase.h"

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

AnonymizeDialogBase::AnonymizeDialogBase( 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( 800,600 ), wxDefaultSize );
	
	wxBoxSizer* bSizer8;
	bSizer8 = new wxBoxSizer( wxVERTICAL );
	
	m_pHeader = new HeaderPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pHeader->SetToolTip( _("Anonymize") );
	
	bSizer8->Add( m_pHeader, 0, wxEXPAND, 5 );
	
	m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer61;
	bSizer61 = new wxBoxSizer( wxVERTICAL );
	
	m_pPanelCampos = new SubTitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelCampos->SetToolTip( _("Common tags") );
	
	wxGridSizer* gSizer1;
	gSizer1 = new wxGridSizer( 2, 2, 0, 0 );
	
	m_pCheckNombrePaciente = new wxCheckBox( m_pPanelCampos, wxID_ANY, _("Patient's name and surname"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pCheckNombrePaciente->SetValue(true); 
	gSizer1->Add( m_pCheckNombrePaciente, 0, wxALL, 5 );
	
	m_pCheckIdPaciente = new wxCheckBox( m_pPanelCampos, wxID_ANY, _("Patient Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pCheckIdPaciente->SetValue(true); 
	gSizer1->Add( m_pCheckIdPaciente, 0, wxALL, 5 );
	
	m_pCheckInstituciones = new wxCheckBox( m_pPanelCampos, wxID_ANY, _("Institutions"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pCheckInstituciones->SetValue(true); 
	gSizer1->Add( m_pCheckInstituciones, 0, wxALL, 5 );
	
	m_pReferringPhysician = new wxCheckBox( m_pPanelCampos, wxID_ANY, _("Referring physician"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pReferringPhysician->SetValue(true); 
	gSizer1->Add( m_pReferringPhysician, 0, wxALL, 5 );
	
	m_pCheckComentarios = new wxCheckBox( m_pPanelCampos, wxID_ANY, _("Comments"), wxDefaultPosition, wxDefaultSize, 0 );
	gSizer1->Add( m_pCheckComentarios, 0, wxALL, 5 );
	
	m_pCheckAtributosPrivadosGinkgo = new wxCheckBox( m_pPanelCampos, wxID_ANY, _("Ginkgo CADx tags  (Evaluation Maps...)"), wxDefaultPosition, wxDefaultSize, 0 );
	gSizer1->Add( m_pCheckAtributosPrivadosGinkgo, 0, wxALL, 5 );
	
	m_pPanelCampos->SetSizer( gSizer1 );
	m_pPanelCampos->Layout();
	gSizer1->Fit( m_pPanelCampos );
	bSizer61->Add( m_pPanelCampos, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
	
	m_panel5 = new SubTitledPanelSeparatorV( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer61->Add( m_panel5, 0, wxEXPAND, 5 );
	
	m_pTagsPanel = new SubTitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pTagsPanel->SetToolTip( _("Tags (double click to change value)") );
	
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxVERTICAL );
	
	m_pTagsList = new wxPropertyGrid(m_pTagsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPG_DEFAULT_STYLE|wxPG_HIDE_CATEGORIES|wxPG_HIDE_MARGIN|wxTAB_TRAVERSAL);
	m_pTagsList->SetMinSize( wxSize( -1,150 ) );
	
	bSizer4->Add( m_pTagsList, 1, wxEXPAND, 5 );
	
	m_pTagsPanel->SetSizer( bSizer4 );
	m_pTagsPanel->Layout();
	bSizer4->Fit( m_pTagsPanel );
	bSizer61->Add( m_pTagsPanel, 1, wxEXPAND, 5 );
	
	m_pBody->SetSizer( bSizer61 );
	m_pBody->Layout();
	bSizer61->Fit( m_pBody );
	bSizer8->Add( m_pBody, 1, wxEXPAND, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer10;
	bSizer10 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer10->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_pOverwrite = new wxButton( m_pFooter, wxID_ANY, _("Overwrite"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer10->Add( m_pOverwrite, 0, wxRIGHT, 5 );
	
	m_pCreateNew = new wxButton( m_pFooter, wxID_OK, _("Create new"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer10->Add( m_pCreateNew, 0, wxRIGHT, 5 );
	
	m_pCancel = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pCancel->SetDefault(); 
	bSizer10->Add( m_pCancel, 0, 0, 5 );
	
	m_pFooter->SetSizer( bSizer10 );
	m_pFooter->Layout();
	bSizer10->Fit( m_pFooter );
	bSizer8->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer8 );
	this->Layout();
	bSizer8->Fit( this );
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_pCheckNombrePaciente->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckNombreApellidos ), NULL, this );
	m_pCheckIdPaciente->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckIdPaciente ), NULL, this );
	m_pCheckInstituciones->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckInstituciones ), NULL, this );
	m_pReferringPhysician->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckPhysician ), NULL, this );
	m_pCheckComentarios->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckComentarios ), NULL, this );
	m_pOverwrite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnOverwriteClick ), NULL, this );
	m_pCreateNew->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCreateNewClick ), NULL, this );
}

AnonymizeDialogBase::~AnonymizeDialogBase()
{
	// Disconnect Events
	m_pCheckNombrePaciente->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckNombreApellidos ), NULL, this );
	m_pCheckIdPaciente->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckIdPaciente ), NULL, this );
	m_pCheckInstituciones->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckInstituciones ), NULL, this );
	m_pReferringPhysician->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckPhysician ), NULL, this );
	m_pCheckComentarios->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCheckComentarios ), NULL, this );
	m_pOverwrite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnOverwriteClick ), NULL, this );
	m_pCreateNew->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( AnonymizeDialogBase::OnCreateNewClick ), NULL, this );
	
}
