~ubuntu-branches/ubuntu/raring/ginkgocadx/raring-proposed

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-07-14 16:17:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110714161751-6wngu3xs307thgpr
Tags: 2.5.1.0-1
* New upstream version (all patches applied)
  Closes: #630877
* debian/patches/drop_rpath.patch: Fix remaining rpath issue
* debian/{mime,sharedmimeinfo}: Mime info for DICOM images
  Closes: #631205
* Add upstream manpage + desktop file
* Fixed Vcs fields
* debian/rules:
   - Add new extension liblightvisualizator
   - remove get-orig-source target which becames void because
     upstream dropped the debian/ dir
   - Hack around explicite rpath definitions
* debian/install: move conformance.xml into place
* debian/watch: drop useless comments
* debian/ginkgocadx.lintian-overrides: Drop unneeded overrides
  as well as those which stay in effect.  These should vanish
  once rpath is correctly fixed - so the warning should not
  be hidden here.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  
3
 
 *  $Id: icontroladormodulo.h 3648 2011-04-04 11:56:18Z tovar $
 
3
 *  $Id: icontroladormodulo.h 3963 2011-07-11 14:03:51Z tovar $
4
4
 *  Ginkgo CADx Project
5
5
 *
6
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
18
18
#include <map>
19
19
#include <exception>
20
20
#include <yasper/yasper.h>
21
 
#include "imodelointegracion.h"
22
 
#include "imodelointegracion.h"
23
 
#include "icontextoestudio.h"
24
 
#include "ivista.h"
 
21
#include <api/imodelointegracion.h>
 
22
#include <api/icontextoestudio.h>
 
23
#include <api/ivista.h>
25
24
 
26
25
class IPasoConfiguracion;
27
26
class IWizard;
35
34
        }
36
35
}
37
36
 
38
 
class IControladorImportacionPACS;
 
37
class IPACSController;
39
38
 
40
39
#define GINKGO_PARAMS_SEPARATOR "="
41
40
 
58
57
                class EXTAPI ModoControlador {
59
58
                        public:
60
59
                        class EXTAPI TipoListaModalidades : public std::list<std::string> { };
 
60
                        class EXTAPI TipoListaUIDsImportacion : public std::list<std::string> { };
61
61
 
62
 
                        ModoControlador(int id, const std::string& descripcion, TipoListaModalidades listaModalidades, bool abreSeriesSueltas, wxBitmap * bitmap = NULL)
 
62
                        ModoControlador(int id, const std::string& descripcion, const TipoListaModalidades& listaModalidades, const TipoListaUIDsImportacion& listaImportacion, bool abreSeriesSueltas, wxBitmap * bitmap = NULL)
63
63
                        {
64
64
                                this->id = id;
65
65
                                this->descripcion = descripcion;
66
66
                                this->bitmap = bitmap;
67
67
                                this->m_listaModalidades = listaModalidades;
 
68
                                this->m_listImportationUIDs = listaImportacion;
68
69
                                this->m_abreSeriesSueltas = abreSeriesSueltas;
69
70
                        }
70
71
 
107
108
                                return false;
108
109
                        }
109
110
 
 
111
                        virtual bool SupportsImportationUID(const std::string &importationUID){
 
112
                                for(TipoListaUIDsImportacion::iterator it = m_listImportationUIDs.begin(); it!= m_listImportationUIDs.end(); ++it){
 
113
                                        if((*it) == importationUID){
 
114
                                                return true;
 
115
                                        }
 
116
                                }
 
117
                                return false;
 
118
                        }
 
119
 
110
120
                protected:
111
121
                        TipoListaModalidades  m_listaModalidades;
 
122
                        TipoListaUIDsImportacion m_listImportationUIDs;
112
123
                        int id;
113
124
                        std::string descripcion;
114
125
                        wxBitmap* bitmap;
115
126
                        bool m_abreSeriesSueltas;
116
127
                };
117
128
 
