KIO::StatusbarProgress Class Reference
This is a special IO progress widget. IO progress widget for embedding in a statusbar. More...
#include <statusbarprogress.h>
Inheritance diagram for KIO::StatusbarProgress:


| Public Slots | |
| virtual void | slotClean () | 
| virtual void | slotTotalSize (KIO::Job *, KIO::filesize_t size) | 
| virtual void | slotPercent (KIO::Job *, unsigned long percent) | 
| virtual void | slotSpeed (KIO::Job *, unsigned long bytes_per_second) | 
| Public Member Functions | |
| StatusbarProgress (QWidget *parent, bool button=true) | |
| void | setJob (KIO::Job *job) | 
| Protected Types | |
| enum | Mode { None, Label, Progress } | 
| Protected Member Functions | |
| void | setMode () | 
| virtual bool | eventFilter (QObject *, QEvent *) | 
| virtual void | virtual_hook (int id, void *data) | 
| Protected Attributes | |
| KProgress * | m_pProgressBar | 
| QLabel * | m_pLabel | 
| QPushButton * | m_pButton | 
| KIO::filesize_t | m_iTotalSize | 
| uint | mode | 
| bool | m_bShowButton | 
| QBoxLayout * | box | 
| QWidgetStack * | stack | 
Detailed Description
This is a special IO progress widget. IO progress widget for embedding in a statusbar.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.
// 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 = KIO::copy(...); statusProgress->setJob( job ); ...
- Author:
- Matej Koss <koss@miesto.sk>
Definition at line 60 of file statusbarprogress.h.
Constructor & Destructor Documentation
| 
 | ||||||||||||
| Creates a new StatusbarProgress. 
 
 Definition at line 35 of file statusbarprogress.cpp. References QWidgetStack::addWidget(), QBoxLayout::addWidget(), QWidget::fontMetrics(), QLabel::setAlignment(), QWidget::setMinimumSize(), KIO::ProgressBase::setOnlyClean(), QWidget::sizeHint(), and KIO::ProgressBase::slotStop(). | 
Member Function Documentation
| 
 | 
| Sets the job to monitor. 
 
 Reimplemented from KIO::ProgressBase. Definition at line 74 of file statusbarprogress.cpp. | 
| 
 | 
| This method is called when the widget should be cleaned (after job is finished). redefine this for custom behavior. Reimplemented from KIO::ProgressBase. Definition at line 111 of file statusbarprogress.cpp. References QLabel::clear(), and KProgress::setValue(). | 
| 
 | ||||||||||||
| Called to set the total size. 
 
 Reimplemented from KIO::ProgressBase. Definition at line 121 of file statusbarprogress.cpp. References KIO::filesize_t. | 
| 
 | ||||||||||||
| Called to set the percentage. 
 
 Reimplemented from KIO::ProgressBase. Definition at line 125 of file statusbarprogress.cpp. References KProgress::setValue(). | 
| 
 | ||||||||||||
| Called to set the speed. 
 
 Reimplemented from KIO::ProgressBase. Definition at line 130 of file statusbarprogress.cpp. References QLabel::setText(). | 
The documentation for this class was generated from the following files:

