Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OWait Class Reference

modal hour glass dialog More...

#include </home/clem/local/src/opie/noncore/unsupported/libopie/owait.h>

List of all members.

Public Slots

void hide ()

Public Member Functions

 OWait (QWidget *parent=0, const char *name=0, bool dispIcon=TRUE)
 ~OWait ()
void show ()
void setTimerLength (int length)

Private Member Functions

void timerEvent (QTimerEvent *)
void paintEvent (QPaintEvent *)

Private Attributes

QPixmap m_pix
QLabel * m_lb
QTimer * m_waitTimer
int m_timerLength
int m_aniSize
Private * d


Detailed Description

modal hour glass dialog

This class displays a animated waiting icon in the middle of the screen.

See also:
QDialog
Author:
Maximilian Reiß

Definition at line 37 of file owait.h.


Constructor & Destructor Documentation

OWait::OWait QWidget *  parent = 0,
const char *  msg = 0,
bool  dispIcon = TRUE
 

This will construct a modal dialog.

The default timer length is 10.

Parameters:
parent The parent of the widget
msg The name of the object
dispIcon Display Icon?

Definition at line 39 of file owait.cpp.

References hide(), Resource::loadPixmap(), m_aniSize, m_lb, m_pix, m_timerLength, and m_waitTimer.

OWait::~OWait  ) 
 

Definition at line 90 of file owait.cpp.


Member Function Documentation

void OWait::hide  )  [slot]
 

reimplemented for control reasons

Definition at line 79 of file owait.cpp.

References frame, and m_waitTimer.

Referenced by OWait().

void OWait::paintEvent QPaintEvent *   )  [private]
 

Definition at line 66 of file owait.cpp.

References frame, m_aniSize, m_lb, m_pix, and p.

void OWait::setTimerLength int  length  ) 
 

Set the time before the icon will be automaticly hidden The timer will be started once the widget will be shown.

Parameters:
length - time in seconds

Definition at line 86 of file owait.cpp.

References m_timerLength.

void OWait::show  ) 
 

reimplemented for control reasons

Definition at line 71 of file owait.cpp.

References m_aniSize, m_timerLength, m_waitTimer, and qApp.

void OWait::timerEvent QTimerEvent *   )  [private]
 

Definition at line 61 of file owait.cpp.

References frame.


Member Data Documentation

Private* OWait::d [private]
 

Definition at line 73 of file owait.h.

int OWait::m_aniSize [private]
 

Definition at line 72 of file owait.h.

Referenced by OWait(), paintEvent(), and show().

QLabel* OWait::m_lb [private]
 

Definition at line 69 of file owait.h.

Referenced by OWait(), and paintEvent().

QPixmap OWait::m_pix [private]
 

Definition at line 68 of file owait.h.

Referenced by OWait(), and paintEvent().

int OWait::m_timerLength [private]
 

Definition at line 71 of file owait.h.

Referenced by OWait(), setTimerLength(), and show().

QTimer* OWait::m_waitTimer [private]
 

Definition at line 70 of file owait.h.

Referenced by hide(), OWait(), and show().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:43:57 2005 for OPIE by  doxygen 1.4.2