~ubuntu-branches/ubuntu/raring/ginkgocadx/raring-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/gui/history/panelhistorial2base.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-07-14 16:17:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110714161751-6wngu3xs307thgpr
Tags: 2.5.1.0-1
* New upstream version (all patches applied)
  Closes: #630877
* debian/patches/drop_rpath.patch: Fix remaining rpath issue
* debian/{mime,sharedmimeinfo}: Mime info for DICOM images
  Closes: #631205
* Add upstream manpage + desktop file
* Fixed Vcs fields
* debian/rules:
   - Add new extension liblightvisualizator
   - remove get-orig-source target which becames void because
     upstream dropped the debian/ dir
   - Hack around explicite rpath definitions
* debian/install: move conformance.xml into place
* debian/watch: drop useless comments
* debian/ginkgocadx.lintian-overrides: Drop unneeded overrides
  as well as those which stay in effect.  These should vanish
  once rpath is correctly fixed - so the warning should not
  be hidden here.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
///////////////////////////////////////////////////////////////////////////
2
 
// C++ code generated with wxFormBuilder (version May  4 2010)
3
 
// http://www.wxformbuilder.org/
4
 
//
5
 
// PLEASE DO "NOT" EDIT THIS FILE!
6
 
///////////////////////////////////////////////////////////////////////////
7
 
 
8
 
#include "wx/ginkgostyle/ginkgostyle.h"
9
 
 
10
 
#include "panelhistorial2base.h"
11
 
 
12
 
///////////////////////////////////////////////////////////////////////////
13
 
 
14
 
PanelPacienteBase::PanelPacienteBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
15
 
{
16
 
        this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVECAPTION ) );
17
 
        
18
 
        wxBoxSizer* bSizer10;
19
 
        bSizer10 = new wxBoxSizer( wxVERTICAL );
20
 
        
21
 
        m_pPanelCabecera = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
22
 
        wxBoxSizer* bSizer18;
23
 
        bSizer18 = new wxBoxSizer( wxVERTICAL );
24
 
        
25
 
        wxGridBagSizer* gbSizer1;
26
 
        gbSizer1 = new wxGridBagSizer( 0, 1 );
27
 
        gbSizer1->AddGrowableCol( 0 );
28
 
        gbSizer1->SetFlexibleDirection( wxBOTH );
29
 
        gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30
 
        
31
 
        m_pIcoPlegar = new wxStaticBitmap( m_pPanelCabecera, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
32
 
        m_pIcoPlegar->SetMinSize( wxSize( 16,16 ) );
33
 
        
34
 
        gbSizer1->Add( m_pIcoPlegar, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxTOP|wxRIGHT|wxLEFT, 5 );
35
 
        
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 ) );
40
 
        
41
 
        gbSizer1->Add( m_pIdPaciente, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
42
 
        
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 ) );
47
 
        
48
 
        gbSizer1->Add( m_pFechaNacimiento, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALIGN_RIGHT|wxALL, 5 );
49
 
        
50
 
        wxBoxSizer* bSizer15;
51
 
        bSizer15 = new wxBoxSizer( wxHORIZONTAL );
52
 
        
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 ) );
57
 
        
58
 
        bSizer15->Add( m_pNombre, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
59
 
        
60
 
        gbSizer1->Add( bSizer15, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
61
 
        
62
 
        bSizer18->Add( gbSizer1, 0, wxEXPAND, 5 );
63
 
        
64
 
        m_pPanelCabecera->SetSizer( bSizer18 );
65
 
        m_pPanelCabecera->Layout();
66
 
        bSizer18->Fit( m_pPanelCabecera );
67
 
        bSizer10->Add( m_pPanelCabecera, 0, wxEXPAND, 5 );
68
 
        
69
 
        m_pSizerEstudios = new wxBoxSizer( wxVERTICAL );
70
 
        
71
 
        
72
 
        m_pSizerEstudios->Add( 0, 6, 0, wxEXPAND, 5 );
73
 
        
74
 
        bSizer10->Add( m_pSizerEstudios, 1, wxEXPAND, 0 );
75
 
        
76
 
        this->SetSizer( bSizer10 );
77
 
        this->Layout();
78
 
        
79
 
        // Connect Events
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 );
101
 
}
102
 
 
103
 
PanelPacienteBase::~PanelPacienteBase()
104
 
{
105
 
        // Disconnect Events
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 );
127
 
        
128
 
}
129
 
 
130
 
PanelEstudioBase::PanelEstudioBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
131
 
{
132
 
        this->SetBackgroundColour( wxColour( 255, 255, 255 ) );
133
 
        
134
 
        wxBoxSizer* m_pSizerPrincipal;
135
 
        m_pSizerPrincipal = new wxBoxSizer( wxVERTICAL );
136
 
        
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 );
140
 
        
141
 
        m_pSizerSeries = new wxBoxSizer( wxVERTICAL );
