org.kde.koala

Class KMdiTaskBar

public class KMdiTaskBar extends KToolBar

It's a special kind of QToolBar that acts as taskbar for child views. KMdiTaskBarButtons can be added or removed dynamically.
The button sizes are adjusted dynamically, as well.

UNKNOWN: Internal class.

Constructor Summary
protected KMdiTaskBar(Class dummy)
KMdiTaskBar(KMdiMainFrm parent, int dock)
Constructor (NoFocus, minimum width = 1, an internal QPtrList of taskbar buttons (autodelete))
Method Summary
KMdiTaskBarButtonaddWinButton(KMdiChildView win_ptr)
Add a new KMdiTaskBarButton .
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
KMdiTaskBarButtongetButton(KMdiChildView win_ptr)
Get the button belonging to the MDI view given as parameter.
KMdiTaskBarButtongetNextWindowButton(boolean bRight, KMdiChildView win_ptr)
Returns the neighbor taskbar button of the taskbar button of the MDI view given by parameter bRight specifies the side, of course left is used if bRight is false.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisSwitchedOn()
protected voidlayoutTaskBar(int taskBarWidth)
Checks if all buttons fits into this.
protected voidlayoutTaskBar()
QMetaObjectmetaObject()
voidremoveWinButton(KMdiChildView win_ptr, boolean haveToLayoutTaskBar)
Removes a KMdiTaskBarButton and deletes it.
voidremoveWinButton(KMdiChildView win_ptr)
protected voidresizeEvent(QResizeEvent arg1)
Reimplemented from its base class to call layoutTaskBar, additionally.
voidsetActiveButton(KMdiChildView win_ptr)
Pushes the desired taskbar button down (switch on), the old one is released (switched off).
voidswitchOn(boolean bOn)
Switch it on or off.

Constructor Detail

KMdiTaskBar

protected KMdiTaskBar(Class dummy)

KMdiTaskBar

public KMdiTaskBar(KMdiMainFrm parent, int dock)
Constructor (NoFocus, minimum width = 1, an internal QPtrList of taskbar buttons (autodelete))

UNKNOWN: Constructor (NoFocus, minimum width = 1, an internal QPtrList of taskbar buttons (autodelete))

Method Detail

addWinButton

public KMdiTaskBarButton addWinButton(KMdiChildView win_ptr)
Add a new KMdiTaskBarButton . The width doesn't change. If there's not enough space, all taskbar buttons will be resized to a new smaller size. Probably button texts must be abbreviated now.

UNKNOWN: Add a new KMdiTaskBarButton .

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

getButton

public KMdiTaskBarButton getButton(KMdiChildView win_ptr)
Get the button belonging to the MDI view given as parameter.

UNKNOWN: Get the button belonging to the MDI view given as parameter.

getNextWindowButton

public KMdiTaskBarButton getNextWindowButton(boolean bRight, KMdiChildView win_ptr)
Returns the neighbor taskbar button of the taskbar button of the MDI view given by parameter bRight specifies the side, of course left is used if bRight is false.

UNKNOWN: Returns the neighbor taskbar button of the taskbar button of the MDI view given by parameter bRight specifies the side, of course left is used if bRight is false.

isDisposed

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

isSwitchedOn

public boolean isSwitchedOn()

Returns: whether switched on or off.

UNKNOWN:

layoutTaskBar

protected void layoutTaskBar(int taskBarWidth)
Checks if all buttons fits into this. If not, it recalculates all button widths in a way that all buttons fits into the taskbar and have got equal width. The text of the buttons will be abbreviated when nessecary, all buttons get a fixed width and show() is called for each one. If one drags the taskbar to a vertical orientation, the button width is set to 80 pixel.

UNKNOWN: Checks if all buttons fits into this.

layoutTaskBar

protected void layoutTaskBar()

metaObject

public QMetaObject metaObject()

removeWinButton

public void removeWinButton(KMdiChildView win_ptr, boolean haveToLayoutTaskBar)
Removes a KMdiTaskBarButton and deletes it. If the rest of the buttons are smaller than they usually are, all those buttons will be resized in a way that the new free size is used as well.

UNKNOWN: Removes a KMdiTaskBarButton and deletes it.

removeWinButton

public void removeWinButton(KMdiChildView win_ptr)

resizeEvent

protected void resizeEvent(QResizeEvent arg1)
Reimplemented from its base class to call layoutTaskBar, additionally.

UNKNOWN: Reimplemented from its base class to call layoutTaskBar, additionally.

setActiveButton

public void setActiveButton(KMdiChildView win_ptr)
Pushes the desired taskbar button down (switch on), the old one is released (switched off). Actually it's a radiobutton group behavior.

UNKNOWN: Pushes the desired taskbar button down (switch on), the old one is released (switched off).

switchOn

public void switchOn(boolean bOn)
Switch it on or off.

UNKNOWN: Switch it on or off.