X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvLinkPanel.h;h=c73cde4966b59045c64d9a4fcfbd3327d3374ba4;hb=c99626f17e07dbde440eb40a25683ce441a49a6e;hp=9dcb0b6192597974bbea79ce52608e03388409dd;hpb=0083c3fb2c66812489631c7551709d121de51625;p=clitk.git diff --git a/vv/vvLinkPanel.h b/vv/vvLinkPanel.h index 9dcb0b6..c73cde4 100644 --- a/vv/vvLinkPanel.h +++ b/vv/vvLinkPanel.h @@ -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 @@ -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 imageNames; std::vector image1Ids; std::vector image2Ids; + + bool mLinkAll; }; // end class vvLinkPanel //====================================================================