• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • TDEIO
  • TDEIO::StatusbarProgress
Public Slots | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

TDEIO::StatusbarProgress Class Reference

This is a special IO progress widget. More...

#include <statusbarprogress.h>

Inheritance diagram for TDEIO::StatusbarProgress:
TDEIO::ProgressBase TQWidget

List of all members.

Public Slots

virtual void slotClean ()
virtual void slotTotalSize (TDEIO::Job *job, TDEIO::filesize_t size)
virtual void slotPercent (TDEIO::Job *job, unsigned long percent)
virtual void slotSpeed (TDEIO::Job *job, unsigned long speed)

Public Member Functions

 StatusbarProgress (TQWidget *parent, bool button=true)
void setJob (TDEIO::Job *job)

Protected Types

enum  Mode { None, Label, Progress }

Protected Member Functions

void setMode ()
virtual bool eventFilter (TQObject *, TQEvent *)
virtual void virtual_hook (int id, void *data)

Protected Attributes

KProgress * m_pProgressBar
TQLabel * m_pLabel
TQPushButton * m_pButton
TDEIO::filesize_t m_iTotalSize
uint mode
bool m_bShowButton
TQBoxLayout * box
TQWidgetStack * stack

Detailed Description

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.

 // 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 );
 ...

IO progress widget for embedding in a statusbar.

Author:
Matej Koss <koss@miesto.sk>

Definition at line 60 of file statusbarprogress.h.


Constructor & Destructor Documentation

TDEIO::StatusbarProgress::StatusbarProgress ( TQWidget *  parent,
bool  button = true 
)

Creates a new StatusbarProgress.

Parameters:
parent the parent of this widget
button true to add an abort button. The button will be connected to ProgressBase::slotStop()

Definition at line 34 of file statusbarprogress.cpp.


Member Function Documentation

void TDEIO::StatusbarProgress::setJob ( TDEIO::Job *  job  ) 

Sets the job to monitor.

Parameters:
job the job to monitor

Reimplemented from TDEIO::ProgressBase.

Definition at line 73 of file statusbarprogress.cpp.

void TDEIO::StatusbarProgress::slotClean (  )  [virtual, slot]

This method is called when the widget should be cleaned (after job is finished).

redefine this for custom behavior.

Reimplemented from TDEIO::ProgressBase.

Definition at line 110 of file statusbarprogress.cpp.

void TDEIO::StatusbarProgress::slotPercent ( TDEIO::Job *  job,
unsigned long  percent 
) [virtual, slot]

Called to set the percentage.

Parameters:
job the TDEIO::Job
percent the percentage

Reimplemented from TDEIO::ProgressBase.

Definition at line 124 of file statusbarprogress.cpp.

void TDEIO::StatusbarProgress::slotSpeed ( TDEIO::Job *  job,
unsigned long  speed 
) [virtual, slot]

Called to set the speed.

Parameters:
job the TDEIO::Job
speed the speed in bytes/second

Reimplemented from TDEIO::ProgressBase.

Definition at line 129 of file statusbarprogress.cpp.

void TDEIO::StatusbarProgress::slotTotalSize ( TDEIO::Job *  job,
TDEIO::filesize_t  size 
) [virtual, slot]

Called to set the total size.

Parameters:
job the TDEIO::Job
size the total size in bytes

Reimplemented from TDEIO::ProgressBase.

Definition at line 120 of file statusbarprogress.cpp.


The documentation for this class was generated from the following files:
  • statusbarprogress.h
  • statusbarprogress.cpp

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.7.1
This website is maintained by Timothy Pearson.