summaryrefslogtreecommitdiffstats
path: root/ksirc/KSProgress/ksprogress.cpp
blob: d299f22abfdd40c20315f93f15635cd739e4e9aa (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
(
	TQWidget* tqparent,
	const char* name
)
	:
	Inherited( tqparent, name )
{
  setCaption("KSProgress");
  id = "";
  canceled = FALSE;
}


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

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

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

void KSProgress::setBotText(TQString text)
{
  transfertqStatus->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"