]> Creatis software - clitk.git/blobdiff - vv/vvLinkPanel.h
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvLinkPanel.h
index 23b34bbdba6cd0ee4caa525c04360f3f8e71d835..c73cde4966b59045c64d9a4fcfbd3327d3374ba4 100644 (file)
@@ -1,33 +1,22 @@
-#ifndef _vvLinkPanel_H
-#define _vvLinkPanel_H
-
 /*=========================================================================
+  Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
 
- Program:   vv
- Module:    $RCSfile: vvLinkPanel.h,v $
- Language:  C++
- Date:      $Date: 2010/01/06 13:31:57 $
- Version:   $Revision: 1.1 $
- Author :   Pierre Seroul (pierre.seroul@gmail.com)
-
-Copyright (C) 200COLUMN_IMAGE_NAME
-Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
-CREATIS-LRMN http://www.creatis.insa-lyon.fr
+  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 program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, version 3 of the License.
+  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.
 
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-=========================================================================*/
+  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>
 #include <vector>
 
@@ -45,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);
@@ -54,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:
@@ -63,6 +54,8 @@ private:
     std::vector<std::string> imageNames;
     std::vector<std::string> image1Ids;
     std::vector<std::string> image2Ids;
+    
+    bool mLinkAll;
 
 }; // end class vvLinkPanel
 //====================================================================