Logo Search packages:      
Sourcecode: kdenlive version File versions

StatusBarMessageLabel Class Reference

#include <statusbarmessagelabel.h>

List of all members.


Detailed Description

Represents a message text label as part of the status bar.

Dependent from the given type automatically a corresponding icon is shown in front of the text. For message texts having the type DolphinStatusBar::Error a dynamic color blending is done to get the attention from the user.

Definition at line 46 of file statusbarmessagelabel.h.


Public Slots

void setMessage (const QString &text, MessageType type)

Public Member Functions

const QString & defaultText () const
int minimumTextHeight () const
void setDefaultText (const QString &text)
void setMinimumTextHeight (int min)
 StatusBarMessageLabel (QWidget *parent)
const QString & text () const
MessageType type () const
int widthGap () const

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
virtual void resizeEvent (QResizeEvent *event)

Private Types

enum  { GeometryTimeout = 100 }
enum  { BorderGap = 2 }
enum  State { Default, Illuminate, Illuminated, Desaturate }

Private Slots

void assureVisibleText ()
int availableTextWidth () const
void closeErrorMessage ()
void timerDone ()
void updateCloseButtonPosition ()

Private Member Functions

void reset ()
bool showPendingMessage ()

Private Attributes

QPushButton * m_closeButton
QString m_defaultText
int m_illumination
int m_minTextHeight
QList< QString > m_pendingMessages
QPixmap m_pixmap
State m_state
QString m_text
QTimer * m_timer
MessageType m_type

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

Generated by  Doxygen 1.6.0   Back to index