summaryrefslogtreecommitdiffstats
path: root/ksirc/KSProgress/ksprogress.cpp
blob: 369b07425a1775fd5e93e007b15c58d72afc3743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**********************************************************************


 *********************************************************************/

#include "ksprogress.h"

#undef Inherited
#define Inherited ksprogressData

KSProgress::KSProgress
(
	QWidget* parent,
	const char* name
)
	:
	Inherited( parent, name )
{
  setCaption("KSProgress");
  id = "";
  canceled = FALSE;
}


void KSProgress::setID(QString _id)
{
  id = _id;
}

void KSProgress::setRange(int minValue, int maxValue)
{
  progress->setRange(minValue, maxValue);
}

void KSProgress::setTopText(QString text)
{
  fileName->setText(text);
}

void KSProgress::setBotText(QString text)
{
  transferStatus->setText(text);
}

void KSProgress::setValue(int value)
{
  progress->setValue(value);
}

void KSProgress::cancelPressed()
{
  canceled = TRUE;
  emit cancel();
  emit cancel(id);
}

KSProgress::~KSProgress()
{
}
#include "ksprogress.moc"