blob: 7bdfe88861878ebe66f91589d9cfab7c2a0955a7 (
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
|
/***************************************************************************
progress dialog
-----------------------------------------------------------------------
begin : Mon Aug 16 17:41:11 1999
copyright : (C) 1999-2001 Ewald Arnold
(C) 2001 The KDE-EDU team
email : kvoctrain@ewald-arnold.de
-----------------------------------------------------------------------
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#undef stack
#include <kvoctraindoc.h>
#include "ProgressDlg.h"
#include <tqprogressbar.h>
#include <tqlabel.h>
#include <kstandarddirs.h>
ProgressDlg::ProgressDlg(const TQString &doctitle, const TQString &filename, const TQString &title, TQWidget* parent, const char* name)
: ProgressDlgForm( parent, name )
{
doc = 0;
setCaption (title);
l_title->setText (doctitle);
l_file->setText (filename);
progress-> setTotalSteps(100);
}
void ProgressDlg::setValue( kvoctrainDoc *new_doc, int val)
{
progress->setProgress(val);
if (doc == 0 && new_doc != 0)
{
doc = new_doc;
l_title->setText (doc->getTitle());
l_file->setText (doc->URL().fileName());
}
}
#include "ProgressDlg.moc"
|