142
 
        
143
 
        m_pSizerPrincipal->Add( m_pSizerSeries, 1, wxEXPAND|wxALL, 1 );
144
 
        
145
 
        this->SetSizer( m_pSizerPrincipal );
146
 
        this->Layout();
147
 
        
148
 
        // Connect Events
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 );
156
 
}
157
 
 
158
 
PanelEstudioBase::~PanelEstudioBase()
159
 
{
160
 
        // Disconnect Events
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 );
168
 
        
169
 
}
170
 
 
171
 
PanelSerieBase::PanelSerieBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
172
 
{
173
 
        this->SetBackgroundColour( wxColour( 16, 16, 16 ) );
174
 
        this->SetMinSize( wxSize( 200,98 ) );
175
 
        
176
 
        wxBoxSizer* bSizer11;
177
 
        bSizer11 = new wxBoxSizer( wxHORIZONTAL );
178
 
        
179
 
        wxBoxSizer* bSizer12;
180
 
        bSizer12 = new wxBoxSizer( wxHORIZONTAL );
181
 
        
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 ) );
185
 
        
186
 
        bSizer12->Add( m_pThumbnail, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0 );
187
 
        
188
 
        wxBoxSizer* bSizer13;
189
 
        bSizer13 = new wxBoxSizer( wxVERTICAL );
190
 
        
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 ) );
195
 
        
196
 
        bSizer13->Add( m_pDescripcionSerie, 0, wxALL, 3 );
197
 
        
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 ) );
202
 
        
203
 
        bSizer13->Add( m_pHoraSerie, 0, wxALL, 3 );
204
 
        
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 ) );
209
 
        
210
 
        bSizer13->Add( m_pFechaSerie, 0, wxALL, 3 );
211
 
        
212
 
        
213
 
        bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
214
 
        
215
 
        wxGridBagSizer* gbSizer21;
216
 
        gbSizer21 = new wxGridBagSizer( 0, 2 );
217
 
        gbSizer21->AddGrowableCol( 1 );
218
 
        gbSizer21->SetFlexibleDirection( wxBOTH );
219
 
        gbSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
220
 
        
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 ) );
225
 
        
226
 
        gbSizer21->Add( m_pModalidad, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_LEFT|wxALL, 3 );
227
 
        
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 ) );
232
 
        
233
 
        gbSizer21->Add( m_pNumeroCortes, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxALL, 3 );
234
 
        
235
 
        bSizer13->Add( gbSizer21, 0, wxEXPAND, 2 );
236
 
        
237
 
        bSizer12->Add( bSizer13, 1, wxEXPAND|wxLEFT, 2 );
238
 
        
239
 
        bSizer11->Add( bSizer12, 1, wxEXPAND|wxALL, 1 );
240
 
        
241
 
        this->SetSizer( bSizer11 );
242
 
        this->Layout();
243
 
        
244
 
        // Connect Events
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 );
274
 
}
275
 
 
276
 
PanelSerieBase::~PanelSerieBase()
277
 
{
278
 
        // Disconnect Events
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 );
308
 
        
309
 
}
310
 
 
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 )
312
 
{
313
 
        this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
314
 
        
315
 
        wxBoxSizer* bSizer5;
316
 
        bSizer5 = new wxBoxSizer( wxVERTICAL );
317
 
        
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 );
321
 
        
322
 
        m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
323
 
        wxBoxSizer* bSizer7;
324
 
        bSizer7 = new wxBoxSizer( wxHORIZONTAL );
325
 
        
326
 
        
327
 
        bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
328
 
        
329
 
        m_pEliminar = new wxButton( m_pFooter, wxID_ANY, _("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
330
 
        bSizer7->Add( m_pEliminar, 0, wxRIGHT, 5 );
331
 
        
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 );
335
 
        
336
 
        m_pFooter->SetSizer( bSizer7 );
337
 
        m_pFooter->Layout();
338
 
        bSizer7->Fit( m_pFooter );
339
 
        bSizer5->Add( m_pFooter, 0, wxEXPAND, 5 );
340
 
        
341
 
        this->SetSizer( bSizer5 );
342
 
        this->Layout();
343
 
        bSizer5->Fit( this );
344
 
        
345
 
        this->Centre( wxBOTH );
346
 
        
347
 
        // Connect Events
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 );
350
 
}
351
 
 
352
 
DialogoConfirmacionEliminarBase::~DialogoConfirmacionEliminarBase()
353
 
{
354
 
        // Disconnect Events
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 );
357
 
        
358
 
}
359
 
 
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 )
361
 
