X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkQtBlackBoxDialog.cxx;h=2cf9e177c98e4cbaa3f051abc0855d2f8e379c13;hb=ed9d32f344e2ffa223081390b63f064cf1e42de0;hp=36b7834f80fd110212adfcd6a9c45d7fadab89f0;hpb=28479cf7460f053625842de2e8df98b2e3363ede;p=bbtk.git diff --git a/kernel/src/bbtkQtBlackBoxDialog.cxx b/kernel/src/bbtkQtBlackBoxDialog.cxx index 36b7834..2cf9e17 100644 --- a/kernel/src/bbtkQtBlackBoxDialog.cxx +++ b/kernel/src/bbtkQtBlackBoxDialog.cxx @@ -1,3 +1,33 @@ +/*========================================================================= + Program: bbtk + Module: $RCSfile: bbtkQtBlackBoxDialog.cxx,v $ + Language: C++ + Date: $Date: 2010/01/14 13:17:27 $ + Version: $Revision: 1.4 $ +=========================================================================*/ + +/* --------------------------------------------------------------------- + +* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) +* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux +* +* This software is governed by the CeCILL-B license under French law and +* abiding by the rules of distribution of free software. You can use, +* modify and/ or redistribute the software under the terms of the CeCILL-B +* license as circulated by CEA, CNRS and INRIA at the following URL +* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +* or in the file LICENSE.txt. +* +* As a counterpart to the access to the source code and rights to copy, +* modify and redistribute granted by the license, users are provided only +* with a limited warranty and the software's author, the holder of the +* economic rights, and the successive licensors have only limited +* liability. +* +* The fact that you are presently reading this means that you have had +* knowledge of the CeCILL-B license and that you accept its terms. +* ------------------------------------------------------------------------ */ + #ifdef USE_QT #include "bbtkQtBlackBoxDialog.h" @@ -14,18 +44,21 @@ namespace bbtk int width, int height) : - QtBlackBoxDialogParent(box,parent) + QDialog(parent), + mBox(box) // QDialog( parent ) { - bbtkDebugMessage("qt",9,"QtBlackBoxDialog::QtBlackBoxDialog("<< - bbGetBlackBox()->bbGetFullName()<<","<bbGetName()<<"] QtBlackBoxDialog("<bbSetWindow(this); // Create the widget box->bbUserCreateWidget(widget); @@ -38,44 +71,19 @@ namespace bbtk } //========================================================================= - //========================================================================= - void QtBlackBoxDialog::bbShow() - { - if (bbIsShown()) return; - bbtkDebugMessage("qt",5,"QtBlackBoxDialog::bbShow() [" - <bbGetFullName()<<"]"<bbGetName() + <<"] $$$$$$$$$$$$$$$$$$$ ~QtBlackBoxDialog()" + <bbSetWindow(0); + Qt::DecNbWindowsAlive(); } //=========================================================================