1
///////////////////////////////////////////////////////////////////////////
2
// C++ code generated with wxFormBuilder (version May 4 2010)
3
// http://www.wxformbuilder.org/
5
// PLEASE DO "NOT" EDIT THIS FILE!
6
///////////////////////////////////////////////////////////////////////////
8
#include "wx/ginkgostyle/ginkgostyle.h"
10
#include "panelhistorial2base.h"
12
///////////////////////////////////////////////////////////////////////////
14
PanelPacienteBase::PanelPacienteBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
16
this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVECAPTION ) );
19
bSizer10 = new wxBoxSizer( wxVERTICAL );
21
m_pPanelCabecera = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
23
bSizer18 = new wxBoxSizer( wxVERTICAL );
25
wxGridBagSizer* gbSizer1;
26
gbSizer1 = new wxGridBagSizer( 0, 1 );
27
gbSizer1->AddGrowableCol( 0 );
28
gbSizer1->SetFlexibleDirection( wxBOTH );
29
gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31
m_pIcoPlegar = new wxStaticBitmap( m_pPanelCabecera, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
32
m_pIcoPlegar->SetMinSize( wxSize( 16,16 ) );
34
gbSizer1->Add( m_pIcoPlegar, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxTOP|wxRIGHT|wxLEFT, 5 );
36
m_pIdPaciente = new wxStaticText( m_pPanelCabecera, wxID_ANY, _("12412012 Q"), wxDefaultPosition, wxDefaultSize, 0 );
37
m_pIdPaciente->Wrap( -1 );
38
m_pIdPaciente->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
39
m_pIdPaciente->SetForegroundColour( wxColour( 255, 255, 255 ) );
41
gbSizer1->Add( m_pIdPaciente, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
43
m_pFechaNacimiento = new wxStaticText( m_pPanelCabecera, wxID_ANY, _("31/08/1983"), wxDefaultPosition, wxDefaultSize, 0 );
44
m_pFechaNacimiento->Wrap( -1 );
45
m_pFechaNacimiento->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
46
m_pFechaNacimiento->SetForegroundColour( wxColour( 255, 255, 255 ) );
48
gbSizer1->Add( m_pFechaNacimiento, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALIGN_RIGHT|wxALL, 5 );
51
bSizer15 = new wxBoxSizer( wxHORIZONTAL );
53
m_pNombre = new wxStaticText( m_pPanelCabecera, wxID_ANY, _("Javier Tovar Velasco"), wxDefaultPosition, wxDefaultSize, 0 );
54
m_pNombre->Wrap( -1 );
55
m_pNombre->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
56
m_pNombre->SetForegroundColour( wxColour( 255, 255, 255 ) );
58
bSizer15->Add( m_pNombre, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
60
gbSizer1->Add( bSizer15, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
62
bSizer18->Add( gbSizer1, 0, wxEXPAND, 5 );
64
m_pPanelCabecera->SetSizer( bSizer18 );
65
m_pPanelCabecera->Layout();
66
bSizer18->Fit( m_pPanelCabecera );
67
bSizer10->Add( m_pPanelCabecera, 0, wxEXPAND, 5 );
69
m_pSizerEstudios = new wxBoxSizer( wxVERTICAL );
72
m_pSizerEstudios->Add( 0, 6, 0, wxEXPAND, 5 );
74
bSizer10->Add( m_pSizerEstudios, 1, wxEXPAND, 0 );
76
this->SetSizer( bSizer10 );
80
this->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnPanelPacienteClick ) );
81
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ) );
82
this->Connect( wxEVT_PAINT, wxPaintEventHandler( PanelPacienteBase::OnPaint ) );
83
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ) );
84
this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelPacienteBase::OnSize ) );
85
m_pPanelCabecera->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
86
m_pPanelCabecera->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
87
m_pPanelCabecera->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
88
m_pIcoPlegar->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
89
m_pIcoPlegar->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
90
m_pIcoPlegar->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
91
m_pIdPaciente->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelPacienteBase::OnCabeceraDClick ), NULL, this );
92
m_pIdPaciente->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
93
m_pIdPaciente->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
94
m_pIdPaciente->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
95
m_pFechaNacimiento->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
96
m_pFechaNacimiento->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
97
m_pFechaNacimiento->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
98
m_pNombre->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
99
m_pNombre->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
100
m_pNombre->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
103
PanelPacienteBase::~PanelPacienteBase()
106
this->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnPanelPacienteClick ) );
107
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ) );
108
this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PanelPacienteBase::OnPaint ) );
109
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ) );
110
this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelPacienteBase::OnSize ) );
111
m_pPanelCabecera->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
112
m_pPanelCabecera->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
113
m_pPanelCabecera->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
114
m_pIcoPlegar->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
115
m_pIcoPlegar->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
116
m_pIcoPlegar->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
117
m_pIdPaciente->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelPacienteBase::OnCabeceraDClick ), NULL, this );
118
m_pIdPaciente->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
119
m_pIdPaciente->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
120
m_pIdPaciente->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
121
m_pFechaNacimiento->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
122
m_pFechaNacimiento->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
123
m_pFechaNacimiento->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
124
m_pNombre->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
125
m_pNombre->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
126
m_pNombre->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
130
PanelEstudioBase::PanelEstudioBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
132
this->SetBackgroundColour( wxColour( 255, 255, 255 ) );
134
wxBoxSizer* m_pSizerPrincipal;
135
m_pSizerPrincipal = new wxBoxSizer( wxVERTICAL );
137
m_pLabelEstudio = new wxStaticText( this, wxID_ANY, _("Brain oasc asdf"), wxDefaultPosition, wxDefaultSize, 0 );
138
m_pLabelEstudio->Wrap( -1 );
139
m_pSizerPrincipal->Add( m_pLabelEstudio, 0, wxALL, 6 );
141
m_pSizerSeries = new wxBoxSizer( wxVERTICAL );
143
m_pSizerPrincipal->Add( m_pSizerSeries, 1, wxEXPAND|wxALL, 1 );
145
this->SetSizer( m_pSizerPrincipal );
149
this->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ) );
150
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ) );
151
this->Connect( wxEVT_PAINT, wxPaintEventHandler( PanelEstudioBase::OnPaint ) );
152
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ) );
153
m_pLabelEstudio->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ), NULL, this );
154
m_pLabelEstudio->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ), NULL, this );
155
m_pLabelEstudio->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ), NULL, this );
158
PanelEstudioBase::~PanelEstudioBase()
161
this->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ) );
162
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ) );
163
this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PanelEstudioBase::OnPaint ) );
164
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ) );
165
m_pLabelEstudio->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ), NULL, this );
166
m_pLabelEstudio->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ), NULL, this );
167
m_pLabelEstudio->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ), NULL, this );
171
PanelSerieBase::PanelSerieBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
173
this->SetBackgroundColour( wxColour( 16, 16, 16 ) );
174
this->SetMinSize( wxSize( 200,98 ) );
176
wxBoxSizer* bSizer11;
177
bSizer11 = new wxBoxSizer( wxHORIZONTAL );
179
wxBoxSizer* bSizer12;
180
bSizer12 = new wxBoxSizer( wxHORIZONTAL );
182
m_pThumbnail = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
183
m_pThumbnail->SetMinSize( wxSize( 96,96 ) );
184
m_pThumbnail->SetMaxSize( wxSize( 96,96 ) );
186
bSizer12->Add( m_pThumbnail, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0 );
188
wxBoxSizer* bSizer13;
189
bSizer13 = new wxBoxSizer( wxVERTICAL );
191
m_pDescripcionSerie = new wxStaticText( this, wxID_ANY, _("Esto es un texto algo largo para probar "), wxDefaultPosition, wxDefaultSize, 0 );
192
m_pDescripcionSerie->Wrap( -1 );
193
m_pDescripcionSerie->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );
194
m_pDescripcionSerie->SetForegroundColour( wxColour( 255, 255, 255 ) );
196
bSizer13->Add( m_pDescripcionSerie, 0, wxALL, 3 );
198
m_pHoraSerie = new wxStaticText( this, wxID_ANY, _("10:20"), wxDefaultPosition, wxDefaultSize, 0 );
199
m_pHoraSerie->Wrap( -1 );
200
m_pHoraSerie->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
201
m_pHoraSerie->SetForegroundColour( wxColour( 210, 210, 210 ) );
203
bSizer13->Add( m_pHoraSerie, 0, wxALL, 3 );
205
m_pFechaSerie = new wxStaticText( this, wxID_ANY, _("31/02/2010"), wxDefaultPosition, wxDefaultSize, 0 );
206
m_pFechaSerie->Wrap( -1 );
207
m_pFechaSerie->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
208
m_pFechaSerie->SetForegroundColour( wxColour( 210, 210, 210 ) );
210
bSizer13->Add( m_pFechaSerie, 0, wxALL, 3 );
213
bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
215
wxGridBagSizer* gbSizer21;
216
gbSizer21 = new wxGridBagSizer( 0, 2 );
217
gbSizer21->AddGrowableCol( 1 );
218
gbSizer21->SetFlexibleDirection( wxBOTH );
219
gbSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
221
m_pModalidad = new wxStaticText( this, wxID_ANY, _("CT"), wxDefaultPosition, wxDefaultSize, 0 );
222
m_pModalidad->Wrap( -1 );
223
m_pModalidad->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 75, 90, 90, false, wxEmptyString ) );
224
m_pModalidad->SetForegroundColour( wxColour( 255, 255, 255 ) );
226
gbSizer21->Add( m_pModalidad, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_LEFT|wxALL, 3 );
228
m_pNumeroCortes = new wxStaticText( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
229
m_pNumeroCortes->Wrap( -1 );
230
m_pNumeroCortes->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 75, 90, 90, false, wxEmptyString ) );
231
m_pNumeroCortes->SetForegroundColour( wxColour( 255, 255, 255 ) );
233
gbSizer21->Add( m_pNumeroCortes, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxALL, 3 );
235
bSizer13->Add( gbSizer21, 0, wxEXPAND, 2 );
237
bSizer12->Add( bSizer13, 1, wxEXPAND|wxLEFT, 2 );
239
bSizer11->Add( bSizer12, 1, wxEXPAND|wxALL, 1 );
241
this->SetSizer( bSizer11 );
245
this->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ) );
246
this->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ) );
247
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ) );
248
this->Connect( wxEVT_PAINT, wxPaintEventHandler( PanelSerieBase::OnPaint ) );
249
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ) );
250
m_pThumbnail->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
251
m_pThumbnail->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
252
m_pThumbnail->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
253
m_pThumbnail->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
254
m_pDescripcionSerie->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
255
m_pDescripcionSerie->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
256
m_pDescripcionSerie->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
257
m_pDescripcionSerie->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
258
m_pHoraSerie->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
259
m_pHoraSerie->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
260
m_pHoraSerie->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
261
m_pHoraSerie->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
262
m_pFechaSerie->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
263
m_pFechaSerie->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
264
m_pFechaSerie->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
265
m_pFechaSerie->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
266
m_pModalidad->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
267
m_pModalidad->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
268
m_pModalidad->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
269
m_pModalidad->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
270
m_pNumeroCortes->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
271
m_pNumeroCortes->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
272
m_pNumeroCortes->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
273
m_pNumeroCortes->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
276
PanelSerieBase::~PanelSerieBase()
279
this->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ) );
280
this->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ) );
281
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ) );
282
this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PanelSerieBase::OnPaint ) );
283
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ) );
284
m_pThumbnail->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
285
m_pThumbnail->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
286
m_pThumbnail->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
287
m_pThumbnail->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
288
m_pDescripcionSerie->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
289
m_pDescripcionSerie->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
290
m_pDescripcionSerie->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
291
m_pDescripcionSerie->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
292
m_pHoraSerie->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
293
m_pHoraSerie->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
294
m_pHoraSerie->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
295
m_pHoraSerie->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
296
m_pFechaSerie->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
297
m_pFechaSerie->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
298
m_pFechaSerie->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
299
m_pFechaSerie->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
300
m_pModalidad->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
301
m_pModalidad->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
302
m_pModalidad->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
303
m_pModalidad->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
304
m_pNumeroCortes->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
305
m_pNumeroCortes->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
306
m_pNumeroCortes->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
307
m_pNumeroCortes->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
311
DialogoConfirmacionEliminarBase::DialogoConfirmacionEliminarBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
313
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
316
bSizer5 = new wxBoxSizer( wxVERTICAL );
318
m_pLabelEliminar = new wxStaticText( this, wxID_ANY, _("Are you sure you want to delete "), wxDefaultPosition, wxDefaultSize, 0 );
319
m_pLabelEliminar->Wrap( 450 );
320
bSizer5->Add( m_pLabelEliminar, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
322
m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
324
bSizer7 = new wxBoxSizer( wxHORIZONTAL );
327
bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
329
m_pEliminar = new wxButton( m_pFooter, wxID_ANY, _("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
330
bSizer7->Add( m_pEliminar, 0, wxRIGHT, 5 );
332
m_pCancelar = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
333
m_pCancelar->SetDefault();
334
bSizer7->Add( m_pCancelar, 0, wxLEFT, 5 );
336
m_pFooter->SetSizer( bSizer7 );
338
bSizer7->Fit( m_pFooter );
339
bSizer5->Add( m_pFooter, 0, wxEXPAND, 5 );
341
this->SetSizer( bSizer5 );
343
bSizer5->Fit( this );
345
this->Centre( wxBOTH );
348
m_pEliminar->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnEliminarClick ), NULL, this );
349
m_pCancelar->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnCancelarClick ), NULL, this );
352
DialogoConfirmacionEliminarBase::~DialogoConfirmacionEliminarBase()
355
m_pEliminar->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnEliminarClick ), NULL, this );
356
m_pCancelar->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnCancelarClick ), NULL, this );
360
DialogoAbrirConBase::DialogoAbrirConBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
362
this->SetSizeHints( wxSize( 500,220 ), wxDefaultSize );
365
bSizer2 = new wxBoxSizer( wxVERTICAL );
367
m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
368
wxBoxSizer* bSizer15;
369
bSizer15 = new wxBoxSizer( wxVERTICAL );
371
m_pPanelTitulo = new TitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
372
m_pPanelTitulo->SetToolTip( _("Choose the view you want to use to open file/s") );
374
wxBoxSizer* bSizer16;
375
bSizer16 = new wxBoxSizer( wxVERTICAL );
377
m_pListaVistas = new wxListBox( m_pPanelTitulo, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_SINGLE );
378
bSizer16->Add( m_pListaVistas, 1, wxEXPAND, 5 );
380
m_pCheckUtilizarSiempre = new wxCheckBox( m_pPanelTitulo, wxID_ANY, _("Always use this view to open these files"), wxDefaultPosition, wxDefaultSize, 0 );
381
bSizer16->Add( m_pCheckUtilizarSiempre, 0, wxTOP, 5 );
383
m_pPanelTitulo->SetSizer( bSizer16 );
384
m_pPanelTitulo->Layout();
385
bSizer16->Fit( m_pPanelTitulo );
386
bSizer15->Add( m_pPanelTitulo, 1, wxEXPAND, 5 );
388
m_pBody->SetSizer( bSizer15 );
390
bSizer15->Fit( m_pBody );
391
bSizer2->Add( m_pBody, 1, wxEXPAND, 5 );
393
m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
395
bSizer3 = new wxBoxSizer( wxHORIZONTAL );
398
bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
400
m_button3 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
401
m_button3->SetDefault();
402
bSizer3->Add( m_button3, 0, wxRIGHT, 5 );
404
m_button4 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
405
bSizer3->Add( m_button4, 0, wxLEFT, 5 );
407
m_pFooter->SetSizer( bSizer3 );
409
bSizer3->Fit( m_pFooter );
410
bSizer2->Add( m_pFooter, 0, wxEXPAND, 5 );
412
this->SetSizer( bSizer2 );
414
bSizer2->Fit( this );
417
m_pListaVistas->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
418
m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
421
DialogoAbrirConBase::~DialogoAbrirConBase()
424
m_pListaVistas->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
425
m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
429
PanelHistorial2Base::PanelHistorial2Base( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
431
this->SetBackgroundColour( wxColour( 155, 155, 155 ) );
433
wxBoxSizer* bSizer16;
434
bSizer16 = new wxBoxSizer( wxVERTICAL );
436
m_pHistoryTitle = new HeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
437
m_pHistoryTitle->SetToolTip( _("Medical History") );
439
bSizer16->Add( m_pHistoryTitle, 0, wxEXPAND, 5 );
441
m_pFiltersTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
442
m_pFiltersTitle->SetToolTip( _("Filters") );
444
bSizer16->Add( m_pFiltersTitle, 0, wxEXPAND, 5 );
446
m_pFiltersPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
447
m_pFiltersPanel->SetBackgroundColour( wxColour( 255, 255, 255 ) );
448
m_pFiltersPanel->SetToolTip( _("Filters") );
450
wxBoxSizer* bSizer20;
451
bSizer20 = new wxBoxSizer( wxVERTICAL );
453
wxFlexGridSizer* fgSizer1;
454
fgSizer1 = new wxFlexGridSizer( 2, 2, 0, 0 );
455
fgSizer1->AddGrowableCol( 1 );
456
fgSizer1->SetFlexibleDirection( wxBOTH );
457
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
459
m_staticText12 = new wxStaticText( m_pFiltersPanel, wxID_ANY, _("Patient"), wxDefaultPosition, wxDefaultSize, 0 );
460
m_staticText12->Wrap( -1 );
461
fgSizer1->Add( m_staticText12, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
463
m_pComboBoxPaciente = new wxBitmapComboBox(m_pFiltersPanel, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_SIMPLE|wxCB_READONLY|wxTE_PROCESS_ENTER );
464
m_pComboBoxPaciente->SetMinSize( wxSize( 150,-1 ) );
465
m_pComboBoxPaciente->SetMaxSize( wxSize( 150,-1 ) );
467
fgSizer1->Add( m_pComboBoxPaciente, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
469
m_staticText13 = new wxStaticText( m_pFiltersPanel, wxID_ANY, _("Modality"), wxDefaultPosition, wxDefaultSize, 0 );
470
m_staticText13->Wrap( -1 );
471
fgSizer1->Add( m_staticText13, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 3 );
473
m_pComboModalidad = new wxComboBox( m_pFiltersPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0, NULL, wxCB_DROPDOWN|wxCB_READONLY|wxTE_PROCESS_ENTER );
474
m_pComboModalidad->SetMinSize( wxSize( 150,-1 ) );
475
m_pComboModalidad->SetMaxSize( wxSize( 150,-1 ) );
477
fgSizer1->Add( m_pComboModalidad, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
479
bSizer20->Add( fgSizer1, 0, wxEXPAND, 5 );
481
wxStaticBoxSizer* sbSizer3;
482
sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( m_pFiltersPanel, wxID_ANY, _("Date") ), wxVERTICAL );
484
m_pComboDate = new wxComboBox( m_pFiltersPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0, NULL, wxCB_DROPDOWN|wxCB_READONLY|wxTE_PROCESS_ENTER );
485
m_pComboDate->Append( _("Any date") );
486
m_pComboDate->Append( _("Today AM") );
487
m_pComboDate->Append( _("Today PM") );
488
m_pComboDate->Append( _("Today") );
489
m_pComboDate->Append( _("Yesterday") );
490
m_pComboDate->Append( _("Last week") );
491
m_pComboDate->Append( _("Last month") );
492
m_pComboDate->Append( _("Last 3 months") );
493
m_pComboDate->Append( _("Between:") );
494
m_pComboDate->SetMinSize( wxSize( 150,-1 ) );
496
sbSizer3->Add( m_pComboDate, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
498
wxBoxSizer* bSizer21;
499
bSizer21 = new wxBoxSizer( wxHORIZONTAL );
501
m_pDatePickerFrom = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
502
m_pDatePickerFrom->SetMinSize( wxSize( 82,-1 ) );
504
bSizer21->Add( m_pDatePickerFrom, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
506
m_staticText19 = new wxStaticText( m_pFiltersPanel, wxID_ANY, _("to"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
507
m_staticText19->Wrap( -1 );
508
bSizer21->Add( m_staticText19, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
510
m_pDatePickerTo = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
511
m_pDatePickerTo->SetMinSize( wxSize( 82,-1 ) );
513
bSizer21->Add( m_pDatePickerTo, 1, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
515
sbSizer3->Add( bSizer21, 0, wxEXPAND, 5 );
517
bSizer20->Add( sbSizer3, 1, wxEXPAND|wxALL, 3 );
519
m_pFiltersPanel->SetSizer( bSizer20 );
520
m_pFiltersPanel->Layout();
521
bSizer20->Fit( m_pFiltersPanel );
522
bSizer16->Add( m_pFiltersPanel, 0, wxEXPAND, 5 );
524
m_pResultTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
525
m_pResultTitle->SetToolTip( _("Results") );
527
bSizer16->Add( m_pResultTitle, 0, wxEXPAND, 5 );
529
m_pPanelHistorial = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
530
m_pPanelHistorial->SetScrollRate( 0, 10 );
531
m_pPanelHistorial->SetBackgroundColour( wxColour( 155, 155, 155 ) );
532
m_pPanelHistorial->SetMaxSize( wxSize( 230,-1 ) );
534
wxBoxSizer* bSizer17;
535
bSizer17 = new wxBoxSizer( wxVERTICAL );
537
m_pPanelMensajeVacio = new wxPanel( m_pPanelHistorial, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
538
m_pPanelMensajeVacio->SetBackgroundColour( wxColour( 240, 240, 240 ) );
540
wxBoxSizer* bSizer18;
541
bSizer18 = new wxBoxSizer( wxVERTICAL );
543
wxStaticBoxSizer* sbSizer1;
544
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString ), wxVERTICAL );
546
m_pCabeceraVacio = new wxStaticText( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
547
m_pCabeceraVacio->Wrap( -1 );
548
m_pCabeceraVacio->SetFont( wxFont( 10, 70, 90, 92, false, wxEmptyString ) );
550
sbSizer1->Add( m_pCabeceraVacio, 0, 0, 5 );
552
m_staticline1 = new wxStaticLine( m_pPanelMensajeVacio, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
553
sbSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
555
m_pMensajeVacio = new wxStaticText( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
556
m_pMensajeVacio->Wrap( -1 );
557
m_pMensajeVacio->SetFont( wxFont( 10, 70, 90, 90, false, wxEmptyString ) );
559
sbSizer1->Add( m_pMensajeVacio, 0, 0, 5 );
561
bSizer18->Add( sbSizer1, 1, wxEXPAND|wxALL, 5 );
563
m_pPanelMensajeVacio->SetSizer( bSizer18 );
564
m_pPanelMensajeVacio->Layout();
565
bSizer18->Fit( m_pPanelMensajeVacio );
566
bSizer17->Add( m_pPanelMensajeVacio, 0, wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
568
m_pPanelNoCabeMas = new wxPanel( m_pPanelHistorial, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
569
m_pPanelNoCabeMas->SetBackgroundColour( wxColour( 240, 240, 240 ) );
570
m_pPanelNoCabeMas->Hide();
572
wxBoxSizer* bSizer181;
573
bSizer181 = new wxBoxSizer( wxVERTICAL );
575
wxStaticBoxSizer* sbSizer11;
576
sbSizer11 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelNoCabeMas, wxID_ANY, wxEmptyString ), wxVERTICAL );
578
m_pCabeceraNoCabeMas = new wxStaticText( m_pPanelNoCabeMas, wxID_ANY, _("\nThere is no size in the medical history to show every patients\n"), wxDefaultPosition, wxDefaultSize, 0 );
579
m_pCabeceraNoCabeMas->Wrap( 150 );
580
m_pCabeceraNoCabeMas->SetFont( wxFont( 10, 70, 90, 92, false, wxEmptyString ) );
582
sbSizer11->Add( m_pCabeceraNoCabeMas, 0, 0, 5 );
584
m_staticline11 = new wxStaticLine( m_pPanelNoCabeMas, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
585
sbSizer11->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
587
m_pMensajeNoCabeMas = new wxStaticText( m_pPanelNoCabeMas, wxID_ANY, _("\nTry using filters or collapsing nodes and refresh search\n"), wxDefaultPosition, wxDefaultSize, 0 );
588
m_pMensajeNoCabeMas->Wrap( 150 );
589
m_pMensajeNoCabeMas->SetFont( wxFont( 10, 70, 90, 90, false, wxEmptyString ) );
591
sbSizer11->Add( m_pMensajeNoCabeMas, 0, 0, 5 );
593
bSizer181->Add( sbSizer11, 1, wxEXPAND|wxALL, 5 );
595
m_pPanelNoCabeMas->SetSizer( bSizer181 );
596
m_pPanelNoCabeMas->Layout();
597
bSizer181->Fit( m_pPanelNoCabeMas );
598
bSizer17->Add( m_pPanelNoCabeMas, 0, wxEXPAND, 5 );
600
m_pPanelHistorial->SetSizer( bSizer17 );
601
m_pPanelHistorial->Layout();
602
bSizer17->Fit( m_pPanelHistorial );
603
bSizer16->Add( m_pPanelHistorial, 1, wxEXPAND, 5 );
605
m_pPanelVertical = new VerticalHeader( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
606
m_pPanelVertical->SetFont( wxFont( 10, 70, 90, 92, false, wxEmptyString ) );
607
m_pPanelVertical->SetForegroundColour( wxColour( 255, 255, 255 ) );
608
m_pPanelVertical->SetBackgroundColour( wxColour( 54, 54, 54 ) );
609
m_pPanelVertical->Hide();
610
m_pPanelVertical->SetToolTip( _("Medical History") );
612
bSizer16->Add( m_pPanelVertical, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
614
this->SetSizer( bSizer16 );
618
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ) );
619
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ) );
620
this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelHistorial2Base::OnSize ) );
621
m_pComboModalidad->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
622
m_pComboDate->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
623
m_pDatePickerFrom->Connect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateFromChanged ), NULL, this );
624
m_pDatePickerTo->Connect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateToChanged ), NULL, this );
625
m_pPanelHistorial->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMedicalHistoryClick ), NULL, this );
626
m_pPanelHistorial->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ), NULL, this );
627
m_pPanelHistorial->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
628
m_pPanelMensajeVacio->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
629
m_pPanelNoCabeMas->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
630
m_pPanelVertical->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnDesplegar ), NULL, this );
633
PanelHistorial2Base::~PanelHistorial2Base()
636
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ) );
637
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ) );
638
this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelHistorial2Base::OnSize ) );
639
m_pComboModalidad->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
640
m_pComboDate->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
641
m_pDatePickerFrom->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateFromChanged ), NULL, this );
642
m_pDatePickerTo->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateToChanged ), NULL, this );
643
m_pPanelHistorial->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMedicalHistoryClick ), NULL, this );
644
m_pPanelHistorial->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ), NULL, this );
645
m_pPanelHistorial->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
646
m_pPanelMensajeVacio->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
647
m_pPanelNoCabeMas->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
648
m_pPanelVertical->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnDesplegar ), NULL, this );
1
///////////////////////////////////////////////////////////////////////////
2
// C++ code generated with wxFormBuilder (version Oct 27 2009)
3
// http://www.wxformbuilder.org/
5
// PLEASE DO "NOT" EDIT THIS FILE!
6
///////////////////////////////////////////////////////////////////////////
8
#include "wx/ginkgostyle/ginkgostyle.h"
10
#include "panelhistorial2base.h"
12
///////////////////////////////////////////////////////////////////////////
14
PanelPacienteBase::PanelPacienteBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
16
this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVECAPTION ) );
19
bSizer10 = new wxBoxSizer( wxVERTICAL );
21
m_pPanelCabecera = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
23
bSizer18 = new wxBoxSizer( wxVERTICAL );
25
wxGridBagSizer* gbSizer1;
26
gbSizer1 = new wxGridBagSizer( 0, 1 );
27
gbSizer1->AddGrowableCol( 0 );
28
gbSizer1->SetFlexibleDirection( wxBOTH );
29
gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31
m_pIcoPlegar = new wxStaticBitmap( m_pPanelCabecera, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
32
m_pIcoPlegar->SetMinSize( wxSize( 16,16 ) );
34
gbSizer1->Add( m_pIcoPlegar, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxTOP|wxRIGHT|wxLEFT, 5 );
36
m_pIdPaciente = new wxStaticText( m_pPanelCabecera, wxID_ANY, _("12412012 Q"), wxDefaultPosition, wxDefaultSize, 0 );
37
m_pIdPaciente->Wrap( -1 );
38
m_pIdPaciente->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
39
m_pIdPaciente->SetForegroundColour( wxColour( 255, 255, 255 ) );
41
gbSizer1->Add( m_pIdPaciente, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
43
m_pFechaNacimiento = new wxStaticText( m_pPanelCabecera, wxID_ANY, _("31/08/1983"), wxDefaultPosition, wxDefaultSize, 0 );
44
m_pFechaNacimiento->Wrap( -1 );
45
m_pFechaNacimiento->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
46
m_pFechaNacimiento->SetForegroundColour( wxColour( 255, 255, 255 ) );
48
gbSizer1->Add( m_pFechaNacimiento, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALIGN_RIGHT|wxALL, 5 );
51
bSizer15 = new wxBoxSizer( wxHORIZONTAL );
53
m_pNombre = new wxStaticText( m_pPanelCabecera, wxID_ANY, _("Javier Tovar Velasco"), wxDefaultPosition, wxDefaultSize, 0 );
54
m_pNombre->Wrap( -1 );
55
m_pNombre->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );
56
m_pNombre->SetForegroundColour( wxColour( 255, 255, 255 ) );
58
bSizer15->Add( m_pNombre, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
60
gbSizer1->Add( bSizer15, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
62
bSizer18->Add( gbSizer1, 0, wxEXPAND, 5 );
64
m_pPanelCabecera->SetSizer( bSizer18 );
65
m_pPanelCabecera->Layout();
66
bSizer18->Fit( m_pPanelCabecera );
67
bSizer10->Add( m_pPanelCabecera, 0, wxEXPAND, 5 );
69
m_pSizerEstudios = new wxBoxSizer( wxVERTICAL );
72
m_pSizerEstudios->Add( 0, 6, 0, wxEXPAND, 5 );
74
bSizer10->Add( m_pSizerEstudios, 1, wxEXPAND, 0 );
76
this->SetSizer( bSizer10 );
80
this->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnPanelPacienteClick ) );
81
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ) );
82
this->Connect( wxEVT_PAINT, wxPaintEventHandler( PanelPacienteBase::OnPaint ) );
83
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ) );
84
this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelPacienteBase::OnSize ) );
85
m_pPanelCabecera->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
86
m_pPanelCabecera->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
87
m_pPanelCabecera->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
88
m_pIcoPlegar->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
89
m_pIcoPlegar->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
90
m_pIcoPlegar->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
91
m_pIdPaciente->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelPacienteBase::OnCabeceraDClick ), NULL, this );
92
m_pIdPaciente->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
93
m_pIdPaciente->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
94
m_pIdPaciente->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
95
m_pFechaNacimiento->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
96
m_pFechaNacimiento->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
97
m_pFechaNacimiento->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
98
m_pNombre->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
99
m_pNombre->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
100
m_pNombre->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
103
PanelPacienteBase::~PanelPacienteBase()
106
this->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnPanelPacienteClick ) );
107
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ) );
108
this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PanelPacienteBase::OnPaint ) );
109
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ) );
110
this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelPacienteBase::OnSize ) );
111
m_pPanelCabecera->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
112
m_pPanelCabecera->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
113
m_pPanelCabecera->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
114
m_pIcoPlegar->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
115
m_pIcoPlegar->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
116
m_pIcoPlegar->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
117
m_pIdPaciente->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelPacienteBase::OnCabeceraDClick ), NULL, this );
118
m_pIdPaciente->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
119
m_pIdPaciente->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
120
m_pIdPaciente->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
121
m_pFechaNacimiento->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
122
m_pFechaNacimiento->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
123
m_pFechaNacimiento->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
124
m_pNombre->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelPacienteBase::OnCabeceraClick ), NULL, this );
125
m_pNombre->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelPacienteBase::OnMouseWheel ), NULL, this );
126
m_pNombre->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelPacienteBase::OnMenuMouse ), NULL, this );
129
PanelEstudioBase::PanelEstudioBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
131
this->SetBackgroundColour( wxColour( 255, 255, 255 ) );
133
wxBoxSizer* m_pSizerPrincipal;
134
m_pSizerPrincipal = new wxBoxSizer( wxVERTICAL );
136
m_pLabelEstudio = new wxStaticText( this, wxID_ANY, _("Brain oasc asdf"), wxDefaultPosition, wxDefaultSize, 0 );
137
m_pLabelEstudio->Wrap( -1 );
138
m_pSizerPrincipal->Add( m_pLabelEstudio, 0, wxALL, 6 );
140
m_pSizerSeries = new wxBoxSizer( wxVERTICAL );
142
m_pSizerPrincipal->Add( m_pSizerSeries, 1, wxEXPAND|wxALL, 1 );
144
this->SetSizer( m_pSizerPrincipal );
148
this->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ) );
149
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ) );
150
this->Connect( wxEVT_PAINT, wxPaintEventHandler( PanelEstudioBase::OnPaint ) );
151
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ) );
152
m_pLabelEstudio->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ), NULL, this );
153
m_pLabelEstudio->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ), NULL, this );
154
m_pLabelEstudio->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ), NULL, this );
157
PanelEstudioBase::~PanelEstudioBase()
160
this->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ) );
161
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ) );
162
this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PanelEstudioBase::OnPaint ) );
163
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ) );
164
m_pLabelEstudio->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelEstudioBase::OnMouseSeleccionar ), NULL, this );
165
m_pLabelEstudio->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelEstudioBase::OnMouseWheel ), NULL, this );
166
m_pLabelEstudio->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelEstudioBase::OnMenuMouse ), NULL, this );
169
PanelSerieBase::PanelSerieBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
171
this->SetBackgroundColour( wxColour( 16, 16, 16 ) );
172
this->SetMinSize( wxSize( 200,98 ) );
174
wxBoxSizer* bSizer11;
175
bSizer11 = new wxBoxSizer( wxHORIZONTAL );
177
wxBoxSizer* bSizer12;
178
bSizer12 = new wxBoxSizer( wxHORIZONTAL );
180
m_pThumbnail = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
181
m_pThumbnail->SetMinSize( wxSize( 96,96 ) );
182
m_pThumbnail->SetMaxSize( wxSize( 96,96 ) );
184
bSizer12->Add( m_pThumbnail, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0 );
186
wxBoxSizer* bSizer13;
187
bSizer13 = new wxBoxSizer( wxVERTICAL );
189
m_pDescripcionSerie = new wxStaticText( this, wxID_ANY, _("Esto es un texto algo largo para probar "), wxDefaultPosition, wxDefaultSize, 0 );
190
m_pDescripcionSerie->Wrap( -1 );
191
m_pDescripcionSerie->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );
192
m_pDescripcionSerie->SetForegroundColour( wxColour( 255, 255, 255 ) );
194
bSizer13->Add( m_pDescripcionSerie, 0, wxALL, 3 );
196
m_pHoraSerie = new wxStaticText( this, wxID_ANY, _("10:20"), wxDefaultPosition, wxDefaultSize, 0 );
197
m_pHoraSerie->Wrap( -1 );
198
m_pHoraSerie->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
199
m_pHoraSerie->SetForegroundColour( wxColour( 210, 210, 210 ) );
201
bSizer13->Add( m_pHoraSerie, 0, wxALL, 3 );
203
m_pFechaSerie = new wxStaticText( this, wxID_ANY, _("31/02/2010"), wxDefaultPosition, wxDefaultSize, 0 );
204
m_pFechaSerie->Wrap( -1 );
205
m_pFechaSerie->SetFont( wxFont( 7, 70, 90, 90, false, wxEmptyString ) );
206
m_pFechaSerie->SetForegroundColour( wxColour( 210, 210, 210 ) );
208
bSizer13->Add( m_pFechaSerie, 0, wxALL, 3 );
211
bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
213
wxGridBagSizer* gbSizer21;
214
gbSizer21 = new wxGridBagSizer( 0, 2 );
215
gbSizer21->AddGrowableCol( 1 );
216
gbSizer21->SetFlexibleDirection( wxBOTH );
217
gbSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
219
m_pModalidad = new wxStaticText( this, wxID_ANY, _("CT"), wxDefaultPosition, wxDefaultSize, 0 );
220
m_pModalidad->Wrap( -1 );
221
m_pModalidad->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 75, 90, 90, false, wxEmptyString ) );
222
m_pModalidad->SetForegroundColour( wxColour( 255, 255, 255 ) );
224
gbSizer21->Add( m_pModalidad, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_LEFT|wxALL, 3 );
226
m_pNumeroCortes = new wxStaticText( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
227
m_pNumeroCortes->Wrap( -1 );
228
m_pNumeroCortes->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 75, 90, 90, false, wxEmptyString ) );
229
m_pNumeroCortes->SetForegroundColour( wxColour( 255, 255, 255 ) );
231
gbSizer21->Add( m_pNumeroCortes, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxALL, 3 );
233
bSizer13->Add( gbSizer21, 0, wxEXPAND, 2 );
235
bSizer12->Add( bSizer13, 1, wxEXPAND|wxLEFT, 2 );
237
bSizer11->Add( bSizer12, 1, wxEXPAND|wxALL, 1 );
239
this->SetSizer( bSizer11 );
243
this->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ) );
244
this->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ) );
245
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ) );
246
this->Connect( wxEVT_PAINT, wxPaintEventHandler( PanelSerieBase::OnPaint ) );
247
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ) );
248
m_pThumbnail->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
249
m_pThumbnail->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
250
m_pThumbnail->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
251
m_pThumbnail->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
252
m_pDescripcionSerie->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
253
m_pDescripcionSerie->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
254
m_pDescripcionSerie->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
255
m_pDescripcionSerie->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
256
m_pHoraSerie->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
257
m_pHoraSerie->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
258
m_pHoraSerie->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
259
m_pHoraSerie->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
260
m_pFechaSerie->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
261
m_pFechaSerie->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
262
m_pFechaSerie->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
263
m_pFechaSerie->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
264
m_pModalidad->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
265
m_pModalidad->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
266
m_pModalidad->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
267
m_pModalidad->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
268
m_pNumeroCortes->Connect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
269
m_pNumeroCortes->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
270
m_pNumeroCortes->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
271
m_pNumeroCortes->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
274
PanelSerieBase::~PanelSerieBase()
277
this->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ) );
278
this->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ) );
279
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ) );
280
this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PanelSerieBase::OnPaint ) );
281
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ) );
282
m_pThumbnail->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
283
m_pThumbnail->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
284
m_pThumbnail->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
285
m_pThumbnail->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
286
m_pDescripcionSerie->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
287
m_pDescripcionSerie->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
288
m_pDescripcionSerie->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
289
m_pDescripcionSerie->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
290
m_pHoraSerie->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
291
m_pHoraSerie->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
292
m_pHoraSerie->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
293
m_pHoraSerie->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
294
m_pFechaSerie->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
295
m_pFechaSerie->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
296
m_pFechaSerie->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
297
m_pFechaSerie->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
298
m_pModalidad->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
299
m_pModalidad->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
300
m_pModalidad->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
301
m_pModalidad->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
302
m_pNumeroCortes->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PanelSerieBase::OnMouseAbrir ), NULL, this );
303
m_pNumeroCortes->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PanelSerieBase::OnMouseSeleccionar ), NULL, this );
304
m_pNumeroCortes->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelSerieBase::OnMouseWheel ), NULL, this );
305
m_pNumeroCortes->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelSerieBase::OnMenuMouse ), NULL, this );
308
DialogoConfirmacionEliminarBase::DialogoConfirmacionEliminarBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
310
this->SetSizeHints( wxSize( 450,220 ), wxDefaultSize );
313
bSizer5 = new wxBoxSizer( wxVERTICAL );
315
m_body = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
316
wxBoxSizer* bSizer22;
317
bSizer22 = new wxBoxSizer( wxVERTICAL );
319
m_pTitled = new TitledPanel( m_body, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
320
m_pTitled->SetToolTip( _("Confirm removal") );
322
wxBoxSizer* bSizer23;
323
bSizer23 = new wxBoxSizer( wxVERTICAL );
326
bSizer23->Add( 0, 0, 1, wxEXPAND, 5 );
328
m_pLabelEliminar = new wxStaticText( m_pTitled, wxID_ANY, _("Are you sure you want to delete "), wxDefaultPosition, wxDefaultSize, 0 );
329
m_pLabelEliminar->Wrap( 450 );
330
bSizer23->Add( m_pLabelEliminar, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
333
bSizer23->Add( 0, 0, 1, wxEXPAND, 5 );
335
m_pTitled->SetSizer( bSizer23 );
337
bSizer23->Fit( m_pTitled );
338
bSizer22->Add( m_pTitled, 1, wxEXPAND, 5 );
340
m_body->SetSizer( bSizer22 );
342
bSizer22->Fit( m_body );
343
bSizer5->Add( m_body, 1, wxEXPAND, 5 );
345
m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
347
bSizer7 = new wxBoxSizer( wxHORIZONTAL );
350
bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
352
m_pEliminar = new wxButton( m_pFooter, wxID_ANY, _("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
353
bSizer7->Add( m_pEliminar, 0, wxRIGHT, 5 );
355
m_pCancelar = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
356
m_pCancelar->SetDefault();
357
bSizer7->Add( m_pCancelar, 0, wxLEFT, 5 );
359
m_pFooter->SetSizer( bSizer7 );
361
bSizer7->Fit( m_pFooter );
362
bSizer5->Add( m_pFooter, 0, wxEXPAND, 5 );
364
this->SetSizer( bSizer5 );
366
bSizer5->Fit( this );
368
this->Centre( wxBOTH );
371
m_pEliminar->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnEliminarClick ), NULL, this );
372
m_pCancelar->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnCancelarClick ), NULL, this );
375
DialogoConfirmacionEliminarBase::~DialogoConfirmacionEliminarBase()
378
m_pEliminar->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnEliminarClick ), NULL, this );
379
m_pCancelar->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoConfirmacionEliminarBase::OnCancelarClick ), NULL, this );
382
DialogoAbrirConBase::DialogoAbrirConBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
384
this->SetSizeHints( wxSize( 500,350 ), wxDefaultSize );
387
bSizer2 = new wxBoxSizer( wxVERTICAL );
389
m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
390
wxBoxSizer* bSizer15;
391
bSizer15 = new wxBoxSizer( wxVERTICAL );
393
m_pPanelTitulo = new TitledPanel( m_pBody, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
394
m_pPanelTitulo->SetToolTip( _("Choose the view you want to use to open file/s") );
396
wxBoxSizer* bSizer16;
397
bSizer16 = new wxBoxSizer( wxVERTICAL );
399
m_pListaVistas = new wxListBox( m_pPanelTitulo, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_SINGLE );
400
bSizer16->Add( m_pListaVistas, 1, wxEXPAND, 5 );
402
m_pCheckUtilizarSiempre = new wxCheckBox( m_pPanelTitulo, wxID_ANY, _("Always use this view to open these files"), wxDefaultPosition, wxDefaultSize, 0 );
403
bSizer16->Add( m_pCheckUtilizarSiempre, 0, wxTOP, 5 );
405
m_pPanelTitulo->SetSizer( bSizer16 );
406
m_pPanelTitulo->Layout();
407
bSizer16->Fit( m_pPanelTitulo );
408
bSizer15->Add( m_pPanelTitulo, 1, wxEXPAND, 5 );
410
m_pBody->SetSizer( bSizer15 );
412
bSizer15->Fit( m_pBody );
413
bSizer2->Add( m_pBody, 1, wxEXPAND, 5 );
415
m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
417
bSizer3 = new wxBoxSizer( wxHORIZONTAL );
420
bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
422
m_button3 = new wxButton( m_pFooter, wxID_OK, _("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
423
m_button3->SetDefault();
424
bSizer3->Add( m_button3, 0, wxRIGHT, 5 );
426
m_button4 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
427
bSizer3->Add( m_button4, 0, wxLEFT, 5 );
429
m_pFooter->SetSizer( bSizer3 );
431
bSizer3->Fit( m_pFooter );
432
bSizer2->Add( m_pFooter, 0, wxEXPAND, 5 );
434
this->SetSizer( bSizer2 );
436
bSizer2->Fit( this );
439
m_pListaVistas->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
440
m_button3->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
443
DialogoAbrirConBase::~DialogoAbrirConBase()
446
m_pListaVistas->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
447
m_button3->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogoAbrirConBase::OnAceptarClick ), NULL, this );
450
PanelHistorial2Base::PanelHistorial2Base( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
452
this->SetBackgroundColour( wxColour( 155, 155, 155 ) );
454
wxBoxSizer* bSizer16;
455
bSizer16 = new wxBoxSizer( wxVERTICAL );
457
m_pHistoryTitle = new HeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
458
m_pHistoryTitle->SetToolTip( _("Medical History") );
460
bSizer16->Add( m_pHistoryTitle, 0, wxEXPAND, 5 );
462
m_pFiltersTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
463
m_pFiltersTitle->SetToolTip( _("Filters") );
465
bSizer16->Add( m_pFiltersTitle, 0, wxEXPAND, 5 );
467
m_pFiltersPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
468
m_pFiltersPanel->SetBackgroundColour( wxColour( 255, 255, 255 ) );
469
m_pFiltersPanel->SetToolTip( _("Filters") );
471
wxBoxSizer* bSizer20;
472
bSizer20 = new wxBoxSizer( wxVERTICAL );
474
wxFlexGridSizer* fgSizer1;
475
fgSizer1 = new wxFlexGridSizer( 2, 2, 0, 0 );
476
fgSizer1->AddGrowableCol( 1 );
477
fgSizer1->SetFlexibleDirection( wxBOTH );
478
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
480
m_staticText12 = new wxStaticText( m_pFiltersPanel, wxID_ANY, _("Patient"), wxDefaultPosition, wxDefaultSize, 0 );
481
m_staticText12->Wrap( -1 );
482
fgSizer1->Add( m_staticText12, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
484
m_pComboBoxPaciente = new wxBitmapComboBox(m_pFiltersPanel, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_SIMPLE|wxCB_READONLY|wxTE_PROCESS_ENTER );
485
m_pComboBoxPaciente->SetMinSize( wxSize( 150,-1 ) );
486
m_pComboBoxPaciente->SetMaxSize( wxSize( 150,-1 ) );
488
fgSizer1->Add( m_pComboBoxPaciente, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
490
m_staticText13 = new wxStaticText( m_pFiltersPanel, wxID_ANY, _("Modality"), wxDefaultPosition, wxDefaultSize, 0 );
491
m_staticText13->Wrap( -1 );
492
fgSizer1->Add( m_staticText13, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 3 );
494
m_pComboModalidad = new wxComboBox( m_pFiltersPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0, NULL, wxCB_DROPDOWN|wxCB_READONLY|wxTE_PROCESS_ENTER );
495
m_pComboModalidad->SetMinSize( wxSize( 150,-1 ) );
496
m_pComboModalidad->SetMaxSize( wxSize( 150,-1 ) );
498
fgSizer1->Add( m_pComboModalidad, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
500
bSizer20->Add( fgSizer1, 0, wxEXPAND, 5 );
502
wxStaticBoxSizer* sbSizer3;
503
sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( m_pFiltersPanel, wxID_ANY, _("Date") ), wxVERTICAL );
505
m_pComboDate = new wxComboBox( m_pFiltersPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 150,-1 ), 0, NULL, wxCB_DROPDOWN|wxCB_READONLY|wxTE_PROCESS_ENTER );
506
m_pComboDate->Append( _("Any date") );
507
m_pComboDate->Append( _("Today AM") );
508
m_pComboDate->Append( _("Today PM") );
509
m_pComboDate->Append( _("Today") );
510
m_pComboDate->Append( _("Yesterday") );
511
m_pComboDate->Append( _("Last week") );
512
m_pComboDate->Append( _("Last month") );
513
m_pComboDate->Append( _("Last 3 months") );
514
m_pComboDate->Append( _("Between:") );
515
m_pComboDate->SetMinSize( wxSize( 150,-1 ) );
517
sbSizer3->Add( m_pComboDate, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
519
wxBoxSizer* bSizer21;
520
bSizer21 = new wxBoxSizer( wxHORIZONTAL );
522
m_pDatePickerFrom = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
523
m_pDatePickerFrom->SetMinSize( wxSize( 82,-1 ) );
525
bSizer21->Add( m_pDatePickerFrom, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
527
m_staticText19 = new wxStaticText( m_pFiltersPanel, wxID_ANY, _("to"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
528
m_staticText19->Wrap( -1 );
529
bSizer21->Add( m_staticText19, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
531
m_pDatePickerTo = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
532
m_pDatePickerTo->SetMinSize( wxSize( 82,-1 ) );
534
bSizer21->Add( m_pDatePickerTo, 1, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
536
sbSizer3->Add( bSizer21, 0, wxEXPAND, 5 );
538
bSizer20->Add( sbSizer3, 1, wxEXPAND|wxALL, 3 );
540
m_pFiltersPanel->SetSizer( bSizer20 );
541
m_pFiltersPanel->Layout();
542
bSizer20->Fit( m_pFiltersPanel );
543
bSizer16->Add( m_pFiltersPanel, 0, wxEXPAND, 5 );
545
m_pResultTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
546
m_pResultTitle->SetToolTip( _("Results") );
548
bSizer16->Add( m_pResultTitle, 0, wxEXPAND, 5 );
550
m_pPanelHistorial = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
551
m_pPanelHistorial->SetScrollRate( 0, 10 );
552
m_pPanelHistorial->SetBackgroundColour( wxColour( 155, 155, 155 ) );
553
m_pPanelHistorial->SetMaxSize( wxSize( 230,-1 ) );
555
wxBoxSizer* bSizer17;
556
bSizer17 = new wxBoxSizer( wxVERTICAL );
558
m_pPanelMensajeVacio = new wxPanel( m_pPanelHistorial, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
559
m_pPanelMensajeVacio->SetBackgroundColour( wxColour( 240, 240, 240 ) );
560
m_pPanelMensajeVacio->SetMaxSize( wxSize( 230,-1 ) );
562
wxBoxSizer* bSizer18;
563
bSizer18 = new wxBoxSizer( wxVERTICAL );
565
wxStaticBoxSizer* sbSizer1;
566
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString ), wxVERTICAL );
568
m_pCabeceraVacio = new wxStaticText( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
569
m_pCabeceraVacio->Wrap( -1 );
570
m_pCabeceraVacio->SetFont( wxFont( 10, 70, 90, 92, false, wxEmptyString ) );
572
sbSizer1->Add( m_pCabeceraVacio, 0, 0, 5 );
574
m_staticline1 = new wxStaticLine( m_pPanelMensajeVacio, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
575
sbSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
577
m_pMensajeVacio = new wxStaticText( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
578
m_pMensajeVacio->Wrap( -1 );
579
m_pMensajeVacio->SetFont( wxFont( 10, 70, 90, 90, false, wxEmptyString ) );
581
sbSizer1->Add( m_pMensajeVacio, 0, 0, 5 );
583
bSizer18->Add( sbSizer1, 1, wxEXPAND|wxALL, 5 );
585
m_pPanelMensajeVacio->SetSizer( bSizer18 );
586
m_pPanelMensajeVacio->Layout();
587
bSizer18->Fit( m_pPanelMensajeVacio );
588
bSizer17->Add( m_pPanelMensajeVacio, 0, wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
590
m_pPanelNoCabeMas = new wxPanel( m_pPanelHistorial, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
591
m_pPanelNoCabeMas->SetBackgroundColour( wxColour( 240, 240, 240 ) );
592
m_pPanelNoCabeMas->Hide();
593
m_pPanelNoCabeMas->SetMaxSize( wxSize( 230,-1 ) );
595
wxBoxSizer* bSizer181;
596
bSizer181 = new wxBoxSizer( wxVERTICAL );
598
wxStaticBoxSizer* sbSizer11;
599
sbSizer11 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelNoCabeMas, wxID_ANY, wxEmptyString ), wxVERTICAL );
601
m_pCabeceraNoCabeMas = new wxStaticText( m_pPanelNoCabeMas, wxID_ANY, _("\nThere is no size in the medical history to show every patients\n"), wxDefaultPosition, wxDefaultSize, 0 );
602
m_pCabeceraNoCabeMas->Wrap( 150 );
603
m_pCabeceraNoCabeMas->SetFont( wxFont( 10, 70, 90, 92, false, wxEmptyString ) );
605
sbSizer11->Add( m_pCabeceraNoCabeMas, 0, 0, 5 );
607
m_staticline11 = new wxStaticLine( m_pPanelNoCabeMas, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
608
sbSizer11->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
610
m_pMensajeNoCabeMas = new wxStaticText( m_pPanelNoCabeMas, wxID_ANY, _("\nTry using filters or collapsing nodes and refresh search\n"), wxDefaultPosition, wxDefaultSize, 0 );
611
m_pMensajeNoCabeMas->Wrap( 150 );
612
m_pMensajeNoCabeMas->SetFont( wxFont( 10, 70, 90, 90, false, wxEmptyString ) );
614
sbSizer11->Add( m_pMensajeNoCabeMas, 0, 0, 5 );
616
bSizer181->Add( sbSizer11, 1, wxEXPAND|wxALL, 5 );
618
m_pPanelNoCabeMas->SetSizer( bSizer181 );
619
m_pPanelNoCabeMas->Layout();
620
bSizer181->Fit( m_pPanelNoCabeMas );
621
bSizer17->Add( m_pPanelNoCabeMas, 0, wxEXPAND, 5 );
623
m_pPanelHistorial->SetSizer( bSizer17 );
624
m_pPanelHistorial->Layout();
625
bSizer17->Fit( m_pPanelHistorial );
626
bSizer16->Add( m_pPanelHistorial, 1, wxEXPAND, 5 );
628
m_pPanelVertical = new VerticalHeader( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL );
629
m_pPanelVertical->SetFont( wxFont( 10, 70, 90, 92, false, wxEmptyString ) );
630
m_pPanelVertical->SetForegroundColour( wxColour( 255, 255, 255 ) );
631
m_pPanelVertical->SetBackgroundColour( wxColour( 54, 54, 54 ) );
632
m_pPanelVertical->Hide();
633
m_pPanelVertical->SetToolTip( _("Medical History") );
635
bSizer16->Add( m_pPanelVertical, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
637
this->SetSizer( bSizer16 );
641
this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ) );
642
this->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ) );
643
this->Connect( wxEVT_SIZE, wxSizeEventHandler( PanelHistorial2Base::OnSize ) );
644
m_pComboModalidad->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
645
m_pComboDate->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
646
m_pDatePickerFrom->Connect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateFromChanged ), NULL, this );
647
m_pDatePickerTo->Connect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateToChanged ), NULL, this );
648
m_pPanelHistorial->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMedicalHistoryClick ), NULL, this );
649
m_pPanelHistorial->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ), NULL, this );
650
m_pPanelHistorial->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
651
m_pPanelMensajeVacio->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
652
m_pPanelNoCabeMas->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
653
m_pPanelVertical->Connect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnDesplegar ), NULL, this );
656
PanelHistorial2Base::~PanelHistorial2Base()
659
this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ) );
660
this->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ) );
661
this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PanelHistorial2Base::OnSize ) );
662
m_pComboModalidad->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
663
m_pComboDate->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( PanelHistorial2Base::OnComboBox ), NULL, this );
664
m_pDatePickerFrom->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateFromChanged ), NULL, this );
665
m_pDatePickerTo->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( PanelHistorial2Base::OnDateToChanged ), NULL, this );
666
m_pPanelHistorial->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMedicalHistoryClick ), NULL, this );
667
m_pPanelHistorial->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( PanelHistorial2Base::OnMouseWheel ), NULL, this );
668
m_pPanelHistorial->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
669
m_pPanelMensajeVacio->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
670
m_pPanelNoCabeMas->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( PanelHistorial2Base::OnMenuMouse ), NULL, this );
671
m_pPanelVertical->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( PanelHistorial2Base::OnDesplegar ), NULL, this );