blob: 68076170a060dad1f9e5ca8a4612c659eb1c6754 (
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
61
62
63
64
65
66
67
68
69
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQObject;
import org.kde.qt.TQEvent;
import org.kde.qt.TQWidget;
/**
This is a special IO progress widget.
Similarly to DefaultProgress,
it's purpose is to show a progress of the IO operation.
Instead of creating a separate window, this is only a widget that can be
easily embedded in a statusbar.
Usage of StatusbarProgress is little different.
This dialog will be a part of some application.
<pre>
// create a dialog
StatusbarProgress statusProgress;
statusProgress = new StatusbarProgress( statusBar() );
statusBar().insertWidget( statusProgress, statusProgress.width() , 0 );
...
// create job and connect it to the progress
CopyJob job = TDEIO.copy(...);
statusProgress.setJob( job );
...
</pre>
@author Matej Koss <koss@miesto.sk>
@short IO progress widget for embedding in a statusbar.
*/
public class StatusbarProgress extends ProgressBase {
protected StatusbarProgress(Class dummy){super((Class) null);}
public native TQMetaObject metaObject();
public native String className();
/**
Creates a new StatusbarProgress.
@param parent the parent of this widget
@param button true to add an abort button. The button will be
connected to ProgressBase.slotStop()
@short Creates a new StatusbarProgress.
*/
public StatusbarProgress(TQWidget parent, boolean button) {
super((Class) null);
newStatusbarProgress(parent,button);
}
private native void newStatusbarProgress(TQWidget parent, boolean button);
public StatusbarProgress(TQWidget parent) {
super((Class) null);
newStatusbarProgress(parent);
}
private native void newStatusbarProgress(TQWidget parent);
/**
Sets the job to monitor.
@param job the job to monitor
@short Sets the job to monitor.
*/
public native void setJob(Job job);
public native void slotClean();
public native void slotTotalSize(Job job, long size);
public native void slotPercent(Job job, long percent);
public native void slotSpeed(Job job, long speed);
protected native void setMode();
public native boolean eventFilter(TQObject arg1, TQEvent arg2);
}
|