]> Creatis software - clitk.git/blobdiff - vv/vvLinkPanel.h
Change comment to be correct
[clitk.git] / vv / vvLinkPanel.h
index 9dcb0b6192597974bbea79ce52608e03388409dd..c73cde4966b59045c64d9a4fcfbd3327d3374ba4 100644 (file)
@@ -1,3 +1,20 @@
+/*=========================================================================
+  Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
+
+  Authors belong to: 
+  - University of LYON              http://www.universite-lyon.fr/
+  - Léon Bérard cancer center       http://www.centreleonberard.fr
+  - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
+
+  This software is distributed WITHOUT ANY WARRANTY; without even
+  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+  PURPOSE.  See the copyright notices for more information.
+
+  It is distributed under dual licence
+
+  - BSD        See included LICENSE.txt file
+  - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+===========================================================================**/
 #ifndef _vvLinkPanel_H
 #define _vvLinkPanel_H
 #include <iostream>
@@ -17,7 +34,9 @@ public:
     ~vvLinkPanel() {}
 
     void addImage(std::string name, std::string id);
+    void addLinkFromIds(QString id1, QString id2);
     void removeImage(int i);
+    bool isLinkAll();
 
 public slots :
     void UpdateComboBox2(int i);
@@ -26,7 +45,7 @@ public slots :
     void linkAll();
 
 signals:
-    void addLink(QString image1,QString image2);
+    void addLink(QString image1,QString image2,bool);
     void removeLink(QString image1,QString image2);
 
 private:
@@ -35,6 +54,8 @@ private:
     std::vector<std::string> imageNames;
     std::vector<std::string> image1Ids;
     std::vector<std::string> image2Ids;
+    
+    bool mLinkAll;
 
 }; // end class vvLinkPanel
 //====================================================================