X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2FvvToolCreator.txx;h=47b526ce85a1af279fb82cb6298ec831815b6356;hb=916b360a5059598577cb44f87381ccb1f0514476;hp=c6a9566f804575917e3c0ecf5e1694cb8c938526;hpb=0b7c9b1e1215634b02cbd38d4e4ba101d6111ba8;p=clitk.git diff --git a/vv/vvToolCreator.txx b/vv/vvToolCreator.txx index c6a9566..47b526c 100644 --- a/vv/vvToolCreator.txx +++ b/vv/vvToolCreator.txx @@ -15,6 +15,8 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html ======================================================================-====*/ + +//------------------------------------------------------------------------------ template void vvToolCreator::InsertToolInMenu(vvMainWindowBase * m) { mMainWindow = m; @@ -31,3 +33,12 @@ void vvToolCreator::InsertToolInMenu(vvMainWindowBase * m) { vvToolCreatorBase::InsertToolInMenu(mMainWindow); } //------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +template +vvToolCreator* & vvToolCreator::GetInstance() { + if(!mSingleton) + mSingleton = new vvToolCreator; + return mSingleton; +} +//------------------------------------------------------------------------------