org.kde.koala

Class KStatusBar

public class KStatusBar extends QStatusBar

Display status messages. 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. It is useful to connect the KActionCollection signals to the QStatusBar.message slots. 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. See KStatusBarSignals for signals emitted by KStatusBar

Author: Mark Donohoe (donohoe@kde.org) Maintained by Sven Radej

See Also: KActionCollection

UNKNOWN: %KDE statusbar widget.

Constructor Summary
protected KStatusBar(Class dummy)
KStatusBar(QWidget parent, String name)
Constructs a status bar.
KStatusBar(QWidget parent)
KStatusBar()
Method Summary
voidchangeItem(String text, int id)
Changes the text in a status bar field.
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanhasItem(int id)
Returns true if an item with id exists already in KStatusBar, otherwise returns false.
voidinsertFixedItem(String text, int id, boolean permanent)
Inserts a fixed width text label into status bar.
voidinsertFixedItem(String text, int id)
voidinsertItem(String text, int id, int stretch, boolean permanent)
Inserts a text label into the status bar.
voidinsertItem(String text, int id, int stretch)
voidinsertItem(String text, int id)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
voidremoveItem(int id)
Removes an item.
voidsetItemAlignment(int id, int align)
Sets the alignment of item id. By default all fields are aligned AlignHCenter | AlignVCenter. See QLabel.setAlignment for details.
voidsetItemFixed(int id, int width)
Sets item id to have fixed width.
voidsetItemFixed(int id)

Constructor Detail

KStatusBar

protected KStatusBar(Class dummy)

KStatusBar

public KStatusBar(QWidget parent, String name)
Constructs a status bar. parent is usually KMainWindow.

UNKNOWN: Constructs a status bar.

KStatusBar

public KStatusBar(QWidget parent)

KStatusBar

public KStatusBar()

Method Detail

changeItem

public void changeItem(String text, int id)
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).

Parameters: text The label's text string id The id of item.

UNKNOWN: Changes the text in a status bar field.

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

hasItem

public boolean hasItem(int id)
Returns true if an item with id exists already in KStatusBar, otherwise returns false.

Parameters: id id of the item

UNKNOWN:

insertFixedItem

public void insertFixedItem(String text, int id, boolean permanent)
Inserts a fixed width text label into status bar. The width will be set according to text, but will remain fixed even if you change text. You can change fixed width by calling setItemFixed.

Parameters: text The label's text string id id of item permanent permanent flag passed to QStatusBar.addWidget

UNKNOWN: Inserts a fixed width text label into status bar.

insertFixedItem

public void insertFixedItem(String text, int id)

insertItem

public void insertItem(String text, int id, int stretch, boolean permanent)
Inserts a text label into the status bar. Parameters stretch and permanent are passed to QStatusBar.addWidget . If permanent is true, then item will be placed on the far right of the statusbar and will never be hidden by QStatusBar.message.

Parameters: text The label's text string. id id of item stretch stretch passed to QStatusBar.addWidget permanent is item permanent or not (passed to QStatusBar.addWidget )

See Also: org.kde.qt.QStatusbar#addWidget

UNKNOWN: Inserts a text label into the status bar.

insertItem

public void insertItem(String text, int id, int stretch)

insertItem

public void insertItem(String text, int id)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

removeItem

public void removeItem(int id)
Removes an item.

Parameters: id The item to remove.

UNKNOWN: Removes an item.

setItemAlignment

public void setItemAlignment(int id, int align)
Sets the alignment of item id. By default all fields are aligned AlignHCenter | AlignVCenter. See QLabel.setAlignment for details.

UNKNOWN: Sets the alignment of item id.

setItemFixed

public void setItemFixed(int id, int width)
Sets item id to have fixed width. This cannot be undone, but you can always set new fixed width.

Parameters: id id of item width fixed width in pixels. Default -1 is to adapt to text width.

UNKNOWN: Sets item id to have fixed width.

setItemFixed

public void setItemFixed(int id)