KStatusBar Class Reference
Display status messages. KDE statusbar widget. More...
#include <kstatusbar.h>
Inheritance diagram for KStatusBar:

Public Types | |
enum | BarStatus { Toggle, Show, Hide } |
Signals | |
void | pressed (int) |
void | released (int) |
Public Member Functions | |
KStatusBar (QWidget *parent=0L, const char *name=0L) | |
~KStatusBar () | |
void | insertItem (const QString &text, int id, int stretch=0, bool permanent=false) |
void | insertFixedItem (const QString &text, int id, bool permanent=false) |
void | removeItem (int id) |
bool | hasItem (int id) const |
void | changeItem (const QString &text, int id) |
void | setItemAlignment (int id, int align) |
void | setItemFixed (int id, int width=-1) |
Detailed Description
Display status messages. KDE statusbar widget.You can insert text labels or custom widgets. Their geometry is managed internally. KStatusBar resizes itself, but positioning is left to KMainWindow (or to you, if you don't use KMainWindow ).
A special type of item is a message which is a temporary text-message displayed on top of other items in full-width. Messages are visible for specified time, or until you call the slot QStatusBar::clear(). See QStatusBar::message for details.
KStatusBar inherits QStatusBar, you can freely use all QStatusBar methods.
Empty text items are not visible. They will become visible when you change (add) text.
- Author:
- Mark Donohoe (donohoe@kde.org) Maintained by Sven Radej <radej@kde.org>
- Version:
- Id
- kstatusbar.h,v 1.40 2003/12/17 00:45:16 kniederk Exp
Definition at line 82 of file kstatusbar.h.
Member Enumeration Documentation
|
Definition at line 92 of file kstatusbar.h. |
Constructor & Destructor Documentation
|
Constructs a status bar.
Definition at line 70 of file kstatusbar.cpp. References KGlobal::config(), KConfigBase::group(), KStatusBar(), KConfigBase::readBoolEntry(), and KConfigBase::setGroup(). Referenced by KStatusBar(). |
|
Destructor. Deletes all internal objects. Definition at line 84 of file kstatusbar.cpp. |
Member Function Documentation
|
Inserts a text label into the status bar.
Paremeters
If
Definition at line 89 of file kstatusbar.cpp. References endl(), QIntDict< KStatusBarLabel >::insert(), insertItem(), and kdDebug(). Referenced by insertItem(). |
|
Inserts a fixed width text label into status bar.
The width will be set according to
Definition at line 133 of file kstatusbar.h. References insertFixedItem(), and setItemFixed(). Referenced by insertFixedItem(). |
|
Removes an item.
Definition at line 102 of file kstatusbar.cpp. References endl(), kdDebug(), and removeItem(). Referenced by removeItem(). |
|
Returns true if an item with exists already in KStatusBar, otherwise returns false.
Definition at line 116 of file kstatusbar.cpp. References hasItem(). Referenced by hasItem(). |
|
Changes the text in a status bar field. The item will be resized to fit the text. If you change text to be empty, item will not be visible (untill you add some text).
Definition at line 125 of file kstatusbar.cpp. References changeItem(), QStatusBar::clear(), endl(), kdDebug(), QStatusBar::reformat(), and QLabel::setText(). Referenced by changeItem(). |
|
Sets the alignment of item
By default all fields are aligned Definition at line 141 of file kstatusbar.cpp. References endl(), kdDebug(), QLabel::setAlignment(), and setItemAlignment(). Referenced by setItemAlignment(). |
|
Sets item This cannot be undone, but you can always set new fixed width.
Definition at line 152 of file kstatusbar.cpp. References endl(), kdDebug(), setItemFixed(), and QLabel::text(). Referenced by insertFixedItem(), and setItemFixed(). |
|
Emitted when mouse is pressed over item Connect to this signal if you want to respond to mouse press events. |
|
Emitted when mouse is released over item Connect to this signal if you want to respond to mouse release events (clicks). |
The documentation for this class was generated from the following files: