X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvLinkPanel.cxx;h=87f3a0fcae8fc364a7d61b04aec414fe30256a5e;hb=6fbc5b0555a148aed6478cfd1ea7593f32f5dd3c;hp=7dc2e887362442dc4bb8f7473a0e1783fddc9aa9;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/vv/vvLinkPanel.cxx b/vv/vvLinkPanel.cxx index 7dc2e88..87f3a0f 100644 --- a/vv/vvLinkPanel.cxx +++ b/vv/vvLinkPanel.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.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 @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ #ifndef _vvLinkPanel_CXX #define _vvLinkPanel_CXX @@ -57,6 +57,13 @@ void vvLinkPanel::addImage(std::string name, std::string id) //------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ +bool vvLinkPanel::isLinkAll() +{ + return mLinkAll; +} +//------------------------------------------------------------------------------ + //------------------------------------------------------------------------------ void vvLinkPanel::removeImage(int index) { @@ -129,6 +136,7 @@ void vvLinkPanel::UpdateComboBox2(int index) //------------------------------------------------------------------------------ void vvLinkPanel::linkAll() { + mLinkAll = true; //First remove all links while (linkTableWidget->rowCount()) removeLink(1,1); @@ -140,6 +148,7 @@ void vvLinkPanel::linkAll() for (int i=0; i< count-j; i++) addLink(); } + mLinkAll = false; } //------------------------------------------------------------------------------