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

« back to all changes in this revision

Viewing changes to src/cadxcore/main/entorno.cpp

  • 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:
33
33
 
34
34
#include <main/controllers/pacscontroller.h>
35
35
#include <main/controllers/controladorvistas.h>
36
 
#include <main/controllers/controladorcomandos.h>
 
36
#include <main/controllers/commandcontroller.h>
37
37
#include <main/controllers/controladoreventos.h>
38
38
#include <main/controllers/controladorextensiones.h>
39
39
#include <main/controllers/controladorcarga.h>
113
113
 
114
114
GNC::Entorno::Entorno()
115
115
{
116
 
        DJEncoderRegistration::registerCodecs(ECC_lossyYCbCr,
 
116
        DJEncoderRegistration::registerCodecs(
 
117
                ECC_lossyYCbCr,
117
118
                EUC_default, // UID generation (never create new UID's)
118
119
                OFFalse, // verbose
119
120
                0, 0, 0, true, ESS_444, true); // optimize huffman table
128
129
        m_GinkgoLicenseMessage = "";
129
130
        
130
131
        m_isChildInstance = false;
131
 
        
 
132
 
132
133
        std::ostringstream os;
133
134
        os << GINKGO_VERSION << "." << GINKGO_REVISION << "." << GINKGO_BUILD;
134
 
 
135
 
        {
136
 
                std::sscanf(GINKGO_VERSION, "%u.%u.%*c", &m_mayorVersionNumber, &m_minorVersionNumber);
137
 
        }
 
135
        if (sizeof(void*) == 4) {
 
136
                os << " 32 bits";
 
137
        }
 
138
        else if (sizeof(void*) == 8) {
 
139
                os << " 64 bits";
 
140
        }
 
141
        std::sscanf(GINKGO_VERSION, "%u.%u.%*c", &m_mayorVersionNumber, &m_minorVersionNumber);
138
142
 
139
143
        m_GinkgoVersion = os.str();
140
144
 
228
232
        DcmRLEEncoderRegistration::cleanup();
229
233
        DcmRLEDecoderRegistration::cleanup();
230
234
 
231
 
        if (ExtensionsObservers.size() > 0) {
 
235
        if (!ExtensionsObservers.empty()) {
232
236
                LOG_WARN("Core", "Extensions observers list not empty");
233
237
        }
234
238
        
235
 
        if (ViewsObservers.size() > 0) {
 
239
        if (!ViewsObservers.empty()) {
236
240
                LOG_WARN("Core", "Views observers list not empty");
237
241
        }
238
242
 
481
485
        m_pVentanaRaiz = ventana;
482
486
}
483
487
 
484
 
GNC::GCS::IControladorComandos* GNC::Entorno::GetControladorComandos()
 
488
GNC::GCS::ICommandController* GNC::Entorno::GetCommandController()
485
489
{
486
 
        return GNC::GCS::IControladorComandos::Instance();
 
490
        return GNC::GCS::ICommandController::Instance();
487
491
}
488
492
 
489
493
GIL::DICOM::IPACSController* GNC::Entorno::GetPACSController()
560
564
        ExtensionsObservers.push_back(observer);
561
565
}
562
566
 
563
 
void GNC::Entorno::UnRegisterExtensionsObserver(GNC::GCS::IExtensionsObserver* /*observer*/)
 
567
void GNC::Entorno::UnRegisterExtensionsObserver(GNC::GCS::IExtensionsObserver* observer)
564
568
{
565
569
        GNC::GCS::ILocker lock(ExtensionsObserversLock);
566
 
        //TODO
 
570
        ExtensionsObservers.remove(observer);
567
571
}
568
572
 
569
573
//endregion