1 /*=========================================================================
5 Author : Pierre Seroul (pierre.seroul@gmail.com)
8 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
9 CREATIS-LRMN http://www.creatis.insa-lyon.fr
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, version 3 of the License.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 =========================================================================*/
24 #ifndef vvProgressDialog_h
25 #define vvProgressDialog_h
27 #include "ui_vvProgressDialog.h"
30 class vvProgressDialog : public QDialog, private Ui::vvProgressDialog
35 vvProgressDialog(std::string message,bool show_progress=false) {
37 textLabel->setText(message.c_str());
44 void Update(std::string message)
46 textLabel->setText(message.c_str());
48 void SetProgress(unsigned int current,unsigned int max)
50 progressBar->setMaximum(max);
51 progressBar->setValue(current);
53 ~vvProgressDialog() {}