24
24
#include <visualizator/vistas/waveformview.h>
25
25
#include <visualizator/estudios/visualizatorstudy.h>
26
#include <api/controllers/icommandscontroller.h>
26
#include <main/controllers/commandcontroller.h>
27
27
#include <api/controllers/ieventscontroller.h>
28
28
#include <api/controllers/icontroladorvistas.h>
29
29
#include <api/iwidgetsrenderer.h>
142
142
pToolBar->AddTool(HCore_DetachWindow, (GNC::GCS::IViewContract*) View);
143
143
pToolBar->AddTool(HCore_MetricGrid, (GNC::GCS::IWidgetsContract*) Delegate);
144
144
pToolBar->AddTool(HCore_Reset, (GNC::GCS::IWidgetsContract*) Delegate);
146
pToolBar->AddTool(HCore_SecondaryCapture, (GNC::GCS::IWidgetsContract*) Delegate);
146
148
pToolBar->AddTool(HCore_ShowDicomTags, (GNC::GCS::IViewContract*) View);
147
pToolBar->AddTool(HCore_ShowHistory, (GNC::GCS::IViewContract*) View);
149
pToolBar->AddTool(HCore_ShowHistory, (GNC::GCS::IViewContract*) View);
150
pToolBar->AddTool(HCore_PACSUpload, (GNC::GCS::IViewContract*) View);
148
151
pToolBar->AddTool(HCore_Deshacer, (GNC::GCS::IViewContract*) View);
149
152
m_pSizerTools->Add(pToolBar->CreateNewToolBar(this, GNC::GCS::ITool::TFamiliaVisualizacion), 0, wxEXPAND);
150
153
m_pSizerTools->Add(pToolBar->CreateNewToolBar(this, GNC::GCS::ITool::TFamiliaMedicion), 0, wxEXPAND);
197
200
this->Disconnect(wxEVT_CHILD_FOCUS, wxChildFocusEventHandler(GWaveformView::OnFocus),NULL,this);
198
201
if (View != NULL) {
199
GNC::GCS::IEntorno::Instance()->GetControladorComandos()->AbortarComandosDeOwner(View);
202
GNC::GCS::IEntorno::Instance()->GetCommandController()->AbortarComandosDeOwner(View);
201
204
View->GetToolController()->FinalizeToolController();
202
205
m_pManager->EliminarTodosLosWidgets(false);
237
240
WECG = new GNKVisualizator::Widgets::WECG(GetManager(), 0);
238
GetManager()->InsertarWidget(WECG, false);
241
GetManager()->InsertarWidget(WECG, false);
240
WECG->Reload(View->GetECGStudy()->GetListOfChannels());
241
WECG->AutoCallibrate();
243
m_pTextDiagnosis->SetValue(wxString::FromUTF8(View->GetECGStudy()->GetDiagnosis().c_str()));
244
m_pTextMeasurements->SetValue(wxString::FromUTF8(View->GetECGStudy()->GetGlobalMeasurement().c_str()));
246
//change color to widget anotacionesesquina
247
for( GNC::GCS::ListaWidgets::iterator it = m_pManager->GetListaWidgets().begin(); it != m_pManager->GetListaWidgets().end(); ++it) {
248
GNC::GCS::Widgets::IWidget* w = *it;
249
if (w->GetVID() == -1) {
250
GNC::GCS::Widgets::WAnotador* wac = dynamic_cast<GNC::GCS::Widgets::WAnotador*> (w);
252
wac->SetTextColor(GNC::GCS::GLHelper::TColor(ANNOTATOR_TEXT_COLOR));
243
if (!View->GetECGStudy()->Ok()) {
244
wxMessageBox(_("Error loading study with ecg view"), _("Error"), wxOK, NULL);
246
WECG->Reload(View->GetECGStudy()->GetListOfChannels());
247
WECG->AutoCallibrate();
249
m_pTextDiagnosis->SetValue(wxString::FromUTF8(View->GetECGStudy()->GetDiagnosis().c_str()));
250
m_pTextMeasurements->SetValue(wxString::FromUTF8(View->GetECGStudy()->GetGlobalMeasurement().c_str()));
252
//change color to widget anotacionesesquina
253
for( GNC::GCS::ListaWidgets::iterator it = m_pManager->GetListaWidgets().begin(); it != m_pManager->GetListaWidgets().end(); ++it) {
254
GNC::GCS::Widgets::IWidget* w = *it;
255
if (w->GetVID() == -1) {
256
GNC::GCS::Widgets::WAnotador* wac = dynamic_cast<GNC::GCS::Widgets::WAnotador*> (w);
258
wac->SetTextColor(GNC::GCS::GLHelper::TColor(ANNOTATOR_TEXT_COLOR));
468
475
os << "25 mm/s, 10 mm/mV";
479
std::string GWaveformView::GetPatientPosition(GNC::GCS::Contexto3D* c)
471
484
std::string GWaveformView::GetAnotacionPosicion(GNC::GCS::Vector* pPosicionRaton)
477
491
void GWaveformView::OnFocus(wxChildFocusEvent &event)
532
546
ViewImage2D->Modified();
533
547
GNC::GCS::IEntorno::Instance()->GetControladorEventos()->ProcesarEvento(new GNC::GCS::Events::EventoModificacionImagen(View,GNC::GCS::Events::EventoModificacionImagen::AnotacionesEstaticasModificadas));
534
WECG->Reload(View->GetECGStudy()->GetListOfChannels());
548
if (View->GetECGStudy()->Ok()) {
549
WECG->Reload(View->GetECGStudy()->GetListOfChannels());
537
553
case GNC::GCS::Events::EventoModificacionImagen::ImagenRecalibrada: