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

#include "wx/ginkgostyle/ginkgostyle.h"

#include "panelesconfiguracionginkgobase.h"

///////////////////////////////////////////////////////////////////////////

DialogoConfiguracionBase::DialogoConfiguracionBase( 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( 830,300 ), wxDefaultSize );
	
	wxBoxSizer* bSizer3;
	bSizer3 = new wxBoxSizer( wxVERTICAL );
	
	m_pHeader = new HeaderPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pHeader->SetToolTip( _("Settings") );
	
	bSizer3->Add( m_pHeader, 0, wxEXPAND, 5 );
	
	m_pImagePanel = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pImagePanel->SetToolTip( _("Settings") );
	
	wxBoxSizer* bSizer43;
	bSizer43 = new wxBoxSizer( wxVERTICAL );
	
	m_splitter2 = new wxSplitterWindow( m_pImagePanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
	m_splitter2->Connect( wxEVT_IDLE, wxIdleEventHandler( DialogoConfiguracionBase::m_splitter2OnIdle ), NULL, this );
	m_splitter2->SetMinimumPaneSize( 100 );
	
	m_splitter2->SetBackgroundColour( wxColour( 243, 243, 243 ) );
	
	m_panel1 = new wxPanel( m_splitter2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panel1->SetMinSize( wxSize( 150,-1 ) );
	
	wxBoxSizer* bSizer5;
	bSizer5 = new wxBoxSizer( wxVERTICAL );
	
	m_pTreeNavegacion = new wxTreeCtrl( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxTR_HIDE_ROOT|wxTR_SINGLE );
	bSizer5->Add( m_pTreeNavegacion, 1, wxALL|wxEXPAND, 0 );
	
	m_panel1->SetSizer( bSizer5 );
	m_panel1->Layout();
	bSizer5->Fit( m_panel1 );
	m_pTitledPanelConfig = new TitledPanelSinBorder( m_splitter2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer44;
	bSizer44 = new wxBoxSizer( wxVERTICAL );
	
	m_pPanelConfig = new PanelScrollable( m_pTitledPanelConfig, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pSizerPaneles = new wxBoxSizer( wxVERTICAL );
	
	m_pPanelConfig->SetSizer( m_pSizerPaneles );
	m_pPanelConfig->Layout();
	m_pSizerPaneles->Fit( m_pPanelConfig );
	bSizer44->Add( m_pPanelConfig, 1, wxEXPAND, 5 );
	
	m_pTitledPanelConfig->SetSizer( bSizer44 );
	m_pTitledPanelConfig->Layout();
	bSizer44->Fit( m_pTitledPanelConfig );
	m_splitter2->SplitVertically( m_panel1, m_pTitledPanelConfig, 200 );
	bSizer43->Add( m_splitter2, 1, wxEXPAND, 5 );
	
	m_pImagePanel->SetSizer( bSizer43 );
	m_pImagePanel->Layout();
	bSizer43->Fit( m_pImagePanel );
	bSizer3->Add( m_pImagePanel, 1, wxEXPAND, 5 );
	
	m_panel3 = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxHORIZONTAL );
	
	wxBoxSizer* bSizer22;
	bSizer22 = new wxBoxSizer( wxHORIZONTAL );
	
	m_button12 = new wxButton( m_panel3, wxID_ANY, _("Export config..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer22->Add( m_button12, 0, wxRIGHT, 5 );
	
	m_button13 = new wxButton( m_panel3, wxID_ANY, _("Import config..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer22->Add( m_button13, 0, wxRIGHT|wxLEFT, 5 );
	
	bSizer7->Add( bSizer22, 0, 0, 5 );
	
	
	bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer21;
	bSizer21 = new wxBoxSizer( wxHORIZONTAL );
	
	m_button8 = new wxButton( m_panel3, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	m_button8->SetDefault(); 
	bSizer21->Add( m_button8, 0, wxRIGHT|wxLEFT, 5 );
	
	m_button9 = new wxButton( m_panel3, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer21->Add( m_button9, 0, wxRIGHT|wxLEFT, 5 );
	
	m_pBAplicar = new wxButton( m_panel3, wxID_ANY, _("Apply"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBAplicar->Enable( false );
	
	bSizer21->Add( m_pBAplicar, 0, wxLEFT, 5 );
	
	bSizer7->Add( bSizer21, 0, 0, 5 );
	
	m_panel3->SetSizer( bSizer7 );
	m_panel3->Layout();
	bSizer7->Fit( m_panel3 );
	bSizer3->Add( m_panel3, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer3 );
	this->Layout();
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_pTreeNavegacion->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( DialogoConfiguracionBase::OnCambioNodoNavegacion ), NULL, this );
	m_button12->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnExportarClick ), NULL, this );
	m_button13->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnImportarClick ), NULL, this );
	m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnAceptarClick ), NULL, this );
	m_button9->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnCancelarClick ), NULL, this );
	m_pBAplicar->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnAplicarClick ), NULL, this );
}

DialogoConfiguracionBase::~DialogoConfiguracionBase()
{
	// Disconnect Events
	m_pTreeNavegacion->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( DialogoConfiguracionBase::OnCambioNodoNavegacion ), NULL, this );
	m_button12->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnExportarClick ), NULL, this );
	m_button13->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnImportarClick ), NULL, this );
	m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnAceptarClick ), NULL, this );
	m_button9->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnCancelarClick ), NULL, this );
	m_pBAplicar->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfiguracionBase::OnAplicarClick ), NULL, this );
	
}