{
362
 
        this->SetSizeHints( wxSize( 500,220 ), wxDefaultSize );
363
 
        
364
 
        wxBoxSizer* bSizer2;
365
 
        bSizer2 = new wxBoxSizer( wxVERTICAL );
366
 
        
367
 
        m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
368
 
        wxBoxSizer* bSizer15;
369
 
        bSizer15 = new wxBoxSizer( wxVERTICAL );
370
 
        
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") );
373
 
        
374
 
        wxBoxSizer* bSizer16;
375
 
        bSizer16 = new wxBoxSizer( wxVERTICAL );
376
 
        
377
 
        m_pListaVistas = new wxListBox( m_pPanelTitulo, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_SINGLE ); 
378
 
        bSizer16->Add( m_pListaVistas, 1, wxEXPAND, 5 );
379
 
        
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 );
382
 
        
383
 
        m_pPanelTitulo->SetSizer( bSizer16 );
384
 
        m_pPanelTitulo->Layout();
385
 
        bSizer16->Fit( m_pPanelTitulo );
386
 
        bSizer15->Add( m_pPanelTitulo, 1, wxEXPAND, 5 );
387
 
        
388
 
        m_pBody->SetSizer( bSizer15 );
389
 
        m_pBody->Layout();
390
 
        bSizer15->Fit( m_pBody );
391
 
        bSizer2->Add( m_pBody, 1, wxEXPAND, 5 );
392
 
        
393
 
        m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
394
 
        wxBoxSizer* bSizer3;
395
 
        bSizer3 = new wxBoxSizer( wxHORIZONTAL );
396
 
        
397
 
        
398
 
        bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
399
 
        
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 );
403
 
        
404
 
        m_button4 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
405
 
        bSizer3->Add( m_button4, 0, wxLEFT, 5 );
406
 
        
407
 
        m_pFooter->SetSizer( bSizer3 );
408
 
        m_pFooter->Layout();
409
 
        bSizer3->Fit( m_pFooter );
410
 
        bSizer2->Add( m_pFooter, 0, wxEXPAND, 5 );
411
 
        
412
 
        this->SetSizer( bSizer2 );
413
 
        this->Layout();
414
 
        bSizer2->Fit( this );
415
 
        
416
 
        // Connect Events
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 );
419
 
}
420
 
 
421
 
DialogoAbrirConBase::~DialogoAbrirConBase()
422
 
{
423
 
        // Disconnect Events
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 );
426
 
        
427
 
}
428
 
 
429
 
PanelHistorial2Base::PanelHistorial2Base( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
430
 
{
431
 
        this->SetBackgroundColour( wxColour( 155, 155, 155 ) );
432
 
        
433
 
        wxBoxSizer* bSizer16;
434
 
        bSizer16 = new wxBoxSizer( wxVERTICAL );
435
 
        
436
 
        m_pHistoryTitle = new HeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
437
 
        m_pHistoryTitle->SetToolTip( _("Medical History") );
438
 
        
439
 
        bSizer16->Add( m_pHistoryTitle, 0, wxEXPAND, 5 );
440
 
        
441
 
        m_pFiltersTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
442
 
        m_pFiltersTitle->SetToolTip( _("Filters") );
443
 
        
444
 
        bSizer16->Add( m_pFiltersTitle, 0, wxEXPAND, 5 );
445
 
        
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") );
449
 
        
450
 
        wxBoxSizer* bSizer20;
451
 
        bSizer20 = new wxBoxSizer( wxVERTICAL );
452
 
        
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 );
458
 
        
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 );
462
 
        
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 ) );
466
 
        
467
 
        fgSizer1->Add( m_pComboBoxPaciente, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
468
 
        
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 );
472
 
        
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 ) );
476
 
        
477
 
        fgSizer1->Add( m_pComboModalidad, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
478
 
        
479
 
        bSizer20->Add( fgSizer1, 0, wxEXPAND, 5 );
480
 
        
481
 
        wxStaticBoxSizer* sbSizer3;
482
 
        sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( m_pFiltersPanel, wxID_ANY, _("Date") ), wxVERTICAL );
