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

« back to all changes in this revision

Viewing changes to src/cadxcore/api/iwidgetsmanager.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-01-09 07:37:09 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20140109073709-rpuh5x3p3finvtze
Tags: 3.6.0.1228.33+dfsg-1
New upstream release [December 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 */
13
13
#pragma once
14
14
#include <api/api.h>
 
15
#include <api/autoptr.h>
15
16
#include <api/math/geometry.h>
16
17
#include <api/ievento.h>
17
18
#include <api/iwidgetsproperties.h>
23
24
                class IEventsController;
24
25
                class IWidgetsRenderer;
25
26
                class IContexto;
26
 
                class IAnotador;
 
27
                class IAnnotator;
27
28
                class IImpresorOverlay;
28
29
 
29
30
                namespace Widgets {
53
54
 
54
55
                        virtual ~IWidgetsManager();
55
56
                        
56
 
                        inline GNC::GCS::IVista* GetVista(){
57
 
                                return m_pView;
58
 
                        }
59
 
 
60
 
                        inline void MarcarModificado(bool modificado) {
61
 
                                m_Modified = modificado;
62
 
                        }
63
 
 
64
 
                        inline bool EstaModificado() {
65
 
                                return m_Modified;
66
 
                        }
 
57
                        GNC::GCS::IVista* GetVista();
 
58
 
 
59
                        void MarcarModificado(bool modificado);
 
60
 
 
61
                        bool EstaModificado();
67
62
 
68
63
                //----------------------------------------------------------------------------------------------------
69
64
                //region "Interfaz de registro de IWidgetBuilder's"
72
67
                        ListaBuilders m_pBuilders;
73
68
 
74
69
                public:
75
 
                        inline void RegisterBuilder(GNC::GCS::Widgets::IWidgetBuilder* pBuilder)
76
 
                        {
77
 
                                m_pBuilders.push_back(pBuilder);
78
 
                        }
 
70
                        void RegisterBuilder(GNC::GCS::Widgets::IWidgetBuilder* pBuilder);
79
71
 
80
 
                        inline void UnRegisterBuilder(GNC::GCS::Widgets::IWidgetBuilder* pBuilder)
81
 
                        {
82
 
                                for (ListaBuilders::iterator it = m_pBuilders.begin(); it != m_pBuilders.end(); ++it) {
83
 
                                        if ( (*it) == pBuilder) {
84
 
                                                m_pBuilders.erase(it);
85
 
                                                break;
86
 
                                        }
87
 
                                }
88
 
                        }
 
72
                        void UnRegisterBuilder(GNC::GCS::Widgets::IWidgetBuilder* pBuilder);
89
73
 
90
74
                //endregion
91
75
 
185
169
 
186
170
                //----------------------------------------------------------------------------------------------------
187
171
                //region "Interfaz general"
188
 
                        virtual void CrearWidgetAnotador(GNC::GCS::IAnotador* pAnotador) = 0;
189
 
                        virtual void EnableAnotacionDinamica(bool enable) = 0;
190
 
                        virtual void MostrarOcultarAnotador() = 0;
191
 
                        virtual bool IsVisibleAnotador() = 0;
 
172
                        virtual void SetAnnotator(const GNC::GCS::Ptr<GNC::GCS::IAnnotator>& pAnnotador) = 0;
 
173
                        virtual const GNC::GCS::Ptr<GNC::GCS::IAnnotator>& GetAnnotator() = 0;
 
174
                        virtual void ShowAnnotations(bool show) = 0;
 
175
                        virtual bool IsShownAnnotations() = 0;
192
176
                //endregion
193
177
 
194
178
                //----------------------------------------------------------------------------------------------------