Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
waitingform.cpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #include "waitingform.hpp"
12 #include "ui_waitingform.h"
13 using namespace Huggle;
14 
15 WaitingForm::WaitingForm(QWidget *parent) : QDialog(parent), ui(new Ui::WaitingForm)
16 {
17  ui->setupUi(this);
18  ui->progressBar->setValue(0);
19 }
20 
21 WaitingForm::~WaitingForm()
22 {
23  delete ui;
24 }
25 
26 void WaitingForm::Status(int progress, QString text)
27 {
28  ui->label->setText(text);
29  ui->progressBar->setValue(progress);
30 }
31 
32 void WaitingForm::reject()
33 {
34  // this function replaces the original that hides the window so that
35  // it's not possible to reject this window
36 }
This is universal form that is just displaying the progress bar and reason why we need to wait...
Definition: waitingform.hpp:25