483
 
        
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 ) );
495
 
        
496
 
        sbSizer3->Add( m_pComboDate, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
497
 
        
498
 
        wxBoxSizer* bSizer21;
499
 
        bSizer21 = new wxBoxSizer( wxHORIZONTAL );
500
 
        
501
 
        m_pDatePickerFrom = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
502
 
        m_pDatePickerFrom->SetMinSize( wxSize( 82,-1 ) );
503
 
        
504
 
        bSizer21->Add( m_pDatePickerFrom, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
505
 
        
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 );
509
 
        
510
 
        m_pDatePickerTo = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
511
 
        m_pDatePickerTo->SetMinSize( wxSize( 82,-1 ) );
512
 
        
513
 
        bSizer21->Add( m_pDatePickerTo, 1, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
514
 
        
515
 
        sbSizer3->Add( bSizer21, 0, wxEXPAND, 5 );
516
 
        
517
 
        bSizer20->Add( sbSizer3, 1, wxEXPAND|wxALL, 3 );
518
 
        
519
 
        m_pFiltersPanel->SetSizer( bSizer20 );
520
 
        m_pFiltersPanel->Layout();
521
 
        bSizer20->Fit( m_pFiltersPanel );
522
 
        bSizer16->Add( m_pFiltersPanel, 0, wxEXPAND, 5 );
523
 
        
524
 
        m_pResultTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
525
 
        m_pResultTitle->SetToolTip( _("Results") );
526
 
        
527
 
        bSizer16->Add( m_pResultTitle, 0, wxEXPAND, 5 );
528
 
        
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 ) );
533
 
        
534
 
        wxBoxSizer* bSizer17;
535
 
        bSizer17 = new wxBoxSizer( wxVERTICAL );
536
 
        
537
 
        m_pPanelMensajeVacio = new wxPanel( m_pPanelHistorial, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
538
 
        m_pPanelMensajeVacio->SetBackgroundColour( wxColour( 240, 240, 240 ) );
539
 
        
540
 
        wxBoxSizer* bSizer18;
541
 
        bSizer18 = new wxBoxSizer( wxVERTICAL );
542
 
        
543
 
        wxStaticBoxSizer* sbSizer1;
544
 
        sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString ), wxVERTICAL );
545
 
        
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 ) );
549
 
        
550
 
        sbSizer1->Add( m_pCabeceraVacio, 0, 0, 5 );
551
 
        
552
 
        m_staticline1 = new wxStaticLine( m_pPanelMensajeVacio, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
553
 
        sbSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
554
 
        
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 ) );
558
 
        
559
 
        sbSizer1->Add( m_pMensajeVacio, 0, 0, 5 );
560
 
        
561
 
        bSizer18->Add( sbSizer1, 1, wxEXPAND|wxALL, 5 );
562
 
        
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 );
567
 
        
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();
571
 
        
572
 
        wxBoxSizer* bSizer181;
573
 
        bSizer181 = new wxBoxSizer( wxVERTICAL );
574
 
        
575
 
        wxStaticBoxSizer* sbSizer11;
576
 
        sbSizer11 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelNoCabeMas, wxID_ANY, wxEmptyString ), wxVERTICAL );
577
 
        
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 ) );
581
 
        
582
 
        sbSizer11->Add( m_pCabeceraNoCabeMas, 0, 0, 5 );
583
 
        
584
 
        m_staticline11 = new wxStaticLine( m_pPanelNoCabeMas, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
585
 
        sbSizer11->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
586
 
        
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 ) );
590
 
        
591
 
        sbSizer11->Add( m_pMensajeNoCabeMas, 0, 0, 5 );
592
 
        
593
 
        bSizer181->Add( sbSizer11, 1, wxEXPAND|wxALL, 5 );
594
 
        
595
 
        m_pPanelNoCabeMas->SetSizer( bSizer181 );
596
 
        m_pPanelNoCabeMas->Layout();
597
 
        bSizer181->Fit( m_pPanelNoCabeMas );
598
 
        bSizer17->Add( m_pPanelNoCabeMas, 0, wxEXPAND, 5 );
599
 
        
600
 
        m_pPanelHistorial->SetSizer( bSizer17 );
601
 
        m_pPanelHistorial->Layout();
602
 
        bSizer17->Fit( m_pPanelHistorial );
603
 
        bSizer16->Add( m_pPanelHistorial, 1, wxEXPAND, 5 );
604
 
        
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") );
611
 
        
612
 
        bSizer16->Add( m_pPanelVertical, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
613
 
        
614
 
        this->SetSizer( bSizer16 );
615
 
        this->Layout();
616
 
        
617
 
        // Connect Events
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 );
631
 
}
632
 
 
633
 
PanelHistorial2Base::~PanelHistorial2Base()
634
 
{
635
 
        // Disconnect Events
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 );
649
 
        
650
 
}
 
1
///////////////////////////////////////////////////////////////////////////
 
2
// C++ code generated with wxFormBuilder (version Oct 27 2009)
 
3
// http://www.wxformbuilder.org/
 
4
//
 
5
// PLEASE DO "NOT" EDIT THIS FILE!
 
6
///////////////////////////////////////////////////////////////////////////
 
7
 
 
8
#include "wx/ginkgostyle/ginkgostyle.h"
 
9
 
 
10
#include "panelhistorial2base.h"
 
11
 
 
12
///////////////////////////////////////////////////////////////////////////
 
13
 
 
14
PanelPacienteBase::PanelPacienteBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
15
{
 
16
        this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVECAPTION ) );
 
17
        
 
18
        wxBoxSizer* bSizer10;
 
19
        bSizer10 = new wxBoxSizer( wxVERTICAL );
 
20
        
 
21
        m_pPanelCabecera = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
22
        wxBoxSizer* bSizer18;
 
23
        bSizer18 = new wxBoxSizer( wxVERTICAL );
 
24
        
 
25
        wxGridBagSizer* gbSizer1;
 
26
        gbSizer1 = new wxGridBagSizer( 0, 1 );
 
27
        gbSizer1->AddGrowableCol( 0 );
 
28
        gbSizer1->SetFlexibleDirection( wxBOTH );
 
29
        gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
30
        
 
31
        m_pIcoPlegar = new wxStaticBitmap( m_pPanelCabecera, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
 
32
        m_pIcoPlegar->SetMinSize( wxSize( 16,16 ) );
 
33
        
 
34
        gbSizer1->Add( m_pIcoPlegar, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxTOP|wxRIGHT|wxLEFT, 5 );
 
35
        
 
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 ) );
 
40
        
 
41
        gbSizer1->Add( m_pIdPaciente, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
 
42
        
 
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 ) );
 
47
        
 
48
        gbSizer1->Add( m_pFechaNacimiento, wxGBPosition( 1, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALIGN_RIGHT|wxALL, 5 );
 
49
        
 
50
        wxBoxSizer* bSizer15;
 
51
        bSizer15 = new wxBoxSizer( wxHORIZONTAL );
 
52
        
 
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 ) );
 
57
        
 
58
        bSizer15->Add( m_pNombre, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
 
59
        
 
60
        gbSizer1->Add( bSizer15, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxEXPAND, 5 );
 
61
        
 
62
        bSizer18->Add( gbSizer1, 0, wxEXPAND, 5 );
 
63
        
 
64
        m_pPanelCabecera->SetSizer( bSizer18 );
 
65
        m_pPanelCabecera->Layout();
 
66
        bSizer18->Fit( m_pPanelCabecera );
 
67
        bSizer10->Add( m_pPanelCabecera, 0, wxEXPAND, 5 );
 
68
        
 
69
        m_pSizerEstudios = new wxBoxSizer( wxVERTICAL );
 
70
        
 
71
        
 
72
        m_pSizerEstudios->Add( 0, 6, 0, wxEXPAND, 5 );
 
73
        
 
74
        bSizer10->Add( m_pSizerEstudios, 1, wxEXPAND, 0 );
 
75
        
 
76
        this->SetSizer( bSizer10 );
 
77
        this->Layout();
 
78
        
 
79
        // Connect Events
 
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 );
 
101
}
 
102
 
 
103
PanelPacienteBase::~PanelPacienteBase()
 
104
{
 
105
        // Disconnect Events
 
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 );
 
127
}
 
128
 
 
129
PanelEstudioBase::PanelEstudioBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
130
{
 
131
        this->SetBackgroundColour( wxColour( 255, 255, 255 ) );
 
132
        
 
133
        wxBoxSizer* m_pSizerPrincipal;
 
134
        m_pSizerPrincipal = new wxBoxSizer( wxVERTICAL );
 
135
        
 
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 );
 
139
        
 
140
        m_pSizerSeries = new wxBoxSizer( wxVERTICAL );
 
141
        
 
142
        m_pSizerPrincipal->Add( m_pSizerSeries, 1, wxEXPAND|wxALL, 1 );
 
143
        
 
144
        this->SetSizer( m_pSizerPrincipal );
 
145
        this->Layout();
 
146
        
 
147
        // Connect Events
 
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 );
 
155
}
 
156
 
 
157
PanelEstudioBase::~PanelEstudioBase()
 
158
{
 
159
        // Disconnect Events
 
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 );
 
167
}
 
168
 
 
169
PanelSerieBase::PanelSerieBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
170
{
 
171
        this->SetBackgroundColour( wxColour( 16, 16, 16 ) );
 
172
        this->SetMinSize( wxSize( 200,98 ) );
 
173
        
 
174
        wxBoxSizer* bSizer11;
 
175
        bSizer11 = new wxBoxSizer( wxHORIZONTAL );
 
176
        
 
177
        wxBoxSizer* bSizer12;
 
178
        bSizer12 = new wxBoxSizer( wxHORIZONTAL );
 
179
        
 
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 ) );
 
183
        
 
184
        bSizer12->Add( m_pThumbnail, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0 );
 
