~ubuntu-branches/ubuntu/utopic/ginkgocadx/utopic-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/tools/herramientalupa.cpp

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2012-01-29 12:02:54 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120129120254-nu7giync5p156icb
Tags: 2.8.0.4602-1
New upstream version (adapted patch, removed patch applied upstream)
Closes: #657827

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  
3
 
 *  $Id: herramientalupa.cpp 3830 2011-05-06 13:30:18Z carlos $
 
3
 *  $Id: herramientalupa.cpp 4478 2011-12-13 11:55:00Z carlos $
4
4
 *  Ginkgo CADx Project
5
5
 *
6
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
107
107
GNC::HerramientaLupa::HerramientaLupa()
108
108
{
109
109
        m_Descripcion = _Std("Magnifying glass");
110
 
        m_Icono = GinkgoResourcesManager::IconosHerramientas::GetIcoZoom();
 
110
        m_Icono = GinkgoResourcesManager::IconosHerramientas::GetIcoLupa();
111
111
}
112
112
 
113
113
GNC::HerramientaLupa::~HerramientaLupa()
129
129
        }
130
130
}
131
131
 
132
 
//region "Realizaci�n de la interfaz IHerramienta"
 
132
//region "Realizacion de la interfaz IHerramienta"
133
133
 
134
134
void GNC::HerramientaLupa::CrearPaneles( wxPanel* /*panel*/ )
135
135
{
193
193
                                        modo = GNC::GCS::Widgets::ML_Disminuir;
194
194
                                }*/
195
195
                                // Usamos de Id de grupo el valor del puntero de la herramienta, que es unico y no cambia
196
 
                                m_pLupaBuilder = new GNC::GCS::Widgets::WLupaBuilder(pCW->GetManager(), modo, (unsigned long)this);
 
196
                                m_pLupaBuilder = new GNC::GCS::Widgets::WLupaBuilder(pCW->GetManager(), modo, GetTriggerButton(), (unsigned long)this);
197
197
                                //m_pLupaBuilder->SetObservador(this);
198
198
                                pCW->GetViewer()->SetInteractionStyle(vtkGinkgoImageViewer::ZOOM_INTERACTION);
199
199
                                pCW->GetManager()->SetCursor(m_pLupaBuilder->GetCursor());