118
 
                class EXTAPI Plantilla{
119
 
                public:
120
 
                        Plantilla(const wxBitmap& plantilla, const std::string& nombre, const std::string& descripcion = "");
121
 
 
122
 
                        ~Plantilla();
123
 
 
124
 
                        const wxBitmap* GetImagen() const {
125
 
                                return m_plantilla;
126
 
                        }
127
 
 
128
 
                        const std::string& GetNombre() const {
129
 
                                return m_nombre;
130
 
                        }
131
 
 
132
 
                        const std::string& GetDescripcion() const {
133
 
                                return m_descripcion;
134
 
                        }
135
 
 
136
 
                protected:
137
 
                        wxBitmap*   m_plantilla;
138
 
                        std::string m_nombre;
139
 
                        std::string m_descripcion;
140
 
                };
 
129
 
141
130
 
142
131
                class EXTAPI IdHL7 {
143
132
                public:
220
209
                        };
221
210
 
222
211
                        typedef std::list<DescriptorSerie> ListaDescriptoresSerie;
223
 
                        typedef std::list<Plantilla*> TipoListaPlantillas;
224
212
                        typedef std::list<IdHL7> TipoListaIdsHL7;
225
213
                        typedef std::map<std::string,IdHL7> TipoMapaIdsHL7;
226
214
 
227
215
                        /* Constructor */
228
 
                        IControladorModulo(GNC::GCS::IEntorno* pEntorno, const std::string& uid, int priority, const std::string& sid = "Common");
 
216
                        IControladorModulo(GNC::GCS::IEntorno* pEntorno, const std::string& uid, int priority);
229
217
 
230
218
                        /* Destructor */
231
219
                        virtual ~IControladorModulo();
236
224
                                return m_UID;
237
225
                        }
238
226
 
239
 
                        /* Obtiene el SID (String Id) único del módulo. Usado para transferencia de parámetros de línea de comandos. */
240
 
                        const std::string& GetSID() const
241
 
                        {
242
 
                                return m_SID;
243
 
                        }
244
 
 
245
227
                        const wxBitmap* GetBitmap() {
246
228
                                return m_Bitmap;
247
229
                        }
263
245
                                return true;
264
246
                        }
265
247
 
266
 
                        virtual TipoListaPlantillas& GetPlantillas() {
267
 
                                return m_listaPlantillas;
 
248
                        const std::string& GetImporterDescription() const
 
249
                        {
 
250
                                return m_ImporterDescription;
268
251
                        }
269
252
 
 
253
 
270
254
                        virtual void GetPasosImportacion(IWizard* , std::list<IPasoWizard*> &, wxWindow* , std::string &, GnkPtr<GIL::IModeloIntegracion> ){
271
255
 
272
256
                        }
290
274
                        /* Abre un estudio de manera no interactiva desde un directorio y devuelve su controlador específico */
291
275
                        virtual GNC::GCS::IVista* AbrirVista(int modo, ListaDescriptoresSerie& series, const std::string& uidEstudioDiagnostico = "") = 0;
292
276
 
 
277
                        virtual void ReprocessIntegration(const std::string& /*uidSeries*/, GnkPtr<GIL::IModeloIntegracion> /*pIntegrationModel*/) 
 
278
                        {
 
279
                        }
 
280
 
293
281
 
294
282
                //region "Manipulacion de paneles extra (Herramientas, etc.)"
295
283
 
334
322
 
335
323
                        virtual void GetTagsPrivadosReplace(GNC::GCS::IControladorModulo::TMapaTagsPrivados& mapaTags);
336
324
                        virtual GNC::GCS::IContextoEstudio::TModoFuncionamiento GetDiagnosticMode();
 
325
                        virtual bool SupportsImportationUID(const std::string &importationUID);
337
326
 
338
327
                protected:
339
328
                        GNC::GCS::IEntorno*  m_pEntorno;
340
329
                        ListaModos           m_ListaModos;
341
 
                        TipoListaPlantillas  m_listaPlantillas;
342
330
 
343
331
                        TipoListaIdsHL7      m_ListaInformes;
344
332
                        TipoMapaIdsHL7       m_ListaEstudios;
345
333
                        TipoMapaIdsHL7       m_ListaRegistros;
346
334
 
347
335
                        std::string m_UID;
348
 
                        std::string m_SID;
349
336
                        std::string m_Nombre;
 
337
                        std::string m_ImporterDescription;
350
338
                        std::string m_CopyRight;
351
339
                        std::string m_Author;
352
340
                        int         m_VersionMayor;