summaryrefslogtreecommitdiffstats
path: root/ksirc/KSProgress/ksprogress.cpp
blob: ccf3b1945622b4479e8f2b009e28637a0c1c4ffd (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* parent,
	const char* name
)
	:
	Inherited( parent, 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)
{
  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"