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

Opie::Ui::OTicker Class Reference

The OTicker class provides a QLabel widget that scroll its contents. More...

#include </home/clem/local/src/opie/libqtaux/oticker.h>

Collaboration diagram for Opie::Ui::OTicker:

Collaboration graph
[legend]
List of all members.

Signals

void mousePressed ()
 signal mouse press event

Public Member Functions

 OTicker (QWidget *parent=0)
 Object constructor.
 ~OTicker ()
 Object destructor.
void setText (const QString &text)
 sets text to be displayed
void setBackgroundColor (const QColor &color)
 sets color of the ticker's background
void setForegroundColor (const QColor &color)
 sets color of text
void setFrame (int style)
 sets frame style
void setUpdateTime (int timeout)
 sets time of update
void setScrollLength (int length)
 sets amount of scrolling default is 1

Protected Member Functions

void timerEvent (QTimerEvent *e)
 timer timeout event
void drawContents (QPainter *p)
 draws widget contents
void mouseReleaseEvent (QMouseEvent *e)
 mouse release event

Private Attributes

QColor backgroundcolor
QColor foregroundcolor
QString scrollText
QPixmap scrollTextPixmap
int pos
int updateTimerTime
int scrollLength

Detailed Description

The OTicker class provides a QLabel widget that scroll its contents.

Definition at line 53 of file oticker.h.


Constructor & Destructor Documentation

Opie::Ui::OTicker::OTicker QWidget *  parent = 0  ) 
 

Object constructor.

Parameters:
parent Pointer to parent of this control.
Constructs a new OTicker control with parent

Definition at line 42 of file oticker.cpp.

References backgroundcolor, Qt::black, foregroundcolor, Config::readEntry(), Qt::RichText, scrollLength, Config::setGroup(), and updateTimerTime.

Opie::Ui::OTicker::~OTicker  ) 
 

Object destructor.

Definition at line 54 of file oticker.cpp.


Member Function Documentation

Opie::Ui::OTicker::drawContents QPainter *  p  )  [protected]
 

draws widget contents

Parameters:
p QPainter. see QPainter

Definition at line 120 of file oticker.cpp.

References pos, scrollTextPixmap, width, and Opie::MM::y.

Opie::Ui::OTicker::mousePressed  )  [signal]
 

signal mouse press event

Referenced by mouseReleaseEvent().

Opie::Ui::OTicker::mouseReleaseEvent QMouseEvent *  e  )  [protected]
 

mouse release event

Parameters:
e QMouseEvent. see QMouseEvent.

Definition at line 128 of file oticker.cpp.

References mousePressed().

Opie::Ui::OTicker::setBackgroundColor const QColor &  color  ) 
 

sets color of the ticker's background

Parameters:
color QColor color to be set.

Definition at line 57 of file oticker.cpp.

References backgroundcolor.

Opie::Ui::OTicker::setForegroundColor const QColor &  color  ) 
 

sets color of text

Parameters:
color QColor color of text

Definition at line 63 of file oticker.cpp.

References foregroundcolor.

Opie::Ui::OTicker::setFrame int  style  ) 
 

sets frame style

Parameters:
style int Frame style to be see. See Qt::WidgetFlags.

Definition at line 69 of file oticker.cpp.

Opie::Ui::OTicker::setScrollLength int  length  ) 
 

sets amount of scrolling default is 1

Parameters:
length int scroll length.

Definition at line 139 of file oticker.cpp.

References scrollLength.

Referenced by StockTickerPluginWidget::doStocks().

Opie::Ui::OTicker::setText const QString text  ) 
 

sets text to be displayed

Parameters:
text QString text to be displayed.

Definition at line 75 of file oticker.cpp.

References backgroundcolor, foregroundcolor, QString::length(), odebug, oendl, pos, scrollText, scrollTextPixmap, and updateTimerTime.

Referenced by FortunePluginWidget::getFortune(), getStocks(), AudioWidget::setTickerText(), FortunePluginWidget::slotStdOut(), and StockTickerPluginWidget::socketError().

Opie::Ui::OTicker::setUpdateTime int  timeout  ) 
 

sets time of update

Parameters:
timeout int time in milliseconds between updates.

Definition at line 134 of file oticker.cpp.

References updateTimerTime.

Referenced by StockTickerPluginWidget::doStocks().

Opie::Ui::OTicker::timerEvent QTimerEvent *  e  )  [protected]
 

timer timeout event

Parameters:
e QEvent see QEvent.

Definition at line 114 of file oticker.cpp.

References FALSE, pos, scrollLength, and scrollTextPixmap.


Member Data Documentation

QColor Opie::Ui::OTicker::backgroundcolor [private]
 

Definition at line 144 of file oticker.h.

Referenced by OTicker(), setBackgroundColor(), and setText().

QColor Opie::Ui::OTicker::foregroundcolor [private]
 

Definition at line 144 of file oticker.h.

Referenced by OTicker(), setForegroundColor(), and setText().

int Opie::Ui::OTicker::pos [private]
 

Definition at line 147 of file oticker.h.

Referenced by drawContents(), setText(), and timerEvent().

int Opie::Ui::OTicker::scrollLength [private]
 

Definition at line 147 of file oticker.h.

Referenced by OTicker(), setScrollLength(), and timerEvent().

QString Opie::Ui::OTicker::scrollText [private]
 

Definition at line 145 of file oticker.h.

Referenced by setText().

QPixmap Opie::Ui::OTicker::scrollTextPixmap [private]
 

Definition at line 146 of file oticker.h.

Referenced by drawContents(), setText(), and timerEvent().

int Opie::Ui::OTicker::updateTimerTime [private]
 

Definition at line 147 of file oticker.h.

Referenced by OTicker(), setText(), and setUpdateTime().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:02:11 2005 for OPIE by  doxygen 1.4.2