~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/tools/herramientaangulo.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
Import upstream version 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  
 
3
 *  $Id: herramientaangulo.h 3526 2011-03-16 19:56:19Z carlos $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
 
7
 *  http://ginkgo-cadx.com
 
8
 *
 
9
 *  This file is licensed under LGPL v3 license.
 
10
 *  See License.txt for details
 
11
 *
 
12
 *
 
13
 */
 
14
#pragma once
 
15
#include <export/iherramientaangulo.h>
 
16
#include <api/api.h>
 
17
 
 
18
namespace GNC {
 
19
 
 
20
        namespace GCS {
 
21
                namespace Widgets {
 
22
                        class WAnguloBuilder;
 
23
                }
 
24
        }
 
25
 
 
26
        class EXTAPI HerramientaAngulo : public GNC::GCS::IHerramientaAngulo {
 
27
        public:
 
28
 
 
29
                typedef enum TipoAngulo {
 
30
                        TA_Normal,
 
31
                        TA_Cobb
 
32
                } TipoAngulo;
 
33
 
 
34
                HerramientaAngulo();
 
35
                ~HerramientaAngulo();
 
36
 
 
37
                wxXmlNode* Serializar(GNC::GCS::IVista* pVista, long vid, const std::string nombreMedicoSerializa);
 
38
 
 
39
                void Deserializar(GNC::GCS::IVista* pVista, long vid, wxXmlNode* nodo);
 
40
 
 
41
                /*Devuelve el cursor de la herramienta*/
 
42
                virtual wxCursor GetCursor();
 
43
 
 
44
                void SetTipo(TipoAngulo tipo);
 
45
 
 
46
//region "Realizaci�n de la interfaz IHerramienta"
 
47
 
 
48
                // Setup de paneles
 
49
                virtual void CrearPaneles( wxPanel* panel );
 
50
 
 
51
//endregion
 
52
 
 
53
                virtual void ConectarContratoFalso(bool activar);
 
54
                virtual void SetVistaActiva(GNC::GCS::IVista* pVista);
 
55
                virtual void ConectarContratos(bool activar);
 
56
 
 
57
//region "Eventos refinados desde los paneles"
 
58
 
 
59
//endregion
 
60
 
 
61
        protected:
 
62
                GNC::GCS::Widgets::WAnguloBuilder* m_pAnguloBuilder;
 
63
                TipoAngulo                         m_TipoAngulo;
 
64
        };
 
65
}