185
        
 
186
        wxBoxSizer* bSizer13;
 
187
        bSizer13 = new wxBoxSizer( wxVERTICAL );
 
188
        
 
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 ) );
 
193
        
 
194
        bSizer13->Add( m_pDescripcionSerie, 0, wxALL, 3 );
 
195
        
 
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 ) );
 
200
        
 
201
        bSizer13->Add( m_pHoraSerie, 0, wxALL, 3 );
 
202
        
 
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 ) );
 
207
        
 
208
        bSizer13->Add( m_pFechaSerie, 0, wxALL, 3 );
 
209
        
 
210
        
 
211
        bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
 
212
        
 
213
        wxGridBagSizer* gbSizer21;
 
214
        gbSizer21 = new wxGridBagSizer( 0, 2 );
 
215
        gbSizer21->AddGrowableCol( 1 );
 
216
        gbSizer21->SetFlexibleDirection( wxBOTH );
 
217
        gbSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
218
        
 
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 ) );
 
223
        
 
224
        gbSizer21->Add( m_pModalidad, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_LEFT|wxALL, 3 );
 
225
        
 
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 ) );
 
230
        
 
231
        gbSizer21->Add( m_pNumeroCortes, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_RIGHT|wxALL, 3 );
 
232
        
 
233
        bSizer13->Add( gbSizer21, 0, wxEXPAND, 2 );
 
234
        
 
235
        bSizer12->Add( bSizer13, 1, wxEXPAND|wxLEFT, 2 );
 
236
        
 
237
        bSizer11->Add( bSizer12, 1, wxEXPAND|wxALL, 1 );
 
238
        
 
239
        this->SetSizer( bSizer11 );
 
240
        this->Layout();
 
241
        
 
242
        // Connect Events
 
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 );
 
272
}
 
273
 
 
274
PanelSerieBase::~PanelSerieBase()
 
275
{
 
276
        // Disconnect Events
 
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 );
 
306
}
 
307
 
 
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 )
 
309
{
 
310
        this->SetSizeHints( wxSize( 450,220 ), wxDefaultSize );
 
311
        
 
312
        wxBoxSizer* bSizer5;
 
313
        bSizer5 = new wxBoxSizer( wxVERTICAL );
 
314
        
 
315
        m_body = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
316
        wxBoxSizer* bSizer22;
 
317
        bSizer22 = new wxBoxSizer( wxVERTICAL );
 
318
        
 
319
        m_pTitled = new TitledPanel( m_body, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
320
        m_pTitled->SetToolTip( _("Confirm removal") );
 
321
        
 
322
        wxBoxSizer* bSizer23;
 
323
        bSizer23 = new wxBoxSizer( wxVERTICAL );
 
324
        
 
325
        
 
326
        bSizer23->Add( 0, 0, 1, wxEXPAND, 5 );
 
327
        
 
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 );
 
331
        
 
332
        
 
333
        bSizer23->Add( 0, 0, 1, wxEXPAND, 5 );
 
334
        
 
335
        m_pTitled->SetSizer( bSizer23 );
 
336
        m_pTitled->Layout();
 
337
        bSizer23->Fit( m_pTitled );
 
338
        bSizer22->Add( m_pTitled, 1, wxEXPAND, 5 );
 
339
        
 
340
        m_body->SetSizer( bSizer22 );
 
341
        m_body->Layout();
 
342
        bSizer22->Fit( m_body );
 
343
        bSizer5->Add( m_body, 1, wxEXPAND, 5 );
 
344
        
 
345
        m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
346
        wxBoxSizer* bSizer7;
 
347
        bSizer7 = new wxBoxSizer( wxHORIZONTAL );
 
348
        
 
349
        
 
350
        bSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
 
351
        
 
352
        m_pEliminar = new wxButton( m_pFooter, wxID_ANY, _("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
 
353
        bSizer7->Add( m_pEliminar, 0, wxRIGHT, 5 );
 
354
        
 
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 );
 
358
        
 
359
        m_pFooter->SetSizer( bSizer7 );
 
360
        m_pFooter->Layout();
 
361
        bSizer7->Fit( m_pFooter );
 
362
        bSizer5->Add( m_pFooter, 0, wxEXPAND, 5 );
 
363
        
 
364
        this->SetSizer( bSizer5 );
 
365
        this->Layout();
 
366
        bSizer5->Fit( this );
 
367
        
 
368
        this->Centre( wxBOTH );
 
369
        
 
370
        // Connect Events
 
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 );
 
373
}
 
374
 
 
375
DialogoConfirmacionEliminarBase::~DialogoConfirmacionEliminarBase()
 
376
{
 
377
        // Disconnect Events
 
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 );
 
380
}
 
381
 
 
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 )
 
383
{
 
384
        this->SetSizeHints( wxSize( 500,350 ), wxDefaultSize );
 
385
        
 
386
        wxBoxSizer* bSizer2;
 
387
        bSizer2 = new wxBoxSizer( wxVERTICAL );
 
388
        
 
389
        m_pBody = new BodyPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
390
        wxBoxSizer* bSizer15;
 
391
        bSizer15 = new wxBoxSizer( wxVERTICAL );
 
392
        
 
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") );
 
395
        
 
396
        wxBoxSizer* bSizer16;
 
397
        bSizer16 = new wxBoxSizer( wxVERTICAL );
 
398
        
 
399
        m_pListaVistas = new wxListBox( m_pPanelTitulo, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_SINGLE ); 
 
400
        bSizer16->Add( m_pListaVistas, 1, wxEXPAND, 5 );
 
401
        
 
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 );
 
404
        
 
405
        m_pPanelTitulo->SetSizer( bSizer16 );
 
406
        m_pPanelTitulo->Layout();
 
407
        bSizer16->Fit( m_pPanelTitulo );
 
408
        bSizer15->Add( m_pPanelTitulo, 1, wxEXPAND, 5 );
 
409
        
 
410
        m_pBody->SetSizer( bSizer15 );
 
411
        m_pBody->Layout();
 
412
        bSizer15->Fit( m_pBody );
 
413
        bSizer2->Add( m_pBody, 1, wxEXPAND, 5 );
 
414
        
 
415
        m_pFooter = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
416
        wxBoxSizer* bSizer3;
 
417
        bSizer3 = new wxBoxSizer( wxHORIZONTAL );
 
418
        
 
419
        
 
420
        bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
 
421
        
 
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 );
 
425
        
 
426
        m_button4 = new wxButton( m_pFooter, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
 
427
        bSizer3->Add( m_button4, 0, wxLEFT, 5 );
 
428
        
 
429
        m_pFooter->SetSizer( bSizer3 );
 
430
        m_pFooter->Layout();
 
431
        bSizer3->Fit( m_pFooter );
 
432
        bSizer2->Add( m_pFooter, 0, wxEXPAND, 5 );
 
433
        
 
434
        this->SetSizer( bSizer2 );
 
435
        this->Layout();
 
436
        bSizer2->Fit( this );
 
437
        
 
438
        // Connect Events
 
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 );
 
441
}
 
442
 
 
443
DialogoAbrirConBase::~DialogoAbrirConBase()
 
444
{
 
445
        // Disconnect Events
 
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 );
 
448
}
 
449
 
 
450
PanelHistorial2Base::PanelHistorial2Base( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
451
{
 
452
        this->SetBackgroundColour( wxColour( 155, 155, 155 ) );
 
453
        
 
454
        wxBoxSizer* bSizer16;
 
455
        bSizer16 = new wxBoxSizer( wxVERTICAL );
 
456
        
 
457
        m_pHistoryTitle = new HeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
458
        m_pHistoryTitle->SetToolTip( _("Medical History") );
 
459
        
 
460
        bSizer16->Add( m_pHistoryTitle, 0, wxEXPAND, 5 );
 
461
        
 
462
        m_pFiltersTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
463
        m_pFiltersTitle->SetToolTip( _("Filters") );
 
464
        
 
465
        bSizer16->Add( m_pFiltersTitle, 0, wxEXPAND, 5 );
 
466
        
 
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") );
 
470
        
 
471
        wxBoxSizer* bSizer20;
 
472
        bSizer20 = new wxBoxSizer( wxVERTICAL );
 
473
        
 
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 );
 
479
        
 
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 );
 
483
        
 
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 ) );
 
487
        
 
488
        fgSizer1->Add( m_pComboBoxPaciente, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 );
 
489
        
 
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 );
 
493
        
 
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 ) );
 
497
        
 
498
        fgSizer1->Add( m_pComboModalidad, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
 
499
        
 
500
        bSizer20->Add( fgSizer1, 0, wxEXPAND, 5 );
 
501
        
 
502
        wxStaticBoxSizer* sbSizer3;
 
503
        sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( m_pFiltersPanel, wxID_ANY, _("Date") ), wxVERTICAL );
 
504
        
 
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 ) );
 
516
        
 
517
        sbSizer3->Add( m_pComboDate, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
 
518
        
 
519
        wxBoxSizer* bSizer21;
 
520
        bSizer21 = new wxBoxSizer( wxHORIZONTAL );
 
521
        
 
522
        m_pDatePickerFrom = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
 
523
        m_pDatePickerFrom->SetMinSize( wxSize( 82,-1 ) );
 
524
        
 
525
        bSizer21->Add( m_pDatePickerFrom, 1, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 );
 
526
        
 
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 );
 
