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

#include "dicombrowsercomponentbase.h"

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

DicomBrowserComponentBase::DicomBrowserComponentBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	this->SetMinSize( wxSize( 548,288 ) );
	
	wxBoxSizer* bSizer13;
	bSizer13 = new wxBoxSizer( wxHORIZONTAL );
	
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxVERTICAL );
	
	m_pTreeListIzq = new wxTreeListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_EDIT_LABELS|wxTR_FULL_ROW_HIGHLIGHT|wxTR_HAS_BUTTONS|wxTR_HAS_VARIABLE_ROW_HEIGHT|wxTR_HIDE_ROOT|wxTR_MULTIPLE|wxTR_ROW_LINES );
	m_pTreeListIzq->AddColumn( wxEmptyString, 220, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListIzq->AddColumn( _("Modality"), 58, wxALIGN_CENTRE, -1, true, false ); 
	m_pTreeListIzq->AddColumn( _("Date"), 70, wxALIGN_CENTRE, -1, true, false ); 
	m_pTreeListIzq->AddColumn( _("Physician"), 128, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListIzq->AddColumn( _("Accession Number"), 128, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListIzq->AddColumn( _("UID"), 0, wxALIGN_LEFT, -1, false, false ); 
	
	bSizer4->Add( m_pTreeListIzq, 1, wxEXPAND | wxALL, 0 );
	
	bSizer13->Add( bSizer4, 1, wxEXPAND|wxALL, 5 );
	
	wxBoxSizer* bSizer5;
	bSizer5 = new wxBoxSizer( wxVERTICAL );
	
	m_button8 = new wxButton( this, wxID_ANY, _(">>"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer5->Add( m_button8, 0, wxTOP|wxBOTTOM, 5 );
	
	m_button51 = new wxButton( this, wxID_ANY, _(">"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer5->Add( m_button51, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
	
	m_button6 = new wxButton( this, wxID_ANY, _("<"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer5->Add( m_button6, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
	
	m_button7 = new wxButton( this, wxID_ANY, _("<<"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer5->Add( m_button7, 0, wxTOP|wxBOTTOM, 5 );
	
	bSizer13->Add( bSizer5, 0, wxALIGN_CENTER_VERTICAL, 5 );
	
	wxBoxSizer* bSizer41;
	bSizer41 = new wxBoxSizer( wxVERTICAL );
	
	m_pTreeListDer = new wxTreeListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_EDIT_LABELS|wxTR_FULL_ROW_HIGHLIGHT|wxTR_HAS_BUTTONS|wxTR_HAS_VARIABLE_ROW_HEIGHT|wxTR_HIDE_ROOT|wxTR_MULTIPLE|wxTR_ROW_LINES );
	m_pTreeListDer->AddColumn( wxEmptyString, 220, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListDer->AddColumn( _("Modality"), 58, wxALIGN_CENTRE, -1, true, false ); 
	m_pTreeListDer->AddColumn( _("Date"), 70, wxALIGN_CENTRE, -1, true, false ); 
	m_pTreeListDer->AddColumn( _("Physician"), 128, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListDer->AddColumn( _("Accession Number"), 128, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListDer->AddColumn( _("UID"), 0, wxALIGN_LEFT, -1, false, false ); 
	
	bSizer41->Add( m_pTreeListDer, 1, wxEXPAND | wxALL, 0 );
	
	bSizer13->Add( bSizer41, 1, wxEXPAND|wxALL, 5 );
	
	this->SetSizer( bSizer13 );
	this->Layout();
	
	// Connect Events
	m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnDicomDirIzqAddAll ), NULL, this );
	m_button51->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnAdd ), NULL, this );
	m_button6->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnDel ), NULL, this );
	m_button7->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnDicomDirDerDelAll ), NULL, this );
}

DicomBrowserComponentBase::~DicomBrowserComponentBase()
{
	// Disconnect Events
	m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnDicomDirIzqAddAll ), NULL, this );
	m_button51->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnAdd ), NULL, this );
	m_button6->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnDel ), NULL, this );
	m_button7->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DicomBrowserComponentBase::OnDicomDirDerDelAll ), NULL, this );
	
}