PanelConfiguracionEstacionBase::PanelConfiguracionEstacionBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	this->SetMinSize( wxSize( 450,-1 ) );
	
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxVERTICAL );
	
	m_panelPhysician = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panelPhysician->SetToolTip( _("Physician") );
	
	wxFlexGridSizer* fgSizer2;
	fgSizer2 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer2->AddGrowableCol( 1 );
	fgSizer2->SetFlexibleDirection( wxBOTH );
	fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText1 = new wxStaticText( m_panelPhysician, wxID_ANY, _("Physician's name"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1->Wrap( -1 );
	fgSizer2->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
	
	m_pMedicoNombre = new wxTextCtrl( m_panelPhysician, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
	fgSizer2->Add( m_pMedicoNombre, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxLEFT, 5 );
	
	m_staticText11 = new wxStaticText( m_panelPhysician, wxID_ANY, _("Physician's Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText11->Wrap( -1 );
	fgSizer2->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
	
	m_pMedicoId = new wxTextCtrl( m_panelPhysician, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer2->Add( m_pMedicoId, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxLEFT, 5 );
	
	m_panelPhysician->SetSizer( fgSizer2 );
	m_panelPhysician->Layout();
	fgSizer2->Fit( m_panelPhysician );
	bSizer4->Add( m_panelPhysician, 0, wxEXPAND, 5 );
	
	m_pSep11 = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer4->Add( m_pSep11, 0, wxEXPAND, 5 );
	
	m_panelServicio = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panelServicio->SetToolTip( _("Service") );
	
	wxFlexGridSizer* fgSizer22;
	fgSizer22 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer22->AddGrowableCol( 1 );
	fgSizer22->SetFlexibleDirection( wxBOTH );
	fgSizer22->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText39 = new wxStaticText( m_panelServicio, wxID_ANY, _("Service's name"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText39->Wrap( -1 );
	fgSizer22->Add( m_staticText39, 0, wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pServicioNombre = new wxTextCtrl( m_panelServicio, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer22->Add( m_pServicioNombre, 0, wxTOP|wxLEFT|wxEXPAND, 5 );
	
	m_staticText12 = new wxStaticText( m_panelServicio, wxID_ANY, _("Service's Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText12->Wrap( -1 );
	fgSizer22->Add( m_staticText12, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
	
	m_pServicioId = new wxTextCtrl( m_panelServicio, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
	fgSizer22->Add( m_pServicioId, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_panelServicio->SetSizer( fgSizer22 );
	m_panelServicio->Layout();
	fgSizer22->Fit( m_panelServicio );
	bSizer4->Add( m_panelServicio, 0, wxEXPAND, 5 );
	
	m_pSep1 = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer4->Add( m_pSep1, 0, wxEXPAND, 5 );
	
	m_pPanelInstitucion = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelInstitucion->SetToolTip( _("Local institution") );
	
	wxFlexGridSizer* fgSizer21;
	fgSizer21 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer21->AddGrowableCol( 1 );
	fgSizer21->SetFlexibleDirection( wxBOTH );
	fgSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText13 = new wxStaticText( m_pPanelInstitucion, wxID_ANY, _("Institution's name"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText13->Wrap( -1 );
	fgSizer21->Add( m_staticText13, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
	
	m_pCentroNombre = new wxTextCtrl( m_pPanelInstitucion, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
	fgSizer21->Add( m_pCentroNombre, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxBOTTOM|wxLEFT, 5 );
	
	m_staticText111 = new wxStaticText( m_pPanelInstitucion, wxID_ANY, _("Institution's Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText111->Wrap( -1 );
	fgSizer21->Add( m_staticText111, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
	
	m_pCentroId = new wxTextCtrl( m_pPanelInstitucion, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer21->Add( m_pCentroId, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxLEFT, 5 );
	
	m_pPanelInstitucion->SetSizer( fgSizer21 );
	m_pPanelInstitucion->Layout();
	fgSizer21->Fit( m_pPanelInstitucion );
	bSizer4->Add( m_pPanelInstitucion, 0, wxEXPAND, 5 );
	
	m_pSep12 = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer4->Add( m_pSep12, 0, wxEXPAND, 5 );
	
	m_pPanelInstitucion1 = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelInstitucion1->SetToolTip( _("Dicomized files") );
	
	wxFlexGridSizer* fgSizer211;
	fgSizer211 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer211->AddGrowableCol( 1 );
	fgSizer211->SetFlexibleDirection( wxBOTH );
	fgSizer211->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText131 = new wxStaticText( m_pPanelInstitucion1, wxID_ANY, _("Charset"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText131->Wrap( -1 );
	fgSizer211->Add( m_staticText131, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
	
	m_pComboCharset = new wxComboBox( m_pPanelInstitucion1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY|wxCB_SORT );
	m_pComboCharset->Append( _("ISO_IR 192") );
	m_pComboCharset->Append( _("ISO_IR 6") );
	m_pComboCharset->Append( _("ISO_IR 100") );
	m_pComboCharset->Append( _("ISO_IR 101") );
	m_pComboCharset->Append( _("ISO_IR 109") );
	m_pComboCharset->Append( _("ISO_IR 110") );
	m_pComboCharset->Append( _("ISO_IR 126") );
	m_pComboCharset->Append( _("ISO_IR 127") );
	m_pComboCharset->Append( _("ISO_IR 138") );
	m_pComboCharset->Append( _("ISO_IR 144") );
	m_pComboCharset->Append( _("ISO_IR 148") );
	fgSizer211->Add( m_pComboCharset, 1, wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	m_pPanelInstitucion1->SetSizer( fgSizer211 );
	m_pPanelInstitucion1->Layout();
	fgSizer211->Fit( m_pPanelInstitucion1 );
	bSizer4->Add( m_pPanelInstitucion1, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer4 );
	this->Layout();
	bSizer4->Fit( this );
	
	// Connect Events
	m_pMedicoNombre->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pMedicoId->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pServicioId->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pCentroNombre->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pCentroId->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pComboCharset->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
}

PanelConfiguracionEstacionBase::~PanelConfiguracionEstacionBase()
{
	// Disconnect Events
	m_pMedicoNombre->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pMedicoId->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pServicioId->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pCentroNombre->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pCentroId->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	m_pComboCharset->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelConfiguracionEstacionBase::OnTextoCambiado ), NULL, this );
	
}

PanelConfiguracionGeneralBase::PanelConfiguracionGeneralBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	this->SetMinSize( wxSize( 450,-1 ) );
	
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxVERTICAL );
	
	m_pLanguage = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pLanguage->SetToolTip( _("Language") );
	
	wxBoxSizer* bSizer32;
	bSizer32 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticText34 = new wxStaticText( m_pLanguage, wxID_ANY, _("Language"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText34->Wrap( -1 );
	bSizer32->Add( m_staticText34, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
	
	m_pComboLanguage = new wxComboBox( m_pLanguage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_READONLY ); 
	bSizer32->Add( m_pComboLanguage, 0, wxLEFT, 5 );
	
	m_pLanguage->SetSizer( bSizer32 );
	m_pLanguage->Layout();
	bSizer32->Fit( m_pLanguage );
	bSizer4->Add( m_pLanguage, 0, wxEXPAND, 5 );
	
	m_pSep3 = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer4->Add( m_pSep3, 0, wxEXPAND, 5 );
	
	m_pUpdate = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pUpdate->SetToolTip( _("Updates") );
	
	wxBoxSizer* bSizer321;
	bSizer321 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pCheckForUpdates = new wxCheckBox( m_pUpdate, wxID_ANY, _("Automatically check for updates"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pCheckForUpdates->SetValue(true); 
	bSizer321->Add( m_pCheckForUpdates, 0, 0, 5 );
	
	m_pUpdate->SetSizer( bSizer321 );
	m_pUpdate->Layout();
	bSizer321->Fit( m_pUpdate );
	bSizer4->Add( m_pUpdate, 0, wxEXPAND, 5 );
	
	m_pSep31 = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer4->Add( m_pSep31, 0, wxEXPAND, 5 );
	
	m_pPanelDicomDir = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelDicomDir->SetToolTip( _("DICOM Dir") );
	
	wxBoxSizer* bSizer30;
	bSizer30 = new wxBoxSizer( wxVERTICAL );
	
	m_staticTextExplicacion = new wxStaticText( m_pPanelDicomDir, wxID_ANY, _("DICOM Dir is the local directory where history is stored"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticTextExplicacion->Wrap( 440 );
	bSizer30->Add( m_staticTextExplicacion, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
	
	wxFlexGridSizer* fgSizer9;
	fgSizer9 = new wxFlexGridSizer( 1, 3, 0, 0 );
	fgSizer9->AddGrowableCol( 1 );
	fgSizer9->SetFlexibleDirection( wxBOTH );
	fgSizer9->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText32 = new wxStaticText( m_pPanelDicomDir, wxID_ANY, _("DICOM Dir"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText32->Wrap( -1 );
	fgSizer9->Add( m_staticText32, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
	
	m_pDICOMDir = new wxTextCtrl( m_pPanelDicomDir, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer9->Add( m_pDICOMDir, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_buttonSeleccionarDICOMDir = new wxButton( m_pPanelDicomDir, wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	fgSizer9->Add( m_buttonSeleccionarDICOMDir, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	bSizer30->Add( fgSizer9, 1, wxEXPAND, 5 );
	
	m_pstaticTextAdvertencia = new wxStaticText( m_pPanelDicomDir, wxID_ANY, _("Warning, to update the directory, you have to close every opened series"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstaticTextAdvertencia->Wrap( 440 );
	m_pstaticTextAdvertencia->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
	m_pstaticTextAdvertencia->SetForegroundColour( wxColour( 210, 0, 0 ) );
	
	bSizer30->Add( m_pstaticTextAdvertencia, 0, wxEXPAND|wxTOP, 5 );
	
	m_pPanelDicomDir->SetSizer( bSizer30 );
	m_pPanelDicomDir->Layout();
	bSizer30->Fit( m_pPanelDicomDir );
	bSizer4->Add( m_pPanelDicomDir, 0, wxEXPAND, 5 );
	
	m_pSep311 = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer4->Add( m_pSep311, 0, wxEXPAND, 5 );
	
	m_pProxy = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pProxy->SetToolTip( _("Proxy settings") );
	
	wxBoxSizer* bSizer3211;
	bSizer3211 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pEnableProxy = new wxCheckBox( m_pProxy, wxID_ANY, _("Enable http proxy"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer3211->Add( m_pEnableProxy, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
	
	m_pProxySettingsButton = new wxButton( m_pProxy, wxID_ANY, _("Proxy settings"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pProxySettingsButton->Enable( false );
	
	bSizer3211->Add( m_pProxySettingsButton, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pProxy->SetSizer( bSizer3211 );
	m_pProxy->Layout();
	bSizer3211->Fit( m_pProxy );
	bSizer4->Add( m_pProxy, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer4 );
	this->Layout();
	bSizer4->Fit( this );
	
	// Connect Events
	this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionGeneralBase::OnSize ) );
	m_pComboLanguage->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnIdiomaCambiado ), NULL, this );
	m_pCheckForUpdates->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnCheckForUpdates ), NULL, this );
	m_pDICOMDir->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnTextoCambiado ), NULL, this );
	m_buttonSeleccionarDICOMDir->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnSeleccionarDirectorio ), NULL, this );
	m_pEnableProxy->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnCheckEnableProxySettings ), NULL, this );
	m_pProxySettingsButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnProxySettings ), NULL, this );
}

PanelConfiguracionGeneralBase::~PanelConfiguracionGeneralBase()
{
	// Disconnect Events
	this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionGeneralBase::OnSize ) );
	m_pComboLanguage->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnIdiomaCambiado ), NULL, this );
	m_pCheckForUpdates->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnCheckForUpdates ), NULL, this );
	m_pDICOMDir->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnTextoCambiado ), NULL, this );
	m_buttonSeleccionarDICOMDir->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnSeleccionarDirectorio ), NULL, this );
	m_pEnableProxy->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnCheckEnableProxySettings ), NULL, this );
	m_pProxySettingsButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionGeneralBase::OnProxySettings ), NULL, this );
	
}

PanelConfiguracionPACSBase::PanelConfiguracionPACSBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_pPACSLocal = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPACSLocal->SetToolTip( _("Local PACS") );
	
	wxBoxSizer* bSizer36;
	bSizer36 = new wxBoxSizer( wxVERTICAL );
	
	m_staticTextExplicacion = new wxStaticText( m_pPACSLocal, wxID_ANY, _("You must configure the local AET, which is used to communicate with the PACS server. The specified port must be opened in the firewall, as it is essential for transfers."), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticTextExplicacion->Wrap( 440 );
	m_staticTextExplicacion->SetMinSize( wxSize( 450,-1 ) );
	
	bSizer36->Add( m_staticTextExplicacion, 0, wxEXPAND|wxBOTTOM, 8 );
	
	wxFlexGridSizer* fgSizer2;
	fgSizer2 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer2->AddGrowableCol( 1 );
	fgSizer2->SetFlexibleDirection( wxBOTH );
	fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText1 = new wxStaticText( m_pPACSLocal, wxID_ANY, _("Local AET"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1->Wrap( -1 );
	fgSizer2->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer31;
	bSizer31 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pAETLocal = new wxTextCtrl( m_pPACSLocal, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), 0 );
	bSizer31->Add( m_pAETLocal, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pAETReal = new wxStaticText( m_pPACSLocal, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pAETReal->Wrap( -1 );
	bSizer31->Add( m_pAETReal, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pHelpBitmap = new wxStaticBitmap( m_pPACSLocal, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
	m_pHelpBitmap->SetToolTip( _("For large-scale implementation in a homogenous environment, you can specify the following wildcards in the local AET:\n\t%IP IP Address\n\t%IP<n> n-th Octet (1~4)\n\t%HOSTNAME Host Name\"") );
	
	bSizer31->Add( m_pHelpBitmap, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	fgSizer2->Add( bSizer31, 1, wxEXPAND, 5 );
	
	m_staticText11 = new wxStaticText( m_pPACSLocal, wxID_ANY, _("Port"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText11->Wrap( -1 );
	fgSizer2->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pPuertoLocal = new wxTextCtrl( m_pPACSLocal, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer2->Add( m_pPuertoLocal, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	
	fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_pBAdvanced = new wxButton( m_pPACSLocal, wxID_ANY, _("Advanced settings..."), wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer2->Add( m_pBAdvanced, 0, wxALIGN_RIGHT|wxTOP, 5 );
	
	bSizer36->Add( fgSizer2, 0, wxEXPAND, 5 );
	
	m_pPACSLocal->SetSizer( bSizer36 );
	m_pPACSLocal->Layout();
	bSizer36->Fit( m_pPACSLocal );
	bSizer6->Add( m_pPACSLocal, 0, wxEXPAND, 5 );
	
	m_pSep = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer6->Add( m_pSep, 0, wxEXPAND, 5 );
	
	m_pPACSServers = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPACSServers->SetToolTip( _("DICOM Nodes") );
	
	wxBoxSizer* bSizer25;
	bSizer25 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pTreeListPACS = new wxTreeListCtrl( m_pPACSServers, wxID_ANY, wxDefaultPosition, wxSize( -1,120 ), wxTR_COLUMN_LINES|wxTR_FULL_ROW_HIGHLIGHT|wxTR_HIDE_ROOT|wxTR_NO_LINES|wxTR_ROW_LINES|wxTR_SINGLE );
	m_pTreeListPACS->SetMinSize( wxSize( -1,120 ) );
	
	
	bSizer25->Add( m_pTreeListPACS, 1, wxEXPAND|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer26;
	bSizer26 = new wxBoxSizer( wxVERTICAL );
	
	m_button3 = new wxButton( m_pPACSServers, wxID_ANY, _("New ..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer26->Add( m_button3, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pEditButton = new wxButton( m_pPACSServers, wxID_ANY, _("Edit ..."), wxDefaultPosition, wxDefaultSize, 0 );
	m_pEditButton->Enable( false );
	
	bSizer26->Add( m_pEditButton, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pDelButton = new wxButton( m_pPACSServers, wxID_ANY, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pDelButton->Enable( false );
	
	bSizer26->Add( m_pDelButton, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	
	bSizer26->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_pDefaultButton = new wxButton( m_pPACSServers, wxID_ANY, _("Set Default"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pDefaultButton->Enable( false );
	
	bSizer26->Add( m_pDefaultButton, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	bSizer25->Add( bSizer26, 0, wxEXPAND, 5 );
	
	m_pPACSServers->SetSizer( bSizer25 );
	m_pPACSServers->Layout();
	bSizer25->Fit( m_pPACSServers );
	bSizer6->Add( m_pPACSServers, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	bSizer6->Fit( this );
	
	// Connect Events
	this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionPACSBase::OnSize ) );
	m_pAETLocal->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnTextoCambiado ), NULL, this );
	m_pHelpBitmap->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelConfiguracionPACSBase::OnHelpClick ), NULL, this );
	m_pPuertoLocal->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnTextoCambiado ), NULL, this );
	m_pBAdvanced->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnAdvancedLocal ), NULL, this );
	m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnNuevoClick ), NULL, this );
	m_pEditButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnEditarClick ), NULL, this );
	m_pDelButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnEliminarClick ), NULL, this );
	m_pDefaultButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnSetDefaultClick ), NULL, this );
}

PanelConfiguracionPACSBase::~PanelConfiguracionPACSBase()
{
	// Disconnect Events
	this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionPACSBase::OnSize ) );
	m_pAETLocal->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnTextoCambiado ), NULL, this );
	m_pHelpBitmap->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelConfiguracionPACSBase::OnHelpClick ), NULL, this );
	m_pPuertoLocal->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnTextoCambiado ), NULL, this );
	m_pBAdvanced->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnAdvancedLocal ), NULL, this );
	m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnNuevoClick ), NULL, this );
	m_pEditButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnEditarClick ), NULL, this );
	m_pDelButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnEliminarClick ), NULL, this );
	m_pDefaultButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPACSBase::OnSetDefaultClick ), NULL, this );
	
}

DialogoEditarCertificadoBase::DialogoEditarCertificadoBase( 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( 510,510 ), wxDefaultSize );
	
	wxBoxSizer* bSizer83;
	bSizer83 = new wxBoxSizer( wxVERTICAL );
	
	m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer86;
	bSizer86 = new wxBoxSizer( wxVERTICAL );
	
	m_pPanelDefault = new SubTitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelDefault->SetToolTip( _("Edit public key") );
	
	wxBoxSizer* bSizer872;
	bSizer872 = new wxBoxSizer( wxVERTICAL );
	
	m_pCheckDefault = new wxCheckBox( m_pPanelDefault, wxID_ANY, _("Use default certificate (certificate configured in local AET settings)"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer872->Add( m_pCheckDefault, 0, 0, 5 );
	
	m_pPanelDefault->SetSizer( bSizer872 );
	m_pPanelDefault->Layout();
	bSizer872->Fit( m_pPanelDefault );
	bSizer86->Add( m_pPanelDefault, 0, wxEXPAND, 5 );
	
	m_pSepDefault = new SubTitledPanelSeparatorV( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer86->Add( m_pSepDefault, 0, wxEXPAND | wxALL, 5 );
	
	m_pPanelPublic = new SubTitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelPublic->SetToolTip( _("Public key") );
	
	wxBoxSizer* bSizer87;
	bSizer87 = new wxBoxSizer( wxVERTICAL );
	
	m_pLabel = new wxStaticText( m_pPanelPublic, wxID_ANY, _("Public key in PEM format"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pLabel->Wrap( -1 );
	bSizer87->Add( m_pLabel, 0, wxBOTTOM|wxRIGHT, 5 );
	
	m_pTextoCertificado = new wxTextCtrl( m_pPanelPublic, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
	bSizer87->Add( m_pTextoCertificado, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
	
	m_button62 = new wxButton( m_pPanelPublic, wxID_ANY, _("Load ..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer87->Add( m_button62, 0, wxALIGN_RIGHT|wxTOP, 5 );
	
	m_pPanelPublic->SetSizer( bSizer87 );
	m_pPanelPublic->Layout();
	bSizer87->Fit( m_pPanelPublic );
	bSizer86->Add( m_pPanelPublic, 1, wxEXPAND, 5 );
	
	m_panel60 = new SubTitledPanelSeparatorV( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer86->Add( m_panel60, 0, wxEXPAND, 5 );
	
	m_pPanelPrivate = new SubTitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelPrivate->SetToolTip( _("Private key") );
	
	wxBoxSizer* bSizer871;
	bSizer871 = new wxBoxSizer( wxVERTICAL );
	
	m_pLabel11 = new wxStaticText( m_pPanelPrivate, wxID_ANY, _("Private key in PEM format"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pLabel11->Wrap( -1 );
	bSizer871->Add( m_pLabel11, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pTextoPrivateKey = new wxTextCtrl( m_pPanelPrivate, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
	bSizer871->Add( m_pTextoPrivateKey, 1, wxEXPAND|wxTOP, 5 );
	
	m_button621 = new wxButton( m_pPanelPrivate, wxID_ANY, _("Load ..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer871->Add( m_button621, 0, wxALIGN_RIGHT|wxTOP, 5 );
	
	m_pPanelPrivate->SetSizer( bSizer871 );
	m_pPanelPrivate->Layout();
	bSizer871->Fit( m_pPanelPrivate );
	bSizer86->Add( m_pPanelPrivate, 1, wxEXPAND, 5 );
	
	m_pBody->SetSizer( bSizer86 );
	m_pBody->Layout();
	bSizer86->Fit( m_pBody );
	bSizer83->Add( m_pBody, 1, wxEXPAND, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer19;
	bSizer19 = new wxBoxSizer( wxHORIZONTAL );
	
	m_button48 = new wxButton( m_pFooter, wxID_ANY, _("Reset to default"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer19->Add( m_button48, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
	
	
	bSizer19->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_button8 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer19->Add( m_button8, 0, wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_button9 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer19->Add( m_button9, 0, wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pFooter->SetSizer( bSizer19 );
	m_pFooter->Layout();
	bSizer19->Fit( m_pFooter );
	bSizer83->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer83 );
	this->Layout();
	bSizer83->Fit( this );
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_pCheckDefault->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnCheckDefault ), NULL, this );
	m_button62->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnLoadPublicClick ), NULL, this );
	m_button621->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnLoadPrivateClick ), NULL, this );
	m_button48->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnResetToDefault ), NULL, this );
	m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnAceptarClick ), NULL, this );
}

DialogoEditarCertificadoBase::~DialogoEditarCertificadoBase()
{
	// Disconnect Events
	m_pCheckDefault->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnCheckDefault ), NULL, this );
	m_button62->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnLoadPublicClick ), NULL, this );
	m_button621->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnLoadPrivateClick ), NULL, this );
	m_button48->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnResetToDefault ), NULL, this );
	m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoEditarCertificadoBase::OnAceptarClick ), NULL, this );
	
}

DialogoServidorPACSBase::DialogoServidorPACSBase( 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( 550,550 ), wxDefaultSize );
	
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxVERTICAL );
	
	m_pHeader = new HeaderPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pHeader->SetToolTip( _("DICOM Node") );
	
	bSizer11->Add( m_pHeader, 0, wxEXPAND, 5 );
	
	m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
	m_panel6 = new BodyPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer85;
	bSizer85 = new wxBoxSizer( wxVERTICAL );
	
	m_panel64 = new SubTitledPanel( m_panel6, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panel64->SetToolTip( _("Settings") );
	
	wxFlexGridSizer* fgSizer4;
	fgSizer4 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer4->AddGrowableCol( 1 );
	fgSizer4->SetFlexibleDirection( wxBOTH );
	fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_pstaticText1 = new wxStaticText( m_panel64, wxID_ANY, _("Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstaticText1->Wrap( -1 );
	fgSizer4->Add( m_pstaticText1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	m_pId = new wxTextCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0 );
	fgSizer4->Add( m_pId, 0, wxALL|wxEXPAND, 5 );
	
	m_pstaticText2 = new wxStaticText( m_panel64, wxID_ANY, _("AET"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstaticText2->Wrap( -1 );
	fgSizer4->Add( m_pstaticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	m_pAET = new wxTextCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0 );
	fgSizer4->Add( m_pAET, 0, wxALL|wxEXPAND, 5 );
	
	m_pstaticText3 = new wxStaticText( m_panel64, wxID_ANY, _("Host"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstaticText3->Wrap( -1 );
	fgSizer4->Add( m_pstaticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	m_pHost = new wxTextCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0 );
	fgSizer4->Add( m_pHost, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 );
	
	m_pstaticText4 = new wxStaticText( m_panel64, wxID_ANY, _("Port"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstaticText4->Wrap( -1 );
	fgSizer4->Add( m_pstaticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	m_pPuerto = new wxTextCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer4->Add( m_pPuerto, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	m_staticText33 = new wxStaticText( m_panel64, wxID_ANY, _("PDU (KB)"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText33->Wrap( -1 );
	fgSizer4->Add( m_staticText33, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	m_pPDU = new wxSpinCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 4096, 16384, 16384 );
	fgSizer4->Add( m_pPDU, 0, wxALL, 5 );
	
	m_staticText48 = new wxStaticText( m_panel64, wxID_ANY, _("Retrieve method"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText48->Wrap( -1 );
	fgSizer4->Add( m_staticText48, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxString m_pRetrieveMethodChoices[] = { _("Move"), _("Get") };
	int m_pRetrieveMethodNChoices = sizeof( m_pRetrieveMethodChoices ) / sizeof( wxString );
	m_pRetrieveMethod = new wxChoice( m_panel64, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_pRetrieveMethodNChoices, m_pRetrieveMethodChoices, 0 );
	m_pRetrieveMethod->SetSelection( 0 );
	fgSizer4->Add( m_pRetrieveMethod, 0, wxALL, 5 );
	
	m_staticText60 = new wxStaticText( m_panel64, wxID_ANY, _("Retrieve mode"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText60->Wrap( -1 );
	fgSizer4->Add( m_staticText60, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxString m_pRetrieveModeChoices[] = { _("Series"), _("Studies") };
	int m_pRetrieveModeNChoices = sizeof( m_pRetrieveModeChoices ) / sizeof( wxString );
	m_pRetrieveMode = new wxChoice( m_panel64, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_pRetrieveModeNChoices, m_pRetrieveModeChoices, 0 );
	m_pRetrieveMode->SetSelection( 0 );
	fgSizer4->Add( m_pRetrieveMode, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_staticText57 = new wxStaticText( m_panel64, wxID_ANY, _("Reuse connection"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText57->Wrap( -1 );
	fgSizer4->Add( m_staticText57, 0, wxALL, 5 );
	
	m_pReuseConnection = new wxCheckBox( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pReuseConnection->SetToolTip( _("Reuse connections when is needed to make more than one queries") );
	
	fgSizer4->Add( m_pReuseConnection, 0, wxALL, 5 );
	
	m_panel64->SetSizer( fgSizer4 );
	m_panel64->Layout();
	fgSizer4->Fit( m_panel64 );
	bSizer85->Add( m_panel64, 0, wxEXPAND, 5 );
	
	m_panel6->SetSizer( bSizer85 );
	m_panel6->Layout();
	bSizer85->Fit( m_panel6 );
	m_notebook1->AddPage( m_panel6, _("DICOM Node"), true );
	m_pPanelSeguridad = new BodyPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer81;
	bSizer81 = new wxBoxSizer( wxVERTICAL );
	
	m_pSSLTLS = new SubTitledPanel( m_pPanelSeguridad, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pSSLTLS->SetToolTip( _("SSL/TLS") );
	
	wxBoxSizer* bSizer87;
	bSizer87 = new wxBoxSizer( wxVERTICAL );
	
	m_pVerifyServer = new wxCheckBox( m_pSSLTLS, wxID_ANY, _("Verify server credentials"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer87->Add( m_pVerifyServer, 0, wxALL, 5 );
	
	m_pUseSSL = new wxCheckBox( m_pSSLTLS, wxID_ANY, _("Use SSL/TLS"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer87->Add( m_pUseSSL, 0, wxALL, 5 );
	
	wxStaticBoxSizer* sbSizer6;
	sbSizer6 = new wxStaticBoxSizer( new wxStaticBox( m_pSSLTLS, wxID_ANY, _("Certificate") ), wxHORIZONTAL );
	
	m_staticText55 = new wxStaticText( m_pSSLTLS, wxID_ANY, _("Certificate to use in this connection"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText55->Wrap( -1 );
	sbSizer6->Add( m_staticText55, 0, wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pBCert = new wxButton( m_pSSLTLS, wxID_ANY, _("Advanced Configuration ..."), wxDefaultPosition, wxDefaultSize, 0 );
	sbSizer6->Add( m_pBCert, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	bSizer87->Add( sbSizer6, 0, wxEXPAND|wxTOP, 5 );
	
	m_pSSLTLS->SetSizer( bSizer87 );
	m_pSSLTLS->Layout();
	bSizer87->Fit( m_pSSLTLS );
	bSizer81->Add( m_pSSLTLS, 0, wxEXPAND, 5 );
	
	m_panelSep = new SubTitledPanelSeparatorV( m_pPanelSeguridad, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer81->Add( m_panelSep, 0, wxEXPAND, 5 );
	
	m_panelUserPass = new SubTitledPanel( m_pPanelSeguridad, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panelUserPass->SetToolTip( _("User/Password") );
	
	wxFlexGridSizer* fgSizer21;
	fgSizer21 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer21->AddGrowableCol( 1 );
	fgSizer21->SetFlexibleDirection( wxBOTH );
	fgSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText61 = new wxStaticText( m_panelUserPass, wxID_ANY, _("User"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText61->Wrap( -1 );
	fgSizer21->Add( m_staticText61, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pUser = new wxTextCtrl( m_panelUserPass, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer21->Add( m_pUser, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	m_staticText62 = new wxStaticText( m_panelUserPass, wxID_ANY, _("Password"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText62->Wrap( -1 );
	fgSizer21->Add( m_staticText62, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pPassword = new wxTextCtrl( m_panelUserPass, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
	fgSizer21->Add( m_pPassword, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	m_panelUserPass->SetSizer( fgSizer21 );
	m_panelUserPass->Layout();
	fgSizer21->Fit( m_panelUserPass );
	bSizer81->Add( m_panelUserPass, 0, wxEXPAND, 5 );
	
	m_panelSep1 = new SubTitledPanelSeparatorV( m_pPanelSeguridad, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer81->Add( m_panelSep1, 0, wxEXPAND, 5 );
	
	m_pPanelDefaultCharset = new SubTitledPanel( m_pPanelSeguridad, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelDefaultCharset->SetToolTip( _("Default charset") );
	
	wxFlexGridSizer* fgSizer211;
	fgSizer211 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer211->AddGrowableCol( 1 );
	fgSizer211->SetFlexibleDirection( wxBOTH );
	fgSizer211->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText131 = new wxStaticText( m_pPanelDefaultCharset, wxID_ANY, _("Default charset"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText131->Wrap( -1 );
	fgSizer211->Add( m_staticText131, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
	
	m_pComboCharset = new wxComboBox( m_pPanelDefaultCharset, wxID_ANY, _("ISO_IR 100"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY|wxCB_SORT );
	m_pComboCharset->Append( _("ISO_IR 192") );
	m_pComboCharset->Append( _("ISO_IR 6") );
	m_pComboCharset->Append( _("ISO_IR 100") );
	m_pComboCharset->Append( _("ISO_IR 101") );
	m_pComboCharset->Append( _("ISO_IR 109") );
	m_pComboCharset->Append( _("ISO_IR 110") );
	m_pComboCharset->Append( _("ISO_IR 126") );
	m_pComboCharset->Append( _("ISO_IR 127") );
	m_pComboCharset->Append( _("ISO_IR 138") );
	m_pComboCharset->Append( _("ISO_IR 144") );
	m_pComboCharset->Append( _("ISO_IR 148") );
	fgSizer211->Add( m_pComboCharset, 1, wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	m_pPanelDefaultCharset->SetSizer( fgSizer211 );
	m_pPanelDefaultCharset->Layout();
	fgSizer211->Fit( m_pPanelDefaultCharset );
	bSizer81->Add( m_pPanelDefaultCharset, 0, wxEXPAND, 5 );
	
	m_pPanelSeguridad->SetSizer( bSizer81 );
	m_pPanelSeguridad->Layout();
	bSizer81->Fit( m_pPanelSeguridad );
	m_notebook1->AddPage( m_pPanelSeguridad, _("Advanced"), false );
	
	bSizer11->Add( m_notebook1, 1, wxEXPAND|wxTOP, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer31;
	bSizer31 = new wxBoxSizer( wxHORIZONTAL );
	
	m_button20 = new wxButton( m_pFooter, wxID_ANY, _("Test connection"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer31->Add( m_button20, 0, wxALIGN_RIGHT|wxALL|wxBOTTOM|wxLEFT|wxTOP, 5 );
	
	
	bSizer31->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_button37 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer31->Add( m_button37, 0, wxALL, 5 );
	
	m_button38 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer31->Add( m_button38, 0, wxALL, 5 );
	
	m_pFooter->SetSizer( bSizer31 );
	m_pFooter->Layout();
	bSizer31->Fit( m_pFooter );
	bSizer11->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer11 );
	this->Layout();
	bSizer11->Fit( this );
	
	// Connect Events
	m_pBCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnAdvancedConfiguration ), NULL, this );
	m_pComboCharset->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DialogoServidorPACSBase::OnTextoCambiado ), NULL, this );
	m_button20->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnProbarClick ), NULL, this );
	m_button37->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnOkClick ), NULL, this );
	m_button38->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnCancelClick ), NULL, this );
}

DialogoServidorPACSBase::~DialogoServidorPACSBase()
{
	// Disconnect Events
	m_pBCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnAdvancedConfiguration ), NULL, this );
	m_pComboCharset->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DialogoServidorPACSBase::OnTextoCambiado ), NULL, this );
	m_button20->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnProbarClick ), NULL, this );
	m_button37->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnOkClick ), NULL, this );
	m_button38->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoServidorPACSBase::OnCancelClick ), NULL, this );
	
}

DialogoLocalPACSBase::DialogoLocalPACSBase( 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( 346,300 ), wxDefaultSize );
	
	wxBoxSizer* bSizer71;
	bSizer71 = new wxBoxSizer( wxVERTICAL );
	
	m_panel51 = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer80;
	bSizer80 = new wxBoxSizer( wxVERTICAL );
	
	m_panel67 = new TitledPanel( m_panel51, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panel67->SetToolTip( _("Security") );
	
	wxBoxSizer* bSizer81;
	bSizer81 = new wxBoxSizer( wxVERTICAL );
	
	m_pVerifyServer = new wxCheckBox( m_panel67, wxID_ANY, _("Verify client credentials"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer81->Add( m_pVerifyServer, 0, wxALL, 5 );
	
	m_pUseTLS = new wxCheckBox( m_panel67, wxID_ANY, _("Use SSL/TLS"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer81->Add( m_pUseTLS, 0, wxALL, 5 );
	
	wxStaticBoxSizer* sbSizer5;
	sbSizer5 = new wxStaticBoxSizer( new wxStaticBox( m_panel67, wxID_ANY, _("Local AET certificate") ), wxVERTICAL );
	
	wxFlexGridSizer* fgSizer36;
	fgSizer36 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer36->AddGrowableCol( 0 );
	fgSizer36->SetFlexibleDirection( wxBOTH );
	fgSizer36->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText55 = new wxStaticText( m_panel67, wxID_ANY, _("Certificate used by Ginkgo CADx"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText55->Wrap( -1 );
	fgSizer36->Add( m_staticText55, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
	
	m_pBCert = new wxButton( m_panel67, wxID_ANY, _("Import ..."), wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer36->Add( m_pBCert, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
	
	sbSizer5->Add( fgSizer36, 1, wxEXPAND, 5 );
	
	bSizer81->Add( sbSizer5, 0, wxEXPAND|wxTOP, 5 );
	
	m_panel67->SetSizer( bSizer81 );
	m_panel67->Layout();
	bSizer81->Fit( m_panel67 );
	bSizer80->Add( m_panel67, 1, wxEXPAND, 5 );
	
	m_panel51->SetSizer( bSizer80 );
	m_panel51->Layout();
	bSizer80->Fit( m_panel51 );
	bSizer71->Add( m_panel51, 1, wxEXPAND, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer19;
	bSizer19 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer19->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_button8 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer19->Add( m_button8, 0, wxRIGHT, 5 );
	
	m_button9 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer19->Add( m_button9, 0, wxLEFT, 5 );
	
	m_pFooter->SetSizer( bSizer19 );
	m_pFooter->Layout();
	bSizer19->Fit( m_pFooter );
	bSizer71->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer71 );
	this->Layout();
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_pBCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoLocalPACSBase::OnEditCertificate ), NULL, this );
	m_button8->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoLocalPACSBase::OnAceptarClick ), NULL, this );
}

DialogoLocalPACSBase::~DialogoLocalPACSBase()
{
	// Disconnect Events
	m_pBCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoLocalPACSBase::OnEditCertificate ), NULL, this );
	m_button8->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoLocalPACSBase::OnAceptarClick ), NULL, this );
	
}

PanelConfiguracionHCEBase::PanelConfiguracionHCEBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	this->SetMinSize( wxSize( 450,-1 ) );
	
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_pHCE = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pHCE->SetToolTip( _("Gingo CADx Application ID used to fill MSH.3 field") );
	
	wxBoxSizer* bSizer38;
	bSizer38 = new wxBoxSizer( wxVERTICAL );
	
	wxFlexGridSizer* fgSizer21;
	fgSizer21 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer21->AddGrowableCol( 1 );
	fgSizer21->SetFlexibleDirection( wxBOTH );
	fgSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_pstIdOrganizacionReceptora = new wxStaticText( m_pHCE, wxID_ANY, _("Receiver organization Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstIdOrganizacionReceptora->Wrap( -1 );
	m_pstIdOrganizacionReceptora->SetToolTip( _("Unique identifier of the organization receiving the message.") );
	
	fgSizer21->Add( m_pstIdOrganizacionReceptora, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pIdOrganizacionReceptora = new wxTextCtrl( m_pHCE, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
	m_pIdOrganizacionReceptora->SetToolTip( _("Unique identifier of the organization receiving the message.") );
	
	fgSizer21->Add( m_pIdOrganizacionReceptora, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pstIdSistemaPeticionario = new wxStaticText( m_pHCE, wxID_ANY, _("Petitioner System Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstIdSistemaPeticionario->Wrap( -1 );
	m_pstIdSistemaPeticionario->SetToolTip( _("Unique identifier of the requesting system.") );
	
	fgSizer21->Add( m_pstIdSistemaPeticionario, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pIdSistemaPeticionario = new wxTextCtrl( m_pHCE, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pIdSistemaPeticionario->SetToolTip( _("Unique identifier of the requesting system.") );
	
	fgSizer21->Add( m_pIdSistemaPeticionario, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pstIdAplicacionRellenadora = new wxStaticText( m_pHCE, wxID_ANY, _("Filler Application Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstIdAplicacionRellenadora->Wrap( -1 );
	m_pstIdAplicacionRellenadora->SetToolTip( _("Unique identifier of the filler application (SIID/Ginkgo CADx).") );
	
	fgSizer21->Add( m_pstIdAplicacionRellenadora, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pIdAplicacionRellenadora = new wxTextCtrl( m_pHCE, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pIdAplicacionRellenadora->SetToolTip( _("Unique identifier of the filler application (SIID/Ginkgo).") );
	
	fgSizer21->Add( m_pIdAplicacionRellenadora, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pstIdAplicacionPACS = new wxStaticText( m_pHCE, wxID_ANY, _("Ginkgo CADx Application Id"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstIdAplicacionPACS->Wrap( -1 );
	m_pstIdAplicacionPACS->SetToolTip( _("Unique identifier of the Picture Archiving and Communication System Application (SIID/PACS).") );
	
	fgSizer21->Add( m_pstIdAplicacionPACS, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
	
	m_pIdGinkgoAplication = new wxTextCtrl( m_pHCE, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pIdGinkgoAplication->SetToolTip( _("Unique identifier of the Picture Archiving and Communication System Application (SIID/PACS).") );
	
	fgSizer21->Add( m_pIdGinkgoAplication, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxLEFT, 5 );
	
	bSizer38->Add( fgSizer21, 1, wxEXPAND, 5 );
	
	m_pHCE->SetSizer( bSizer38 );
	m_pHCE->Layout();
	bSizer38->Fit( m_pHCE );
	bSizer6->Add( m_pHCE, 0, wxEXPAND, 5 );
	
	m_pSep = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer6->Add( m_pSep, 0, wxEXPAND, 5 );
	
	m_pIntegrationEngine = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pIntegrationEngine->SetToolTip( _("Integration engine") );
	
	wxBoxSizer* bSizer24;
	bSizer24 = new wxBoxSizer( wxVERTICAL );
	
	wxFlexGridSizer* fgSizer20;
	fgSizer20 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer20->AddGrowableCol( 1 );
	fgSizer20->SetFlexibleDirection( wxBOTH );
	fgSizer20->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText121 = new wxStaticText( m_pIntegrationEngine, wxID_ANY, _("Hostname / Port"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText121->Wrap( -1 );
	m_staticText121->SetToolTip( _("Hostname (IP or DNS) integration engine") );
	
	fgSizer20->Add( m_staticText121, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer74;
	bSizer74 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pHostnameMI = new wxTextCtrl( m_pIntegrationEngine, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
	bSizer74->Add( m_pHostnameMI, 3, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 5 );
	
	m_staticText60 = new wxStaticText( m_pIntegrationEngine, wxID_ANY, _("/"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText60->Wrap( -1 );
	bSizer74->Add( m_staticText60, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pPuertoMI = new wxTextCtrl( m_pIntegrationEngine, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	bSizer74->Add( m_pPuertoMI, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	fgSizer20->Add( bSizer74, 1, wxEXPAND, 5 );
	
	m_staticText38 = new wxStaticText( m_pIntegrationEngine, wxID_ANY, _("Protocol"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText38->Wrap( -1 );
	m_staticText38->SetToolTip( _("Integration Engine's Transport Layer Protocol") );
	
	fgSizer20->Add( m_staticText38, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer75;
	bSizer75 = new wxBoxSizer( wxHORIZONTAL );
	
	wxString m_pProtocoloChoices[] = { _("MLLP") };
	int m_pProtocoloNChoices = sizeof( m_pProtocoloChoices ) / sizeof( wxString );
	m_pProtocolo = new wxChoice( m_pIntegrationEngine, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_pProtocoloNChoices, m_pProtocoloChoices, 0 );
	m_pProtocolo->SetSelection( 0 );
	bSizer75->Add( m_pProtocolo, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5 );
	
	
	bSizer75->Add( 30, 0, 0, wxEXPAND, 5 );
	
	m_staticText39 = new wxStaticText( m_pIntegrationEngine, wxID_ANY, _("Format"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText39->Wrap( -1 );
	m_staticText39->SetToolTip( _("Message's format") );
	
	bSizer75->Add( m_staticText39, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	wxString m_pFormatoChoices[] = { _("ER7") };
	int m_pFormatoNChoices = sizeof( m_pFormatoChoices ) / sizeof( wxString );
	m_pFormato = new wxChoice( m_pIntegrationEngine, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_pFormatoNChoices, m_pFormatoChoices, 0 );
	m_pFormato->SetSelection( 0 );
	bSizer75->Add( m_pFormato, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	
	bSizer75->Add( 0, 0, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_button15 = new wxButton( m_pIntegrationEngine, wxID_ANY, _("Test engine"), wxDefaultPosition, wxDefaultSize, 0 );
	m_button15->SetToolTip( _("Test Integration Engine connectivity") );
	
	bSizer75->Add( m_button15, 0, wxTOP|wxLEFT|wxALIGN_RIGHT, 5 );
	
	fgSizer20->Add( bSizer75, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	bSizer24->Add( fgSizer20, 1, wxEXPAND, 5 );
	
	m_pIntegrationEngine->SetSizer( bSizer24 );
	m_pIntegrationEngine->Layout();
	bSizer24->Fit( m_pIntegrationEngine );
	bSizer6->Add( m_pIntegrationEngine, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	
	// Connect Events
	this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionHCEBase::OnSize ) );
	m_pIdOrganizacionReceptora->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pIdSistemaPeticionario->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pIdAplicacionRellenadora->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pIdGinkgoAplication->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pHostnameMI->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pPuertoMI->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_button15->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTestClick ), NULL, this );
}

PanelConfiguracionHCEBase::~PanelConfiguracionHCEBase()
{
	// Disconnect Events
	this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionHCEBase::OnSize ) );
	m_pIdOrganizacionReceptora->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pIdSistemaPeticionario->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pIdAplicacionRellenadora->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pIdGinkgoAplication->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pHostnameMI->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_pPuertoMI->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTextoCambiado ), NULL, this );
	m_button15->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionHCEBase::OnTestClick ), NULL, this );
	
}

PanelConfiguracionExtensionesBase::PanelConfiguracionExtensionesBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	this->SetMinSize( wxSize( 450,-1 ) );
	
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_pExtensions = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pExtensions->SetToolTip( _("Extensions") );
	
	wxBoxSizer* bSizer44;
	bSizer44 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer85;
	bSizer85 = new wxBoxSizer( wxVERTICAL );
	
	m_pScrollPanelExtensions = new wxScrolledWindow( m_pExtensions, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
	m_pScrollPanelExtensions->SetScrollRate( 5, 5 );
	wxBoxSizer* bSizer84;
	bSizer84 = new wxBoxSizer( wxVERTICAL );
	
	m_pScrollPanelExtensions->SetSizer( bSizer84 );
	m_pScrollPanelExtensions->Layout();
	bSizer84->Fit( m_pScrollPanelExtensions );
	bSizer85->Add( m_pScrollPanelExtensions, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
	
	bSizer44->Add( bSizer85, 1, wxEXPAND, 5 );
	
	m_pExtensions->SetSizer( bSizer44 );
	m_pExtensions->Layout();
	bSizer44->Fit( m_pExtensions );
	bSizer6->Add( m_pExtensions, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	bSizer6->Fit( this );
	
	// Connect Events
	this->Connect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionExtensionesBase::OnEraseBackground ) );
	m_pExtensions->Connect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionExtensionesBase::OnEraseBackground ), NULL, this );
}

PanelConfiguracionExtensionesBase::~PanelConfiguracionExtensionesBase()
{
	// Disconnect Events
	this->Disconnect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionExtensionesBase::OnEraseBackground ) );
	m_pExtensions->Disconnect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionExtensionesBase::OnEraseBackground ), NULL, this );
	
}

ExtensionPanelBase::ExtensionPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : GinkgoBoxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer80;
	bSizer80 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pThumbnail = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
	m_pThumbnail->SetMinSize( wxSize( 50,50 ) );
	
	bSizer80->Add( m_pThumbnail, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxBoxSizer* bSizer81;
	bSizer81 = new wxBoxSizer( wxVERTICAL );
	
	m_pLabelTitle = new wxStaticText( this, wxID_ANY, _("Ginkgo Extension Title"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pLabelTitle->Wrap( -1 );
	m_pLabelTitle->SetFont( wxFont( 12, 70, 90, 92, false, wxEmptyString ) );
	m_pLabelTitle->SetForegroundColour( wxColour( 63, 63, 63 ) );
	
	bSizer81->Add( m_pLabelTitle, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
	
	bSizer80->Add( bSizer81, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
	
	this->SetSizer( bSizer80 );
	this->Layout();
	bSizer80->Fit( this );
}

ExtensionPanelBase::~ExtensionPanelBase()
{
}

PanelConfiguracionPermisosBase::PanelConfiguracionPermisosBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	this->SetMinSize( wxSize( 450,-1 ) );
	
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_pProfiles = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pProfiles->SetToolTip( _("Profiles") );
	
	wxBoxSizer* bSizer25;
	bSizer25 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pTreeListProfiles = new wxTreeListCtrl( m_pProfiles, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_COLUMN_LINES|wxTR_FULL_ROW_HIGHLIGHT|wxTR_HIDE_ROOT|wxTR_NO_LINES|wxTR_ROW_LINES|wxTR_SINGLE );
	
	bSizer25->Add( m_pTreeListProfiles, 1, wxEXPAND|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer26;
	bSizer26 = new wxBoxSizer( wxVERTICAL );
	
	m_button3 = new wxButton( m_pProfiles, wxID_ANY, _("New ..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer26->Add( m_button3, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pBEdit = new wxButton( m_pProfiles, wxID_ANY, _("Edit ..."), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBEdit->Enable( false );
	
	bSizer26->Add( m_pBEdit, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pBDelete = new wxButton( m_pProfiles, wxID_ANY, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBDelete->Enable( false );
	
	bSizer26->Add( m_pBDelete, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	
	bSizer26->Add( 0, 0, 1, wxEXPAND|wxRIGHT, 5 );
	
	m_pBActive = new wxButton( m_pProfiles, wxID_ANY, _("Set active"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer26->Add( m_pBActive, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	bSizer25->Add( bSizer26, 0, wxEXPAND, 5 );
	
	m_pProfiles->SetSizer( bSizer25 );
	m_pProfiles->Layout();
	bSizer25->Fit( m_pProfiles );
	bSizer6->Add( m_pProfiles, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	bSizer6->Fit( this );
	
	// Connect Events
	this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionPermisosBase::OnSize ) );
	m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnNuevoClick ), NULL, this );
	m_pBEdit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnEditarClick ), NULL, this );
	m_pBDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnEliminarClick ), NULL, this );
	m_pBActive->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnSetActive ), NULL, this );
}

PanelConfiguracionPermisosBase::~PanelConfiguracionPermisosBase()
{
	// Disconnect Events
	this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionPermisosBase::OnSize ) );
	m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnNuevoClick ), NULL, this );
	m_pBEdit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnEditarClick ), NULL, this );
	m_pBDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnEliminarClick ), NULL, this );
	m_pBActive->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionPermisosBase::OnSetActive ), NULL, this );
	
}

ProfileDialogBase::ProfileDialogBase( 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( 770,540 ), wxDefaultSize );
	
	wxBoxSizer* bSizer53;
	bSizer53 = new wxBoxSizer( wxVERTICAL );
	
	m_panel33 = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer44;
	bSizer44 = new wxBoxSizer( wxVERTICAL );
	
	m_pTitled = new TitledPanel( m_panel33, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pTitled->SetToolTip( _("Profile") );
	
	wxBoxSizer* bSizer43;
	bSizer43 = new wxBoxSizer( wxVERTICAL );
	
	wxFlexGridSizer* fgSizer14;
	fgSizer14 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer14->AddGrowableCol( 1 );
	fgSizer14->AddGrowableRow( 1 );
	fgSizer14->SetFlexibleDirection( wxBOTH );
	fgSizer14->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText47 = new wxStaticText( m_pTitled, wxID_ANY, _("Profile name"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText47->Wrap( -1 );
	fgSizer14->Add( m_staticText47, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pName = new wxTextCtrl( m_pTitled, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer14->Add( m_pName, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	bSizer43->Add( fgSizer14, 0, wxEXPAND|wxBOTTOM, 5 );
	
	m_gridPermisos = new wxPropertyGrid(m_pTitled, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPG_BOLD_MODIFIED|wxPG_SPLITTER_AUTO_CENTER|wxPG_TOOLTIPS);
	bSizer43->Add( m_gridPermisos, 1, wxEXPAND|wxTOP, 5 );
	
	m_pTitled->SetSizer( bSizer43 );
	m_pTitled->Layout();
	bSizer43->Fit( m_pTitled );
	bSizer44->Add( m_pTitled, 1, wxEXPAND, 5 );
	
	m_panel33->SetSizer( bSizer44 );
	m_panel33->Layout();
	bSizer44->Fit( m_panel33 );
	bSizer53->Add( m_panel33, 1, wxEXPAND, 5 );
	
	m_pFooterPanel = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer54;
	bSizer54 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer54->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_button28 = new wxButton( m_pFooterPanel, wxID_ANY, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	m_button28->SetDefault(); 
	bSizer54->Add( m_button28, 0, wxRIGHT, 5 );
	
	m_button29 = new wxButton( m_pFooterPanel, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer54->Add( m_button29, 0, wxLEFT, 5 );
	
	m_pFooterPanel->SetSizer( bSizer54 );
	m_pFooterPanel->Layout();
	bSizer54->Fit( m_pFooterPanel );
	bSizer53->Add( m_pFooterPanel, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer53 );
	this->Layout();
	bSizer53->Fit( this );
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_button28->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ProfileDialogBase::OnOkClick ), NULL, this );
	m_button29->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ProfileDialogBase::OnCancelClick ), NULL, this );
}

ProfileDialogBase::~ProfileDialogBase()
{
	// Disconnect Events
	m_button28->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ProfileDialogBase::OnOkClick ), NULL, this );
	m_button29->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ProfileDialogBase::OnCancelClick ), NULL, this );
	
}

PanelConfiguracionUbicacionesBase::PanelConfiguracionUbicacionesBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	this->SetMinSize( wxSize( 450,-1 ) );
	
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_pUbicaciones = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pUbicaciones->SetToolTip( _("Locations") );
	
	wxBoxSizer* bSizer63;
	bSizer63 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer76;
	bSizer76 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticTextExplicacion = new wxStaticText( m_pUbicaciones, wxID_ANY, _("Locations are predefined paths to set locations from well known paths (ex: remote shared disk)"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE );
	m_staticTextExplicacion->Wrap( 430 );
	bSizer76->Add( m_staticTextExplicacion, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	bSizer63->Add( bSizer76, 0, wxEXPAND, 5 );
	
	wxBoxSizer* m_pMainSizer;
	m_pMainSizer = new wxBoxSizer( wxHORIZONTAL );
	
	m_pGridUbicaciones = new wxGrid( m_pUbicaciones, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER );
	
	// Grid
	m_pGridUbicaciones->CreateGrid( 4, 6 );
	m_pGridUbicaciones->EnableEditing( false );
	m_pGridUbicaciones->EnableGridLines( true );
	m_pGridUbicaciones->EnableDragGridSize( false );
	m_pGridUbicaciones->SetMargins( 0, 0 );
	
	// Columns
	m_pGridUbicaciones->AutoSizeColumns();
	m_pGridUbicaciones->EnableDragColMove( false );
	m_pGridUbicaciones->EnableDragColSize( false );
	m_pGridUbicaciones->SetColLabelSize( 20 );
	m_pGridUbicaciones->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
	
	// Rows
	m_pGridUbicaciones->EnableDragRowSize( false );
	m_pGridUbicaciones->SetRowLabelSize( 0 );
	m_pGridUbicaciones->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
	
	// Label Appearance
	
	// Cell Defaults
	m_pGridUbicaciones->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
	m_pMainSizer->Add( m_pGridUbicaciones, 1, wxALL|wxEXPAND, 5 );
	
	wxBoxSizer* m_pSizerBotonera;
	m_pSizerBotonera = new wxBoxSizer( wxVERTICAL );
	
	m_pBotonNuevo = new wxButton( m_pUbicaciones, wxID_ANY, _("New ..."), wxDefaultPosition, wxDefaultSize, 0 );
	m_pSizerBotonera->Add( m_pBotonNuevo, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pBotonEdit = new wxButton( m_pUbicaciones, wxID_ANY, _("Edit ..."), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBotonEdit->Enable( false );
	
	m_pSizerBotonera->Add( m_pBotonEdit, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pBotonDelete = new wxButton( m_pUbicaciones, wxID_ANY, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBotonDelete->Enable( false );
	
	m_pSizerBotonera->Add( m_pBotonDelete, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	
	m_pSizerBotonera->Add( 0, 0, 1, wxEXPAND|wxRIGHT, 5 );
	
	m_pMainSizer->Add( m_pSizerBotonera, 0, wxEXPAND, 5 );
	
	bSizer63->Add( m_pMainSizer, 1, wxEXPAND, 5 );
	
	m_pUbicaciones->SetSizer( bSizer63 );
	m_pUbicaciones->Layout();
	bSizer63->Fit( m_pUbicaciones );
	bSizer6->Add( m_pUbicaciones, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	bSizer6->Fit( this );
	
	// Connect Events
	this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionUbicacionesBase::OnSize ) );
	m_pBotonNuevo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionUbicacionesBase::OnNuevoClick ), NULL, this );
	m_pBotonEdit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionUbicacionesBase::OnEditarClick ), NULL, this );
	m_pBotonDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionUbicacionesBase::OnEliminarClick ), NULL, this );
}

PanelConfiguracionUbicacionesBase::~PanelConfiguracionUbicacionesBase()
{
	// Disconnect Events
	this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelConfiguracionUbicacionesBase::OnSize ) );
	m_pBotonNuevo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionUbicacionesBase::OnNuevoClick ), NULL, this );
	m_pBotonEdit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionUbicacionesBase::OnEditarClick ), NULL, this );
	m_pBotonDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionUbicacionesBase::OnEliminarClick ), NULL, this );
	
}

DialogoAddLocationBase::DialogoAddLocationBase( 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( 450,450 ), wxDefaultSize );
	
	wxBoxSizer* m_pMainSizer;
	m_pMainSizer = new wxBoxSizer( wxVERTICAL );
	
	m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* m_pBodySizer;
	m_pBodySizer = new wxBoxSizer( wxVERTICAL );
	
	m_pPanel = new TitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanel->SetToolTip( _("Configure location") );
	
	wxBoxSizer* m_pPanelSizer;
	m_pPanelSizer = new wxBoxSizer( wxVERTICAL );
	
	wxFlexGridSizer* m_pTableSizer;
	m_pTableSizer = new wxFlexGridSizer( 2, 2, 0, 0 );
	m_pTableSizer->AddGrowableCol( 1 );
	m_pTableSizer->SetFlexibleDirection( wxBOTH );
	m_pTableSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_pSTTitle = new wxStaticText( m_pPanel, wxID_ANY, _("Title"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pSTTitle->Wrap( -1 );
	m_pTableSizer->Add( m_pSTTitle, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
	
	m_pTETitle = new wxTextCtrl( m_pPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pTETitle->SetMaxLength( 8 ); 
	m_pTableSizer->Add( m_pTETitle, 0, wxEXPAND|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pSTLocation = new wxStaticText( m_pPanel, wxID_ANY, _("Location"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pSTLocation->Wrap( -1 );
	m_pTableSizer->Add( m_pSTLocation, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	wxBoxSizer* m_pDirSizer;
	m_pDirSizer = new wxBoxSizer( wxHORIZONTAL );
	
	m_pTELocation = new wxTextCtrl( m_pPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pDirSizer->Add( m_pTELocation, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
	
	m_pOpenDir = new wxButton( m_pPanel, wxID_ANY, _("..."), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	m_pDirSizer->Add( m_pOpenDir, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 );
	
	m_pTableSizer->Add( m_pDirSizer, 0, wxTOP|wxLEFT|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pSTDesc = new wxStaticText( m_pPanel, wxID_ANY, _("Description"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pSTDesc->Wrap( -1 );
	m_pTableSizer->Add( m_pSTDesc, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT, 5 );
	
	m_pTEDesc = new wxTextCtrl( m_pPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_pTEDesc->SetMaxLength( 100 ); 
	m_pTableSizer->Add( m_pTEDesc, 0, wxEXPAND|wxTOP|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pPanelSizer->Add( m_pTableSizer, 0, wxEXPAND|wxBOTTOM, 5 );
	
	m_pMonitorize = new wxCheckBox( m_pPanel, wxID_ANY, _("Monitorize"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pPanelSizer->Add( m_pMonitorize, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pCleanAfter = new wxCheckBox( m_pPanel, wxID_ANY, _("Clean directory after dicomization"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pPanelSizer->Add( m_pCleanAfter, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pCleanBefore = new wxCheckBox( m_pPanel, wxID_ANY, _("Clean directory before dicomization"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pPanelSizer->Add( m_pCleanBefore, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pPanel->SetSizer( m_pPanelSizer );
	m_pPanel->Layout();
	m_pPanelSizer->Fit( m_pPanel );
	m_pBodySizer->Add( m_pPanel, 1, wxEXPAND, 5 );
	
	m_pBody->SetSizer( m_pBodySizer );
	m_pBody->Layout();
	m_pBodySizer->Fit( m_pBody );
	m_pMainSizer->Add( m_pBody, 1, wxEXPAND, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* m_pFooterSizer;
	m_pFooterSizer = new wxBoxSizer( wxHORIZONTAL );
	
	
	m_pFooterSizer->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_pAccept = new wxButton( m_pFooter, wxID_ANY, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pAccept->SetDefault(); 
	m_pFooterSizer->Add( m_pAccept, 0, wxRIGHT, 5 );
	
	m_pCancel = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pFooterSizer->Add( m_pCancel, 0, wxRIGHT, 5 );
	
	m_pFooter->SetSizer( m_pFooterSizer );
	m_pFooter->Layout();
	m_pFooterSizer->Fit( m_pFooter );
	m_pMainSizer->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( m_pMainSizer );
	this->Layout();
	m_pMainSizer->Fit( this );
	
	// Connect Events
	m_pOpenDir->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAddLocationBase::OnOpenDirClick ), NULL, this );
	m_pAccept->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAddLocationBase::OnAceptarClick ), NULL, this );
}

DialogoAddLocationBase::~DialogoAddLocationBase()
{
	// Disconnect Events
	m_pOpenDir->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAddLocationBase::OnOpenDirClick ), NULL, this );
	m_pAccept->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAddLocationBase::OnAceptarClick ), NULL, this );
	
}

PanelConfiguracionSeguridadBase::PanelConfiguracionSeguridadBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer48;
	bSizer48 = new wxBoxSizer( wxVERTICAL );
	
	m_pSecurity = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pSecurity->SetToolTip( _("Security") );
	
	wxBoxSizer* bSizer44;
	bSizer44 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer57;
	bSizer57 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticText47 = new wxStaticText( m_pSecurity, wxID_ANY, _("Security type"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText47->Wrap( -1 );
	bSizer57->Add( m_staticText47, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxArrayString m_pSecTypeChoices;
	m_pSecType = new wxChoice( m_pSecurity, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_pSecTypeChoices, 0 );
	m_pSecType->SetSelection( 0 );
	bSizer57->Add( m_pSecType, 0, wxALL, 5 );
	
	bSizer44->Add( bSizer57, 1, wxEXPAND, 5 );
	
	m_pSecurity->SetSizer( bSizer44 );
	m_pSecurity->Layout();
	bSizer44->Fit( m_pSecurity );
	bSizer48->Add( m_pSecurity, 0, wxEXPAND, 5 );
	
	m_pSep = new SubTitledPanelSeparatorV( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	bSizer48->Add( m_pSep, 0, wxEXPAND, 5 );
	
	m_pPanelUsuarios = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelUsuarios->SetToolTip( _("Users") );
	
	wxBoxSizer* bSizer25;
	bSizer25 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pListaUsuarios = new wxListCtrl( m_pPanelUsuarios, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_SINGLE_SEL|wxLC_SMALL_ICON );
	bSizer25->Add( m_pListaUsuarios, 1, wxEXPAND|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer26;
	bSizer26 = new wxBoxSizer( wxVERTICAL );
	
	m_button3 = new wxButton( m_pPanelUsuarios, wxID_ANY, _("New ..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer26->Add( m_button3, 0, wxTOP|wxBOTTOM|wxLEFT|wxEXPAND, 5 );
	
	m_pBCambiarPassword = new wxButton( m_pPanelUsuarios, wxID_ANY, _("Change Password ..."), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBCambiarPassword->Enable( false );
	
	bSizer26->Add( m_pBCambiarPassword, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pBDelete = new wxButton( m_pPanelUsuarios, wxID_ANY, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBDelete->Enable( false );
	
	bSizer26->Add( m_pBDelete, 0, wxTOP|wxBOTTOM|wxLEFT|wxEXPAND, 5 );
	
	
	bSizer26->Add( 0, 0, 1, wxEXPAND|wxRIGHT, 5 );
	
	bSizer25->Add( bSizer26, 0, wxEXPAND, 5 );
	
	m_pPanelUsuarios->SetSizer( bSizer25 );
	m_pPanelUsuarios->Layout();
	bSizer25->Fit( m_pPanelUsuarios );
	bSizer48->Add( m_pPanelUsuarios, 1, wxEXPAND, 5 );
	
	m_pPanelPassword = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelPassword->SetToolTip( _("Set main password") );
	
	wxBoxSizer* bSizer251;
	bSizer251 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pLabelPassword = new wxStaticText( m_pPanelPassword, wxID_ANY, _("Password is not setted"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pLabelPassword->Wrap( -1 );
	bSizer251->Add( m_pLabelPassword, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pButtonSetPassword = new wxButton( m_pPanelPassword, wxID_ANY, _("Set Password"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer251->Add( m_pButtonSetPassword, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pPanelPassword->SetSizer( bSizer251 );
	m_pPanelPassword->Layout();
	bSizer251->Fit( m_pPanelPassword );
	bSizer48->Add( m_pPanelPassword, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer48 );
	this->Layout();
	
	// Connect Events
	m_pSecurity->Connect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionSeguridadBase::OnEraseBackground ), NULL, this );
	m_pSecType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnSecTypeChoice ), NULL, this );
	m_pPanelUsuarios->Connect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionSeguridadBase::OnEraseBackground ), NULL, this );
	m_pListaUsuarios->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( PanelConfiguracionSeguridadBase::OnListaUsuariosItemDeSelected ), NULL, this );
	m_pListaUsuarios->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( PanelConfiguracionSeguridadBase::OnListaUsuariosItemSelected ), NULL, this );
	m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnNuevoClick ), NULL, this );
	m_pBCambiarPassword->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnCambiarPasswordClick ), NULL, this );
	m_pBDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnEliminarClick ), NULL, this );
	m_pPanelPassword->Connect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionSeguridadBase::OnEraseBackground ), NULL, this );
	m_pButtonSetPassword->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnSetMainPassword ), NULL, this );
}

PanelConfiguracionSeguridadBase::~PanelConfiguracionSeguridadBase()
{
	// Disconnect Events
	m_pSecurity->Disconnect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionSeguridadBase::OnEraseBackground ), NULL, this );
	m_pSecType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnSecTypeChoice ), NULL, this );
	m_pPanelUsuarios->Disconnect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionSeguridadBase::OnEraseBackground ), NULL, this );
	m_pListaUsuarios->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( PanelConfiguracionSeguridadBase::OnListaUsuariosItemDeSelected ), NULL, this );
	m_pListaUsuarios->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( PanelConfiguracionSeguridadBase::OnListaUsuariosItemSelected ), NULL, this );
	m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnNuevoClick ), NULL, this );
	m_pBCambiarPassword->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnCambiarPasswordClick ), NULL, this );
	m_pBDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnEliminarClick ), NULL, this );
	m_pPanelPassword->Disconnect( wxEVT_ERASE_BACKGROUND, wxEraseEventHandler( PanelConfiguracionSeguridadBase::OnEraseBackground ), NULL, this );
	m_pButtonSetPassword->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelConfiguracionSeguridadBase::OnSetMainPassword ), NULL, this );
	
}

UserDialogBase::UserDialogBase( 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( 423,292 ), wxDefaultSize );
	
	wxBoxSizer* bSizer67;
	bSizer67 = new wxBoxSizer( wxVERTICAL );
	
	m_pHeader = new HeaderPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pHeader->SetToolTip( _("Edit User") );
	
	bSizer67->Add( m_pHeader, 0, wxEXPAND, 5 );
	
	m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer68;
	bSizer68 = new wxBoxSizer( wxVERTICAL );
	
	m_pFormPanel = new TitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pFormPanel->SetToolTip( _("Edit User") );
	
	wxBoxSizer* bSizer75;
	bSizer75 = new wxBoxSizer( wxVERTICAL );
	
	
	bSizer75->Add( 0, 0, 1, wxEXPAND, 5 );
	
	wxFlexGridSizer* fgSizer18;
	fgSizer18 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer18->AddGrowableCol( 1 );
	fgSizer18->SetFlexibleDirection( wxBOTH );
	fgSizer18->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_pLabelUser = new wxStaticText( m_pFormPanel, wxID_ANY, _("User Name"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pLabelUser->Wrap( -1 );
	fgSizer18->Add( m_pLabelUser, 0, wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pTCUsuario = new wxTextCtrl( m_pFormPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer18->Add( m_pTCUsuario, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxEXPAND, 5 );
	
	m_pstat2 = new wxStaticText( m_pFormPanel, wxID_ANY, _("Password"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstat2->Wrap( -1 );
	fgSizer18->Add( m_pstat2, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pTCPassword0 = new wxTextCtrl( m_pFormPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
	fgSizer18->Add( m_pTCPassword0, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pstat21 = new wxStaticText( m_pFormPanel, wxID_ANY, _("Confirm Password"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pstat21->Wrap( -1 );
	fgSizer18->Add( m_pstat21, 0, wxTOP|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pTCPassword1 = new wxTextCtrl( m_pFormPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
	fgSizer18->Add( m_pTCPassword1, 0, wxTOP|wxLEFT|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	bSizer75->Add( fgSizer18, 0, wxEXPAND, 5 );
	
	
	bSizer75->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_pFormPanel->SetSizer( bSizer75 );
	m_pFormPanel->Layout();
	bSizer75->Fit( m_pFormPanel );
	bSizer68->Add( m_pFormPanel, 1, wxEXPAND, 5 );
	
	m_pBody->SetSizer( bSizer68 );
	m_pBody->Layout();
	bSizer68->Fit( m_pBody );
	bSizer67->Add( m_pBody, 1, wxEXPAND, 5 );
	
	m_panel54 = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer69;
	bSizer69 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer69->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_button42 = new wxButton( m_panel54, wxID_ANY, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	m_button42->SetDefault(); 
	bSizer69->Add( m_button42, 0, wxRIGHT, 5 );
	
	m_button41 = new wxButton( m_panel54, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer69->Add( m_button41, 0, wxLEFT, 5 );
	
	m_panel54->SetSizer( bSizer69 );
	m_panel54->Layout();
	bSizer69->Fit( m_panel54 );
	bSizer67->Add( m_panel54, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer67 );
	this->Layout();
	bSizer67->Fit( this );
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_button42->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( UserDialogBase::OnOkClick ), NULL, this );
}

UserDialogBase::~UserDialogBase()
{
	// Disconnect Events
	m_button42->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( UserDialogBase::OnOkClick ), NULL, this );
	
}

PanelConfigurationAnonymizationBase::PanelConfigurationAnonymizationBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer77;
	bSizer77 = new wxBoxSizer( wxVERTICAL );
	
	m_pAnonimization = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pAnonimization->SetToolTip( _("Properties") );
	
	wxBoxSizer* bSizer78;
	bSizer78 = new wxBoxSizer( wxVERTICAL );
	
	m_pTagsDicom = new wxPropertyGrid(m_pAnonimization, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPG_DEFAULT_STYLE);
	bSizer78->Add( m_pTagsDicom, 1, wxEXPAND|wxBOTTOM, 5 );
	
	wxBoxSizer* bSizer79;
	bSizer79 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticText52 = new wxStaticText( m_pAnonimization, wxID_ANY, _("Default value"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText52->Wrap( -1 );
	bSizer79->Add( m_staticText52, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
	
	m_pTextDefaultValue = new wxTextCtrl( m_pAnonimization, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), 0 );
	bSizer79->Add( m_pTextDefaultValue, 0, wxALL, 5 );
	
	bSizer78->Add( bSizer79, 0, wxEXPAND, 5 );
	
	m_pAnonimization->SetSizer( bSizer78 );
	m_pAnonimization->Layout();
	bSizer78->Fit( m_pAnonimization );
	bSizer77->Add( m_pAnonimization, 1, wxEXPAND | wxALL, 5 );
	
	this->SetSizer( bSizer77 );
	this->Layout();
}

PanelConfigurationAnonymizationBase::~PanelConfigurationAnonymizationBase()
{
}

HangingProtocolConfigurationPanelBase::HangingProtocolConfigurationPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_pProtocols = new SubTitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pProtocols->SetToolTip( _("Hanging protocols") );
	
	wxBoxSizer* bSizer25;
	bSizer25 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pTreeListProtocols = new wxTreeListCtrl( m_pProtocols, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_COLUMN_LINES|wxTR_FULL_ROW_HIGHLIGHT|wxTR_HIDE_ROOT|wxTR_NO_LINES|wxTR_ROW_LINES|wxTR_SINGLE );
	m_pTreeListProtocols->AddColumn( _("Name"), 200, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListProtocols->AddColumn( _("Enabled"), 150, wxALIGN_LEFT, -1, true, false ); 
	
	bSizer25->Add( m_pTreeListProtocols, 1, wxEXPAND|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer26;
	bSizer26 = new wxBoxSizer( wxVERTICAL );
	
	m_button3 = new wxButton( m_pProtocols, wxID_ANY, _("New ..."), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer26->Add( m_button3, 0, wxTOP|wxBOTTOM|wxLEFT|wxEXPAND, 5 );
	
	m_pBEdit = new wxButton( m_pProtocols, wxID_ANY, _("Edit ..."), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBEdit->Enable( false );
	
	bSizer26->Add( m_pBEdit, 0, wxTOP|wxBOTTOM|wxLEFT|wxEXPAND, 5 );
	
	m_pBDelete = new wxButton( m_pProtocols, wxID_ANY, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBDelete->Enable( false );
	
	bSizer26->Add( m_pBDelete, 0, wxTOP|wxBOTTOM|wxLEFT|wxEXPAND, 5 );
	
	
	bSizer26->Add( 0, 0, 1, wxEXPAND|wxRIGHT, 5 );
	
	m_pBActive = new wxButton( m_pProtocols, wxID_ANY, _("Enable/Disable"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer26->Add( m_pBActive, 0, wxTOP|wxBOTTOM|wxLEFT|wxEXPAND, 5 );
	
	bSizer25->Add( bSizer26, 0, wxEXPAND, 5 );
	
	m_pProtocols->SetSizer( bSizer25 );
	m_pProtocols->Layout();
	bSizer25->Fit( m_pProtocols );
	bSizer6->Add( m_pProtocols, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	
	// Connect Events
	m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnNuevoClick ), NULL, this );
	m_pBEdit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnEditarClick ), NULL, this );
	m_pBDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnEliminarClick ), NULL, this );
	m_pBActive->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnSetActive ), NULL, this );
}

HangingProtocolConfigurationPanelBase::~HangingProtocolConfigurationPanelBase()
{
	// Disconnect Events
	m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnNuevoClick ), NULL, this );
	m_pBEdit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnEditarClick ), NULL, this );
	m_pBDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnEliminarClick ), NULL, this );
	m_pBActive->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( HangingProtocolConfigurationPanelBase::OnSetActive ), NULL, this );
	
}

EditHangingProtocolDialogBase::EditHangingProtocolDialogBase( 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( 500,600 ), wxDefaultSize );
	
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxVERTICAL );
	
	m_pHeader = new HeaderPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pHeader->SetToolTip( _("Hanging protocol") );
	
	bSizer11->Add( m_pHeader, 0, wxEXPAND, 5 );
	
	m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
	m_pPanelGeneral = new BodyPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer85;
	bSizer85 = new wxBoxSizer( wxVERTICAL );
	
	m_panel64 = new SubTitledPanel( m_pPanelGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panel64->SetToolTip( _("Settings") );
	
	wxBoxSizer* bSizer110;
	bSizer110 = new wxBoxSizer( wxVERTICAL );
	
	wxFlexGridSizer* fgSizer25;
	fgSizer25 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer25->AddGrowableCol( 1 );
	fgSizer25->SetFlexibleDirection( wxBOTH );
	fgSizer25->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText87 = new wxStaticText( m_panel64, wxID_ANY, _("Name"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText87->Wrap( -1 );
	fgSizer25->Add( m_staticText87, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_textName = new wxTextCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer25->Add( m_textName, 0, wxALL|wxEXPAND, 5 );
	
	m_staticText88 = new wxStaticText( m_panel64, wxID_ANY, _("Description"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText88->Wrap( -1 );
	fgSizer25->Add( m_staticText88, 0, wxALL, 5 );
	
	m_textDescription = new wxTextCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
	fgSizer25->Add( m_textDescription, 0, wxALL|wxEXPAND, 5 );
	
	m_staticText91 = new wxStaticText( m_panel64, wxID_ANY, _("Opening mode"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText91->Wrap( -1 );
	fgSizer25->Add( m_staticText91, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_textOpeningMode = new wxTextCtrl( m_panel64, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	m_textOpeningMode->Enable( false );
	
	fgSizer25->Add( m_textOpeningMode, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
	
	bSizer110->Add( fgSizer25, 0, wxEXPAND, 5 );
	
	m_panel64->SetSizer( bSizer110 );
	m_panel64->Layout();
	bSizer110->Fit( m_panel64 );
	bSizer85->Add( m_panel64, 0, wxEXPAND, 5 );
	
	m_panel641 = new SubTitledPanelSeparatorV( m_pPanelGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panel641->SetToolTip( _("Settings") );
	
	bSizer85->Add( m_panel641, 0, wxEXPAND, 5 );
	
	m_panelStudyCriteria = new SubTitledPanel( m_pPanelGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panelStudyCriteria->SetToolTip( _("Study criteria") );
	
	m_pSizerStudyCriteria = new wxBoxSizer( wxVERTICAL );
	
	m_panelStudyCriteria->SetSizer( m_pSizerStudyCriteria );
	m_panelStudyCriteria->Layout();
	m_pSizerStudyCriteria->Fit( m_panelStudyCriteria );
	bSizer85->Add( m_panelStudyCriteria, 1, wxEXPAND, 5 );
	
	m_pPanelGeneral->SetSizer( bSizer85 );
	m_pPanelGeneral->Layout();
	bSizer85->Fit( m_pPanelGeneral );
	m_notebook1->AddPage( m_pPanelGeneral, _("General"), false );
	m_pPanelLayout = new BodyPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer81;
	bSizer81 = new wxBoxSizer( wxVERTICAL );
	
	m_pLayoutPreview = new SubTitledPanel( m_pPanelLayout, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pLayoutPreview->SetToolTip( _("Layout") );
	
	wxBoxSizer* bSizer90;
	bSizer90 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bsizer91;
	bsizer91 = new wxBoxSizer( wxVERTICAL );
	
	m_pSizerLayoutTools = new wxBoxSizer( wxHORIZONTAL );
	
	
	m_pSizerLayoutTools->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_staticText56 = new wxStaticText( m_pLayoutPreview, wxID_ANY, _("Rows"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText56->Wrap( -1 );
	m_pSizerLayoutTools->Add( m_staticText56, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pSpinRows = new wxSpinCtrl( m_pLayoutPreview, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), wxSP_ARROW_KEYS, 1, 4, 1 );
	m_pSizerLayoutTools->Add( m_pSpinRows, 0, wxALL, 5 );
	
	m_staticText57 = new wxStaticText( m_pLayoutPreview, wxID_ANY, _("Columns"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText57->Wrap( -1 );
	m_pSizerLayoutTools->Add( m_staticText57, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pSpinCols = new wxSpinCtrl( m_pLayoutPreview, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), wxSP_ARROW_KEYS, 1, 4, 1 );
	m_pSizerLayoutTools->Add( m_pSpinCols, 0, wxALL, 5 );
	
	bsizer91->Add( m_pSizerLayoutTools, 1, wxEXPAND|wxBOTTOM, 5 );
	
	bSizer90->Add( bsizer91, 0, wxEXPAND, 5 );
	
	m_pPreviewSizer = new wxStaticBoxSizer( new wxStaticBox( m_pLayoutPreview, wxID_ANY, _("Current layout") ), wxVERTICAL );
	
	bSizer90->Add( m_pPreviewSizer, 1, wxEXPAND, 5 );
	
	m_pLayoutPreview->SetSizer( bSizer90 );
	m_pLayoutPreview->Layout();
	bSizer90->Fit( m_pLayoutPreview );
	bSizer81->Add( m_pLayoutPreview, 1, wxEXPAND, 5 );
	
	m_panel6411 = new SubTitledPanelSeparatorV( m_pPanelLayout, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_panel6411->SetToolTip( _("Settings") );
	
	bSizer81->Add( m_panel6411, 0, wxEXPAND, 5 );
	
	m_panelSeriesCriteria = new SubTitledPanel( m_pPanelLayout, wxID_ANY, wxDefaultPosition, wxSize( -1,150 ), wxTAB_TRAVERSAL );
	m_panelSeriesCriteria->SetToolTip( _("Series criteria") );
	m_panelSeriesCriteria->SetMinSize( wxSize( -1,150 ) );
	
	m_pSizerSeriesCriteria = new wxBoxSizer( wxVERTICAL );
	
	m_panelSeriesCriteria->SetSizer( m_pSizerSeriesCriteria );
	m_panelSeriesCriteria->Layout();
	bSizer81->Add( m_panelSeriesCriteria, 0, wxEXPAND, 5 );
	
	m_pPanelLayout->SetSizer( bSizer81 );
	m_pPanelLayout->Layout();
	bSizer81->Fit( m_pPanelLayout );
	m_notebook1->AddPage( m_pPanelLayout, _("Layout"), true );
	
	bSizer11->Add( m_notebook1, 1, wxEXPAND|wxTOP, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer31;
	bSizer31 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer31->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_button37 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer31->Add( m_button37, 0, wxALL, 5 );
	
	m_button38 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer31->Add( m_button38, 0, wxALL, 5 );
	
	m_pFooter->SetSizer( bSizer31 );
	m_pFooter->Layout();
	bSizer31->Fit( m_pFooter );
	bSizer11->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer11 );
	this->Layout();
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_pSpinRows->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EditHangingProtocolDialogBase::OnSpinRows ), NULL, this );
	m_pSpinCols->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EditHangingProtocolDialogBase::OnSpinCols ), NULL, this );
	m_button37->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnOkClick ), NULL, this );
	m_button38->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnCancelClick ), NULL, this );
}

EditHangingProtocolDialogBase::~EditHangingProtocolDialogBase()
{
	// Disconnect Events
	m_pSpinRows->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EditHangingProtocolDialogBase::OnSpinRows ), NULL, this );
	m_pSpinCols->Disconnect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( EditHangingProtocolDialogBase::OnSpinCols ), NULL, this );
	m_button37->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnOkClick ), NULL, this );
	m_button38->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditHangingProtocolDialogBase::OnCancelClick ), NULL, this );
	
}

EditCriteriaPanelBase::EditCriteriaPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer25;
	bSizer25 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pTreeListCriteria = new wxTreeListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_COLUMN_LINES|wxTR_EDIT_LABELS|wxTR_FULL_ROW_HIGHLIGHT|wxTR_HIDE_ROOT|wxTR_NO_LINES|wxTR_ROW_LINES|wxTR_SINGLE );
	m_pTreeListCriteria->AddColumn( _("Dicom tag"), 250, wxALIGN_LEFT, -1, true, false ); 
	m_pTreeListCriteria->AddColumn( _("Value"), 250, wxALIGN_LEFT, -1, true, true ); 
	m_pTreeListCriteria->AddColumn( _("UID"), 0, wxALIGN_LEFT, -1, false, false ); 
	
	bSizer25->Add( m_pTreeListCriteria, 1, wxEXPAND|wxRIGHT, 5 );
	
	wxBoxSizer* bSizer26;
	bSizer26 = new wxBoxSizer( wxVERTICAL );
	
	m_button3 = new wxButton( this, wxID_ANY, _("Add"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer26->Add( m_button3, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	m_pBDelete = new wxButton( this, wxID_ANY, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pBDelete->Enable( false );
	
	bSizer26->Add( m_pBDelete, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
	
	bSizer25->Add( bSizer26, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer25 );
	this->Layout();
	
	// Connect Events
	m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditCriteriaPanelBase::OnAddClick ), NULL, this );
	m_pBDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditCriteriaPanelBase::OnDeleteClick ), NULL, this );
}

EditCriteriaPanelBase::~EditCriteriaPanelBase()
{
	// Disconnect Events
	m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditCriteriaPanelBase::OnAddClick ), NULL, this );
	m_pBDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditCriteriaPanelBase::OnDeleteClick ), NULL, this );
	
}

SelectOpeningModeBase::SelectOpeningModeBase( 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( 525,180 ), wxDefaultSize );
	
	wxBoxSizer* bSizer15;
	bSizer15 = new wxBoxSizer( wxVERTICAL );
	
	m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxVERTICAL );
	
	m_pPanelMessage = new TitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelMessage->SetToolTip( _("Select opening mode") );
	
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxHORIZONTAL );
	
	m_pLabel = new wxStaticText( m_pPanelMessage, wxID_ANY, _("Select opening mode"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pLabel->Wrap( -1 );
	bSizer4->Add( m_pLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxArrayString m_pOpeningModeChoices;
	m_pOpeningMode = new wxChoice( m_pPanelMessage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_pOpeningModeChoices, 0 );
	m_pOpeningMode->SetSelection( 0 );
	bSizer4->Add( m_pOpeningMode, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_pPanelMessage->SetSizer( bSizer4 );
	m_pPanelMessage->Layout();
	bSizer4->Fit( m_pPanelMessage );
	bSizer7->Add( m_pPanelMessage, 1, wxEXPAND, 5 );
	
	m_pBody->SetSizer( bSizer7 );
	m_pBody->Layout();
	bSizer7->Fit( m_pBody );
	bSizer15->Add( m_pBody, 1, wxEXPAND, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer16;
	bSizer16 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer16->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_pOkButton = new wxButton( m_pFooter, wxID_OK, _("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pOkButton->SetDefault(); 
	bSizer16->Add( m_pOkButton, 0, wxRIGHT, 5 );
	
	m_button5 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer16->Add( m_button5, 0, wxLEFT, 5 );
	
	m_pFooter->SetSizer( bSizer16 );
	m_pFooter->Layout();
	bSizer16->Fit( m_pFooter );
	bSizer15->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer15 );
	this->Layout();
	bSizer15->Fit( this );
	
	this->Centre( wxBOTH );
}

SelectOpeningModeBase::~SelectOpeningModeBase()
{
}

AddTagDialogBase::AddTagDialogBase( 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( 400,220 ), wxDefaultSize );
	
	wxBoxSizer* bSizer15;
	bSizer15 = new wxBoxSizer( wxVERTICAL );
	
	m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxVERTICAL );
	
	m_pPanelMessage = new TitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	m_pPanelMessage->SetToolTip( _("Add DICOM tag") );
	
	wxFlexGridSizer* fgSizer17;
	fgSizer17 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer17->SetFlexibleDirection( wxBOTH );
	fgSizer17->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText59 = new wxStaticText( m_pPanelMessage, wxID_ANY, _("Tag"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText59->Wrap( -1 );
	fgSizer17->Add( m_staticText59, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
	
	m_staticText60 = new wxStaticText( m_pPanelMessage, wxID_ANY, _("Value"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText60->Wrap( -1 );
	fgSizer17->Add( m_staticText60, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
	
	wxArrayString m_pChoiceTagChoices;
	m_pChoiceTag = new wxChoice( m_pPanelMessage, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_pChoiceTagChoices, 0 );
	m_pChoiceTag->SetSelection( 0 );
	fgSizer17->Add( m_pChoiceTag, 0, wxALL, 5 );
	
	m_pTextValue = new wxTextCtrl( m_pPanelMessage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	fgSizer17->Add( m_pTextValue, 0, wxALL, 5 );
	
	m_pPanelMessage->SetSizer( fgSizer17 );
	m_pPanelMessage->Layout();
	fgSizer17->Fit( m_pPanelMessage );
	bSizer7->Add( m_pPanelMessage, 1, wxEXPAND, 5 );
	
	m_pBody->SetSizer( bSizer7 );
	m_pBody->Layout();
	bSizer7->Fit( m_pBody );
	bSizer15->Add( m_pBody, 1, wxEXPAND, 5 );
	
	m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer16;
	bSizer16 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer16->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_pOkButton = new wxButton( m_pFooter, wxID_OK, _("Ok"), wxDefaultPosition, wxDefaultSize, 0 );
	m_pOkButton->SetDefault(); 
	bSizer16->Add( m_pOkButton, 0, wxRIGHT, 5 );
	
	m_button5 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer16->Add( m_button5, 0, wxLEFT, 5 );
	
	m_pFooter->SetSizer( bSizer16 );
	m_pFooter->Layout();
	bSizer16->Fit( m_pFooter );
	bSizer15->Add( m_pFooter, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer15 );
	this->Layout();
	bSizer15->Fit( this );
	
	this->Centre( wxBOTH );
}

AddTagDialogBase::~AddTagDialogBase()
{
}