530
        
 
531
        m_pDatePickerTo = new wxDatePickerCtrl( m_pFiltersPanel, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxSize( 82,-1 ), wxDP_DEFAULT );
 
532
        m_pDatePickerTo->SetMinSize( wxSize( 82,-1 ) );
 
533
        
 
534
        bSizer21->Add( m_pDatePickerTo, 1, wxALL|wxALIGN_CENTER_VERTICAL, 3 );
 
535
        
 
536
        sbSizer3->Add( bSizer21, 0, wxEXPAND, 5 );
 
537
        
 
538
        bSizer20->Add( sbSizer3, 1, wxEXPAND|wxALL, 3 );
 
539
        
 
540
        m_pFiltersPanel->SetSizer( bSizer20 );
 
541
        m_pFiltersPanel->Layout();
 
542
        bSizer20->Fit( m_pFiltersPanel );
 
543
        bSizer16->Add( m_pFiltersPanel, 0, wxEXPAND, 5 );
 
544
        
 
545
        m_pResultTitle = new SubHeaderPanelWithButton( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
546
        m_pResultTitle->SetToolTip( _("Results") );
 
547
        
 
548
        bSizer16->Add( m_pResultTitle, 0, wxEXPAND, 5 );
 
549
        
 
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 ) );
 
554
        
 
555
        wxBoxSizer* bSizer17;
 
556
        bSizer17 = new wxBoxSizer( wxVERTICAL );
 
557
        
 
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 ) );
 
561
        
 
562
        wxBoxSizer* bSizer18;
 
563
        bSizer18 = new wxBoxSizer( wxVERTICAL );
 
564
        
 
565
        wxStaticBoxSizer* sbSizer1;
 
566
        sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelMensajeVacio, wxID_ANY, wxEmptyString ), wxVERTICAL );
 
567
        
 
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 ) );
 
571
        
 
572
        sbSizer1->Add( m_pCabeceraVacio, 0, 0, 5 );
 
573
        
 
574
        m_staticline1 = new wxStaticLine( m_pPanelMensajeVacio, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
575
        sbSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
 
576
        
 
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 ) );
 
580
        
 
581
        sbSizer1->Add( m_pMensajeVacio, 0, 0, 5 );
 
582
        
 
583
        bSizer18->Add( sbSizer1, 1, wxEXPAND|wxALL, 5 );
 
584
        
 
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 );
 
589
        
 
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 ) );
 
594
        
 
595
        wxBoxSizer* bSizer181;
 
596
        bSizer181 = new wxBoxSizer( wxVERTICAL );
 
597
        
 
598
        wxStaticBoxSizer* sbSizer11;
 
599
        sbSizer11 = new wxStaticBoxSizer( new wxStaticBox( m_pPanelNoCabeMas, wxID_ANY, wxEmptyString ), wxVERTICAL );
 
600
        
 
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 ) );
 
604
        
 
605
        sbSizer11->Add( m_pCabeceraNoCabeMas, 0, 0, 5 );
 
606
        
 
607
        m_staticline11 = new wxStaticLine( m_pPanelNoCabeMas, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
608
        sbSizer11->Add( m_staticline11, 0, wxEXPAND | wxALL, 5 );
 
609
        
 
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 ) );
 
613
        
 
614
        sbSizer11->Add( m_pMensajeNoCabeMas, 0, 0, 5 );
 
615
        
 
616
        bSizer181->Add( sbSizer11, 1, wxEXPAND|wxALL, 5 );
 
617
        
 
618
        m_pPanelNoCabeMas->SetSizer( bSizer181 );
 
619
        m_pPanelNoCabeMas->Layout();
 
620
        bSizer181->Fit( m_pPanelNoCabeMas );
 
621
        bSizer17->Add( m_pPanelNoCabeMas, 0, wxEXPAND, 5 );
 
622
        
 
623
        m_pPanelHistorial->SetSizer( bSizer17 );
 
624
        m_pPanelHistorial->Layout();
 
625
        bSizer17->Fit( m_pPanelHistorial );
 
626
        bSizer16->Add( m_pPanelHistorial, 1, wxEXPAND, 5 );
 
627
        
 
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") );
 
634
        
 
635
        bSizer16->Add( m_pPanelVertical, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
 
636
        
 
637
        this->SetSizer( bSizer16 );
 
638
        this->Layout();
 
639
        
 
640
        // Connect Events
 
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 );
 
654
}
 
655
 
 
656
PanelHistorial2Base::~PanelHistorial2Base()
 
657
{
 
658
        // Disconnect Events
 
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 );
 
672
}