text: /*=========================================================================
  
   medInria
  
   Copyright (c) INRIA 2013. All rights reserved.
   See LICENSE.txt for details.
   
    This software is distributed WITHOUT ANY WARRANTY; without even
    the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    PURPOSE.
  
  =========================================================================*/
  
  #include "medCompareViewContainer.h"
  
  
  
  
  class medCompareViewContainerPrivate
  {
  public:
      medViewContainer * fixedContainer;
      medViewContainer * movingContainer;
  };
  
  
  medCompareViewContainer::medCompareViewContainer(QWidget * parent):
          medCustomViewContainer(parent), d3(new medCompareViewContainerPrivate)
  {
      split(1, 2);
      d3->fixedContainer = this->childContainers()[0];
      d3->movingContainer = this->childContainers()[1];
      connect(d3->fixedContainer,SIGNAL(imageSet(medDataIndex)),
              this,SIGNAL(droppedFixed(medDataIndex)));
      connect(d3->movingContainer,SIGNAL(imageSet(medDataIndex)),
              this,SIGNAL(droppedMoving(medDataIndex)));
      //Set cues for the user:
      d3->fixedContainer->setInfo(tr("Fixed"));
      d3->movingContainer->setInfo(tr("Moving"));
  }
  
  medCompareViewContainer::~medCompareViewContainer()
  {
      delete d3;
      d3 = NULL;
  }
  