~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/eventos/herramientas.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
*  
3
 
*  $Id: herramientas.h $
4
 
*  Ginkgo CADx Project
5
 
*
6
 
*  Copyright 2008-12 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
 
#pragma once
14
 
 
15
 
#include <api/ievento.h>
16
 
#include "eventosginkgo.h"
17
 
 
18
 
#include <wx/cursor.h>
19
 
 
20
 
namespace GNC {
21
 
        namespace GCS {
22
 
                namespace Events {
23
 
 
24
 
                        class EXTAPI EventoHerramientas : public GNC::GCS::Events::IEvent
25
 
                        {
26
 
                        public:
27
 
                                typedef enum {
28
 
                                        CambiarCursor
29
 
                                } TipoEventoHerramientas;
30
 
 
31
 
                                EventoHerramientas(GNC::GCS::IVista* pVista, TipoEventoHerramientas tipo = CambiarCursor): GNC::GCS::Events::IEvent(ginkgoEVT_Core_Herramientas,0,100,pVista){
32
 
                                        m_Nombre = "Herramientas";      
33
 
                                        m_tipo = tipo;
34
 
                                }
35
 
 
36
 
 
37
 
                                EventoHerramientas(GNC::GCS::IVista* pVista, wxCursor cursor, TipoEventoHerramientas tipo = CambiarCursor) : GNC::GCS::Events::IEvent(ginkgoEVT_Core_Herramientas,0,100,pVista)
38
 
                                {
39
 
                                        m_Nombre = "Herramientas";
40
 
                                        m_Cursor = cursor;
41
 
                                        m_tipo = tipo;
42
 
                                }
43
 
 
44
 
                                ~EventoHerramientas()
45
 
                                {
46
 
                                }
47
 
 
48
 
                                wxCursor GetImagenCursor(){
49
 
                                        return m_Cursor;
50
 
                                }
51
 
 
52
 
                                TipoEventoHerramientas GetTipo(){
53
 
                                        return m_tipo;
54
 
                                }
55
 
 
56
 
                                virtual void pushInfo(std::ostream& out) const {
57
 
                                        out << "ImagenCursor is ok = " << m_Cursor.IsOk();
58
 
                                }
59
 
 
60
 
                        protected:
61
 
                                wxCursor               m_Cursor;
62
 
                                TipoEventoHerramientas m_tipo;
63
 
                        };
64
 
 
65
 
                }
66
 
        }
67
 
}