gui::StatusBar Class Reference

Editor statusbar. More...

#include <statusbar.h>

List of all members.

Public Slots

void message (const QString &theMessage)
void receiveInfoText (const QString &theMessage)
void receiveWarnText (const QString &theMessage)

Public Member Functions

 StatusBar (QWidget *parent=0, const char *name=0)
 ~StatusBar ()

Private Slots

void timeOut ()

Private Member Functions

void normCol ()
void warnCol ()

Private Attributes

QLabel * info
QLabel * msgLabel
QString storedMsg
QTimer * tm

Detailed Description

Editor statusbar.

Class representing statusbar.
The statusbar contain tho areas, large message area on left and smaller informative area on right.


Constructor & Destructor Documentation

gui::StatusBar::StatusBar ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructor of StatusBar

Parameters:
parent Parent window of this dialog
name Name of this window (used only for debugging)

References info, msgLabel, timeOut(), and tm.

gui::StatusBar::~StatusBar (  ) 

default destructor

References tm.


Member Function Documentation

void gui::StatusBar::message ( const QString &  theMessage  )  [slot]

Set text shown in message label (permanently, until replaced by other text)

Parameters:
theMessage new text

References msgLabel, normCol(), and storedMsg.

void gui::StatusBar::normCol (  )  [private]

Set color scheme of message label to "Normal"

References info, and msgLabel.

Referenced by message(), and timeOut().

void gui::StatusBar::receiveInfoText ( const QString &  theMessage  )  [slot]

Set text shown in informational widget (permanently, until replaced by other text)

Parameters:
theMessage new text

References info.

void gui::StatusBar::receiveWarnText ( const QString &  theMessage  )  [slot]

Receive warning and show it for some time

Parameters:
theMessage Message

References msgLabel, tm, and warnCol().

void gui::StatusBar::timeOut (  )  [private, slot]

Slot handling time signal received from timer

References msgLabel, normCol(), and storedMsg.

Referenced by StatusBar().

void gui::StatusBar::warnCol (  )  [private]

Set color scheme of message label to "Warning"

References info, and msgLabel.

Referenced by receiveWarnText().


Member Data Documentation

QLabel* gui::StatusBar::info [private]

Informational label on right

Referenced by normCol(), receiveInfoText(), StatusBar(), and warnCol().

QLabel* gui::StatusBar::msgLabel [private]

Message label on left

Referenced by message(), normCol(), receiveWarnText(), StatusBar(), timeOut(), and warnCol().

QString gui::StatusBar::storedMsg [private]

Store old message in case of replacement by timed warning

Referenced by message(), and timeOut().

QTimer* gui::StatusBar::tm [private]

Timer to watch for message timeouts

Referenced by receiveWarnText(), StatusBar(), and ~StatusBar().


The documentation for this class was generated from the following files: